/* Burntstik Media tokens.
   The single source for the site and the design system page.
   Change a value here and both pages change.

   The look: a near-black navy page with a faint cyan grid, frosted-glass cards and neon glow.
   Cyan is what AI can see (and the action). Amber is what it misses.
   Purple only tints the glows. Visual reference: references/burntstik-draft-reference.html
   (look only; none of its words, numbers or claims are used). */

/* Fonts are served from this site (assets/fonts), so the page makes no requests to other hosts.
   Each file is a variable font, latin subset: the same weights the page used from Google Fonts
   (Inter 300-700, JetBrains Mono 400-700, Space Grotesk 500-700). The latin subset covers
   English, French and the accented letters in Canadian names. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../assets/fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../assets/fonts/space-grotesk-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;

  /* Neutrals. Near-black navy, never pure black or pure white. */
  --bg:        oklch(16% 0.030 265);     /* page */
  --surface:   oklch(19.5% 0.042 262);   /* glass card base (used at 60% opacity) */
  --raised:    oklch(25% 0.048 260);     /* controls, chat bubbles */
  --hairline:  oklch(31% 0.050 255);     /* thin lines */
  --bezel:     oklch(11.5% 0.028 265);   /* wells: inputs, switch tracks, console screens */
  --text:      oklch(96% 0.008 250);     /* words */
  --muted:     oklch(73% 0.025 255);     /* labels, captions */
  --ink:       oklch(13% 0.030 265);     /* dark label on a cyan button */

  /* Seen by AI: neon cyan. Found, matched, readable. Also the action. */
  --cyan:      oklch(87.7% 0.148 199);   /* close to #00f0ff */
  --cyan-mid:  oklch(74% 0.130 215);
  --cyan-deep: oklch(55% 0.120 235);
  --accent:    var(--cyan);

  /* Missed by AI: amber. Gaps, mismatches, vague words. */
  --amber:      oklch(81% 0.165 75);     /* close to #ffaa00 */
  --amber-mid:  oklch(70% 0.165 62);
  --amber-deep: oklch(56% 0.150 48);

  /* Purple: only a touch, in glows, gradient edges and the radar. Never for meaning. */
  --purple:      oklch(63% 0.230 303);   /* close to #a855f7 */
  --purple-soft: oklch(78% 0.140 303);

  /* The page's light */
  --grid-a:  .04;                         /* strength of the 40px grid lines */
  --grid:    40px;
  --aura:    radial-gradient(circle at 50% 20%, color-mix(in oklch, var(--cyan) 13%, transparent) 0%, color-mix(in oklch, var(--purple) 6%, transparent) 45%, transparent 70%);

  /* Frosted glass */
  --glass-bg:     color-mix(in oklch, var(--surface) 62%, transparent);
  --glass-blur:   blur(16px);
  --edge:         color-mix(in oklch, var(--cyan) 14%, transparent);   /* thin cyan edge */
  --edge-hot:     color-mix(in oklch, var(--cyan) 42%, transparent);  /* edge on hover */
  --glass-shadow: 0 8px 32px 0 rgb(0 0 0 / .37);
  --glow-hover:   0 0 26px color-mix(in oklch, var(--cyan) 18%, transparent);

  /* Glows */
  --glow-btn:       0 0 30px color-mix(in oklch, var(--cyan) 42%, transparent);
  --glow-btn-hot:   0 0 46px color-mix(in oklch, var(--cyan) 72%, transparent);
  --glow-text:      drop-shadow(0 0 22px color-mix(in oklch, var(--cyan) 38%, transparent));
  --glow-text-amber: drop-shadow(0 0 22px color-mix(in oklch, var(--amber) 38%, transparent));

  /* Type */
  --font-display: "Space Grotesk", system-ui, sans-serif;   /* headlines */
  --font-text:    "Inter", system-ui, sans-serif;           /* body */
  --font-mono:    "JetBrains Mono", ui-monospace, monospace; /* labels, pills, buttons */

  --fs-display-xl: clamp(2.4rem, 5.6vw, 5.1rem);
  --fs-display:    clamp(2rem, 4.2vw, 3.6rem);
  --fs-stat-xl:    clamp(3.75rem, 8vw, 6.5rem);
  --fs-stat:       clamp(2.5rem, 5vw, 4rem);
  --fs-h2:         clamp(1.7rem, 3.2vw, 2.6rem);
  --fs-h3:         1.2rem;
  --fs-body:       1.0625rem;
  --fs-small:      .9375rem;
  --fs-caption:    .8125rem;
  --fs-label:      .75rem;

  /* Space: 4px base */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 72px; --s-9: 120px; --s-10: 180px;
  --gap-tile: 14px;
  --gutter: clamp(18px, 4vw, 48px);

  /* Radius */
  --r-pill: 999px;
  --r-btn:  8px;
  --r-chip: 6px;
  --r-tile: 16px;
  --r-card: 20px;

  /* Motion */
  --ease-out:    cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --t-ui:     240ms;
  --t-reveal: 900ms;
  --t-drift:  16s;
  --t-sweep:  6s;        /* one turn of the radar */
  --t-type:   16ms;      /* one typed letter in the chat window */
}

/* AI VIEW: the whole site steps into how a machine reads it. The grid sharpens. */
:root[data-view="ai"] { --grid-a: .10; }
