/* ==========================================================================
   A brief history of legal clarity — SCRC
   Image direction: objects are cut out of their backgrounds and stand on the
   page (direction A, "standing in the light", chosen 12-08-2026).
   Every audited value traces to a token in :root.
   ========================================================================== */

:root {
  /* ---- palette (SCRC) ---- */
  --blue: #1c3a54;
  --blue-dark: #102a3d;
  --blue-soft: #e9f0f4;
  --terracotta: #c17b5c;
  --terracotta-dark: #9d5e43;
  --terracotta-soft: #f3e2d9;
  --cream: #f8f6f1;
  --paper: #fffdf8;
  --ink: #2d2d2d;
  --muted: #62686c;
  --line: #d0cdc4;

  --serif: "EB Garamond", Georgia, serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* ---- type ladder, ratio 1.25 ---- */
  --t-xs: .8rem;
  --t-s: 1rem;
  --t-m: 1.25rem;
  --t-l: 1.563rem;
  --t-xl: 1.953rem;
  --t-2xl: 2.441rem;
  --t-3xl: 3.052rem;
  --t-4xl: 3.815rem;
  /* fluid display steps — bounds taken from the ladder above */
  --t-h1: clamp(2.441rem, 6vw, 3.815rem);
  --t-h2: clamp(1.953rem, 3.6vw, 3.052rem);
  --t-lead: clamp(1.25rem, 2.2vw, 1.953rem);
  --t-quote: clamp(1.25rem, 2vw, 1.953rem);
  --t-body: 1.0625rem;

  /* ---- spacing, by duplication ---- */
  --s-1: .25rem;
  --s-2: .5rem;
  --s-3: 1rem;
  --s-4: 2rem;
  --s-5: 4rem;
  --s-6: 8rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --gap-col: clamp(2rem, 7vw, 8rem);
  --pad-section: clamp(4rem, 9vw, 8rem);
  --bleed-pad: max(2rem, calc((100vw - 1180px) / 2));

  --lh-flat: 1;
  --lh-tight: 1.1;
  --lh-snug: 1.25;
  --lh-body: 1.55;
  --ls-tight: -.03em;
  --ls-label: .06em;
  --ls-wide: .14em;

  /* ---- measures ---- */
  --w-page: min(1180px, calc(100vw - 4rem));
  --w-title: 34rem;
  --w-prose: 32rem;
  --w-lede: 36rem;
  --w-hero-title: 40rem;

  /* ---- objects ---- */
  --obj-tall: clamp(17rem, 30vw, 27rem);
  --obj-sheet: clamp(15rem, 26vw, 24rem);
  --obj-wide: 30rem;
  /* the hero row: tall stone, upright page, flat card — sized to sit on one baseline */
  --obj-hero-tall: clamp(8rem, 20vw, 16rem);
  --obj-hero-sheet: clamp(6rem, 15vw, 12rem);
  --obj-hero-card: clamp(7rem, 17vw, 14rem);
  --scene-h: clamp(15rem, 30vw, 25rem);
  --lift: drop-shadow(0 .5rem 1rem rgb(28 58 84 / 24%));
  --ground-wash: radial-gradient(ellipse at center, rgb(28 58 84 / 22%) 0%, rgb(28 58 84 / 0%) 70%);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--s-6);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 4px; }
[hidden] { display: none !important; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; }

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: var(--s-2);
  left: var(--s-3);
  z-index: 100;
  padding: var(--s-2) var(--s-3);
  color: var(--paper);
  background: var(--blue-dark);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  min-height: 72px;
  padding: var(--s-2) var(--bleed-pad);
  border-bottom: 1px solid var(--line);
  background: rgb(248 246 241 / 94%);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--blue);
  font-size: var(--t-xs);
  font-weight: 600;
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-label);
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  border: 1px solid var(--blue);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: var(--t-l);
  line-height: var(--lh-flat);
  place-items: center;
}

.header-actions { display: flex; align-items: center; gap: var(--s-4); }

.quiet-link {
  color: var(--muted);
  font-size: var(--t-xs);
  font-weight: 600;
  text-decoration: none;
}
.quiet-link:hover { color: var(--blue); }

.language-switch {
  display: flex;
  align-items: center;
  padding: var(--s-1);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}
.language-switch button {
  min-width: 44px;
  min-height: 36px;
  padding: 0 var(--s-2);
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-family: var(--sans);
  font-size: var(--t-xs);
  font-weight: 600;
  line-height: var(--lh-flat);
  cursor: pointer;
}
.language-switch button[aria-pressed="true"] { color: var(--paper); background: var(--blue); }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: var(--gap-col);
  align-items: center;
  width: var(--w-page);
  min-height: 100svh;
  margin: 0 auto;
  padding: var(--s-6) 0 var(--s-5);
}

.eyebrow {
  margin: 0 0 var(--s-3);
  color: var(--terracotta-dark);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

h1 {
  max-width: var(--w-hero-title);
  margin-bottom: var(--s-3);
  color: var(--blue-dark);
  font-size: var(--t-h1);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}

.hero-subtitle {
  max-width: var(--w-lede);
  margin-bottom: var(--s-3);
  color: var(--terracotta-dark);
  font-family: var(--serif);
  font-size: var(--t-lead);
  line-height: var(--lh-snug);
}

.hero-thesis {
  max-width: var(--w-prose);
  margin-bottom: var(--s-4);
  padding-left: var(--s-3);
  border-left: 2px solid var(--terracotta);
  color: var(--muted);
}

.story-link, .source-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--blue);
  font-size: var(--t-xs);
  font-weight: 600;
  text-decoration: none;
}
.story-link {
  min-height: 48px;
  padding: 0 var(--s-3);
  border: 1px solid var(--blue);
  border-radius: 999px;
}
.story-link:hover { color: var(--paper); background: var(--blue); }

/* the three cut-out objects of the article, on one baseline: stone, paper, machine */
.hero-art { margin: 0; }
.hero-objects {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: var(--gutter);
}
.hero-objects figure { display: flex; flex-direction: column; align-items: center; margin: 0; }
.hero-objects img { width: auto; filter: var(--lift); }
.hero-objects .h-tall { max-height: var(--obj-hero-tall); }
.hero-objects .h-sheet { max-height: var(--obj-hero-sheet); }
/* a card is thin: size it by width, or its height makes it the widest thing here */
.hero-objects .h-card { width: 100%; max-width: var(--obj-hero-card); }
.hero-objects .ground { width: 70%; height: var(--s-1); margin: var(--s-1) 0 0; background: var(--ground-wash); }
.hero-objects figcaption {
  margin-top: var(--s-2);
  color: var(--muted);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-align: center;
  text-transform: uppercase;
}
.hero-art > figcaption {
  margin-top: var(--s-3);
  padding-top: var(--s-2);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--t-xs);
  line-height: var(--lh-snug);
  text-align: center;
}

/* ---------- chapter map ---------- */
.story-map {
  position: sticky;
  top: 72px;
  z-index: 15;
  overflow-x: auto;
  border-block: 1px solid var(--line);
  background: rgb(255 253 248 / 95%);
  backdrop-filter: blur(14px);
  scrollbar-width: none;
}
.story-map::-webkit-scrollbar { display: none; }
.story-map ol {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  width: var(--w-page);
  min-width: 44rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.story-map a {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
  min-height: 56px;
  padding: var(--s-2) var(--s-2);
  color: var(--muted);
  text-decoration: none;
}
.story-map a::after {
  position: absolute;
  right: var(--s-2);
  bottom: 0;
  left: var(--s-2);
  height: 3px;
  background: var(--terracotta);
  content: "";
  opacity: 0;
  transform: scaleX(.2);
  transition: 180ms ease;
}
.story-map a.active, .story-map a:hover { color: var(--blue); }
.story-map a.active::after { opacity: 1; transform: scaleX(1); }
.story-map span { color: var(--terracotta); font-size: var(--t-xs); font-weight: 600; }
.story-map b { font-size: var(--t-xs); font-weight: 600; }

/* ---------- chapter shell ---------- */
.chapter {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gap-col);
  align-items: center;
  width: var(--w-page);
  margin: 0 auto;
  padding: var(--pad-section) 0;
}
.chapter + .chapter::before,
.crisis + .chapter::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--line);
  content: "";
}
.chapter-reverse .chapter-visual { order: 2; }
.chapter-visual { position: relative; }

/* --- an object cut out of its background, standing on the page --- */
.object-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
}
.object-stage img { width: auto; filter: var(--lift); }
.object-stage .obj-tall { max-height: var(--obj-tall); }
.object-stage .obj-sheet { max-height: var(--obj-sheet); transform: rotate(-1.2deg); }
.object-stage .obj-wide { width: 100%; max-width: var(--obj-wide); transform: rotate(-1.4deg); }
.object-stage .ground {
  width: 60%;
  height: var(--s-2);
  margin: var(--s-2) 0 var(--s-3);
  background: var(--ground-wash);
}
.object-stage figcaption { text-align: center; }

/* --- a scene that has no subject to lift: an honest photograph, pinned flat --- */
.scene-frame { margin: 0; }
.scene-frame img {
  width: 100%;
  height: var(--scene-h);
  border: 1px solid var(--line);
  object-fit: cover;
}
.scene-frame figcaption { margin-top: var(--s-2); }

/* --- captions under every image: what it is, then who made it --- */
.visual-note {
  margin: 0 0 var(--s-1);
  color: var(--terracotta-dark);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
}
.photo-credit {
  margin: 0;
  color: var(--muted);
  font-size: var(--t-xs);
  line-height: var(--lh-snug);
}
.photo-credit a { color: var(--muted); text-decoration-thickness: 1px; }
.photo-credit a:hover { color: var(--blue); }

/* ---------- chapter copy ---------- */
.chapter-number {
  display: inline-block;
  margin: 0 0 var(--s-2);
  color: var(--terracotta-dark);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: var(--ls-label);
}
.chapter-label {
  margin: 0 0 var(--s-1);
  color: var(--muted);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}
.chapter-period {
  margin: 0 0 var(--s-3);
  color: var(--terracotta-dark);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
}
.chapter h2 {
  max-width: var(--w-title);
  margin-bottom: var(--s-3);
  color: var(--blue-dark);
  font-size: var(--t-h2);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}
.chapter-copy > p:not(.chapter-number, .chapter-label, .chapter-period) {
  max-width: var(--w-prose);
  margin-bottom: var(--s-4);
  color: var(--muted);
}

.definition-card {
  max-width: var(--w-prose);
  margin-top: var(--s-4);
  padding: var(--s-3) var(--s-4);
  border-left: var(--s-1) solid var(--terracotta);
  background: var(--paper);
}
.mini-label {
  margin-bottom: var(--s-2);
  color: var(--terracotta-dark);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}
.definition-card blockquote {
  margin: 0;
  color: var(--blue);
  font-family: var(--serif);
  font-size: var(--t-m);
  line-height: var(--lh-snug);
}

.logic-strip {
  display: flex;
  align-items: stretch;
  gap: var(--s-2);
  max-width: var(--w-prose);
  margin: 0 0 var(--s-4);
}
.logic-strip > span {
  display: flex;
  align-items: center;
  flex: 1;
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--terracotta-dark);
  font-size: var(--t-xs);
  font-weight: 600;
}
.logic-strip small {
  display: flex;
  align-items: center;
  flex: 2;
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: var(--t-xs);
}
.logic-strip i {
  display: flex;
  align-items: center;
  color: var(--terracotta);
  font-size: var(--t-m);
  font-style: normal;
}

.source-link {
  min-height: 48px;
  border-bottom: 1px solid var(--terracotta);
}
.source-link:hover { color: var(--terracotta-dark); }

.three-words, .concept-orbit {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: 0 0 var(--s-4);
  padding: 0;
  list-style: none;
}
.three-words span, .concept-orbit li {
  padding: var(--s-1) var(--s-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue);
  background: var(--paper);
  font-size: var(--t-xs);
  font-weight: 600;
}

.article-quote {
  max-width: var(--w-prose);
  margin: 0 0 var(--s-4);
  padding: var(--s-4);
  color: var(--blue);
  background: var(--paper);
}
.article-quote p {
  margin-bottom: var(--s-2);
  font-family: var(--serif);
  font-size: var(--t-quote);
  line-height: var(--lh-snug);
}
.article-quote cite {
  color: var(--muted);
  font-size: var(--t-xs);
  font-style: normal;
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
}

.machine-warning {
  display: flex;
  gap: var(--s-3);
  max-width: var(--w-prose);
  margin-top: var(--s-4);
  padding: var(--s-3);
  border: 1px solid var(--terracotta);
  background: var(--terracotta-soft);
}
.machine-warning > span {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--paper);
  background: var(--terracotta);
  font-weight: 600;
  line-height: var(--lh-flat);
  place-items: center;
}
.machine-warning p { margin: 0; color: var(--muted); font-size: var(--t-xs); }
.machine-warning strong { display: block; margin-bottom: var(--s-1); color: var(--blue); font-size: var(--t-s); }

/* ---------- the clarity crisis (an interlude, not a stage) ---------- */
.crisis {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gap-col);
  align-items: center;
  padding: var(--pad-section) var(--bleed-pad);
  color: var(--paper);
  background: var(--blue-dark);
}
.crisis .eyebrow { color: var(--terracotta-soft); }
.crisis h2 {
  max-width: var(--w-title);
  margin-bottom: var(--s-3);
  font-size: var(--t-h2);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}
.crisis-copy > p:last-child { max-width: var(--w-prose); margin: 0; color: rgb(255 253 248 / 72%); }
.crisis-art { margin: 0; }
.crisis-art img {
  width: 100%;
  height: var(--scene-h);
  border: 1px solid rgb(255 253 248 / 20%);
  object-fit: cover;
}
.crisis-art figcaption { margin-top: var(--s-2); }
.crisis-art .visual-note { color: var(--terracotta-soft); }
.crisis-art .photo-credit, .crisis-art .photo-credit a { color: rgb(255 253 248 / 66%); }
.crisis-art .photo-credit a:hover { color: var(--paper); }

/* ---------- closing sections ---------- */
.better-rules, .definitions, .sources {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: var(--gap-col);
  width: var(--w-page);
  margin: 0 auto;
  padding: var(--pad-section) 0;
}
.definitions, .sources { border-top: 1px solid var(--line); }

.section-intro h2, .sources h2 {
  max-width: var(--w-title);
  margin-bottom: var(--s-3);
  color: var(--blue-dark);
  font-size: var(--t-h2);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}
.section-intro > p:last-child { max-width: var(--w-prose); margin: 0; color: var(--muted); }

.method-path { position: relative; margin: 0; padding: 0; list-style: none; }
.method-path::before {
  position: absolute;
  top: var(--s-3);
  bottom: var(--s-3);
  left: 23px;
  width: 1px;
  background: var(--terracotta);
  content: "";
}
.method-path li {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--s-3);
  align-items: start;
}
.method-path li + li { margin-top: var(--s-4); }
.method-number {
  z-index: 1;
  display: grid;
  width: 48px;
  height: 48px;
  border: 1px solid var(--terracotta);
  border-radius: 50%;
  color: var(--terracotta-dark);
  background: var(--cream);
  font-family: var(--sans);
  font-size: var(--t-xs);
  font-weight: 600;
  line-height: var(--lh-flat);
  place-items: center;
}
.method-path h3 { margin-bottom: var(--s-1); color: var(--blue); font-size: var(--t-l); line-height: var(--lh-snug); }
.method-path p { max-width: var(--w-prose); margin: 0; color: var(--muted); }

.definition-list details { border-bottom: 1px solid var(--line); }
.definition-list summary {
  position: relative;
  min-height: 64px;
  padding: var(--s-3) var(--s-5) var(--s-3) 0;
  color: var(--blue);
  font-family: var(--serif);
  font-size: var(--t-m);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.definition-list summary::-webkit-details-marker { display: none; }
.definition-list summary::after {
  position: absolute;
  top: var(--s-3);
  right: var(--s-1);
  display: grid;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--terracotta-dark);
  content: "+";
  font-family: var(--sans);
  font-size: var(--t-s);
  line-height: var(--lh-flat);
  place-items: center;
}
.definition-list details[open] summary::after { content: "\2212"; }
.definition-list details p { max-width: var(--w-prose); margin-bottom: var(--s-3); color: var(--muted); }

.sources-copy > p { max-width: var(--w-prose); color: var(--muted); }
.sources-copy ul { margin: var(--s-3) 0 0; padding: 0; list-style: none; }
.sources-copy li { border-top: 1px solid var(--line); }
.sources-copy a {
  display: block;
  min-height: 48px;
  padding: var(--s-2) 0;
  color: var(--blue);
  font-size: var(--t-xs);
  font-weight: 600;
  text-decoration: none;
}
.sources-copy a:hover { color: var(--terracotta-dark); }

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-4) var(--bleed-pad);
  color: rgb(255 253 248 / 70%);
  background: var(--blue-dark);
  font-size: var(--t-xs);
}
footer p { margin: 0; }
footer a { color: var(--paper); }

/* ---------- reveal ---------- */
.reveal { opacity: 1; transform: none; }
.reveal.will-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.will-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- the bridge between chapters ----------
   At the foot of every chapter, one line saying what changes next, and the
   arrow that takes the reader there. The short hairline above it is the chain
   of stages, so it descends on the page's centre line from chapter to chapter.
   The interlude is not a stage: the line that steps off the chain, and the line
   that leaves the chapters at the end, carry no hairline (.bridge-aside). */
.bridge {
  grid-column: 1 / -1;
  order: 3;
  max-width: var(--w-title);
  margin: var(--s-5) auto 0;
  color: var(--blue);
  font-family: var(--serif);
  font-size: var(--t-m);
  line-height: var(--lh-snug);
  text-align: center;
  text-decoration: none;
  text-wrap: balance;
}
.bridge::before {
  display: block;
  width: 1px;
  height: var(--s-4);
  margin: 0 auto var(--s-3);
  background: var(--terracotta);
  content: "";
}
.bridge-aside::before { display: none; }
.bridge-arrow {
  display: inline-block;
  margin-left: var(--s-2);
  color: var(--terracotta);
  transition: transform 180ms ease;
}
.bridge:hover, .bridge:focus-visible { color: var(--terracotta-dark); }
.bridge:hover .bridge-text, .bridge:focus-visible .bridge-text {
  text-decoration: underline;
  text-decoration-color: var(--terracotta);
  text-underline-offset: 4px;
}
.bridge:hover .bridge-arrow, .bridge:focus-visible .bridge-arrow { transform: translateY(4px); }

/* on the dark band, the same component in the band's own light tones */
.crisis .bridge { color: var(--paper); }
.crisis .bridge::before { background: var(--terracotta-soft); }
.crisis .bridge .bridge-arrow { color: var(--terracotta-soft); }
.crisis .bridge:hover, .crisis .bridge:focus-visible { color: var(--terracotta-soft); }

/* ==========================================================================
   narrower screens
   ========================================================================== */
@media (max-width: 60rem) {
  :root {
    --w-page: min(100% - 2rem, 42rem);
    --obj-tall: clamp(15rem, 46vw, 22rem);
    --obj-sheet: clamp(13rem, 40vw, 20rem);
    --obj-wide: 22rem;
  }

  .hero, .chapter, .crisis, .better-rules, .definitions, .sources {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero { min-height: auto; padding-top: var(--s-6); }
  .chapter { gap: var(--s-5); }
  .chapter-reverse .chapter-visual { order: 0; }
  .hero-objects { gap: var(--s-3); }
}

@media (max-width: 39rem) {
  :root {
    --w-page: calc(100% - 2rem);
    --t-h1: clamp(2.441rem, 12vw, 3.052rem);
    --t-h2: clamp(1.563rem, 8vw, 2.441rem);
    --scene-h: clamp(13rem, 52vw, 18rem);
    --obj-wide: 100%;
  }

  html { scroll-padding-top: var(--s-6); }
  .site-header { min-height: 64px; padding-inline: var(--s-3); }
  .quiet-link { display: none; }
  .header-actions { gap: var(--s-2); }
  .story-map { top: 64px; }
  .story-map ol { min-width: 36rem; }
  .bridge { margin-top: var(--s-4); }
  .logic-strip { align-items: stretch; flex-direction: column; }
  .logic-strip i { align-self: center; transform: rotate(90deg); }
  .hero-objects { flex-wrap: wrap; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
  /* must out-specify .reveal.will-reveal, or the whole article stays invisible */
  .reveal, .reveal.will-reveal { opacity: 1; transform: none; }
  .bridge:hover .bridge-arrow, .bridge:focus-visible .bridge-arrow { transform: none; }
}

@media print {
  .site-header, .story-map, .story-link { display: none; }
  body, .crisis, footer { color: #2d2d2d; background: #fffdf8; }
  .hero, .chapter, .crisis { min-height: auto; break-inside: avoid; }
  .reveal { opacity: 1; transform: none; }
}
