:root {
  --paper: #e9e2d3;
  --ink: #1e1b16;
  --muted: #554f45;
  --accent: #7a3418;
  --media: #14120f;
  --backing: #2b2823;
  --line: rgba(30, 27, 22, 0.24);
  --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --gut: 1rem;
  --gap: 1.5rem;
  --spine: 68rem;
  --measure: 40rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--serif);
  font-kerning: normal;
  font-variant-numeric: lining-nums;
  overflow-wrap: break-word;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); border: 2px solid var(--ink); padding: 0.5rem 0.75rem; z-index: 2; }

/* Type: display, chapter numeral, heading, lede, body, caption */
h1, h2, h3 { font-weight: 700; margin: 0; }
h1 {
  font-size: clamp(2.25rem, 5.6vw, 4.25rem); line-height: 1.06; letter-spacing: -0.012em;
  max-width: 17ch; margin: 0 0 1.5rem;
}
h2 { font-size: clamp(1.75rem, 3.4vw, 2.625rem); line-height: 1.12; letter-spacing: -0.008em; }
h3 { font-size: 1.25rem; line-height: 1.3; }
.lede, .why p, .direction-text { font-size: clamp(1.1875rem, 2vw, 1.375rem); line-height: 1.5; }
figcaption, .note, .direction-src, .sub-note { font-size: 0.9375rem; line-height: 1.5; color: var(--muted); }
figcaption strong, .note strong { color: var(--ink); font-weight: 700; }
.kicker {
  margin: 0 0 1.25rem; font-size: 0.875rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}
.num {
  margin: 0 0 0.5rem; font-size: clamp(2.5rem, 5vw, 3.5rem); line-height: 1; font-weight: 700;
  color: var(--accent); font-variant-numeric: lining-nums tabular-nums;
}
.sound { color: var(--ink); font-weight: 700; white-space: nowrap; }

/* One spine: every block starts on the same gutter; text keeps a reading measure */
.nav-inner, main, .credit {
  max-width: calc(var(--spine) + 2 * var(--gut)); margin: 0 auto;
  padding-left: var(--gut); padding-right: var(--gut);
}
.nav-inner {
  padding-top: 1.1rem; padding-bottom: 1.1rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between;
  font-size: 0.9375rem;
}
.nav a { text-decoration: none; }
.nav a:first-child { font-weight: 700; }
.nav a:hover { text-decoration: underline; }

.intro { padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem); }
.lede, .note, .head > *, figcaption, .sub-note { max-width: var(--measure); }
.lede { margin: 0; }
.note { margin: 1rem 0 0; }

/* Chapters: a full-width rule, numeral, title, then media on the same edge */
.chapter { margin-top: clamp(4.5rem, 9vw, 7.5rem); }
.chapter > * + * { margin-top: clamp(1.75rem, 3.5vw, 2.75rem); }
.head { border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.head > p:not(.num) { margin: 0.75rem 0 0; }
.head > .direction { margin-top: 1.25rem; }

.sub > * { margin: 0; }
.sub > * + * { margin-top: 1rem; }
.sub h3 { border-top: 1px solid var(--line); padding-top: 0.75rem; }

/* Media: equal frames in a row share size and top edge */
figure { margin: 0; }
figcaption { margin-top: 0.65rem; }
.row { display: grid; gap: 2rem var(--gap); align-items: start; }
.frame { background: var(--media); aspect-ratio: 16 / 9; }
.frame video, .frame iframe { width: 100%; height: 100%; object-fit: contain; background: var(--media); }
.frame iframe { display: block; border: 0; }
.still { aspect-ratio: 4 / 5; background: var(--media); }
.still img { width: 100%; height: 100%; object-fit: contain; }
.still--ref { background: var(--backing); padding: 1rem; }
.still--wide { aspect-ratio: 16 / 9; }
.still--land { aspect-ratio: 4 / 3; background: var(--backing); }
.watch { color: var(--ink); white-space: nowrap; }
.fallback { display: block; margin-top: 0.35rem; color: var(--ink); }

.direction { padding-left: 1rem; border-left: 2px solid var(--accent); }
.direction-src { margin: 0 0 0.35rem; }
.direction-text { margin: 0; font-style: italic; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin: 0; }
.montage .actions { margin-top: 1rem; }
.button {
  display: inline-block; padding: 0.75rem 1.15rem; border: 2px solid var(--ink);
  font: 700 1rem/1.4 var(--serif); text-decoration: none;
  background: none; color: var(--ink); cursor: pointer; text-align: left;
}
.button:hover { background: var(--ink); color: var(--paper); }

/* Workflow: a plain ordered list read top to bottom */
.wf { max-width: 48rem; }
.wf-flow, .wf-teams { list-style: none; margin: 0; padding: 0; }
.wf-flow { font-size: 1rem; line-height: 1.4; }
.wf-flow > li + li::before {
  content: "↓"; content: "↓" / "";
  display: block; margin: 0.5rem 0; color: var(--accent); font-weight: 700;
}
.wf-flow strong { display: block; font-weight: 700; }
.wf-flow li > span { display: block; color: var(--muted); }
.wf-teams { display: grid; gap: 0.75rem var(--gap); margin-top: 0.75rem; }
.wf-teams li { border-top: 1px solid var(--line); padding-top: 0.5rem; }
.wf-side { margin: 0.75rem 0 0; font-size: 0.9375rem; font-weight: 700; color: var(--accent); }
.wf figcaption { margin-top: 1.5rem; }

.credit { margin-top: clamp(4.5rem, 9vw, 7.5rem); padding-top: 0; padding-bottom: 3rem; font-size: 0.875rem; color: var(--muted); }
.credit p { margin: 0; padding-top: 1.25rem; border-top: 1px solid var(--line); }

@media (min-width: 30rem) { :root { --gut: 1.5rem; } }
@media (min-width: 40rem) {
  .pair, .wf-teams { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wf-teams { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 48rem) { :root { --gut: 2.5rem; --gap: 2rem; } }
@media (min-width: 56rem) { .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

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