@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Manrope:wght@400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

:root {
  /* chalk-paper day / pitch-night dark, validated with dataviz/scripts/validate_palette.js */
  --surface-1: #ffffff;
  --page-plane: #f4f1e8;
  --text-primary: #12160f;
  --text-secondary: #565d4e;
  --muted: #85806a;
  --gridline: #ddd6c3;
  --baseline: #ddd6c3;
  --border: rgba(18, 22, 15, 0.12);

  --pitch: #1f6b3f;
  --pitch-wash: rgba(31, 107, 63, 0.08);
  --accent: #a8720a;
  --accent-wash: rgba(168, 114, 10, 0.10);
  --red-card: #c23b3b;
  --red-card-wash: rgba(194, 59, 59, 0.10);

  --gold-1: #d4af37;
  --silver-1: #9aa0a6;
  --bronze-1: #b5713a;

  --font-display: "Bebas Neue", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SF Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface-1: #123324;
    --page-plane: #0a2318;
    --text-primary: #f3f1e7;
    --text-secondary: #b9c2ae;
    --muted: #7f9184;
    --gridline: #234a34;
    --baseline: #234a34;
    --border: rgba(243, 241, 231, 0.14);

    --pitch: #57a876;
    --pitch-wash: rgba(87, 168, 118, 0.14);
    --accent: #cf9b2e;
    --accent-wash: rgba(207, 155, 46, 0.16);
    --red-card: #e36767;
    --red-card-wash: rgba(227, 103, 103, 0.16);
  }
}

/* the hero band is deliberately always "under the floodlights", independent
   of light/dark mode — the one fixed, committed color moment on the page */
:root {
  --hero-bg: #0f2e1e;
  --hero-bg-2: #123a26;
  --hero-ink: #f5f3ec;
  --hero-ink-soft: #b9c2ae;
  --hero-gold: #e0b039;
  --hero-line: rgba(245, 243, 236, 0.14);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--page-plane);
  color: var(--text-primary);
  font-family: var(--font-body);
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---- hero band: the one fixed "under the floodlights" color moment, shared by every page ---- */

.hero-band {
  background: radial-gradient(120% 160% at 15% 0%, var(--hero-bg-2), var(--hero-bg) 70%);
  border-bottom: 1px solid var(--hero-line);
  padding: 12px 24px 48px;
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--hero-gold);
  margin: 24px 0 4px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 24px;
  font-size: 13px;
  gap: 12px;
}

.topbar-mark {
  font-family: var(--font-display);
  font-size: 1.375rem;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  text-decoration: none;
}

.topbar-nav {
  display: flex;
  gap: 16px;
  align-items: center;
}

.topbar-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8125rem;
}

.topbar-nav a:hover {
  color: var(--accent);
}

.topbar-meta {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

@media (max-width: 420px) {
  .topbar-meta { display: none; }
}
