:root {
  --court: #102117;
  --ink: #f4efe4;
  --muted: #9aab9a;
  --line: rgba(244, 239, 228, 0.18);
  --ball: #e4ff5a;
  --hard: #7eb6e0;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background:
    radial-gradient(ellipse at 50% -10%, rgba(228, 255, 90, 0.1), transparent 46%),
    var(--court);
  color: var(--ink);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 14px;
  line-height: 1.5;
}
.wrap {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 28px max(20px, env(safe-area-inset-right)) 72px max(20px, env(safe-area-inset-left));
}
header { display: flex; align-items: center; gap: 12px; }
header b {
  font-family: Syne, sans-serif;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
}
.court { width: 54px; height: 30px; }
.court line, .court rect { stroke: var(--ball); fill: none; stroke-width: 1.4; }
.kicker {
  margin: 48px 0 0;
  font-family: Syne, sans-serif;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hard);
}
h1 {
  margin: 8px 0 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(48px, 12vw, 84px);
  letter-spacing: -0.04em;
  line-height: 0.88;
}
h1 em { font-style: italic; color: var(--ball); }
.lede { max-width: 42ch; color: var(--muted); margin: 18px 0 0; }
.doors { margin: 28px 0 0; }
.doors a {
  display: inline-block;
  background: var(--ball);
  color: var(--court);
  text-decoration: none;
  font-family: Syne, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 16px;
}
.credit { max-width: 52ch; color: var(--muted); margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
a { color: var(--ball); }
.wrap.charts { width: min(920px, 100%); }
.wrap.charts h1 { font-size: clamp(40px, 8vw, 64px); }
.back { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ball); }
.section-title {
  margin: 42px 0 8px;
  font-family: Syne, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 13px;
}
.chart { margin: 28px 0 48px; }
.chart h2 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: 36px;
  letter-spacing: -0.03em;
}
.chart .note { color: var(--muted); max-width: 62ch; }
.map {
  background: #fff;
  margin: 14px 0 0;
}
.map svg { width: 100%; height: auto; display: block; }
.detail h3 { margin: 0; font-family: Syne, sans-serif; font-size: 16px; }
.detail .meta { color: var(--muted); margin: 4px 0 0; }
.defs { margin: 14px 0 0; max-width: 68ch; }
.defs p { margin: 0 0 10px; color: var(--muted); }
.defs b { color: var(--ink); font-weight: 600; }
.row { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
button.save {
  font-family: Syne, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 0;
  background: var(--ball);
  color: var(--court);
  padding: 12px 16px;
  cursor: pointer;
}
button.save:disabled { opacity: 0.45; cursor: wait; }
.status { color: #e07a3d; min-height: 1.2em; }
