/* =====================================================================
   DESIGN TOKENS: the one file you edit to re-brand a site.
   Colors use light-dark(<light>, <dark>). Values resolve where they are
   used, so a section with .scheme-dark always renders its dark values,
   which is how the alternating cinematic sections work.
   Never register these with @property: registered colors resolve once
   at :root, and the per-section schemes stop working.
   ===================================================================== */

:root {
  color-scheme: light dark;              /* follows the visitor's OS setting */

  /* ---- Brand (fill these from brand.md) ---------------------------- */
  /* Boosty blue, sampled from the logo (icon #093ec8 → #2b82fa, wordmark #0c45a1 → #0c5ad7) */
  --accent-text:  light-dark(#1257e0, #5b9bff);  /* 5.97:1 on white, 5.47:1 on #f5f5f7; 7.6:1 on black */
  --accent-fill:  #1257e0;                       /* white text 5.97:1 */
  --accent-fill-hover: #0d47c2;
  --on-accent:    #ffffff;
  --brand-grad:   linear-gradient(120deg, #0c45a1 0%, #0f51ba 45%, #0c5ad7 100%);   /* the wordmark's own gradient */
  --brand-icon-grad: linear-gradient(45deg, #092f8d 0%, #093ec8 50%, #2b82fa 100%);
  --hero-bg:      #030817;                       /* deep midnight navy for cinematic sections */
  --success:      light-dark(#0a7d3b, #4cd07d);
  --danger:       light-dark(#c4241c, #ff6b61);

  /* Charts (two-colour emphasis: brand series + neutral) */
  --chart-1:      light-dark(#1257e0, #5b9bff);
  --chart-muted:  light-dark(#c3cad6, #3b4252);
  --chart-grid:   light-dark(rgb(0 0 0 / 0.08), rgb(255 255 255 / 0.1));

  /* ---- Neutrals: near-monochrome, which carries the Apple feel ---- */
  --bg:        light-dark(#ffffff, #000000);
  --bg-alt:    light-dark(#f5f5f7, #0f0f11);
  --surface:   light-dark(#ffffff, #1c1c1e);
  --surface-2: light-dark(#fbfbfd, #232326);
  --text:      light-dark(#1d1d1f, #f5f5f7);
  --text-2:    light-dark(#6e6e73, #a1a1a6);     /* secondary text: still passes AA on bg-alt */
  --hairline:  light-dark(rgb(0 0 0 / 0.1), rgb(255 255 255 / 0.15));
  --shadow-color: light-dark(rgb(0 0 0 / 0.16), rgb(0 0 0 / 0.6));
  --nav-bg:    light-dark(rgb(255 255 255 / 0.72), rgb(22 22 23 / 0.72));
  --nav-bg-solid: light-dark(#ffffff, #161617);
  --snow-color: light-dark(#b9c6d6, #ffffff);    /* read by holiday.js */

  /* ---- Type ------------------------------------------------------- */
  /* System stack: SF Pro on Apple devices, Segoe UI Variable on Windows.
     To self-host a brand font (e.g. Inter), add @font-face in base.css
     and put its family name first here. */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display",
               "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;

  /* Fluid scale: each max is ≤ 2.5× its min, which keeps 200% zoom usable (WCAG 1.4.4) */
  --fs-hero:    clamp(3rem, 1.4rem + 6.4vw, 6.5rem);
  --fs-display: clamp(2.5rem, 1.4rem + 4.4vw, 5rem);
  --fs-h2:      clamp(2rem, 1.3rem + 2.8vw, 3.5rem);
  --fs-h3:      clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  --fs-lead:    clamp(1.1875rem, 1.05rem + 0.6vw, 1.5rem);
  --fs-body:    1.0625rem;   /* 17px */
  --fs-small:   0.875rem;
  --fs-eyebrow: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);

  --lh-tight: 1.05;
  --lh-snug:  1.18;
  --lh-body:  1.5;
  --tracking-tight: -0.025em;   /* big headlines */
  --tracking-snug:  -0.015em;
  --fw-regular: 400;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* ---- Space and layout ------------------------------------------- */
  --space-1: 0.25rem;  --space-2: 0.5rem;  --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.5rem;   --space-6: 2rem;    --space-7: 3rem;    --space-8: 4rem;
  --space-9: 6rem;     --space-10: 8rem;
  --section-pad: clamp(5rem, 3rem + 7vw, 10rem);
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --w-text: 42rem;      /* ~680px: comfortable line length */
  --w-content: 61.25rem;/* 980px */
  --w-wide: 75rem;      /* 1200px */
  --nav-h: 3.25rem;

  /* ---- Shape ------------------------------------------------------ */
  --r-sm: 10px; --r-md: 18px; --r-lg: 28px; --r-xl: 36px; --r-pill: 999px;
  --shadow-soft: 0 24px 60px -24px var(--shadow-color);

  /* ---- Motion ----------------------------------------------------- */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);     /* expo-out: Apple-like settle */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-1: 160ms;   /* hovers, presses */
  --dur-2: 320ms;   /* menus, small reveals */
  --dur-3: 800ms;   /* section reveals */
}

/* Force a scheme for one section, whatever the OS setting.
   .scheme-dark is the cinematic black section. */
.scheme-dark  { color-scheme: dark; }
.scheme-light { color-scheme: light; }
