:root {
  --paper: #f3f0e8;
  --paper-light: #fbfaf6;
  --paper-deep: #e4dfd3;
  --ink: #1c2928;
  --muted: #6d736d;
  --line: #c7c4bb;
  --line-dark: #8d9187;
  --red: #c74732;
  --red-dark: #8e2f24;
  --blue: #1e5f6d;
  --blue-light: #d5e3e0;
  --yellow: #d6a43e;
  --max: 1240px;
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), rgba(28, 41, 40, 0.025) calc(100% - 1px)),
    var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.4;
  background-image: repeating-linear-gradient(0deg, transparent 0, transparent 31px, rgba(28, 41, 40, 0.022) 32px);
}

a {
  color: var(--red-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  z-index: 20;
  top: -4rem;
  left: 1rem;
  padding: 0.6rem 0.8rem;
  color: var(--paper-light);
  background: var(--ink);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  border-bottom: 1px solid var(--line-dark);
  background: rgba(243, 240, 232, 0.92);
}

.site-header__inner,
.site-footer__inner,
.section-shell {
  width: min(calc(100% - 3rem), var(--max));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  min-height: 4.4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark,
.header-meta,
.eyebrow,
.source-badge,
.section-marker,
.figure-index,
.stat-label,
.method-note,
.source-note,
.footer-kicker,
.theme-row__value,
.voice-index__label,
.quote-row footer,
.bar-row__head small,
.day-row,
.signal-callout__share {
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

.wordmark {
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-decoration: none;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.header-meta a {
  color: var(--red-dark);
  font-weight: 700;
}

.header-rule {
  width: 2rem;
  height: 1px;
  background: var(--line-dark);
}

.hero {
  padding-block: 2.3rem 5rem;
}

.hero__head,
.figure-index,
.section-heading-line,
.bar-row__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.eyebrow,
.source-badge,
.section-marker,
.figure-index,
.footer-kicker {
  margin: 0;
  color: var(--red-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.source-badge {
  color: var(--muted);
  text-align: right;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(2rem, 7vw, 8rem);
  align-items: end;
  padding-block: 3rem 3.2rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 10ch;
  margin-bottom: 1.7rem;
  font-size: clamp(4rem, 8.6vw, 8.8rem);
  line-height: 0.86;
}

h2 {
  margin-bottom: 1.4rem;
  font-size: clamp(2.4rem, 5vw, 5.2rem);
  line-height: 0.95;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
  line-height: 1.2;
}

.standfirst {
  max-width: 42rem;
  margin-bottom: 1.6rem;
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  line-height: 1.33;
}

.hero-claim {
  max-width: 34rem;
  margin-bottom: 1.35rem;
  color: var(--red-dark);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.25;
}

.source-line {
  max-width: 32rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.register-figure {
  position: relative;
  min-height: 21rem;
  margin: 0;
  padding: 1.1rem 1.15rem 1.2rem;
  border: 1px solid var(--ink);
  background: var(--paper-light);
  box-shadow: 0.8rem 0.8rem 0 var(--blue-light);
}

.register-figure::before {
  position: absolute;
  top: 2.1rem;
  right: -0.85rem;
  width: 1.7rem;
  height: 3rem;
  border: 1px solid var(--red);
  background: var(--red);
  content: "";
  opacity: 0.95;
}

.figure-index {
  padding-bottom: 2.7rem;
  color: var(--muted);
  font-size: 0.67rem;
  text-transform: uppercase;
}

.register-figure h2 {
  margin-bottom: 1.25rem;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.register-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
}

.register-strip li {
  display: grid;
  min-height: 2.15rem;
  place-items: center;
  border: 1px solid var(--line-dark);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.61rem;
  font-weight: 700;
}

.register-strip li:nth-child(3n) {
  border-color: var(--red);
  color: var(--red-dark);
}

.register-figure figcaption {
  max-width: 26rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1.55fr repeat(3, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.hero-stat {
  min-height: 7.1rem;
  padding: 1rem 1.1rem 1rem 0;
  border-right: 1px solid var(--line);
}

.hero-stat:not(:first-child) {
  padding-left: 1rem;
}

.hero-stat:last-child {
  border-right: 0;
}

.stat-number {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--red-dark);
  font-family: var(--mono);
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 1;
}

.hero-stat--primary .stat-number {
  color: var(--ink);
}

.stat-label {
  display: block;
  max-width: 15rem;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.35;
  text-transform: uppercase;
}

.rule-section,
.signals-section,
.voices-section,
.requests-section,
.evidence-section,
.method-section {
  padding-block: 5rem;
  border-top: 1px solid var(--line-dark);
}

.section-marker {
  margin-bottom: 2rem;
  color: var(--red-dark);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
  gap: clamp(2rem, 8vw, 9rem);
}

.section-grid--wide {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.section-grid--method {
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.75fr);
}

.section-lede {
  max-width: 40rem;
  font-size: clamp(1.08rem, 1.6vw, 1.35rem);
  line-height: 1.42;
}

.rule-evidence {
  padding-top: 0.6rem;
  border-top: 3px solid var(--red);
}

.rule-evidence p,
.section-copy,
.method-copy p,
.request-row p,
.source-note {
  color: var(--muted);
}

.rule-evidence p {
  max-width: 33rem;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.2rem;
  margin-top: 1.8rem;
  font-family: var(--mono);
  font-size: 0.76rem;
}

.signal-callout {
  display: grid;
  grid-template-columns: auto auto;
  align-content: end;
  justify-content: start;
  column-gap: 0.9rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--ink);
}

.signal-callout__number {
  grid-row: span 2;
  color: var(--red-dark);
  font-family: var(--mono);
  font-size: clamp(3.5rem, 7vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.1em;
  line-height: 0.84;
}

.signal-callout__share {
  align-self: end;
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 700;
}

.signal-callout__label {
  max-width: 15rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.theme-ledger {
  margin-top: 3.7rem;
  border-top: 1px solid var(--ink);
}

.theme-row {
  padding-block: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
}

.theme-row__button {
  display: flex;
  width: 100%;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.theme-row__button:hover,
.theme-row__button[aria-pressed="true"] {
  color: var(--red-dark);
}

.theme-row__label {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.85rem);
  line-height: 1.05;
}

.theme-row__value {
  flex: none;
  color: var(--muted);
  font-size: 0.76rem;
  white-space: nowrap;
}

.theme-row__value small {
  color: var(--red-dark);
  font-size: inherit;
}

.theme-bar,
.bar-row__track,
.day-row__track {
  height: 0.55rem;
  margin-top: 0.55rem;
  overflow: hidden;
  background: var(--paper-deep);
}

.theme-bar span,
.bar-row__track span,
.day-row__track span {
  display: block;
  height: 100%;
  background: var(--blue);
}

.theme-row:nth-child(3n) .theme-bar span {
  background: var(--red);
}

.theme-row:nth-child(4n) .theme-bar span {
  background: var(--yellow);
}

.theme-definition {
  max-width: 42rem;
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.method-note {
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.voice-index {
  display: flex;
  align-items: end;
  gap: 0.8rem;
  justify-content: end;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--ink);
}

.voice-index__number {
  color: var(--red-dark);
  font-family: var(--mono);
  font-size: clamp(2.5rem, 5vw, 5.3rem);
  font-weight: 700;
  letter-spacing: -0.09em;
  line-height: 0.85;
}

.voice-index__label {
  max-width: 12rem;
  padding-bottom: 0.1rem;
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.voice-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block: 2.5rem 1.2rem;
}

.theme-filter {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line-dark);
  color: var(--ink);
  background: transparent;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  cursor: pointer;
}

.theme-filter:hover,
.theme-filter.is-active,
.theme-filter[aria-pressed="true"] {
  border-color: var(--red-dark);
  color: var(--paper-light);
  background: var(--red-dark);
}

#theme-filters {
  display: contents;
}

.quotes {
  border-top: 1px solid var(--ink);
}

.quote-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
  gap: 2rem;
  padding-block: 1.5rem 1.7rem;
  border-bottom: 1px solid var(--line);
}

.quote-row blockquote {
  position: relative;
  margin: 0;
  padding-left: 1.2rem;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.15;
}

.quote-row blockquote::before {
  position: absolute;
  top: 0.15em;
  bottom: 0.15em;
  left: 0;
  width: 3px;
  background: var(--red);
  content: "";
}

.quote-row footer {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  align-items: baseline;
  gap: 0.55rem 0.8rem;
  padding-top: 0.3rem;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.35;
  text-transform: uppercase;
}

.quote-row footer > span:first-child {
  width: 100%;
  color: var(--ink);
  font-weight: 700;
}

.quote-row footer a {
  width: 100%;
  margin-top: 0.25rem;
}

.quote-translation {
  color: var(--red-dark);
}

.no-quotes {
  margin: 1.5rem 0;
  color: var(--muted);
}

.request-list {
  border-top: 1px solid var(--ink);
}

.request-row {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 1rem;
  padding-block: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
}

.request-row__mark {
  color: var(--red-dark);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
}

.request-row p {
  max-width: 30rem;
  margin-bottom: 0;
}

.evidence-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 8vw, 9rem);
}

.section-heading-line {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.7rem;
}

.section-heading-line h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 3.5vw, 3.5rem);
}

.section-heading-line span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  white-space: nowrap;
}

.section-copy {
  max-width: 34rem;
  margin-block: 1rem 1.7rem;
  font-size: 0.92rem;
}

.bar-chart {
  border-top: 1px solid var(--line);
}

.bar-row {
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--line);
}

.bar-row__head {
  font-family: var(--mono);
  font-size: 0.73rem;
}

.bar-row__head small {
  color: var(--muted);
  font-size: 0.62rem;
}

.bar-row__head strong {
  color: var(--red-dark);
  font-weight: 700;
}

.bar-row__track {
  height: 0.45rem;
  margin-top: 0.35rem;
}

.bar-row__track span {
  background: var(--blue);
}

.timeline-block {
  padding-left: clamp(0rem, 3vw, 2rem);
  border-left: 1px solid var(--line-dark);
}

.timeline-chart {
  border-top: 1px solid var(--line);
}

.day-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr 3.5rem;
  align-items: center;
  gap: 0.75rem;
  padding-block: 0.55rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.68rem;
}

.day-row strong {
  color: var(--ink);
  text-align: right;
}

.day-row__track {
  height: 0.45rem;
  margin-top: 0;
}

.day-row__track span {
  background: var(--yellow);
}

.method-copy {
  max-width: 42rem;
}

.method-copy p {
  margin-bottom: 1rem;
  color: var(--muted);
}

.sources-block {
  align-self: start;
  padding: 1.3rem 1.2rem 1.4rem;
  border: 1px solid var(--ink);
  background: var(--paper-light);
}

.sources-block h3 {
  margin-bottom: 1rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.source-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-list li {
  padding-block: 0.65rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

.source-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.source-list a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.source-note {
  margin: 1.2rem 0 0;
  font-size: 0.73rem;
  line-height: 1.45;
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.site-footer__inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 2rem 2.4rem;
}

.site-footer p {
  margin-bottom: 0.25rem;
  color: rgba(243, 240, 232, 0.7);
  font-size: 0.78rem;
}

.site-footer .footer-kicker {
  margin-bottom: 0.85rem;
  color: var(--yellow);
  font-size: 0.68rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: end;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.footer-nav a {
  color: var(--paper);
}

.js-status {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 15;
  width: max-content;
  max-width: min(28rem, calc(100% - 2rem));
  margin: 0;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--red);
  color: var(--paper-light);
  background: var(--red-dark);
  font-family: var(--mono);
  font-size: 0.7rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.5rem);
  transition: opacity 180ms ease, transform 180ms ease;
}

.js-status.is-error {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 850px) {
  .hero__grid,
  .section-grid,
  .section-grid--wide,
  .section-grid--method,
  .evidence-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero__grid {
    padding-top: 2.3rem;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-stat:nth-child(2) {
    border-right: 0;
  }

  .hero-stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .hero-stat:nth-child(3) {
    padding-left: 0;
  }

  .quote-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .voice-index {
    justify-content: start;
  }

  .timeline-block {
    padding-left: 0;
    border-left: 0;
  }

  .sources-block {
    max-width: 38rem;
  }
}

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

  .site-header__inner,
  .site-footer__inner,
  .section-shell {
    width: min(calc(100% - 2rem), var(--max));
  }

  .site-header__inner {
    min-height: 3.8rem;
  }

  .wordmark {
    font-size: 0.63rem;
  }

  .header-meta span:first-child,
  .header-rule {
    display: none;
  }

  .hero {
    padding-block: 1.8rem 3.5rem;
  }

  .hero__head {
    align-items: start;
    flex-direction: column;
    gap: 0.45rem;
  }

  .source-badge {
    text-align: left;
  }

  h1 {
    max-width: 8ch;
    font-size: clamp(3.5rem, 17vw, 5.4rem);
  }

  h2 {
    font-size: 2.8rem;
  }

  .hero__grid {
    gap: 2.5rem;
  }

  .register-figure {
    min-height: auto;
    box-shadow: 0.45rem 0.45rem 0 var(--blue-light);
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .hero-stat {
    min-height: 6.6rem;
    padding-right: 0.7rem;
  }

  .hero-stat:not(:first-child) {
    padding-left: 0.7rem;
  }

  .hero-stat:nth-child(odd) {
    padding-left: 0;
    border-right: 1px solid var(--line);
  }

  .hero-stat:nth-child(even) {
    border-right: 0;
  }

  .hero-stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.58rem;
  }

  .rule-section,
  .signals-section,
  .voices-section,
  .requests-section,
  .evidence-section,
  .method-section {
    padding-block: 3.5rem;
  }

  .theme-row__button {
    align-items: start;
    flex-direction: column;
    gap: 0.45rem;
  }

  .signal-callout__number {
    font-size: 4.2rem;
  }

  .quote-row blockquote {
    padding-left: 0.9rem;
    font-size: 1.45rem;
  }

  .day-row {
    grid-template-columns: 3.8rem 1fr 3rem;
    gap: 0.45rem;
    font-size: 0.61rem;
  }

  .site-footer__inner {
    align-items: start;
    flex-direction: column;
  }

  .footer-nav {
    justify-content: start;
  }
}

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

  .js-status {
    transition: none;
  }
}

@media print {
  body::before,
  .site-header,
  .voice-controls,
  .js-status {
    display: none;
  }

  .hero,
  .rule-section,
  .signals-section,
  .voices-section,
  .requests-section,
  .evidence-section,
  .method-section {
    break-inside: avoid;
    padding-block: 1rem;
  }

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