:root {
  --ink: #0a2e36;
  --night: #161b1c;
  --paper: #f4f0e6;
  --white: #fffef9;
  --signal: #f36b32;
  --acid: #d6ff4b;
  --mist: #b8d8d8;
  --muted: #53696d;
  --rule: 2px solid var(--ink);
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: linear-gradient(rgba(10,46,54,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(10,46,54,.055) 1px, transparent 1px);
  background-size: 24px 24px;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 4px solid var(--signal); outline-offset: 4px; }
.skip-link { position: fixed; top: .6rem; left: -9999px; z-index: 100; background: var(--acid); border: var(--rule); padding: .75rem 1rem; font-weight: 900; }
.skip-link:focus { left: .6rem; }
.shell { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }

.site-header { position: relative; z-index: 20; background: var(--paper); border-bottom: var(--rule); }
.header-strip { display: grid; grid-template-columns: 1fr auto; min-height: 96px; align-items: stretch; }
.brand { display: flex; gap: 1rem; align-items: center; text-decoration: none; padding-block: .8rem; }
.brand strong { font: 900 clamp(2rem, 5vw, 4.7rem)/.82 "Arial Narrow", Arial, sans-serif; letter-spacing: -.065em; text-transform: uppercase; }
.brand span { max-width: 190px; border-left: 6px solid var(--signal); padding-left: .75rem; font: 800 .78rem/1.25 "Courier New", monospace; text-transform: uppercase; }
.menu-toggle { min-width: 88px; border: 0; border-left: var(--rule); background: var(--acid); font: 900 .8rem/1 "Courier New", monospace; text-transform: uppercase; cursor: pointer; }
.nav { border-top: var(--rule); background: var(--white); }
.nav ul { display: flex; flex-wrap: wrap; list-style: none; margin: 0 auto; padding: 0; }
.nav a { display: block; min-height: 44px; padding: .72rem 1rem; border-right: 1px solid var(--ink); text-decoration: none; font-size: .82rem; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--ink); color: var(--white); }

.hero { position: relative; overflow: hidden; border-bottom: var(--rule); background: var(--mist); }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(310px,.65fr); min-height: 610px; }
.hero-copy { align-self: center; padding-block: clamp(3rem, 8vw, 7rem); padding-right: clamp(1rem, 6vw, 6rem); }
.kicker, .label { font: 900 .78rem/1.25 "Courier New", monospace; letter-spacing: .09em; text-transform: uppercase; }
.kicker { display: inline-flex; align-items: center; gap: .65rem; margin: 0 0 1.2rem; }
.kicker::before { content: ""; width: 44px; height: 10px; background: var(--signal); }
h1, h2, h3 { margin-top: 0; font-family: "Arial Narrow", Arial, sans-serif; line-height: .95; }
h1 { max-width: 850px; margin-bottom: 1.5rem; font-size: clamp(4rem, 10vw, 9.5rem); letter-spacing: -.075em; text-transform: uppercase; }
.dek { max-width: 700px; margin: 0 0 1.4rem; font-size: clamp(1.08rem, 2vw, 1.4rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; border: var(--rule); padding: .7rem 1rem; background: var(--white); text-align: center; text-decoration: none; font-weight: 900; overflow-wrap: anywhere; box-shadow: 5px 5px 0 var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
.button:hover { transform: translate(3px,3px); box-shadow: 2px 2px 0 var(--ink); }
.button.external { background: var(--acid); }
.new-tab { margin-left: .35rem; font-size: .72em; }
.fold-figure { position: relative; border-left: var(--rule); background: var(--signal); min-height: 520px; }
.fold-figure::before, .fold-figure::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); }
.fold-figure::before { bottom: 8%; width: 78%; height: 80%; border: 16px solid var(--paper); clip-path: polygon(46% 0,54% 0,100% 100%,73% 100%,55% 13%,45% 13%,27% 100%,0 100%); }
.fold-figure::after { inset: 0; left: 0; transform: none; background: repeating-linear-gradient(90deg, transparent 0 31%, rgba(10,46,54,.75) 31% 31.6%, transparent 31.6% 65%, rgba(10,46,54,.75) 65% 65.6%, transparent 65.6% 100%); opacity: .38; }
.figure-label { position: absolute; z-index: 2; right: 1rem; top: 1rem; background: var(--acid); border: var(--rule); padding: .55rem .7rem; font: 900 .75rem/1.2 "Courier New", monospace; }
.figure-scale { position: absolute; z-index: 2; left: .75rem; bottom: 1rem; color: var(--ink); font: 900 4rem/1 "Arial Narrow", Arial, sans-serif; writing-mode: vertical-rl; transform: rotate(180deg); }

.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section-title { display: grid; grid-template-columns: 150px 1fr; gap: 2rem; align-items: start; margin-bottom: 2.5rem; }
.section-title .index { display: block; width: 92px; aspect-ratio: 1; border-radius: 50%; border: var(--rule); background: var(--acid); text-align: center; font: 900 3rem/88px "Arial Narrow", Arial, sans-serif; }
.section-title h2 { max-width: 800px; margin-bottom: .8rem; font-size: clamp(2.8rem, 6vw, 6rem); letter-spacing: -.055em; text-transform: uppercase; }
.section-title p { max-width: 730px; margin: 0; font-size: 1.08rem; }

.book-index { display: grid; gap: 1rem; counter-reset: plates; }
.book-row { counter-increment: plates; display: grid; grid-template-columns: 92px 160px minmax(0,1.15fr) minmax(210px,.85fr); min-height: 250px; border: var(--rule); background: var(--white); box-shadow: 8px 8px 0 var(--ink); }
.book-row::before { content: counter(plates, decimal-leading-zero); display: grid; place-items: center; border-right: var(--rule); background: var(--ink); color: var(--acid); font: 900 2rem/1 "Courier New", monospace; }
.cover-placeholder { display: grid; place-items: center; padding: 1rem; border-right: var(--rule); background: var(--mist); text-align: center; font: 900 .74rem/1.3 "Courier New", monospace; text-transform: uppercase; }
.book-row:nth-child(2) .cover-placeholder { background: var(--signal); color: var(--ink); }
.book-row:nth-child(3) .cover-placeholder { background: var(--acid); }
.book-row:nth-child(4) .cover-placeholder { background: var(--ink); color: var(--white); }
.book-main, .book-side { padding: 1.3rem; }
.book-main h3 { margin: .35rem 0 .7rem; font-size: clamp(1.8rem, 3.5vw, 3.2rem); letter-spacing: -.04em; }
.book-main p, .book-side p { margin: 0 0 1rem; }
.book-side { display: flex; flex-direction: column; align-items: flex-start; border-left: var(--rule); background: var(--paper); }
.book-side .button:last-child { margin-top: auto; }

.analysis { border-block: var(--rule); background: var(--night); color: var(--white); }
.analysis-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 7vw, 7rem); }
.analysis h2 { margin-bottom: 1rem; font-size: clamp(3rem, 7vw, 7rem); color: var(--acid); text-transform: uppercase; letter-spacing: -.055em; }
.analysis-copy { font-size: 1.15rem; }
.analysis-copy strong { color: var(--acid); }
.format-scale { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 2rem; background: rgba(255,255,255,.35); border: 1px solid rgba(255,255,255,.35); }
.format-scale div { min-height: 140px; padding: 1rem; background: var(--night); }
.format-scale b { display: block; margin-bottom: .7rem; color: var(--signal); font: 900 2rem/1 "Arial Narrow", Arial, sans-serif; }

.timeline { display: grid; grid-template-columns: repeat(4,1fr); border: var(--rule); background: var(--white); }
.timeline article { position: relative; min-height: 310px; padding: 1.3rem; border-right: var(--rule); }
.timeline article:last-child { border-right: 0; }
.timeline time { display: block; margin-bottom: 1.2rem; color: var(--signal); font: 900 clamp(2.5rem, 5vw, 5rem)/1 "Arial Narrow", Arial, sans-serif; }
.timeline h3 { font-size: 1.6rem; }

.dialogue { display: grid; grid-template-columns: 1fr 90px 1fr; border: var(--rule); background: var(--white); }
.dialogue article { padding: clamp(1.3rem, 4vw, 3rem); }
.dialogue article h3 { font-size: clamp(2.2rem, 4vw, 4rem); }
.dialogue .versus { display: grid; place-items: center; border-inline: var(--rule); background: var(--signal); color: var(--ink); font: 900 1.2rem/1 "Courier New", monospace; writing-mode: vertical-rl; transform: rotate(180deg); }

.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.method-grid article { border: var(--rule); padding: 1.4rem; background: var(--white); }
.method-grid h3 { margin-bottom: .8rem; font-size: 2rem; }
.disclosure { border-block: var(--rule); background: var(--acid); }
.disclosure-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.disclosure h2 { margin-bottom: .8rem; font-size: clamp(3rem, 7vw, 6.5rem); text-transform: uppercase; }
.disclosure p { font-size: 1.1rem; }
.independence { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; }
.independence h2 { font-size: clamp(3rem, 6vw, 5.5rem); text-transform: uppercase; }

.page-hero { padding-block: clamp(3rem, 8vw, 7rem); border-bottom: var(--rule); background: var(--mist); }
.page-hero h1 { max-width: 1050px; font-size: clamp(3.5rem, 8vw, 8rem); }
.breadcrumbs { margin-bottom: 1.5rem; font: 900 .78rem/1.4 "Courier New", monospace; text-transform: uppercase; }
.article-layout { display: grid; grid-template-columns: minmax(260px,.7fr) minmax(0,1.3fr); gap: clamp(2rem, 7vw, 7rem); padding-block: clamp(3rem, 7vw, 6rem); }
.book-rail { align-self: start; position: sticky; top: 1rem; border: var(--rule); background: var(--white); box-shadow: 8px 8px 0 var(--ink); }
.book-rail .cover-placeholder { min-height: 250px; border-right: 0; border-bottom: var(--rule); }
.rail-body { padding: 1.2rem; }
.rail-body dl { margin: 0; }
.rail-body dt { margin-top: .75rem; font: 900 .72rem/1.2 "Courier New", monospace; text-transform: uppercase; }
.rail-body dd { margin: .15rem 0 0; }
.prose { max-width: 770px; font: 1.12rem/1.75 Georgia, "Times New Roman", serif; }
.prose h2 { margin: 2.8rem 0 1rem; font: 900 clamp(2.2rem, 4vw, 3.8rem)/1 "Arial Narrow", Arial, sans-serif; letter-spacing: -.04em; text-transform: uppercase; }
.prose h2:first-child { margin-top: 0; }
.prose .lead { font-size: 1.4rem; }
.evidence, .notice { border: var(--rule); padding: 1rem 1.2rem; background: var(--white); font-family: Arial, sans-serif; }
.evidence { border-left: 12px solid var(--acid); }
.notice { border-left: 12px solid var(--signal); }
.source-list { padding-left: 1.25rem; }
.source-list li { margin-bottom: .7rem; overflow-wrap: anywhere; }

.site-footer { margin-top: 0; border-top: var(--rule); background: var(--ink); color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.25fr .75fr .75fr; gap: 2rem; padding-block: 3rem; }
.footer-grid h2 { margin-bottom: .8rem; font-size: 2rem; text-transform: uppercase; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .4rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.35); padding-block: 1rem; font-size: .82rem; }

@media (max-width: 790px) {
  .brand { gap: .55rem; }
  .brand strong { font-size: clamp(2rem, 10vw, 3.2rem); }
  .brand span { max-width: 125px; font-size: .62rem; }
  .nav { display: none; }
  .nav.is-open { display: block; }
  .nav ul { display: block; }
  .nav a { border-right: 0; border-bottom: 1px solid var(--ink); }
  .hero-grid, .analysis-grid, .disclosure-grid, .independence, .article-layout { grid-template-columns: 1fr; }
  .hero-copy { padding-right: 0; }
  .fold-figure { min-height: 430px; border-left: 0; border-top: var(--rule); }
  .section-title { grid-template-columns: 70px 1fr; gap: 1rem; }
  .section-title .index { width: 60px; font-size: 2rem; line-height: 56px; }
  .book-row { grid-template-columns: 62px 92px 1fr; }
  .book-row::before { font-size: 1.2rem; }
  .book-side { grid-column: 3; border-left: 0; border-top: var(--rule); }
  .format-scale, .timeline, .method-grid, .footer-grid { grid-template-columns: 1fr; }
  .timeline article { min-height: auto; border-right: 0; border-bottom: var(--rule); }
  .timeline article:last-child { border-bottom: 0; }
  .dialogue { grid-template-columns: 1fr; }
  .dialogue .versus { min-height: 70px; border-inline: 0; border-block: var(--rule); writing-mode: horizontal-tb; transform: none; }
  .book-rail { position: static; }
}

@media (max-width: 420px) {
  .shell { width: min(100% - 1rem, var(--max)); }
  .brand { display: block; min-width: 0; }
  .brand strong { display: block; font-size: 1.65rem; }
  .brand span { display: block; max-width: none; margin-top: .3rem; padding-left: 0; border-left: 0; font-size: .52rem; }
  .book-row { grid-template-columns: 48px 1fr; }
  .book-row::before { grid-row: span 2; }
  .cover-placeholder { min-height: 120px; border-right: 0; border-bottom: var(--rule); }
  .book-main, .book-side { grid-column: 2; }
  .book-side { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
