:root {
  --paper: #F5F5F0;
  --paper-deep: #E8E8DF;
  --card: #FFFFFF;
  --ink: #1A1A1A;
  --muted: #6B6B6B;
  --line: #D0D0C8;
  --flame: #FF4B1F;
  --flame-dark: #D84315;
  --cobalt: #0F2A4A;
  --cobalt-soft: #1D3B5C;
  --volt: #CCFF00;
  --cyan: #00E5FF;
  --deep-cyan: #00C2C7;
  --font-display: "Impact", "Arial Narrow Bold", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "Roboto Mono", "SF Mono", "Consolas", monospace;
  --gutter: clamp(1rem, 3vw, 2rem);
  --container-max: 1200px;
  --ease: cubic-bezier(.25, .1, .25, 1);
  --shadow-card: 0 12px 32px rgba(20, 20, 20, .05);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote, address {
  margin: 0;
}

ul[class], ol[class] {
  list-style: none;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--cobalt);
  text-underline-offset: .15em;
}

::selection {
  background: var(--volt);
  color: var(--cobalt);
}

:focus-visible {
  outline: 3px solid var(--volt);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--cobalt);
}

#main-content {
  scroll-margin-top: 6rem;
}

.container {
  width: min(var(--container-max), calc(100% - var(--gutter) - var(--gutter)));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(4rem, 10vw, 7rem);
}

.section--tight {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.section--paper-deep {
  background: var(--paper-deep);
}

.section--ink {
  background: var(--ink);
  color: var(--paper);
}

.section--cobalt {
  background: var(--cobalt);
  color: var(--paper);
}

.section--flame {
  background: var(--flame);
  color: var(--paper);
}

.section__kicker {
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--flame);
  margin-bottom: .5rem;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: .92;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1rem;
}

.section__lede {
  font-size: 1.1rem;
  max-width: 65ch;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}

.section--ink .section__title,
.section--cobalt .section__title,
.section--flame .section__title {
  color: var(--paper);
}

.section--ink .section__lede,
.section--cobalt .section__lede,
.section--flame .section__lede {
  color: rgba(245, 245, 240, .76);
}

.section--cobalt .section__kicker,
.section--flame .section__kicker {
  color: var(--volt);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
}

.grid-card {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
}

.card--flat {
  box-shadow: none;
}

.card--framed {
  border-left: 4px solid var(--flame);
  box-shadow: none;
}

.card--cobalt {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: var(--paper);
}

.display-number {
  font-family: var(--font-mono);
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 1;
  color: var(--flame);
  letter-spacing: -.04em;
}

.data-panel {
  display: grid;
  gap: .4rem;
  padding: 1.1rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--flame);
  box-shadow: var(--shadow-card);
}

.data-label {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.data-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  line-height: 1.1;
  color: var(--ink);
}

.data-value--flame {
  color: var(--flame);
}

.data-value--volt {
  background: var(--volt);
  color: var(--cobalt);
  padding: .1rem .35rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .28rem .7rem;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tag--flame {
  background: transparent;
  border-color: var(--flame);
  color: var(--flame);
}

.tag--volt {
  background: var(--volt);
  border-color: var(--cobalt);
  color: var(--cobalt);
}

.note-plaque {
  padding: 1rem 1.25rem;
  background: var(--card);
  border-left: 4px solid var(--flame);
  box-shadow: var(--shadow-card);
  color: var(--muted);
  font-size: .9rem;
}

.note-plaque strong {
  color: var(--ink);
}

.image-figure {
  position: relative;
  overflow: hidden;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
}

.image-figure--tall {
  aspect-ratio: 4 / 5;
}

.image-figure--wide {
  aspect-ratio: 21 / 9;
}

.image-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-figure__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: .35rem .8rem;
  background: rgba(26, 26, 26, .82);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem .5rem;
  padding: 1rem 0;
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--muted);
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--flame);
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: .5rem;
  color: var(--line);
}

.breadcrumbs [aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .75rem 1.4rem;
  border: 1px solid var(--ink);
  background: var(--card);
  color: var(--ink);
  font: 700 .95rem / 1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}

.btn--primary {
  background: var(--flame);
  border-color: var(--flame);
  color: var(--paper);
  box-shadow: .3rem .3rem 0 var(--cobalt);
}

.btn--ghost {
  background: transparent;
  border-color: var(--cobalt);
  color: var(--cobalt);
}

.btn--volt {
  background: var(--volt);
  border-color: var(--cobalt);
  color: var(--cobalt);
  box-shadow: .3rem .3rem 0 var(--cobalt);
}

.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: .15rem .15rem 0 var(--cobalt);
}

.btn--ghost:hover {
  background: var(--cobalt);
  color: var(--paper);
}

.btn--volt:hover {
  background: var(--volt);
  box-shadow: .15rem .15rem 0 var(--cobalt);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 10vw, 7rem) 0;
  background: var(--cobalt);
  color: var(--paper);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 35%, var(--flame) 35% 46%, transparent 46%) 0 0 / 120px 120px,
    linear-gradient(115deg, transparent 55%, var(--volt) 55% 58%, transparent 58%) 0 0 / 120px 120px;
  opacity: .18;
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
}

.page-hero .breadcrumbs a {
  color: rgba(245, 245, 240, .72);
}

.page-hero .breadcrumbs [aria-current="page"] {
  color: var(--volt);
}

.skip-link {
  position: fixed;
  left: -999px;
  top: 1rem;
  z-index: 300;
  background: var(--flame);
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
  padding: .75rem 1.1rem;
}

.skip-link:focus {
  left: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 245, 240, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__accent {
  height: 6px;
  background:
    linear-gradient(120deg, var(--flame) 0 55%, transparent 55%) 0 0 / 72px 6px repeat-x,
    linear-gradient(120deg, transparent 45%, var(--volt) 45% 55%, transparent 55%) 0 0 / 72px 6px repeat-x,
    var(--cobalt);
}

.site-header__inner {
  position: relative;
  max-width: 1480px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .5rem 1rem;
  padding: 1.1rem 0 .75rem;
}

.masthead__brand {
  flex-basis: 100%;
  display: block;
  text-align: center;
  text-decoration: none;
  color: inherit;
  line-height: 1;
}

.masthead__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.8rem, 9vw, 6rem);
  line-height: .9;
  letter-spacing: -.03em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

.masthead__tag {
  display: block;
  margin-top: .3rem;
  font-family: var(--font-mono);
  font-size: clamp(.62rem, 2vw, .78rem);
  letter-spacing: .55em;
  padding-left: .55em;
  text-transform: uppercase;
  color: var(--flame);
}

.masthead__stamp,
.masthead__edition {
  display: inline-flex;
  align-items: center;
  padding: .3rem .65rem;
  border: 1px solid var(--line);
  background: var(--card);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.masthead__edition {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: var(--paper);
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  width: 100%;
  height: 3rem;
  margin: 0 0 .6rem;
  background: var(--flame);
  border: 1px solid var(--ink);
  box-shadow: .25rem .25rem 0 var(--ink);
  color: var(--paper);
  font: 700 .9rem / 1 var(--font-body);
  text-transform: uppercase;
  cursor: pointer;
}

.nav-toggle:hover {
  background: var(--flame-dark);
  transform: translate(1px, 1px);
  box-shadow: .15rem .15rem 0 var(--ink);
}

.nav-toggle__bars {
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  box-shadow: 0 .35rem 0 currentColor, 0 -.35rem 0 currentColor;
}

.nav-toggle__text {
  font-size: .9rem;
}

.site-nav {
  visibility: hidden;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  border-bottom: 1px solid transparent;
  transition: max-height .3s ease-out, opacity .3s ease-out, visibility .3s;
}

.site-nav[data-open] {
  visibility: visible;
  max-height: 32rem;
  opacity: 1;
  border-bottom-color: var(--line);
}

.site-nav__list {
  display: grid;
  gap: .2rem;
  padding: 0 0 .9rem;
}

.site-nav__link {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  padding: .85rem .9rem;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: .97rem;
}

.site-nav__index {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
  color: var(--flame);
}

.site-nav__label {
  display: block;
}

.site-nav__link:hover,
.site-nav__link:active {
  background: var(--cobalt);
  color: var(--paper);
}

.site-nav__link:hover .site-nav__index {
  color: var(--volt);
}

.site-nav__link[aria-current="page"] {
  background: var(--flame);
  border-color: var(--flame);
  color: var(--paper);
}

.site-nav__link[aria-current="page"] .site-nav__index {
  color: var(--paper);
}

.reading-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  overflow: hidden;
  pointer-events: none;
}

.reading-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--flame) 0 30%, var(--cobalt) 31% 65%, var(--volt) 66% 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .15s linear;
}

.site-footer {
  background: var(--ink);
  color: rgba(245, 245, 240, .82);
  border-top: 6px solid var(--flame);
}

.site-footer__top {
  max-width: 1440px;
  margin-inline: auto;
  padding: clamp(3rem, 7vw, 5rem) var(--gutter) 2rem;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2rem var(--gutter);
}

.site-footer__brand {
  grid-column: 1 / -1;
}

.site-footer__nav,
.site-footer__legal,
.site-footer__contact {
  display: grid;
  align-content: start;
  gap: .85rem;
}

.site-footer__brand .footer-brand {
  display: inline-flex;
  flex-direction: column;
  gap: .25rem;
  text-decoration: none;
  line-height: 1;
}

.footer-brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  color: var(--paper);
  letter-spacing: -.02em;
  text-transform: uppercase;
}

.footer-brand__tagline {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--volt);
  padding-left: .3em;
}

.footer-brand__statement {
  max-width: 42ch;
  margin-top: .85rem;
  color: rgba(245, 245, 240, .6);
  font-size: .95rem;
  line-height: 1.8;
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--flame);
  margin-bottom: .2rem;
}

.footer-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: .5rem;
}

.footer-list a {
  color: rgba(245, 245, 240, .82);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}

.footer-list a:hover {
  color: var(--volt);
  border-bottom-color: var(--volt);
}

.footer-contact-item {
  color: rgba(245, 245, 240, .72);
  font-size: .9rem;
  line-height: 1.6;
}

.site-footer__address {
  font-style: normal;
  color: rgba(245, 245, 240, .72);
  font-size: .9rem;
  line-height: 1.6;
}

.site-footer__bar {
  max-width: 1440px;
  margin-inline: auto;
  padding: 1rem var(--gutter);
  border-top: 1px solid rgba(245, 245, 240, .12);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2rem;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: rgba(245, 245, 240, .55);
}

.site-footer__bar span {
  white-space: nowrap;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

[data-reveal][data-revealed] {
  opacity: 1;
  transform: none;
}

[data-spy-link].is-active {
  color: var(--flame);
  border-bottom-color: var(--flame);
}

@media (min-width: 720px) {
  .masthead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
  }

  .masthead__brand {
    flex-basis: auto;
    grid-column: 2;
    text-align: center;
  }

  .masthead__stamp {
    grid-column: 1;
    justify-self: start;
  }

  .masthead__edition {
    grid-column: 3;
    justify-self: end;
  }
}

@media (min-width: 760px) {
  .site-footer__brand {
    grid-column: span 12;
  }

  .site-footer__nav,
  .site-footer__legal,
  .site-footer__contact {
    grid-column: span 4;
  }
}

@media (min-width: 960px) {
  .nav-toggle {
    display: none;
  }

  .site-header__inner {
    padding-top: .8rem;
  }

  .site-nav {
    visibility: visible;
    max-height: none;
    overflow: visible;
    opacity: 1;
    border-bottom: 0;
  }

  .site-nav__list {
    display: flex;
    justify-content: center;
    gap: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 0;
  }

  .site-nav__link {
    position: relative;
    align-items: center;
    background: transparent;
    border: 0;
    border-right: 1px solid var(--line);
    border-radius: 0;
    padding: .9rem 1.2rem;
    justify-content: center;
    font-size: .9rem;
  }

  .site-nav__item:last-child .site-nav__link {
    border-right: 0;
  }

  .site-nav__link:hover {
    background: transparent;
    color: var(--flame);
  }

  .site-nav__link:hover .site-nav__index {
    color: var(--cobalt);
  }

  .site-nav__link[aria-current="page"] {
    background: transparent;
    border-color: transparent;
    color: var(--flame);
  }

  .site-nav__link[aria-current="page"] .site-nav__index {
    color: var(--cobalt);
  }

  .site-nav__link::after {
    content: "";
    position: absolute;
    left: 20%;
    right: 20%;
    bottom: -1px;
    height: 4px;
    background: var(--flame);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s var(--ease);
  }

  .site-nav__link:hover::after,
  .site-nav__link[aria-current="page"]::after {
    transform: scaleX(1);
  }
}

@media (min-width: 1080px) {
  .site-footer__brand {
    grid-column: span 5;
  }

  .site-footer__nav {
    grid-column: span 2;
  }

  .site-footer__legal {
    grid-column: span 2;
  }

  .site-footer__contact {
    grid-column: span 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .reading-progress__bar {
    transition: none;
  }
}
