@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 640;
  font-display: swap;
  src: url("/static/fonts/fraunces-640.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 520;
  font-display: swap;
  src: url("/static/fonts/fraunces-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/outfit-400.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/outfit-500.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/outfit-600.woff2") format("woff2");
}

:root {
  --ink: #172228;
  --muted: #5c675f;
  --paper: #f3eee4;
  --paper-2: #e7e0d2;
  --deep: #102229;
  --deep-2: #17343c;
  --cream: #f6f1e7;
  --line: rgba(23, 34, 40, 0.12);
  --caught: #1b6a54;
  --caught-ink: #145444;
  --miss: #c44732;
  --miss-ink: #9c3322;
  --false: #d7b15e;
  --false-ink: #8a5a12;
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, a { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--deep);
  outline-offset: 3px;
}

.hero :focus-visible { outline-color: var(--cream); }

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

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

.hero {
  background:
    radial-gradient(900px 480px at 100% -10%, rgba(90, 150, 140, 0.28), transparent 55%),
    radial-gradient(700px 420px at -10% 80%, rgba(196, 71, 50, 0.16), transparent 50%),
    linear-gradient(165deg, #0c1c22 0%, #14343c 52%, #102229 100%);
  color: var(--cream);
  padding: max(1.1rem, env(safe-area-inset-top)) 0 2.4rem;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.4rem 0 1.6rem;
}

.brand {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 520;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  margin: 0;
  color: inherit;
  text-decoration: none;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.tracker {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(246, 241, 231, 0.4);
  padding-bottom: 0.05rem;
}

.langs {
  display: inline-flex;
  border: 1px solid rgba(246, 241, 231, 0.28);
  border-radius: 999px;
  padding: 0.15rem;
}

.langs button {
  border: 0;
  background: transparent;
  color: rgba(246, 241, 231, 0.7);
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.langs button[aria-pressed="true"] {
  background: var(--cream);
  color: var(--deep);
}

.kicker {
  margin: 0 0 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(246, 241, 231, 0.72);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
  gap: 2.5rem 3.5rem;
  align-items: center;
}

h1 {
  margin: 0;
  font-weight: 640;
}

.hero-pct {
  display: block;
  font-family: var(--serif);
  font-weight: 640;
  font-size: clamp(6.4rem, 16vw, 11.2rem);
  line-height: 0.8;
  letter-spacing: -0.05em;
}

.hero-dec {
  font-size: 0.38em;
  letter-spacing: -0.04em;
  margin-left: 0.04em;
}

.hero-claim {
  display: block;
  margin-top: 0.85rem;
  max-width: 16ch;
  font-family: var(--serif);
  font-weight: 640;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-punch {
  margin: 1.15rem 0 0;
  max-width: 36rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 520;
  font-size: 1.28rem;
  line-height: 1.35;
  color: rgba(246, 241, 231, 0.88);
}

.station-line {
  margin: 0.9rem 0 0;
  color: rgba(246, 241, 231, 0.62);
  font-size: 0.92rem;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  align-items: center;
  margin-top: 1.6rem;
}

.places, .leads {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.places button, .leads button {
  border: 1px solid rgba(246, 241, 231, 0.24);
  background: transparent;
  color: rgba(246, 241, 231, 0.78);
  border-radius: 999px;
  padding: 0.42rem 0.8rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

.places button[aria-pressed="true"],
.leads button[aria-pressed="true"] {
  background: var(--cream);
  color: var(--deep);
  border-color: var(--cream);
}

.fields { display: grid; gap: 1.15rem; }

.field-label {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(246, 241, 231, 0.62);
}

.dots {
  display: grid;
  grid-template-columns: repeat(22, 1fr);
  gap: 4px;
}

.dot {
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(246, 241, 231, 0.2);
}

.dot.hit { background: #8fd0b8; }
.dot.miss { background: #ef8d7c; }
.dot.false { background: var(--false); }

.field-caption {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: rgba(246, 241, 231, 0.7);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.1rem;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: rgba(246, 241, 231, 0.72);
}

.legend i {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  margin-right: 0.35rem;
  vertical-align: 0.05em;
}

.legend .hit { background: #8fd0b8; }
.legend .miss { background: #ef8d7c; }
.legend .false { background: var(--false); }

.band {
  padding: 3rem 0;
}

.band h2, .ink-band h2 {
  font-family: var(--serif);
  font-weight: 640;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 0.8rem;
  max-width: 28ch;
}

.lede {
  margin: 0 0 1.15rem;
  max-width: 40rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 520;
  font-size: 1.35rem;
  line-height: 1.35;
}

.ledger {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.ledger article {
  padding: 1.1rem 0 0.2rem;
  border-top: 1px solid var(--line);
}

.ledger .num {
  display: block;
  font-family: var(--serif);
  font-weight: 640;
  font-size: clamp(3.4rem, 7vw, 5.4rem);
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.ledger .hit { color: var(--caught-ink); }
.ledger .miss { color: var(--miss-ink); }
.ledger .false { color: var(--false-ink); }

.ledger p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.seasons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.season {
  border-radius: 1.4rem;
  padding: 1.4rem 1.4rem 1.5rem;
}

.season.summer { background: #f3e4d2; }
.season.autumn { background: #e3eee8; }

.season .eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.season .num {
  display: block;
  margin-top: 0.8rem;
  font-family: var(--serif);
  font-weight: 640;
  font-size: clamp(4rem, 8vw, 6.2rem);
  letter-spacing: -0.045em;
  line-height: 0.85;
}

.season p { margin: 0.7rem 0 0; }

.ink-band {
  background: var(--deep);
  color: var(--cream);
  padding: 2.8rem 0;
}

.ink-band h2 { max-width: 22ch; }

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.compare article {
  border-top: 1px solid rgba(246, 241, 231, 0.2);
  padding-top: 0.9rem;
}

.compare .num {
  display: block;
  font-family: var(--serif);
  font-weight: 640;
  font-size: clamp(3.6rem, 8vw, 6rem);
  letter-spacing: -0.045em;
  line-height: 0.85;
}

.compare p { margin: 0.55rem 0 0; color: rgba(246, 241, 231, 0.72); }

.ink-band .lede { color: rgba(246, 241, 231, 0.9); }

.spell-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.4rem;
  margin: 0.4rem 0 1rem;
}

.spell {
  width: 0.7rem;
  height: 2.7rem;
  border-radius: 999px;
  background: var(--caught);
}

.spell.miss {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--miss);
}

.pop-list { margin-top: 0.6rem; }

.pop-row {
  display: grid;
  grid-template-columns: 5.2rem minmax(0, 1fr) 4.2rem;
  gap: 0.75rem;
  align-items: center;
  margin: 0.42rem 0;
}

.pop-row.thin { opacity: 0.55; }

.pop-name, .pop-rate {
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
}

.pop-rate { text-align: right; font-weight: 600; }

.pop-track {
  position: relative;
  height: 0.72rem;
  background: rgba(23, 34, 40, 0.08);
  border-radius: 999px;
}

.pop-bar {
  height: 100%;
  border-radius: inherit;
  background: var(--deep-2);
  min-width: 2px;
}

.pop-mark {
  position: absolute;
  top: -0.22rem;
  width: 2px;
  height: 1.16rem;
  background: var(--miss);
  transform: translateX(-1px);
}

.pop-note {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.dial {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.4rem;
}

.dial th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 0.6rem 0.55rem 0;
}

.dial td {
  padding: 0.72rem 0.6rem 0.72rem 0;
  border-top: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}

.dial tr.used td {
  background: rgba(214, 177, 94, 0.16);
}

.dial td:first-child, .dial th:first-child { padding-left: 0.45rem; }

.towns { margin-top: 0.4rem; }

.town {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto auto;
  gap: 0.8rem 1.2rem;
  align-items: baseline;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 0.95rem 0.2rem;
  cursor: pointer;
  color: inherit;
}

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

.town.current { background: rgba(27, 106, 84, 0.06); }

.town .who {
  font-weight: 500;
}

.town small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  margin-top: 0.15rem;
}

.town .pod, .town .far {
  font-family: var(--serif);
  font-weight: 640;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.town .far {
  color: var(--false-ink);
  min-width: 5.5rem;
  text-align: right;
}

.town .pod { min-width: 5.5rem; text-align: right; }

.colhead {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto auto;
  gap: 0.8rem 1.2rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-bottom: 0.35rem;
}

.colhead span:nth-child(2),
.colhead span:nth-child(3) { text-align: right; min-width: 5.5rem; }

.hours {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 0.28rem;
  height: 9.2rem;
  align-items: end;
  margin-top: 1.2rem;
}

.hour {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  min-width: 0;
}

.hour i {
  display: block;
  width: 100%;
  border-radius: 5px 5px 2px 2px;
  min-height: 3px;
}

.hour span {
  display: block;
  margin-top: 0.35rem;
  text-align: center;
  font-size: 0.62rem;
  color: var(--muted);
  height: 0.8rem;
}

.foot {
  background: var(--deep);
  color: rgba(246, 241, 231, 0.78);
  padding: 2.2rem 0 max(2rem, env(safe-area-inset-bottom));
}

.foot p { margin: 0 0 0.8rem; max-width: 46rem; }

.foot a { color: var(--cream); }

.loading, .noscript {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
}

.noscript { padding: 2rem; }

@media (max-width: 860px) {
  .hero-grid, .seasons, .compare, .ledger { grid-template-columns: 1fr; }
  .hero { padding-bottom: 2.4rem; }
  .band { padding: 2.4rem 0; }
  .dots { grid-template-columns: repeat(18, 1fr); }
  .town, .colhead { grid-template-columns: minmax(0, 1fr) auto auto; }
  .hero-claim { max-width: 22ch; }
}

@media (max-width: 560px) {
  .pop-row { grid-template-columns: 4.2rem minmax(0, 1fr) 3.2rem; gap: 0.45rem; }
  .dial th:nth-child(4), .dial td:nth-child(4) { display: none; }
  .hours { gap: 0.15rem; height: 7.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
