@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,560;9..144,640&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,560;1,6..72,460&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  --paper: #f2ece3;
  --paper-2: #e7dfd2;
  --card: #faf6f0;
  --ink: #171411;
  --ink-soft: #3c352e;
  --muted: #6f665c;
  --line: #d9cec0;
  --red: #9c1c28;
  --red-deep: #6d121b;
  --dark: #12100e;
  --dark-2: #1c1916;
  --dark-line: rgba(242, 236, 227, 0.16);
  --gold: #a6843d;
  --serif: "Fraunces", "Iowan Old Style", Palatino, serif;
  --text: "Newsreader", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --wrap: 1120px;
  --shadow: 0 24px 60px rgba(23, 20, 17, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.55;
  font-optical-sizing: auto;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; line-height: 0.96; }
h1 { font-size: clamp(3.4rem, 7vw, 6.4rem); margin: 0 0 1rem; }
h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); margin: 0; }
h3 { font-size: 1.55rem; line-height: 1.15; margin: 0 0 0.4rem; }
p { margin: 0 0 0.9rem; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: white;
  padding: 0.5rem 0.8rem;
  z-index: 20;
}
.skip:focus { top: 1rem; }

.wrap { width: min(var(--wrap), calc(100% - 2.4rem)); margin: 0 auto; }

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.2rem;
  background: rgba(18, 16, 14, 0.94);
  color: var(--paper);
  backdrop-filter: blur(10px);
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.mark {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  background: var(--red);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 0.95rem;
}
.wordmark-text {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}
.wordmark-text em, .site-foot em { font-style: italic; color: #e7b7bc; }
.nav-links { display: flex; gap: 1.15rem; align-items: center; }
.nav-links a {
  color: var(--paper);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links a:hover { color: #f0c7cb; }

.hero {
  color: var(--paper);
  padding: 3.2rem 0 3.6rem;
  background:
    linear-gradient(180deg, rgba(8, 7, 6, 0.82) 0%, rgba(8, 7, 6, 0.7) 48%, rgba(8, 7, 6, 0.86) 100%),
    url("images/mugshot.jpg") center 16% / cover no-repeat;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 3rem;
  align-items: end;
}
.hero-grid > *,
.case-grid > *,
.prose-grid > *,
.sign-block > *,
.scale > *,
.split-points > *,
.quote-row > *,
.ledger > *,
.finding > *,
.foot-grid > * {
  min-width: 0;
}
.kicker, .index, .tag, .caption, figcaption, .fine, .ledger-note, .bars-note, .scale-key, .source-foot, .poster p, .poster-to {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.kicker { color: #d7c3a2; margin-bottom: 1.2rem; max-width: 100%; overflow-wrap: anywhere; }
.lede { font-size: 1.28rem; max-width: 40rem; color: #ebe4da; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.4rem 0 1.8rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  text-decoration: none;
  padding: 0.85rem 1rem;
  min-height: 44px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  background: transparent;
}
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: white; }
.btn-ghost { border-color: rgba(242, 236, 227, 0.4); color: var(--paper); }
.btn-ghost:hover { border-color: white; }
.btn-red { background: var(--red); color: white; border-color: var(--red); }
.btn-red:hover { background: var(--red-deep); }
.btn-text { border-color: var(--line); color: var(--ink); }
.btn-text.light { border-color: var(--dark-line); color: var(--paper); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin: 0;
}
.stats div { border-top: 1px solid var(--dark-line); padding-top: 0.7rem; }
.stats dt {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b7adA1;
  margin-bottom: 0.35rem;
}
.stats dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.9rem;
  letter-spacing: -0.04em;
}
.stats dd small {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c8bfb3;
}

.exhibit { margin: 0; }
.exhibit-frame {
  background: #efe8de;
  padding: 0.55rem 0.55rem 0;
  box-shadow: var(--shadow);
}
.exhibit img { display: block; width: 100%; }
.exhibit figcaption {
  margin-top: 0.75rem;
  color: #c8bfb3;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.78rem;
  line-height: 1.45;
}
.exhibit figcaption span {
  display: block;
  color: #e7b7bc;
  letter-spacing: 0.12em;
  margin-bottom: 0.25rem;
}

.video-section { padding-top: 2.4rem; }
.video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 1rem;
  background: #111;
}
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-note {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.section, .sign-block, .hero, .video-section { scroll-margin-top: 4.5rem; }
.section { padding: 4.5rem 0; }
.section-head { max-width: 46rem; margin-bottom: 2.2rem; }
.section-head h2 { margin-top: 0.4rem; }
.index { color: var(--red); margin: 0 0 0.45rem; }

.case-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.75fr);
  gap: 2rem;
  align-items: start;
}
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  column-gap: 1.35rem;
  row-gap: 0.35rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}
.timeline h3,
.timeline p {
  grid-column: 2;
  min-width: 0;
}
.timeline p { margin-bottom: 0; }
.timeline time {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red);
  padding-top: 0.25rem;
}
.timeline p, .owner-card p { color: var(--ink-soft); }

.owner-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 0.7rem;
}
.owner-card img { display: block; width: 100%; }
.owner-card .caption {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  margin: 0.7rem 0.2rem 0.4rem;
}
.owner-card a { color: var(--red-deep); }
.owner-card dl { margin: 0.4rem 0 0; }
.owner-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding: 0.55rem 0.2rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.owner-card dt { color: var(--muted); }
.owner-card dd { margin: 0; }

.finding {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  margin-top: 2.4rem;
  padding: 1.4rem;
  background: var(--dark);
  color: var(--paper);
}
.finding-num {
  font-family: var(--serif);
  font-size: clamp(4rem, 8vw, 6.5rem);
  line-height: 0.8;
  letter-spacing: -0.05em;
  margin: 0;
  color: #f0d3a4;
}
.finding-num span {
  display: block;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: #e7b7bc;
  margin: 0.35rem 0;
}
.finding h3 { color: white; }
.finding p { color: #e6ded3; }

.quote-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.2rem;
}
blockquote {
  margin: 0;
  padding: 1rem 0 0;
  border-top: 2px solid var(--red);
}
blockquote p {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
blockquote footer, .pull footer {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-money { background: #efe7db; }
.poster { padding: 1.6rem 1.4rem 1.4rem; margin-bottom: 2rem; }
.poster-red { background: var(--red); color: white; }
.poster p { margin-bottom: 0.6rem; color: #f6d4d7; }
.poster-to {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
  max-width: 46rem;
  margin: 0.9rem 0 0;
  font-family: var(--text);
  line-height: 1.4;
}
.poster-red .poster-to { color: #f8e8e9; }

.prose-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: 1.5rem;
  align-items: start;
}
.question {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.prose p { color: var(--ink-soft); }

.ledger-title, .bars-title { margin: 2rem 0 0.4rem; }
.ledger-note, .bars-note, .pattern, .bars-foot { color: var(--muted); font-size: 1rem; }
.ledger {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 1rem;
}
.ledger article {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1rem 1rem 0.9rem;
  background-image: radial-gradient(circle at left, transparent 8px, var(--card) 8px);
}
.ledger time {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.amount {
  font-family: var(--serif);
  font-size: 2.3rem;
  letter-spacing: -0.04em;
  margin: 0.25rem 0;
}
.ledger h3 { font-size: 1.25rem; }
.ledger p { color: var(--ink-soft); font-size: 1.02rem; }
.ledger article.entry-wide {
  grid-column: 1 / -1;
  background: var(--dark);
  background-image: none;
  color: var(--paper);
  border-color: var(--dark);
}
.ledger article.entry-wide p,
.ledger article.entry-wide time { color: #ddd4c8; }
.ledger article.entry-wide h3,
.ledger article.entry-wide .amount { color: white; }
.tag {
  display: inline-block;
  border: 1px solid var(--line);
  padding: 0.25rem 0.4rem;
  color: var(--muted);
}
.entry-wide .tag { border-color: var(--dark-line); color: #f0d3a4; }
.pattern { margin-top: 1rem; }

.demands {
  margin-top: 2rem;
  padding-top: 0.2rem;
}
.demands ol { margin: 0.8rem 0 0; padding: 0; list-style: none; counter-reset: demand; }
.demands li {
  counter-increment: demand;
  position: relative;
  padding: 0.9rem 0 0.9rem 3.2rem;
  border-top: 1px solid var(--line);
}
.demands li::before {
  content: counter(demand, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.95rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--red);
}
.demands ul { margin: 0.55rem 0 0; padding-left: 1.1rem; }
.demands-note { color: var(--muted); font-size: 1rem; }

.sign-block {
  margin-top: 1.6rem;
  padding: 1.2rem;
  background: var(--card);
  border: 1px solid var(--line);
}
.fields { display: grid; gap: 0.75rem; }
.row-3 { display: grid; grid-template-columns: 1.4fr 0.6fr 0.8fr; gap: 0.75rem; }
label {
  display: grid;
  gap: 0.3rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
label span { text-transform: none; letter-spacing: 0; }
input, textarea {
  width: 100%;
  border: 1px solid #cfc3b3;
  background: white;
  padding: 0.8rem 0.7rem;
  font-family: var(--text);
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  min-height: 44px;
}
textarea { resize: vertical; }
.form-status { min-height: 1.3rem; margin: 0.7rem 0; font-size: 1rem; }
.form-status.is-error { color: var(--red-deep); }
.form-status.is-ok { color: #1d6b3a; }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.fine { color: var(--muted); font-size: 0.82rem; text-transform: none; letter-spacing: 0; font-family: var(--text); margin: 0.8rem 0 0; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.section-league { background: var(--dark-2); color: var(--paper); }
.poster-dark { background: transparent; border: 1px solid var(--dark-line); padding-left: 0; padding-right: 0; }
.poster-dark p { color: #e7b7bc; }
.giant {
  display: block;
  font-size: clamp(4.5rem, 12vw, 8.5rem);
  letter-spacing: -0.06em;
  color: #f0d3a4;
}
.poster-dark .poster-to { color: #ddd4c8; }
.prose-on-dark p { color: #e6ded3; }
.prose-on-dark .question { color: white; }

.scale {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.5rem;
  align-items: center;
  margin-top: 1.5rem;
}
.scale h3 { color: white; }
.scale p { color: #ddd4c8; }
.scale-key { display: flex; gap: 0.55rem; align-items: flex-start; text-transform: none; letter-spacing: 0; font-family: var(--text); font-size: 0.95rem; }
.scale-key i, .dots i.is-fine {
  width: 0.7rem;
  height: 0.7rem;
  background: #f0d3a4;
  display: inline-block;
  flex: none;
  margin-top: 0.28rem;
}
.dots {
  display: grid;
  grid-template-columns: repeat(40, 1fr);
  gap: 3px;
}
.dots i {
  display: block;
  min-width: 0;
  aspect-ratio: 1;
  background: rgba(242, 236, 227, 0.18);
}
.dots i.is-fine { background: #f0d3a4; }

.bars { list-style: none; margin: 0.8rem 0 0; padding: 0; }
.bar-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.bars li { margin: 0 0 0.9rem; }
.track { height: 0.7rem; background: rgba(242, 236, 227, 0.12); }
.track span { display: block; height: 100%; background: #c8bfb3; }
.is-york .track span { background: var(--red); }
.bars-title { color: white; }
.bars-note, .bars-foot { color: #c8bfb3; }

.split-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.4rem;
}
.split-points article { border-top: 1px solid var(--dark-line); padding-top: 0.9rem; }
.split-points h3 { color: white; font-size: 1.45rem; }
.split-points p { color: #ddd4c8; }

.pull {
  margin-top: 1.6rem;
  border-top-color: #f0d3a4;
  max-width: 40rem;
}
.pull p { color: white; font-size: clamp(2rem, 4vw, 3rem); }
.pull footer { color: #c8bfb3; }

.demands-dark li { border-top-color: var(--dark-line); }
.demands-dark li::before { color: #f0d3a4; }
.demands-dark h3 { color: white; }
.section-league .demands-note { color: #c8bfb3; }

.sign-block-dark {
  background: #141210;
  border-color: var(--dark-line);
}
.sign-block-dark label { color: #c8bfb3; }
.sign-block-dark input, .sign-block-dark textarea { background: #211e1b; border-color: #3a342e; color: var(--paper); }
.sign-block-dark .fine { color: #b7ada1; }
.sign-block-dark .form-status.is-ok { color: #b7e0c4; }

.sources { background: var(--paper); }
.source-list { margin: 0; padding: 0; list-style: none; }
.source-list li {
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}
.source-list a { color: var(--red-deep); }
.source-foot { margin-top: 1rem; color: var(--muted); font-size: 0.95rem; text-transform: none; letter-spacing: 0; font-family: var(--text); }

.site-foot {
  background: var(--dark);
  color: #ddd4c8;
  padding: 2rem 0 5.5rem;
}
.foot-grid { display: flex; justify-content: space-between; gap: 2rem; }
.site-foot .wordmark-text { color: white; display: block; margin-bottom: 0.4rem; }
.site-foot a { display: block; color: var(--paper); margin-bottom: 0.35rem; }
.site-foot .donate {
  display: inline-flex;
  width: auto;
  margin: 0.4rem 0 0.9rem;
  color: var(--ink);
}
.site-foot p { max-width: 36rem; }

.dock {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9;
  grid-template-columns: 1fr 1fr;
  background: var(--dark);
  border-top: 1px solid var(--dark-line);
}
.dock a {
  color: var(--paper);
  text-decoration: none;
  text-align: center;
  padding: 0.9rem 0.4rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.dock a + a { border-left: 1px solid var(--dark-line); background: var(--red); }

@media (max-width: 980px) {
  .hero-grid, .case-grid, .prose-grid, .sign-block, .scale, .split-points, .quote-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .ledger { grid-template-columns: 1fr; }
  .finding { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 0.25rem; }
  .timeline h3, .timeline p, .timeline time { grid-column: 1; grid-row: auto; }
  .foot-grid { flex-direction: column; }
}
@media (max-width: 720px) {
  body { font-size: 1.05rem; }
  h1 { font-size: clamp(1.7rem, 7.6vw, 2.45rem); line-height: 1.02; }
  h2 { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .wrap { width: min(var(--wrap), calc(100% - 1.5rem)); }
  .nav {
    align-items: flex-start;
    flex-wrap: wrap;
    padding-top: max(0.85rem, env(safe-area-inset-top));
  }
  .nav-links { width: 100%; flex-wrap: wrap; gap: 0.7rem 1rem; }
  .kicker { margin-bottom: 0.75rem; }
  .lede { font-size: 1.05rem; }
  .hero { padding: 1.15rem 0 0.4rem; }
  .hero-actions { margin: 0.9rem 0 0.85rem; }
  main { padding-bottom: calc(4.75rem + env(safe-area-inset-bottom)); }
  .section { padding: 2.6rem 0; }
  .stats { gap: 0.55rem; }
  .stats dd { font-size: 1.55rem; }
  .hero-actions .btn, .form-actions .btn { width: 100%; }
  .form-actions { flex-direction: column; }
  .row-3 { grid-template-columns: 1fr; }
  .sign-block { padding: 1rem 0.85rem 1.1rem; }
  .dock {
    display: grid;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .dock a { min-height: 48px; }
  .site-foot { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
  .dots { grid-template-columns: repeat(25, 1fr); }
}
@media (min-width: 981px) {
  .hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    padding: 4.5rem 0;
    background:
      linear-gradient(90deg, rgba(8, 7, 6, 0.9) 0%, rgba(8, 7, 6, 0.78) 34%, rgba(8, 7, 6, 0.42) 58%, rgba(8, 7, 6, 0.22) 100%),
      url("images/mugshot.jpg") 72% 18% / cover no-repeat;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 36rem);
    align-items: center;
  }
  .hero h1 {
    font-size: 2.5rem;
    line-height: 1.16;
    letter-spacing: -0.02em;
    max-width: 16em;
  }
  .hero .exhibit { margin-top: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
