:root {
  --paper: #f3efe7;
  --paper-deep: #e6ded0;
  --paper-light: #fffaf2;
  --ink: #1c2b2a;
  --ink-soft: #586461;
  --line: #cfc5b5;
  --coral: #e8614f;
  --blue: #567c8e;
  --plum: #65445f;
  --gold: #d1a844;
  --serif: "Iowan Old Style", "Baskerville", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --max: 1180px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(rgba(28, 43, 42, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(28, 43, 42, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  content: "";
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--coral);
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.wrap {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 9px 13px;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--paper-light);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  transition: transform 160ms ease;
}

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

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.site-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
}

.site-mark small {
  display: block;
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 0.63rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: none;
}

.site-mark-line {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  width: 40px;
  height: 14px;
}

.site-mark-line i {
  display: block;
  width: 11px;
  height: 2px;
  background: var(--ink);
}

.site-mark-line i:nth-child(2) {
  width: 7px;
  height: 14px;
  background: var(--coral);
}

.header-date {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.45;
  text-align: right;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(250px, 0.6fr);
  gap: clamp(40px, 9vw, 136px);
  align-items: end;
  padding-top: clamp(68px, 9vw, 132px);
  padding-bottom: clamp(60px, 8vw, 114px);
}

.eyebrow,
.card-kicker,
.fact-label,
.ruler-kicker,
.strip-label,
.fallback-label,
.source-index {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin: 25px 0 28px;
  font-family: var(--serif);
  font-size: clamp(4.2rem, 10.8vw, 9.6rem);
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 0.79;
}

.hero h1 em {
  color: var(--coral);
  font-style: italic;
}

.standfirst {
  max-width: 620px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.7vw, 2.25rem);
  letter-spacing: -0.02em;
  line-height: 1.14;
}

.hero-note {
  max-width: 660px;
  margin: 27px 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.hero-fact {
  position: relative;
  padding: 29px 30px 31px;
  background: var(--ink);
  color: var(--paper-light);
  box-shadow: 12px 12px 0 var(--paper-deep);
}

.hero-fact::before {
  position: absolute;
  top: -14px;
  right: 28px;
  width: 2px;
  height: 33px;
  background: var(--coral);
  content: "";
}

.hero-fact .fact-label {
  color: #c8d0cc;
}

.fact-number {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 18px;
}

.fact-number strong {
  color: var(--coral);
  font-family: var(--serif);
  font-size: clamp(5rem, 9vw, 7rem);
  font-weight: 400;
  letter-spacing: -0.08em;
  line-height: 0.8;
}

.fact-number span {
  color: #c8d0cc;
  font-family: var(--mono);
  font-size: 0.9rem;
}

.fact-copy {
  max-width: 220px;
  margin: 20px 0 0;
  font-size: 1rem;
  line-height: 1.45;
}

.fact-note {
  margin: 25px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(243, 239, 231, 0.25);
  color: #c8d0cc;
  font-size: 0.78rem;
  line-height: 1.55;
}

.fact-note a {
  color: var(--paper-light);
}

.thesis-strip {
  border-block: 1px solid var(--line);
  background: var(--paper-deep);
}

.thesis-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding-block: 21px;
}

.thesis-inner p {
  max-width: 880px;
  margin: 0;
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.4;
}

.strip-label {
  display: inline-block;
  margin-right: 15px;
  color: var(--coral);
  font-size: 0.63rem;
}

.text-link {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
}

.text-link span {
  color: var(--coral);
}

.age-section {
  padding-top: clamp(72px, 10vw, 132px);
  padding-bottom: clamp(86px, 11vw, 150px);
}

.section-intro {
  max-width: 740px;
}

.section-intro h2,
.story-card h2,
.method-copy h2,
.sources-section h2 {
  margin: 17px 0 19px;
  font-family: var(--serif);
  font-size: clamp(2.35rem, 4.6vw, 4.45rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.section-intro p:last-child {
  max-width: 650px;
  margin: 0;
  color: var(--ink-soft);
}

.age-ruler {
  --state-accent: var(--coral);
  --state-ink: var(--plum);
  margin-top: 72px;
}

.age-ruler[data-index="0"] {
  --state-accent: var(--blue);
  --state-ink: var(--blue);
}

.age-ruler[data-index="1"] {
  --state-accent: var(--coral);
  --state-ink: var(--coral);
}

.age-ruler[data-index="2"] {
  --state-accent: var(--gold);
  --state-ink: #9a731b;
}

.age-ruler[data-index="3"] {
  --state-accent: var(--plum);
  --state-ink: var(--plum);
}

.age-ruler[data-index="3"] {
  --state-accent: #9c7e38;
  --state-ink: #806522;
}

.ruler-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.ruler-kicker {
  color: var(--state-accent);
}

.ruler-age {
  display: block;
  color: var(--state-ink);
  font-family: var(--serif);
  font-size: clamp(4rem, 7vw, 6rem);
  letter-spacing: -0.08em;
  line-height: 0.7;
}

.ruler-visual {
  position: relative;
  height: 50px;
  margin: 26px 3px 0;
}

.ruler-rule {
  position: absolute;
  top: 23px;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--ink);
}

.ruler-cut {
  position: absolute;
  top: 10px;
  width: 3px;
  height: 29px;
  background: var(--coral);
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--coral);
}

.cut-18 {
  left: 33.3333%;
}

.cut-21 {
  left: 66.6667%;
}

.cut-25 {
  right: 0;
}

.ruler-tick {
  position: absolute;
  top: 17px;
  width: 2px;
  height: 14px;
  background: var(--ink);
}

.tick-17 {
  left: 0;
}

.tick-18 {
  left: 33.3333%;
}

.tick-21 {
  left: 66.6667%;
}

.tick-25 {
  right: 0;
}

.age-input {
  display: block;
  width: 100%;
  height: 32px;
  margin: -3px 0 0;
  accent-color: var(--state-accent);
  cursor: pointer;
}

.age-input::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 0;
  background: var(--ink);
}

.age-input::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  margin-top: -10px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--state-accent);
  box-shadow: 0 0 0 2px var(--state-accent);
  -webkit-appearance: none;
  appearance: none;
}

.age-input::-moz-range-track {
  height: 4px;
  border: 0;
  border-radius: 0;
  background: var(--ink);
}

.age-input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--state-accent);
  box-shadow: 0 0 0 2px var(--state-accent);
}

.age-stops {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 3px;
}

.age-stop {
  display: flex;
  min-height: 68px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 10px 6px 8px;
  border: 0;
  border-top: 2px solid transparent;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.age-stop:hover {
  color: var(--state-accent);
}

.age-stop[aria-pressed="true"] {
  border-top-color: var(--state-accent);
  color: var(--state-accent);
}

.age-stop strong {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.age-stop span {
  margin-top: 4px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.62rem;
  line-height: 1.25;
  text-transform: uppercase;
}

.age-stop[aria-pressed="true"] span {
  color: var(--state-accent);
}

.control-help {
  max-width: 620px;
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.state-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 41px;
}

.state-card {
  position: relative;
  min-height: 318px;
  padding: 31px 32px 30px;
  border: 1px solid var(--line);
  background: var(--paper-light);
}

.system-card {
  border-top: 6px solid var(--state-accent);
}

.system-card::before {
  position: absolute;
  top: 31px;
  left: -1px;
  width: 4px;
  height: 72px;
  background: var(--state-accent);
  content: "";
}

.card-kicker {
  color: var(--state-accent);
}

.state-card h3 {
  max-width: 430px;
  margin: 22px 0 15px;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.65rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.state-card p {
  max-width: 500px;
  margin-block: 0;
}

.signal-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.67rem;
  line-height: 1.3;
  text-transform: uppercase;
}

.signal-line strong {
  color: var(--state-accent);
  font-weight: 700;
  text-align: right;
}

.evidence-card {
  border-color: var(--state-accent);
  background: var(--state-accent);
  color: var(--paper-light);
}

.evidence-card .card-kicker {
  color: rgba(255, 250, 242, 0.78);
}

.evidence-number {
  margin-top: 20px;
  color: var(--paper-light);
  font-family: var(--serif);
  font-size: clamp(4.3rem, 8vw, 7.4rem);
  letter-spacing: -0.09em;
  line-height: 0.8;
}

.evidence-card h3 {
  max-width: 500px;
  margin-top: 24px;
  color: var(--paper-light);
}

.evidence-note {
  margin-top: 24px !important;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 250, 242, 0.33);
  color: rgba(255, 250, 242, 0.8);
  font-family: var(--mono);
  font-size: 0.7rem;
  line-height: 1.45;
  text-transform: uppercase;
}

.static-fallback {
  margin-top: 28px;
  padding: 25px 28px 29px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.46);
}

html.js .static-fallback {
  display: none;
}

.fallback-label {
  color: var(--coral);
}

.static-fallback > p:not(.fallback-label) {
  max-width: 620px;
  margin: 7px 0 18px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  line-height: 1.45;
}

caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

th,
td {
  padding: 14px 14px 14px 0;
  border-top: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

thead th {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

tbody th {
  min-width: 75px;
  color: var(--coral);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
}

.figure-caption {
  max-width: 760px;
  margin: 21px 0 0;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.67rem;
  line-height: 1.55;
}

.story-section {
  border-block: 1px solid var(--line);
  background: var(--paper-deep);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.story-card {
  min-height: 468px;
  padding: clamp(45px, 6vw, 77px) clamp(24px, 5vw, 70px) clamp(48px, 6vw, 82px) 0;
  border-bottom: 1px solid var(--line);
}

.story-card:nth-child(odd) {
  padding-right: clamp(24px, 5vw, 70px);
}

.story-card:nth-child(even) {
  padding-right: 0;
  padding-left: clamp(24px, 5vw, 70px);
  border-left: 1px solid var(--line);
}

.story-card:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.story-card h2 {
  max-width: 470px;
  font-size: clamp(2.25rem, 4vw, 3.7rem);
}

.story-card p:not(.eyebrow) {
  max-width: 510px;
  margin: 0 0 18px;
}

.accent-card {
  background: rgba(232, 97, 79, 0.08);
}

.accent-card .eyebrow,
.accent-card h2 {
  color: var(--coral);
}

.context-card {
  background: rgba(86, 124, 142, 0.09);
}

.context-card .eyebrow,
.context-card h2 {
  color: var(--blue);
}

.method-section {
  padding-block: clamp(80px, 10vw, 132px);
}

.method-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(50px, 10vw, 142px);
  align-items: start;
}

.method-copy h2 {
  max-width: 470px;
}

.method-copy > p:not(.eyebrow) {
  max-width: 560px;
  margin: 0 0 20px;
  color: var(--ink-soft);
}

.caveat {
  padding: 18px 20px;
  border-left: 4px solid var(--coral);
  background: var(--paper-deep);
  color: var(--ink) !important;
  font-size: 0.92rem;
}

.method-list {
  margin: 0;
}

.method-list > div {
  display: grid;
  grid-template-columns: minmax(140px, 0.55fr) minmax(0, 1fr);
  gap: 25px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.method-list > div:last-child {
  border-bottom: 1px solid var(--line);
}

.method-list dt {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.15;
}

.method-list dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

.sources-section {
  padding-block: clamp(76px, 10vw, 128px) 68px;
  background: var(--ink);
  color: var(--paper-light);
}

.sources-section .eyebrow,
.sources-section h2 {
  color: var(--coral);
}

.sources-section h2 {
  max-width: 640px;
}

.sources-intro {
  max-width: 690px;
  margin: 0;
  color: #c8d0cc;
}

.source-list {
  margin-top: 55px;
  border-top: 1px solid rgba(243, 239, 231, 0.28);
}

.source-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 22px;
  padding: 25px 0 28px;
  border-bottom: 1px solid rgba(243, 239, 231, 0.28);
}

.source-index {
  color: var(--coral);
}

.source-item h3 {
  margin: -3px 0 6px;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.source-item p:not(.source-index) {
  max-width: 740px;
  margin: 0 0 11px;
  color: #c8d0cc;
  font-size: 0.91rem;
  line-height: 1.52;
}

.source-item a {
  color: var(--paper-light);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.source-item a:hover {
  color: var(--coral);
}

.source-item code {
  color: var(--coral);
  font-family: var(--mono);
  font-size: 0.8em;
}

.source-footer {
  margin: 35px 0 0;
  color: #aebbb5;
  font-family: var(--mono);
  font-size: 0.67rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.site-footer p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.site-footer .site-mark-line {
  width: 29px;
  transform: scale(0.72);
  transform-origin: left center;
}

.site-footer a {
  color: var(--ink);
}

@media (max-width: 780px) {
  body {
    font-size: 16px;
  }

  .wrap {
    width: min(calc(100% - 34px), var(--max));
  }

  .hero {
    display: block;
    padding-top: 63px;
  }

  .hero h1 {
    margin-top: 23px;
    font-size: clamp(4.1rem, 19vw, 7rem);
  }

  .hero-fact {
    max-width: 420px;
    margin-top: 46px;
    margin-right: 10px;
  }

  .thesis-inner {
    display: block;
    padding-block: 20px 22px;
  }

  .thesis-inner p {
    font-size: 1rem;
  }

  .text-link {
    display: inline-block;
    margin-top: 16px;
  }

  .age-section {
    padding-top: 76px;
  }

  .age-ruler {
    margin-top: 54px;
  }

  .ruler-visual {
    margin-top: 22px;
  }

  .age-stop {
    min-height: 78px;
    padding-top: 12px;
  }

  .age-stop strong {
    font-size: 1.08rem;
  }

  .age-stop span {
    max-width: 62px;
    font-size: 0.56rem;
  }

  .state-grid,
  .method-grid {
    grid-template-columns: 1fr;
  }

  .state-card {
    min-height: 0;
  }

  .story-grid {
    grid-template-columns: 1fr;
  }

  .story-card,
  .story-card:nth-child(odd),
  .story-card:nth-child(even) {
    min-height: 0;
    padding: 54px 0 59px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    border-left: 0;
  }

  .story-card:last-child {
    border-bottom: 0;
  }

  .method-grid {
    gap: 49px;
  }

  .method-list > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .source-item {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
  }

  .source-list {
    margin-top: 42px;
  }
}

@media (max-width: 460px) {
  .header-date {
    font-size: 0.6rem;
  }

  .site-mark {
    font-size: 0.63rem;
  }

  .site-mark small {
    font-size: 0.55rem;
  }

  .site-header {
    min-height: 66px;
  }

  .hero h1 {
    font-size: clamp(3.8rem, 19vw, 5.7rem);
  }

  .standfirst {
    font-size: 1.45rem;
  }

  .hero-fact {
    padding: 26px 23px 27px;
  }

  .ruler-age {
    font-size: 4.6rem;
  }

  .age-stops {
    gap: 2px;
  }

  .age-stop {
    padding-inline: 2px;
  }

  .age-stop strong {
    font-size: 0.97rem;
  }

  .state-card {
    padding: 27px 23px 26px;
  }

  .signal-line {
    display: block;
  }

  .signal-line strong {
    display: block;
    margin-top: 7px;
    text-align: left;
  }

  .static-fallback {
    padding-inline: 18px;
  }

  .source-item p:not(.source-index) {
    font-size: 0.87rem;
  }

  .site-footer {
    min-height: 92px;
    font-size: 0.59rem;
  }
}

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

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