/* ============================================================================
   THE WORLD CUP UNIVERSE — Colors & Type
   Source of truth: assets/library/tokens/{colors,type,motion}.json in
   Ujjimon/world-cup-universe (mirrored into the codebase via remotion/src/cosmos/tokens.ts).
   "Cinematic noir + championship gold." Voice: storyteller, not journalist.
   Fonts: Sora (display) + Inter (body) — both Google Fonts, load from CDN:
   @import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');
   ============================================================================ */

:root {
  /* ---- VOID (backgrounds) ---------------------------------------------- */
  --void-black: #07070C;   /* deepest base — the void */
  --void-mid:   #0E0E16;   /* panel / raised surface */
  --noir-bg:    #0A0A0F;   /* VISUAL_LOCK base (cards / video bg) */
  --noir-panel: #14141B;   /* VISUAL_LOCK panel */

  /* ---- GOLD (championship — the primary brand color) ------------------- */
  --gold-primary: #C9A24A; /* the brand gold — wordmarks, HUD, accents */
  --gold-bright:  #E7C76B; /* highlight / lit state / glow */
  --gold-deep:    #6E5526; /* hairlines, dim ticks, borders on dark */
  --gold-shadow:  #7A5C20; /* drop-shadow gold (VISUAL_LOCK) */

  /* ---- CYAN (secondary data accent — used sparingly in readouts) ------- */
  --cyan-primary: #4FC4D4;
  --cyan-bright:  #93E9F1;

  /* ---- NEUTRALS -------------------------------------------------------- */
  --bone:   #EFE9D8;       /* primary on-dark text — warm off-white */
  --silver: #7C8590;       /* secondary / muted text, labels */

  /* ---- ACCENT ---------------------------------------------------------- */
  --blood: #8B1F1F;        /* rare dramatic accent — defeat, rivalry, war eras */

  /* ---- SEMANTIC ROLES -------------------------------------------------- */
  --bg:        var(--void-black);
  --bg-raised: var(--void-mid);
  --fg1:       var(--bone);     /* primary text */
  --fg2:       var(--silver);   /* secondary text */
  --accent:    var(--gold-primary);
  --accent-hi: var(--gold-bright);
  --hairline:  var(--gold-deep);
  --border:    #1E2530;         /* web-surface neutral border */

  /* ---- TYPE FAMILIES --------------------------------------------------- */
  --font-display: 'Sora', ui-sans-serif, system-ui, sans-serif;  /* 600 / 700 / 800 */
  --font-body:    'Inter', ui-sans-serif, system-ui, sans-serif; /* 400 / 500 / 600 */

  /* ---- WEIGHTS --------------------------------------------------------- */
  --w-display-black: 800;
  --w-display-semi:  600;
  --w-body-medium:   500;
  --w-body-regular:  400;

  /* ---- TRACKING (letter-spacing scale) --------------------------------- */
  --track-ultra-tight: -0.04em; /* big display numerals / titles */
  --track-tight:       -0.02em; /* hero headlines */
  --track-wide-micro:   0.04em; /* fine captions */
  --track-wide-ui:      0.18em; /* HUD labels */
  --track-wide-hero:    0.32em; /* letter-spaced channel marks / kickers */

  /* ---- RADII (minimal — this brand is mostly hard edges) --------------- */
  --radius-card: 12px;  /* web cards */
  --radius-sm:   8px;   /* inputs / buttons */
  --radius-hud:  0px;   /* cinematic HUD panels are SQUARE — no rounding */

  /* ---- ELEVATION / GLOW ------------------------------------------------ */
  --glow-gold:   0 0 26px var(--gold-deep);
  --glow-bright: 0 0 22px rgba(231,199,107,0.5);
  --shadow-card: 0 30px 80px rgba(0,0,0,0.55);
  --hud-stroke:  1.5px;  /* corner brackets */
  --hud-hairline: 0.75px;/* frame hairline */
}

/* ============================================================================
   SEMANTIC TYPE PRESETS — apply directly or copy the rules.
   ============================================================================ */

.wcu-hero {            /* giant numeral / year — the biggest thing on screen */
  font-family: var(--font-display);
  font-weight: var(--w-display-black);
  font-size: clamp(4rem, 12vw, 14.375rem); /* up to 230px */
  letter-spacing: var(--track-ultra-tight);
  line-height: 1;
  color: var(--gold-primary);
  text-shadow: 0 12px 40px var(--gold-shadow);
}

.wcu-h1 {              /* episode / page title */
  font-family: var(--font-display);
  font-weight: var(--w-display-black);
  font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: var(--track-tight);
  line-height: 1.05;
  color: var(--bone);
  text-transform: uppercase;
}

.wcu-h2 {
  font-family: var(--font-display);
  font-weight: var(--w-display-semi);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  letter-spacing: var(--track-tight);
  line-height: 1.15;
  color: var(--bone);
}

.wcu-quote {           /* on-screen quote — Sora 600, centered, big gold marks */
  font-family: var(--font-display);
  font-weight: var(--w-display-semi);
  font-size: clamp(1.75rem, 3.5vw, 3.625rem);
  line-height: 1.32;
  color: var(--bone);
  text-align: center;
}

.wcu-label {           /* HUD / UI label — uppercase, wide-tracked gold */
  font-family: var(--font-body);
  font-weight: var(--w-body-medium);
  font-size: 0.875rem;
  letter-spacing: var(--track-wide-ui);
  text-transform: uppercase;
  color: var(--gold-primary);
}

.wcu-channel-mark {    /* persistent letter-spaced channel bug */
  font-family: var(--font-body);
  font-weight: var(--w-body-medium);
  font-size: 1.125rem;
  letter-spacing: var(--track-wide-hero);
  text-transform: uppercase;
  color: var(--silver);
  text-shadow: 0 0 12px rgba(0,0,0,0.7);
}

.wcu-body {
  font-family: var(--font-body);
  font-weight: var(--w-body-regular);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--fg2);
}

.wcu-stat-value {      /* rolling counter / readout value */
  font-family: var(--font-display);
  font-weight: var(--w-display-black);
  letter-spacing: var(--track-ultra-tight);
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
  text-shadow: var(--glow-gold);
}

/* Standard easing + density rule (PRODUCTION_BIBLE) */
:root {
  --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1); /* Easing.out(cubic) */
  --ease-in:  cubic-bezier(0.55, 0.055, 0.675, 0.19);
  --dur-fade: 0.5s;   /* HUD / element fade-up */
  --dur-sweep: 0.35s; /* gold underline sweep */
}
