:root {
  --acid: #b3d236;
  --ink: #1a1a1a;
  --slate: #333333;
  --paper: #ffffff;
  --muted: #676767;
  --line: rgba(26, 26, 26, 0.16);
  --line-dark: rgba(255, 255, 255, 0.18);
  --mist: #f4f5f0;
  --display: "Aptos Display", "Segoe UI", "Microsoft YaHei", sans-serif;
  --body: "Aptos", "Segoe UI", "Microsoft YaHei", sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --radius: 24px;
  --shadow: 0 28px 80px rgba(26, 26, 26, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

::selection {
  color: var(--ink);
  background: var(--acid);
}

:focus-visible {
  outline: 3px solid var(--acid);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 0;
  height: 3px;
  background: var(--acid);
  pointer-events: none;
}

.shell {
  width: min(100% - 48px, 1440px);
  margin-inline: auto;
}

.eyebrow,
.kicker,
.mono-label {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.eyebrow::before {
  width: 22px;
  height: 2px;
  background: currentColor;
  content: "";
}

.section-number {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  white-space: nowrap;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  overflow: hidden;
  border-radius: 11px;
  background: var(--acid);
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  background: var(--ink);
  content: "";
}

.brand-mark::before {
  width: 21px;
  height: 5px;
}

.brand-mark::after {
  width: 5px;
  height: 21px;
}

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-copy strong {
  font-family: var(--display);
  font-size: 1.04rem;
  letter-spacing: -0.02em;
}

.brand-copy span {
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
}

.site-nav {
  justify-self: center;
}

.nav-list,
.footer-links,
.topic-tags,
.chip-list,
.source-list,
.pager-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list {
  gap: 4px;
  align-items: center;
}

.nav-list a {
  display: block;
  padding: 11px 13px;
  border-radius: 999px;
  color: var(--slate);
  font-size: 0.84rem;
  font-weight: 650;
  transition:
    color 180ms ease,
    background 180ms ease;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--ink);
  background: var(--acid);
}

.header-action,
.button {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 750;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

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

.header-action[aria-current="page"] {
  color: var(--ink);
  background: var(--acid);
}

.header-action:hover,
.button:hover {
  transform: translateY(-2px);
}

.button {
  min-height: 52px;
  padding-inline: 24px;
}

.button-primary {
  color: var(--ink);
  background: var(--acid);
}

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

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

.button-ghost-light {
  color: var(--paper);
  border-color: var(--line-dark);
  background: transparent;
}

.button .arrow {
  font-size: 1.1rem;
  transition: transform 180ms ease;
}

.button:hover .arrow {
  transform: translateX(4px);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  content: "";
  transition: transform 180ms ease;
}

.menu-open .menu-toggle span {
  opacity: 0;
}

.menu-open .menu-toggle::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-open .menu-toggle::after {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
}

.hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  mask-image: linear-gradient(to right, transparent 5%, #000 45%, #000 100%);
}

.hero::after {
  position: absolute;
  top: -20%;
  right: -12%;
  width: 48vw;
  height: 48vw;
  border: 1px solid rgba(179, 210, 54, 0.22);
  border-radius: 50%;
  content: "";
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
  gap: 80px;
  align-items: center;
  min-height: 720px;
  padding-block: 86px;
}

.hero-copy {
  max-width: 810px;
}

.hero .eyebrow {
  color: var(--acid);
}

.hero h1 {
  max-width: 920px;
  margin: 26px 0 26px;
  font-family: var(--display);
  font-size: clamp(3.6rem, 7.2vw, 7.4rem);
  font-weight: 680;
  line-height: 0.94;
  letter-spacing: -0.065em;
}

.hero h1 .acid {
  color: var(--acid);
}

.hero-lede {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.hero-note {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 42px;
  color: rgba(255, 255, 255, 0.56);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 6px rgba(179, 210, 54, 0.12);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 12px rgba(179, 210, 54, 0);
  }
}

.signal-console {
  position: relative;
  min-height: 520px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  background: var(--slate);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.36);
}

.console-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.console-lights {
  display: flex;
  gap: 6px;
}

.console-lights span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.console-lights span:first-child {
  background: var(--acid);
}

.console-diagram {
  position: relative;
  display: grid;
  height: 336px;
  place-items: center;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.orbit-one {
  width: 260px;
  height: 260px;
}

.orbit-two {
  width: 190px;
  height: 190px;
}

.orbit-three {
  width: 112px;
  height: 112px;
  border-color: var(--acid);
}

.console-center {
  position: relative;
  z-index: 2;
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--acid);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
}

.console-node {
  position: absolute;
  z-index: 3;
  display: grid;
  min-width: 84px;
  min-height: 34px;
  padding: 8px 11px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
}

.console-node::before {
  position: absolute;
  top: 50%;
  width: 64px;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
  content: "";
}

.node-identity {
  top: 20px;
  left: 45%;
}

.node-identity::before {
  top: auto;
  bottom: -22px;
  left: 50%;
  width: 1px;
  height: 22px;
}

.node-governance {
  top: 47%;
  right: 0;
}

.node-governance::before {
  right: 100%;
}

.node-context {
  bottom: 24px;
  left: 44%;
}

.node-context::before {
  top: auto;
  bottom: 100%;
  left: 50%;
  width: 1px;
  height: 40px;
}

.node-mcp {
  top: 47%;
  left: 0;
}

.node-mcp::before {
  left: 100%;
}

.console-readout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
}

.readout-cell {
  min-height: 72px;
  padding: 14px;
  background: var(--slate);
}

.readout-cell span {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.readout-cell strong {
  display: block;
  margin-top: 10px;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 1.05rem;
}

.status-strip {
  overflow: hidden;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--acid);
}

.status-track {
  display: flex;
  gap: 46px;
  width: max-content;
  padding-block: 13px;
  animation: marquee 28s linear infinite;
}

.status-track span {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-track span::before {
  width: 6px;
  height: 6px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  content: "";
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.section {
  padding-block: clamp(78px, 10vw, 140px);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.55fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}

.section-head h2,
.system-intro h2,
.guide-cta h2 {
  margin: 12px 0 0;
  font-family: var(--display);
  font-size: clamp(2.6rem, 5.3vw, 5.2rem);
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.section-head p {
  max-width: 520px;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.topic-card {
  position: relative;
  display: flex;
  min-height: 400px;
  padding: clamp(24px, 3vw, 40px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  transition:
    transform 250ms ease,
    box-shadow 250ms ease;
}

.topic-card:hover {
  z-index: 2;
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.topic-card:nth-child(1),
.topic-card:nth-child(4) {
  grid-column: span 7;
}

.topic-card:nth-child(2),
.topic-card:nth-child(3) {
  grid-column: span 5;
}

.topic-card:nth-child(5) {
  grid-column: span 12;
  min-height: 320px;
}

.topic-card.dark {
  color: var(--paper);
  background: var(--ink);
}

.topic-card.acid {
  background: var(--acid);
}

.topic-card::after {
  position: absolute;
  right: -90px;
  bottom: -90px;
  width: 240px;
  height: 240px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.12;
  content: "";
}

.topic-card:nth-child(2)::after,
.topic-card:nth-child(4)::after {
  right: 38px;
  bottom: 40px;
  width: 90px;
  height: 90px;
  border-width: 18px;
  opacity: 0.08;
}

.topic-topline {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  color: inherit;
  opacity: 0.74;
}

.topic-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.68rem;
}

.topic-card h3 {
  max-width: 620px;
  margin: auto 0 18px;
  font-family: var(--display);
  font-size: clamp(1.9rem, 3vw, 3.1rem);
  font-weight: 640;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.topic-card p {
  max-width: 640px;
  margin: 0;
  color: inherit;
  font-size: 0.95rem;
  line-height: 1.75;
  opacity: 0.68;
}

.topic-tags {
  margin-top: 28px;
}

.topic-tags li,
.chip-list li {
  padding: 7px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.card-arrow {
  position: absolute;
  top: 34px;
  right: 36px;
  font-size: 1.35rem;
  transition: transform 180ms ease;
}

.topic-card:hover .card-arrow {
  transform: translate(4px, -4px);
}

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

.system-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.52fr) minmax(0, 1.2fr);
  gap: clamp(50px, 8vw, 120px);
  align-items: start;
}

.system-intro {
  position: sticky;
  top: 120px;
}

.system-intro h2 {
  max-width: 440px;
  font-size: clamp(2.8rem, 4.4vw, 4.7rem);
}

.system-intro p {
  max-width: 440px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.8;
}

.control-stack {
  border-top: 1px solid var(--line-dark);
}

.control-row {
  display: grid;
  grid-template-columns: 62px minmax(160px, 0.66fr) minmax(220px, 1.2fr) 44px;
  gap: 22px;
  align-items: center;
  min-height: 118px;
  border-bottom: 1px solid var(--line-dark);
  transition:
    color 180ms ease,
    background 180ms ease;
}

.control-row:hover {
  color: var(--ink);
  background: var(--acid);
}

.control-index {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.control-row:hover .control-index {
  color: var(--ink);
}

.control-row h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: -0.025em;
}

.control-row p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.92rem;
  line-height: 1.7;
}

.control-row:hover p {
  color: rgba(26, 26, 26, 0.72);
}

.control-row .arrow {
  font-size: 1.2rem;
}

.editorial-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.7fr);
  gap: 32px;
}

.feature-main {
  position: relative;
  min-height: 560px;
  padding: clamp(30px, 5vw, 70px);
  overflow: hidden;
  border-radius: 28px;
  background: var(--acid);
}

.feature-main::before {
  position: absolute;
  right: -80px;
  bottom: -130px;
  width: 460px;
  height: 460px;
  border: 70px solid rgba(26, 26, 26, 0.08);
  border-radius: 50%;
  content: "";
}

.feature-main h2 {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 36px 0 24px;
  font-family: var(--display);
  font-size: clamp(2.8rem, 4.8vw, 5rem);
  font-weight: 660;
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.feature-main p {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.8;
}

.feature-main .button {
  position: relative;
  z-index: 1;
  margin-top: 42px;
}

.feature-side {
  display: flex;
  gap: 18px;
  flex-direction: column;
}

.mini-card {
  display: flex;
  min-height: 174px;
  padding: 26px;
  flex-direction: column;
  border: 1px solid var(--ink);
  border-radius: 22px;
  background: var(--paper);
}

.mini-card.dark {
  color: var(--paper);
  background: var(--ink);
}

.mini-card h3 {
  margin: auto 0 10px;
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: -0.025em;
}

.mini-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.mini-card.dark p {
  color: rgba(255, 255, 255, 0.56);
}

.guide-cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
  padding: clamp(36px, 6vw, 74px);
  overflow: hidden;
  border-radius: 28px;
  color: var(--paper);
  background: var(--ink);
}

.guide-cta::before {
  position: absolute;
  right: -50px;
  bottom: -200px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(179, 210, 54, 0.24);
  border-radius: 50%;
  box-shadow:
    0 0 0 74px rgba(179, 210, 54, 0.05),
    0 0 0 148px rgba(179, 210, 54, 0.035);
  content: "";
}

.guide-cta .eyebrow {
  color: var(--acid);
}

.guide-cta h2 {
  max-width: 900px;
}

.guide-cta .button {
  position: relative;
  z-index: 1;
}

.site-footer {
  padding-block: 70px 30px;
  border-top: 1px solid var(--line);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 50px;
  align-items: start;
  padding-bottom: 48px;
}

.footer-statement {
  max-width: 420px;
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.footer-nav {
  display: flex;
  gap: 60px;
}

.footer-column h3 {
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links {
  max-width: 310px;
  flex-direction: column;
  gap: 9px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--acid);
  text-decoration-thickness: 2px;
}

.footer-bottom {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.64rem;
  line-height: 1.6;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Article pages */
.article-hero {
  position: relative;
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
}

.article-hero::after {
  position: absolute;
  top: -170px;
  right: -90px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(179, 210, 54, 0.22);
  border-radius: 50%;
  box-shadow:
    0 0 0 90px rgba(179, 210, 54, 0.035),
    0 0 0 180px rgba(179, 210, 54, 0.025);
  content: "";
}

.article-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  padding-block: clamp(70px, 9vw, 122px);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: rgba(255, 255, 255, 0.52);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
}

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

.article-hero .eyebrow {
  margin-top: 40px;
  color: var(--acid);
}

.article-hero h1 {
  max-width: 1060px;
  margin: 22px 0 26px;
  font-family: var(--display);
  font-size: clamp(3.2rem, 6vw, 6.7rem);
  font-weight: 660;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.article-deck {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.82;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin-top: 38px;
  color: rgba(255, 255, 255, 0.44);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.article-meta span + span::before {
  margin-right: 24px;
  color: var(--acid);
  content: "/";
}

.article-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 760px) minmax(230px, 1fr);
  gap: clamp(36px, 5vw, 78px);
  justify-content: center;
  align-items: start;
  padding-block: clamp(64px, 8vw, 110px);
}

.toc,
.article-aside {
  position: sticky;
  top: 112px;
}

.toc-title,
.aside-title {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.toc-list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc-list a {
  display: block;
  padding: 9px 12px;
  border-left: 2px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.toc-list a:hover,
.toc-list a.is-active {
  color: var(--ink);
  border-color: var(--acid);
  background: rgba(179, 210, 54, 0.13);
}

.article-body {
  min-width: 0;
  font-size: 1.03rem;
  line-height: 1.92;
}

.article-body > p:first-of-type {
  margin-top: 0;
  font-size: 1.22rem;
  line-height: 1.8;
}

.article-body p {
  margin: 0 0 1.55em;
}

.article-body h2 {
  margin: 2.35em 0 0.75em;
  padding-top: 0.42em;
  scroll-margin-top: 110px;
  font-family: var(--display);
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.article-body h3 {
  margin: 1.9em 0 0.55em;
  font-family: var(--display);
  font-size: 1.42rem;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.article-body a {
  text-decoration: underline;
  text-decoration-color: var(--acid);
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}

.article-body strong {
  font-weight: 760;
}

.article-body code {
  padding: 0.12em 0.35em;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--mist);
  font-family: var(--mono);
  font-size: 0.86em;
}

.article-body ul,
.article-body ol {
  margin: 1.4em 0;
  padding-left: 1.25em;
}

.article-body li {
  margin-bottom: 0.7em;
  padding-left: 0.35em;
}

.article-body li::marker {
  color: var(--slate);
  font-family: var(--mono);
  font-weight: 800;
}

.lead-question {
  margin: 34px 0;
  padding: 24px 28px;
  border-left: 7px solid var(--acid);
  background: var(--mist);
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 650;
  line-height: 1.55;
  letter-spacing: -0.02em;
}

.callout {
  margin: 38px 0;
  padding: 28px;
  border: 1px solid var(--ink);
  border-radius: 18px;
  background: var(--paper);
}

.callout.acid {
  background: var(--acid);
}

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

.callout-label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.callout p:last-child {
  margin-bottom: 0;
}

.formula {
  margin: 34px 0;
  padding: 30px;
  border-radius: 18px;
  color: var(--paper);
  background: var(--slate);
  font-family: var(--mono);
  font-size: clamp(0.86rem, 1.6vw, 1.12rem);
  line-height: 1.85;
  letter-spacing: -0.025em;
}

.formula mark {
  padding: 2px 5px;
  color: var(--ink);
  background: var(--acid);
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 32px 0;
}

.compare-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.compare-card:first-child {
  background: var(--mist);
}

.compare-card h3 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 1.1rem;
}

.compare-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.number-list {
  display: grid;
  gap: 0;
  margin: 34px 0;
  padding: 0;
  list-style: none;
  counter-reset: item;
  border-top: 1px solid var(--ink);
}

.number-list li {
  position: relative;
  min-height: 92px;
  margin: 0;
  padding: 22px 20px 22px 66px;
  border-bottom: 1px solid var(--line);
  counter-increment: item;
}

.number-list li::before {
  position: absolute;
  top: 22px;
  left: 10px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 750;
  content: "0" counter(item);
}

.article-aside {
  display: grid;
  gap: 18px;
}

.aside-card {
  padding: 22px;
  border: 1px solid var(--ink);
  border-radius: 18px;
  background: var(--paper);
}

.aside-card.acid {
  background: var(--acid);
}

.aside-card.dark {
  color: var(--paper);
  background: var(--ink);
}

.aside-card p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.75;
}

.aside-card p + p {
  margin-top: 12px;
}

.aside-stat {
  display: block;
  margin: 8px 0;
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 680;
  line-height: 1;
  letter-spacing: -0.05em;
}

.aside-card .section-number {
  display: block;
  margin-bottom: 14px;
}

.copy-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  padding: 9px 12px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 700;
  cursor: pointer;
}

.article-footer {
  display: grid;
  gap: 36px;
}

.article-sources {
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.article-sources h3,
.article-sources h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 1.3rem;
}

.article-sources p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.75;
}

.article-sources a {
  overflow-wrap: anywhere;
}

.pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.pager a {
  display: flex;
  min-height: 132px;
  padding: 22px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--ink);
  border-radius: 16px;
  text-decoration: none;
  transition:
    color 180ms ease,
    background 180ms ease;
}

.pager a:hover {
  background: var(--acid);
}

.pager small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pager strong {
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.pager .next {
  text-align: right;
  align-items: flex-end;
}

.next-section {
  padding-block: 0 clamp(80px, 10vw, 140px);
}

.next-section-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.45fr);
  gap: 40px;
  align-items: end;
  padding: clamp(32px, 5vw, 60px);
  border-radius: 24px;
  color: var(--paper);
  background: var(--ink);
}

.next-section h2 {
  margin: 12px 0 0;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.next-section p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.75;
}

/* Field guide */
.guide-hero {
  padding-block: clamp(80px, 10vw, 130px);
  border-bottom: 1px solid var(--ink);
  background: var(--acid);
}

.guide-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.58fr);
  gap: 60px;
  align-items: end;
}

.guide-hero h1 {
  max-width: 900px;
  margin: 24px 0;
  font-family: var(--display);
  font-size: clamp(3.8rem, 7.4vw, 7.7rem);
  font-weight: 680;
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.guide-hero p {
  max-width: 720px;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.82;
}

.guide-scorecard {
  padding: 26px;
  border: 1px solid var(--ink);
  border-radius: 20px;
  background: var(--paper);
}

.score-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 0.87rem;
}

.score-row:last-child {
  border-bottom: 0;
}

.score-row span:last-child {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 750;
}

.guide-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(40px, 7vw, 100px);
  padding-block: clamp(70px, 9vw, 120px);
}

.guide-sidebar {
  position: sticky;
  top: 110px;
  align-self: start;
}

.guide-sidebar h2 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.guide-sidebar p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.7;
}

.guide-content {
  min-width: 0;
}

.guide-step {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 28px;
  padding: 0 0 52px;
}

.guide-step + .guide-step {
  padding-top: 52px;
  border-top: 1px solid var(--ink);
}

.guide-step-number {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: var(--acid);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
}

.guide-step h3 {
  margin: 4px 0 12px;
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.5vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.guide-step p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding: 16px 16px 16px 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  font-size: 0.88rem;
  line-height: 1.55;
}

.checklist li::before {
  position: absolute;
  top: 16px;
  left: 16px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--acid);
  font-size: 0.64rem;
  font-weight: 800;
  content: "✓";
}

.guide-table {
  width: 100%;
  margin-top: 28px;
  overflow-x: auto;
}

.guide-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.guide-table th,
.guide-table td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.guide-table th {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.next-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.next-step {
  min-height: 170px;
  padding: 20px;
  border: 1px solid var(--ink);
  border-radius: 16px;
}

.next-step:nth-child(2) {
  color: var(--paper);
  background: var(--ink);
}

.next-step:nth-child(3) {
  background: var(--acid);
}

.next-step span {
  font-family: var(--mono);
  font-size: 0.62rem;
}

.next-step h3 {
  margin: 34px 0 8px;
  font-family: var(--display);
  font-size: 1.25rem;
}

.next-step p {
  color: inherit;
  font-size: 0.82rem;
  line-height: 1.6;
  opacity: 0.68;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 650ms ease,
    transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1180px) {
  .nav-wrap {
    grid-template-columns: auto 1fr auto;
  }

  .nav-list a {
    padding-inline: 9px;
    font-size: 0.78rem;
  }

  .header-action {
    padding-inline: 15px;
    font-size: 0.78rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 40px;
  }

  .article-layout {
    grid-template-columns: 180px minmax(0, 720px);
  }

  .article-aside {
    position: static;
    grid-column: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .site-header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .nav-wrap {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    position: fixed;
    inset: 78px 0 0;
    width: 100vw;
    display: none;
    padding: 26px 24px;
    overflow-y: auto;
    color: var(--paper);
    background: var(--ink);
  }

  .menu-open .site-nav {
    display: block;
  }

  .nav-list {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .nav-list a {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    color: var(--paper);
    font-size: 1rem;
  }

  .header-action {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero,
  .hero-grid {
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 60px;
    padding-block: 76px;
  }

  .signal-console {
    width: min(100%, 560px);
  }

  .section-head,
  .system-grid,
  .editorial-feature,
  .guide-hero-grid,
  .guide-layout,
  .next-section-inner {
    grid-template-columns: 1fr;
  }

  .section-head {
    gap: 20px;
  }

  .system-intro,
  .guide-sidebar,
  .toc {
    position: static;
  }

  .article-layout {
    grid-template-columns: minmax(0, 760px);
  }

  .toc {
    padding-bottom: 26px;
    border-bottom: 1px solid var(--line);
  }

  .toc-list {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .toc-list a {
    white-space: nowrap;
    border-left: 0;
    border-bottom: 2px solid var(--line);
  }

  .article-aside {
    grid-column: 1;
  }

  .guide-sidebar {
    padding-bottom: 30px;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 30px, 1440px);
  }

  .nav-wrap {
    min-height: 68px;
  }

  .brand-copy span {
    display: none;
  }

  .site-nav {
    inset-block-start: 68px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 15vw, 5.4rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .signal-console {
    min-height: 480px;
    padding: 16px;
  }

  .console-diagram {
    height: 310px;
    transform: scale(0.9);
  }

  .topic-card:nth-child(n) {
    grid-column: span 12;
    min-height: 350px;
  }

  .topic-card h3 {
    margin-top: 74px;
    font-size: 2.2rem;
  }

  .control-row {
    grid-template-columns: 44px minmax(0, 1fr) 24px;
    min-height: 98px;
    gap: 12px;
  }

  .control-row p {
    display: none;
  }

  .control-row h3 {
    font-size: 1.2rem;
  }

  .feature-main {
    min-height: 560px;
  }

  .guide-cta {
    grid-template-columns: 1fr;
  }

  .footer-main,
  .footer-nav {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .article-hero h1 {
    font-size: clamp(2.8rem, 13vw, 4.9rem);
  }

  .article-meta {
    gap: 8px 16px;
  }

  .article-meta span + span::before {
    margin-right: 16px;
  }

  .article-body {
    font-size: 1rem;
    line-height: 1.86;
  }

  .article-body > p:first-of-type {
    font-size: 1.1rem;
  }

  .two-col,
  .article-aside,
  .pager,
  .checklist,
  .next-steps {
    grid-template-columns: 1fr;
  }

  .pager .next {
    text-align: left;
    align-items: flex-start;
  }

  .guide-step {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .guide-table {
    display: block;
  }

  .guide-table th,
  .guide-table td {
    min-width: 130px;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 3.2rem;
  }

  .signal-console {
    min-height: 430px;
  }

  .console-diagram {
    transform: scale(0.79);
  }

  .readout-cell {
    padding: 10px;
  }

  .readout-cell strong {
    font-size: 0.9rem;
  }
}
