/* ─────────────────────────────────────────────────────────────────────────────
   GameDay Music — the design system.

   A graphic-design website about sport and music. No athletes, no stadiums,
   no simulation. The vocabulary is: oversized type, flat vector equipment,
   scoreboards, and sound made visible.

   ── Typography ──────────────────────────────────────────────────────────────
   Two faces doing two jobs. Barlow Condensed is the scoreboard voice — it is
   what stadium signage, jersey numbers and fixture boards actually look like,
   and it sets tight enough that a headline becomes a graphic block rather
   than a line of words. Inter carries everything a person has to read.

   Type here is ART DIRECTION, not labelling. The display sizes go far past
   what a caption needs because the word IS the picture: "NOW BATTING" at
   11rem is the composition, and the baseball is the counterweight.

   ── Colour ──────────────────────────────────────────────────────────────────
   One near-black ground across the whole site, deliberately deeper than the
   app's own #16161F so the phone reads as a lit object sitting ON the page
   rather than a hole cut out of it. Each sport then owns two accents — one
   hot, one cool — and nothing else changes. Switching sport should feel like
   a gel change, not a new website.

   ── Motion ──────────────────────────────────────────────────────────────────
   Three rules, applied everywhere:
     1. MASS. Big things move less and later. A 12rem word travels 20px; a
        caption travels 60px. Everything arriving at once at the same speed
        is what makes motion look cheap.
     2. ONE CURVE FAMILY. expo.out for entrances, power2.inOut for moves,
        back.out only for a deliberate pop. Mixed easing reads as mixed
        authorship.
     3. AUDIO DRIVES A FEW THINGS, NOT EVERYTHING. The waveform, one word and
        the ball's spin react to the music. If everything pulses, nothing is
        emphasised and the page looks like a screensaver.
   ──────────────────────────────────────────────────────────────────────────── */

:root {
  /* ── Ground ─────────────────────────────────────────────────────────────── */
  --g-0: #07070B;        /* page */
  --g-1: #0E0E15;        /* raised block */
  --g-2: #15151E;        /* card */
  --g-3: #1E1E29;        /* hairline fill */
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.045);

  /* ── Ink ────────────────────────────────────────────────────────────────── */
  --ink: #F7F7FA;
  --ink-2: #A9A9B8;
  --ink-3: #6B6B7C;

  /* ── The app's own dark theme. Read from GameDayTheme.swift; not ours. ──── */
  --app-bg: #16161F;
  --app-card: #1C1C26;
  --app-elev: #24242F;
  --app-text: #D0D0DA;
  --app-text-2: #6A6A7A;
  --app-sep: rgba(255, 255, 255, 0.07);
  --app-fill: rgba(255, 255, 255, 0.04);
  --gd-blue: #2B5CE6;
  --gd-orange: #FF6B35;
  --row-red: #FF3B30;
  --row-green: #34C759;
  --row-orange: #FF9500;
  --row-blue: #007AFF;
  --row-purple: #AF52DE;
  --row-teal: #30B0C7;
  --star: #FFC107;
  --warn: #FFB020;     /* a notice in the page's own voice, not an app row */

  /* ── Sport accents. Two per sport: one hot, one cool. ───────────────────── */
  --bb-hot: #FF5A1F;     /* baseball — clay */
  --bb-cool: #FFD23F;    /*            gold */
  --hk-hot: #FF2E63;     /* hockey — goal light */
  --hk-cool: #19C2FF;    /*          ice */
  --fb-hot: #FFB703;     /* football — amber */
  --fb-cool: #39D98A;    /*            turf */

  /* The live pair. The sport switch writes these and nothing else. */
  --hot: var(--bb-hot);
  --cool: var(--bb-cool);

  /* ── Type ───────────────────────────────────────────────────────────────── */
  --f-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --f-body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* The hand on the poster: the instruction scrawl, and nothing else. */
  --f-mark: "Permanent Marker", "Bradley Hand", "Comic Sans MS", cursive;
  --f-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --f-app: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;

  /* A display scale that actually goes big. The top two steps are graphic
     elements, not headings. */
  --t-mega: clamp(4.5rem, 2rem + 13vw, 13rem);
  --t-xxl: clamp(3rem, 1.4rem + 8vw, 8rem);
  --t-xl: clamp(2.2rem, 1.3rem + 4.4vw, 4.6rem);
  --t-lg: clamp(1.5rem, 1.1rem + 1.8vw, 2.4rem);
  --t-md: clamp(1.05rem, 0.98rem + 0.4vw, 1.25rem);
  --t-sm: clamp(0.92rem, 0.88rem + 0.2vw, 1rem);
  --t-xs: 0.8rem;

  /* ── Grid & shape ───────────────────────────────────────────────────────── */
  --max: 1440px;
  --gut: clamp(18px, 4.2vw, 64px);
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 26px;

  /* ── Motion ─────────────────────────────────────────────────────────────── */
  --e-out: cubic-bezier(0.16, 1, 0.3, 1);
  /* Aliases kept for phone.css, which is the faithful reproduction of the
     app's own screen — it is deliberately not churned to follow the site's
     renames, because every value in it is traceable to the app. */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 160ms;
  --t-mid: 340ms;
  --shadow-phone: 0 40px 110px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --e-io: cubic-bezier(0.65, 0, 0.35, 1);
  --t-1: 180ms;
  --t-2: 420ms;
  --t-3: 820ms;
}

/* Single-theme by intent: this is a night broadcast. Every colour is explicit
   and the page paints its own ground, so nothing is inherited from the host. */

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--g-0); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--g-0);
  color: var(--ink);
  font: 400 var(--t-md)/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Display type ─────────────────────────────────────────────────────────── */
.d {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 0.84;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  margin: 0;
  text-wrap: balance;
}
.d-mega { font-size: var(--t-mega); }
.d-xxl { font-size: var(--t-xxl); }
.d-xl { font-size: var(--t-xl); }
.d-lg { font-size: var(--t-lg); }

/* Every heading wears the display face by default.
   This lived in the old tokens.css and was lost when that file was replaced,
   which left every section h2 and h3 falling back to the body font at the
   browser's own size — eight sections rendering as a different website from
   the hero. The `.d-*` classes below set SIZE; this sets VOICE, so an
   unclassed heading is still correct. */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: balance;
  margin: 0;
}

/* The wide-tracked small caps that label everything on a scoreboard. */
.eyebrow {
  font-family: var(--f-body);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hot);
}

/* Numerals that behave in a column. */
.num { font-variant-numeric: tabular-nums; font-family: var(--f-display); }

p { margin: 0; }
a { color: inherit; }
img, canvas, svg { display: block; max-width: 100%; }

button {
  font: inherit; color: inherit; background: none; border: 0;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--cool);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Layout ───────────────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }

.sec { position: relative; padding-block: clamp(72px, 11vh, 150px); }

/* ── Shared components ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: var(--t-sm); letter-spacing: 0.01em;
  text-decoration: none; color: var(--g-0); background: var(--ink);
  transition: transform var(--t-1) var(--e-out), background var(--t-1);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-hot { background: var(--hot); color: #140A04; }
.btn-ghost {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); }

.card {
  background: var(--g-1);
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: clamp(22px, 3vw, 38px);
}

/* A hairline rule with a sport-accent cap — the recurring divider. */
.rule { height: 1px; background: var(--line); position: relative; }
.rule::after {
  content: ""; position: absolute; left: 0; top: -1px;
  width: 64px; height: 3px; background: var(--hot); border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
