:root {
  --bg: #f6f4ef;
  --ink: #1b1d1f;
  --muted: #6b6f74;
  --line: #dedad1;
  --card: #ffffff;
  --accent: #e8551f;
  --target: #9aa3ad;
  --good: #2f7d4f;
  --bad: #b3361b;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121315; --ink: #f1efea; --muted: #9a9ea4; --line: #2a2c30;
    --card: #1b1d20; --accent: #ff6a33; --target: #6c747d; --good: #5cc48a; --bad: #ff7b5c;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }
header { padding-top: 48px; }
.eyebrow { margin: 0 0 8px; color: var(--muted); font-size: 14px; letter-spacing: .04em; }
h1 { margin: 0; font-size: clamp(32px, 7vw, 56px); line-height: 1.05; letter-spacing: -.02em; }
h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 48px 0 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.hero { margin-top: 36px; }
.big { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.num { font-size: clamp(48px, 12vw, 88px); font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.unit { color: var(--muted); font-size: 18px; }
.bar { position: relative; height: 14px; border-radius: 7px; background: var(--line); margin: 16px 0 12px; }
.fill { height: 100%; width: 0; border-radius: 7px; background: var(--accent); transition: width .6s ease; }
.marker { position: absolute; top: -5px; width: 2px; height: 24px; background: var(--ink); left: 0; }
.status { margin: 0; font-size: 17px; }
.status .good { color: var(--good); font-weight: 600; }
.status .bad { color: var(--bad); font-weight: 600; }

.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 32px; }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; }
.tile.hl { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.tile.hl .value { color: var(--accent); }
.label { font-size: 13px; color: var(--muted); }
.value { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; margin: 2px 0; }
.sub { font-size: 12px; color: var(--muted); }

.chart svg { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; }
.chart .target { stroke: var(--target); stroke-width: 2; stroke-dasharray: 5 5; fill: none; }
.chart .actual { stroke: var(--accent); stroke-width: 3; fill: none; stroke-linejoin: round; }
.legend { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.key { display: inline-block; width: 18px; height: 3px; margin-left: 10px; }
.key.actual { background: var(--accent); margin-left: 0; }
.key.target { background: repeating-linear-gradient(90deg, var(--target) 0 5px, transparent 5px 10px); }

.months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 160px; }
.month { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.month .col { width: 100%; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 2px; }
.month .col.under { opacity: .55; }
.month .m { font-size: 11px; color: var(--muted); margin-top: 4px; }
.month .v { font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; margin-bottom: 2px; }

.races { list-style: none; padding: 0; margin: 0; }
.races li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; display: flex; justify-content: space-between; gap: 12px; }
.races .name { font-weight: 600; }
.races .meta { color: var(--muted); font-size: 14px; }
.races .days { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--accent); font-weight: 600; }
.races .empty { color: var(--muted); justify-content: flex-start; }
.races a { color: inherit; }

footer { margin: 56px auto 40px; color: var(--muted); font-size: 13px; }
footer p { margin: 4px 0; }
footer a { color: var(--accent); }
