:root {
  --paper: #f3efe6;
  --paper-2: #e7e0d2;
  --ink: #1a1814;
  --muted: #5e584e;
  --oxide: #9a3412;
  --oxide-deep: #7c2d12;
  --cream: #f6f1e7;
  --cream-dim: #e7d7c4;
  --line: rgba(26, 24, 20, 0.14);
  --serif: "Fraunces", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --text: "Source Serif 4", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Avenir Next", "Segoe UI", sans-serif;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html { scroll-snap-type: y proximity; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.chrome {
  position: fixed;
  z-index: 5;
  inset: 0;
  pointer-events: none;
}
.count, .rail { pointer-events: auto; }
.count {
  position: absolute;
  top: 1.1rem;
  left: 1.15rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--cream);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}
body.on-paper .count { color: var(--ink); text-shadow: none; }
.rail {
  position: absolute;
  top: 50%;
  right: 0.85rem;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.rail button {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border-radius: 99px;
  border: 1.5px solid rgba(246, 241, 231, 0.85);
  background: transparent;
  cursor: pointer;
}
body.on-paper .rail button { border-color: rgba(26, 24, 20, 0.55); }
.rail button.is-on {
  height: 1.35rem;
  background: var(--cream);
  border-color: var(--cream);
}
body.on-paper .rail button.is-on {
  background: var(--oxide);
  border-color: var(--oxide);
}

.slide {
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  position: relative;
}

.slide--hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #100e0c;
  color: var(--cream);
}
.slide--hero figure { margin: 0; position: relative; min-height: 100svh; }
.slide--hero img {
  width: 100%;
  height: 100svh;
  object-fit: cover;
}
.slide--hero figure:first-child img { object-position: 50% 42%; }
.slide--hero figure:last-of-type img { object-position: 40% 8%; }
.seam {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  transform: translateX(-50%);
  background: var(--oxide);
  z-index: 1;
}
.hero-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 7rem 8vw 2.4rem;
  background: linear-gradient(to top, rgba(12, 10, 8, 0.88) 0%, rgba(12, 10, 8, 0.55) 55%, rgba(12, 10, 8, 0) 100%);
  text-align: center;
}
.eyebrow {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin: 0 0 0.7rem;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.02em; line-height: 1.04; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); margin: 0 auto 0.7rem; max-width: 18ch; }
.dek { margin: 0 auto; max-width: 38rem; font-size: 1.15rem; color: var(--cream-dim); }
.scroll-hint {
  margin: 1.1rem 0 0;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 241, 231, 0.72);
}

.chip {
  position: absolute;
  top: 3.15rem;
  z-index: 2;
  margin: 0;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  background: rgba(18, 14, 10, 0.62);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  backdrop-filter: blur(8px);
}
.slide--hero figure:first-child .chip { left: 1rem; }
.slide--hero figure:last-of-type .chip { right: 1rem; }

.slide--paper {
  display: grid;
  align-items: center;
  padding: 5.5rem 1.4rem 3.5rem;
  background: var(--paper);
}
#claim, #jab { align-items: start; }
#geometry { padding-top: 3.3rem; padding-bottom: 2.2rem; }
#geometry .prose h2 { margin-bottom: 0.7rem; }
#geometry .prose p { margin-bottom: 0.7rem; }
.prose { width: min(42rem, 100%); margin: 0 auto; }
.prose.wide { width: min(52rem, 100%); }
.kicker {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--oxide);
  margin: 0 0 0.75rem;
}
.prose h2 { font-size: clamp(2.05rem, 4.4vw, 3.15rem); margin: 0 0 1rem; }
.prose p { margin: 0 0 0.95rem; }
.prose p:last-child { margin-bottom: 0; }
.lede { font-size: 1.18rem; }
blockquote {
  margin: 1.2rem 0;
  padding: 0 0 0 1rem;
  border-left: 3px solid var(--oxide);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.015em;
}
blockquote footer {
  margin-top: 0.55rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  font-style: normal;
}
.note {
  color: var(--muted);
  font-size: 0.98rem;
}
a.quiet { color: var(--oxide-deep); text-underline-offset: 0.16em; }

.slide--photo { background: #100e0c; color: var(--cream); }
.slide--photo figure { margin: 0; min-height: 100svh; position: relative; }
.slide--photo img {
  width: 100%;
  height: 100svh;
  object-fit: contain;
  background: #100e0c;
}
.slide--photo figcaption {
  position: absolute;
  left: 1.15rem;
  right: 4.2rem;
  bottom: 1.15rem;
  max-width: 40rem;
  padding: 1rem 1.15rem 0.95rem;
  background: rgba(16, 13, 10, 0.74);
  border-radius: 3px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.slide--photo h2 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); margin: 0 0 0.45rem; }
.slide--photo p { margin: 0 0 0.55rem; }
.slide--photo .kicker { color: #f0c7a8; }
.meta {
  margin: 0.35rem 0 0;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--cream-dim);
}
.meta a { color: var(--cream); }

.slide--evidence {
  background: #141210;
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1rem;
  padding: 5rem 5vw 2.5rem;
}
.slide--evidence img {
  width: 100%;
  max-height: 58vh;
  object-fit: contain;
  background: #0c0b09;
}
.slide--evidence .prose { width: min(46rem, 100%); }
.slide--evidence .kicker { color: #f0c7a8; }
.slide--evidence h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 0.5rem; }
.slide--evidence p { margin: 0; }
.slide--evidence .meta { margin-top: 0.7rem; }

.nums {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 0.4rem;
  font-variant-numeric: tabular-nums;
  font-size: 0.98rem;
}
.nums th, .nums td {
  text-align: left;
  padding: 0.45rem 0.6rem 0.45rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: baseline;
}
.nums th {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.nums tr.scale td { color: var(--oxide-deep); }

.inline-figure { margin: 1.1rem 0 0.3rem; }
.inline-figure img { width: 100%; height: auto; border-radius: 2px; }
.inline-figure figcaption {
  margin-top: 0.4rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--muted);
}

.sources { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin-top: 0.6rem; }
.sources th, .sources td {
  text-align: left;
  padding: 0.55rem 0.7rem 0.55rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.sources th {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.sources a { color: var(--oxide-deep); }

.endnote { margin-top: 1.4rem; color: var(--muted); font-size: 0.92rem; }
.endnote a { color: var(--oxide-deep); }

@media (max-width: 800px) {
  .slide--photo figure { display: flex; flex-direction: column; justify-content: flex-end; }
  .slide--photo img { height: auto; max-height: 58svh; object-fit: contain; }
  .slide--photo figcaption {
    position: relative;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: none;
    margin: 0;
  }
  .slide--hero { grid-template-columns: 1fr 1fr; }
  .chip { font-size: 0.68rem; max-width: 46%; }
  .slide--hero figure:last-of-type .chip { max-width: 48%; }
  h1 { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  .hero-copy { padding: 5rem 1rem 1.4rem; }
  .dek { font-size: 0.98rem; }
  .slide--photo figcaption { right: 1rem; left: 0.8rem; bottom: 0.8rem; }
  .rail { right: 0.4rem; }
  .count { left: 0.75rem; }
  .sources { font-size: 0.82rem; display: block; overflow-x: auto; }
}

@media (max-width: 560px) {
  .slide--hero { grid-template-columns: 1fr; }
  .seam { display: none; }
  .slide--hero figure { min-height: 0; }
  .slide--hero img { height: 32svh; }
  .slide--hero figure:last-of-type .chip { left: 0.7rem; right: auto; top: auto; bottom: 0.55rem; }
  .hero-copy { position: relative; background: #141210; padding: 0.85rem 1rem 1.2rem; }
  .hero-copy h1 { font-size: 1.85rem; }
  .dek { font-size: 0.98rem; }
  .scroll-hint { margin-top: 0.55rem; }
}

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