/* ==================================================================
   TOKENS — fonts, colors, and the base reset. Identical to Watch
   Temple on purpose: TYW keeps the exact same visual identity.
   Color mode is 100% automatic (prefers-color-scheme) — no toggle.
   ================================================================== */

/* Self-hosted fonts (latin subset) — no request to Google. */
@font-face{ font-family:'Bodoni Moda'; font-style:normal; font-weight:500; font-display:swap; src:url('/fonts/bodoni-moda-500.woff2') format('woff2'); }
@font-face{ font-family:'Bodoni Moda'; font-style:normal; font-weight:600; font-display:swap; src:url('/fonts/bodoni-moda-600.woff2') format('woff2'); }
@font-face{ font-family:'Bodoni Moda'; font-style:normal; font-weight:700; font-display:swap; src:url('/fonts/bodoni-moda-700.woff2') format('woff2'); }
@font-face{ font-family:'Bodoni Moda'; font-style:italic; font-weight:500; font-display:swap; src:url('/fonts/bodoni-moda-500-italic.woff2') format('woff2'); }
@font-face{ font-family:'Bodoni Moda'; font-style:italic; font-weight:600; font-display:swap; src:url('/fonts/bodoni-moda-600-italic.woff2') format('woff2'); }
@font-face{ font-family:'Inter'; font-style:normal; font-weight:400; font-display:swap; src:url('/fonts/inter-400.woff2') format('woff2'); }
@font-face{ font-family:'Inter'; font-style:normal; font-weight:500; font-display:swap; src:url('/fonts/inter-500.woff2') format('woff2'); }
@font-face{ font-family:'Inter'; font-style:normal; font-weight:600; font-display:swap; src:url('/fonts/inter-600.woff2') format('woff2'); }
@font-face{ font-family:'Inter'; font-style:normal; font-weight:700; font-display:swap; src:url('/fonts/inter-700.woff2') format('woff2'); }
@font-face{ font-family:'IBM Plex Mono'; font-style:normal; font-weight:500; font-display:swap; src:url('/fonts/ibm-plex-mono-500.woff2') format('woff2'); }

:root{
  /* Light — cinema lobby marble */
  --bg: #f6f0e2;
  --bg-elevated: #fffaf0;
  --ink: #2a1610;
  --ink-soft: #7c6a5a;
  --velvet: #6e1f30;
  --velvet-soft: #8f3245;
  --gold: #a5791f;
  --gold-bright: #c9a227;
  --divider: rgba(42,22,16,0.14);
  --shadow: 0 10px 26px -12px rgba(42,22,16,0.22), 0 2px 6px rgba(42,22,16,0.08);
  --focus-ring: #6e1f30;
  color-scheme: light;
}
@media (prefers-color-scheme: dark){
  :root{
    /* Dark — house lights down, curtain closed */
    --bg: #150d0c;
    --bg-elevated: #211613;
    --ink: #f3e9da;
    --ink-soft: #b5a290;
    --velvet: #b23a4d;
    --velvet-soft: #cf5164;
    --gold: #c9a227;
    --gold-bright: #e2bf52;
    --divider: rgba(243,233,218,0.12);
    --shadow: 0 16px 34px -10px rgba(0,0,0,0.6), 0 2px 8px rgba(0,0,0,0.4);
    --focus-ring: #e2bf52;
    color-scheme: dark;
  }
}

/* Fixed theatre colours for the marquee header only — it keeps its
   "always lit" look in both modes on purpose. Everything else follows
   the system light/dark setting. */
:root{
  --marquee-top: #3a0f1c;
  --marquee-bottom: #1c0910;
  --marquee-ink: #f3e6c9;
}

/* Duotone poster fallback gradients (used only when TMDB or a
   competition has no image) — built from the palette above, so they
   switch automatically with light/dark. */
:root{
  --poster-1: linear-gradient(155deg, var(--velvet) 0%, var(--ink) 130%);
  --poster-2: linear-gradient(155deg, var(--gold) 0%, var(--ink) 130%);
  --poster-3: linear-gradient(155deg, var(--velvet-soft) 0%, var(--ink) 130%);
  --poster-4: linear-gradient(155deg, var(--gold-bright) 0%, var(--velvet) 130%);
  --poster-5: linear-gradient(155deg, var(--velvet-soft) 0%, var(--gold) 130%);
}

/* Live event red — the only accent border color left on sport thumbs. */
:root{
  --live-red: #c0392b;
}

*, *::before, *::after{ box-sizing: border-box; }
html, body{ height: 100%; }
html{ touch-action: manipulation; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: contain;
}
.display{ font-family:'Bodoni Moda', serif; font-style: italic; font-weight: 600; letter-spacing: -0.01em; }
.mono{ font-family:'IBM Plex Mono', monospace; }
button{ font-family: inherit; }
:focus-visible{ outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* All text inputs at 16px minimum — stops iOS Safari zooming in on focus. */
input, textarea, select{ font-size: 16px; }
