/* ==========================================================================
   Culture Genesis — Brand Design System v1.0 — token layer
   Load this file before every other stylesheet.

   The first :root block is the brand system, verbatim. Do not edit it here
   without editing the system. The second block holds values the brand system
   does not define but this site needs; every one is derived from, or sits
   beside, a brand token.

   This file lives at the site root, not under /assets/, on purpose:
   vercel.json serves /assets/* with a one-year immutable cache header, so a
   token change there would never reach returning visitors.
   ========================================================================== */

:root {
  /* Brand */
  --cg-indigo: #4b5bf5;
  --cg-violet: #9b4de0;
  --cg-magenta: #ec3b8b;
  --cg-indigo-light: #7c86ff;

  /* Light neutrals */
  --bone: #f3f1ed;        /* page canvas */
  --surface: #ffffff;     /* cards, pills, outline buttons */
  --hairline: #eae7e0;    /* 1px card borders, internal dividers */
  --divider: #e7e4dd;     /* 1px rule between sections */
  --border: #dad6cd;      /* interactive outlines: pills, tags, outline button */
  --muted: #c4bfb4;       /* decorative / disabled only, never text */

  /* Text */
  --ink: #12121a;         /* headings, primary text */
  --ink-body: #3a3a44;    /* heavier long-form body */
  --lede: #5b5b66;        /* hero lede */
  --slate: #6c6c77;       /* body copy */
  --mist: #9c9aa3;        /* UPPERCASE labels + non-essential meta only */

  /* Dark proof panels */
  --panel-base: #0b0b12;
  --panel-navy: #17172c;
  --panel-edge: #1b1b2c;
  --panel-bar: #2a2a38;
  --on-panel: #ffffff;
  --panel-text: #c8c8d6;
  --panel-text-muted: #8b8b9e;
  --panel-text-faint: #6a6a7c; /* source/footnote lines only */

  /* Semantic */
  --verified: #12b76a;    /* always paired with ✓ and a word */
  --live: #f79009;        /* always paired with a word; never white text on it */
  --on-accent: #ffffff;
  --focus-ring: var(--cg-indigo);

  /* Gradients: the CG Gradient is the brand's ONE expressive move */
  --gradient-cg: linear-gradient(96deg, #4b5bf5 0%, #9b4de0 52%, #ec3b8b 100%);
  --gradient-stat: linear-gradient(120deg, #4b5bf5, #9b4de0 55%, #ec3b8b);
  --gradient-badge: linear-gradient(140deg, #4b5bf5, #9b4de0 55%, #ec3b8b);
  --gradient-eyebrow: linear-gradient(96deg, #4b5bf5, #ec3b8b);
  --gradient-stat-dark: linear-gradient(120deg, #7c86ff, #ec3b8b);
  --gradient-panel: radial-gradient(120% 150% at 85% 115%, rgba(236,59,139,0.26), rgba(236,59,139,0) 55%), linear-gradient(150deg, #17172c, #0b0b12);

  /* Type */
  --font-display: "Cabinet Grotesk", system-ui, sans-serif;
  --font-sans: "General Sans", system-ui, sans-serif;

  /* Space (4px rhythm) */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 48px;
  --space-section: 80px;
  --space-gutter: 72px;

  /* Radius */
  --radius-bar: 8px;
  --radius-input: 10px;
  --radius-badge: 14px;
  --radius-card: 20px;
  --radius-panel: 28px;
  --radius-pill: 999px;

  /* Elevation: the only shadow */
  --shadow-card: 0 1px 2px rgba(18,18,26,0.04);
}

/* ==========================================================================
   Site extensions — not part of Brand Design System v1.0.
   ========================================================================== */
:root {
  /* Font stacks with a metric-matched local fallback between the web font and
     system-ui, so the font swap does not move text (the fallback faces are
     declared in styles.css). Delete these two lines to return to the brand
     stacks exactly as written above. */
  --font-display: "Cabinet Grotesk", "Cabinet Grotesk Fallback", system-ui, sans-serif;
  --font-sans: "General Sans", "General Sans Fallback", system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; /* Pack ID, storage key */

  /* Type scale as font shorthands: weight size/line-height family.
     Display sizes run from the mobile value at 390px to the desktop value at 1200px. */
  --type-display: 800 clamp(48px, 28.7px + 4.94vw, 88px)/0.94 var(--font-display);
  --type-h1: 800 clamp(38px, 29.3px + 2.22vw, 56px)/1.05 var(--font-display);
  --type-section-title: 800 clamp(32px, 27.2px + 1.23vw, 42px)/1.1 var(--font-display);
  --type-h2: 700 clamp(30px, 25.2px + 1.23vw, 40px)/1.1 var(--font-display);
  --type-statement: 700 clamp(28px, 23.2px + 1.23vw, 38px)/1.15 var(--font-display);
  --type-stat: 800 clamp(40px, 34.2px + 1.48vw, 52px)/1 var(--font-display);
  --type-card-title: 700 21px/1.25 var(--font-display);
  --type-feature-title: 700 23px/1.25 var(--font-display);
  --type-h3: 600 22px/1.2 var(--font-sans);
  --type-lede: 400 clamp(18px, 16.1px + 0.49vw, 22px)/1.5 var(--font-sans);
  --type-body: 400 17px/1.6 var(--font-sans);
  --type-body-sm: 400 15px/1.6 var(--font-sans);
  --type-ui: 600 15px/1.2 var(--font-sans);
  --type-ui-sm: 500 14px/1.3 var(--font-sans);
  --type-label: 600 13px/1.3 var(--font-sans);
  --type-meta: 500 12px/1.4 var(--font-sans);
  --type-micro: 600 11px/1.3 var(--font-sans);   /* dense calendar cells only */
  --type-code: 600 20px/1.3 var(--font-mono);
  --type-code-sm: 500 14px/1.4 var(--font-mono);
  --track-display: -0.03em;
  --track-title: -0.02em;
  --track-card: -0.01em;
  --track-label: 0.18em;
  --track-micro: 0.08em;       /* dense calendar labels; 0.18em does not fit a 12-column grid */

  /* In-between steps on the 4px rhythm */
  --space-2: 2px;
  --space-12: 12px;
  --space-20: 20px;
  --space-32: 32px;
  --space-64: 64px;

  /* Layout */
  --maxw: 1296px;            /* content width at the 1440px reference: 1440 − 2 × gutter */
  --label-col: 300px;        /* long-form label column */
  --nav-h: 72px;
  --logo-h: 36px;            /* horizontal lockup in the header */
  --logo-h-footer: 48px;     /* horizontal lockup in the footer */
  --control-pad-y: 14px;     /* button height: 14px × 24px padding */
  --ease: cubic-bezier(.22, 1, .36, 1);

  /* Colour derived from brand tokens */
  --scrim: color-mix(in srgb, var(--panel-base) 78%, transparent);   /* modal backdrop */
  --nav-bg: color-mix(in srgb, var(--bone) 86%, transparent);
  --on-panel-line: color-mix(in srgb, var(--on-panel) 14%, transparent);
  --error: #b42318;          /* form errors; 6.6:1 on surface. The system has no error colour. */

  /* Data-viz hues for the Guide calendar. Three map to brand colours; the system
     has no categorical palette, so two keep their existing AA-tuned values. */
  --viz-sport: var(--cg-indigo);
  --viz-culture: var(--cg-magenta);
  --viz-event: var(--cg-violet);
  --viz-season: #b06a00;
  --viz-retail: #0e8a7c;
}

/* Page frame: 72px gutters and 80px sections on desktop, 20px and 56px on phones. */
@media (max-width: 767px) {
  :root {
    --space-gutter: 20px;
    --space-section: 56px;
  }
}
