/* Glimmer Capture design tokens. Shared contract: Site/BRIEF.md "Tokens".
   Two palettes:
   - The site palette (marketing pages and docs): a near-black ground, cool grays, ONE accent (the app's action cyan) and
     the glimmer gradient (the icon's iridescent ring) for brand moments only: the hero lens, the brand mark, the Pro
     badge. Four meaning colors, each used for one thing only.
   - The app palette (--app-*, the Deep Glass tokens in Packages/DesignSystem/.../Tokens.swift): what the Mac app looks
     like. The live demos (static/demos/) and the video use it, because they show the app.
   Dark only, like the app and the Wherry site (color-scheme: dark). */
:root {
  color-scheme: dark;

  /* ---------- Site palette ---------- */
  --bg-base: #07080C;
  --bg-surface: #10131C;
  --bg-raised: #171B27;
  --bg-inset: #05060A;

  --border-subtle: #232838;
  --border-strong: #2E3550;

  /* On --bg-base: primary 16.6:1, secondary 12:1, tertiary 5.5:1 (AA for body text). */
  --text-primary: #E8EBF4;
  --text-secondary: #C5CBDB;
  --text-tertiary: #7C859C;

  /* The one accent: the app's action cyan. It fills buttons (with --on-accent text, 11:1); --accent-text is the same hue
     lifted for links and small text on the dark ground (12:1). */
  --accent: #4FD8EB;
  --accent-hover: #6FE1F0;
  --accent-text: #8BE8F5;
  --accent-soft: rgba(79, 216, 235, 0.12);
  --accent-line: rgba(79, 216, 235, 0.42);
  --on-accent: #041216;

  /* The glimmer gradient: the icon's ring, sampled from design/icon/AppIcon-1024.png, clockwise from 12 o'clock
     (cyan at the top, violet on the right, orange at the bottom, green on the left). Brand moments only. */
  --g-cyan: #13E1FC;
  --g-blue: #4AA7FC;
  --g-periwinkle: #8E7DFB;
  --g-violet: #A13FF2;
  --g-magenta: #E136D1;
  --g-rose: #FD458A;
  --g-orange: #FD8343;
  --g-yellow: #FEC33E;
  --g-green: #54E272;
  --g-aqua: #33FACE;
  /* The icon's capture-frame corners */
  --g-corner-tl: #0BF8FD;
  --g-corner-tr: #5E8EFC;
  --g-corner-br: #FE6CBD;
  --g-corner-bl: #FECE5F;
  --glimmer: conic-gradient(from 0deg, var(--g-cyan), var(--g-blue) 25deg, var(--g-periwinkle) 50deg, var(--g-violet) 85deg,
    var(--g-magenta) 115deg, var(--g-rose) 150deg, var(--g-orange) 195deg, var(--g-yellow) 230deg, var(--g-green) 270deg,
    var(--g-aqua) 305deg, var(--g-cyan) 360deg);
  --glimmer-line: linear-gradient(90deg, var(--g-cyan), var(--g-blue) 7%, var(--g-periwinkle) 14%, var(--g-violet) 24%,
    var(--g-magenta) 32%, var(--g-rose) 42%, var(--g-orange) 54%, var(--g-yellow) 64%, var(--g-green) 75%, var(--g-aqua) 85%, var(--g-cyan));

  /* Meanings, one color each (never decoration) */
  --record: #FF5C7A;              /* recording only */
  --record-soft: rgba(255, 92, 122, 0.13);
  --time-travel: #9B8CFF;         /* time travel only */
  --time-travel-soft: rgba(155, 140, 255, 0.14);
  --redaction: #FFB86B;           /* redaction and privacy only */
  --redaction-soft: rgba(255, 184, 107, 0.12);
  --verified: #5BE3A4;            /* verified links only */
  --verified-soft: rgba(91, 227, 164, 0.13);

  /* Names the Wherry docs theme used (docs.css), mapped onto this palette. */
  --accent-blue: var(--accent-text);
  --accent-violet: var(--time-travel);
  --state-success: var(--verified);
  --state-warning: var(--redaction);
  --state-danger: var(--record);

  /* ---------- App palette (Deep Glass): live demos and the video ---------- */
  --app-ground: #0A0C12;
  --app-canvas: #06080E;
  --app-inset: #0D1018;
  --app-chrome: #10131C;
  --app-surface: #171B27;
  --app-raised: #1D2233;
  --app-selected: #232A40;
  --app-hairline: #232838;
  --app-border: #2E3550;
  --app-text-primary: #E8EBF4;
  --app-text-secondary: #C5CBDB;
  --app-text-muted: #9AA3B8;
  --app-text-tertiary: #7C859C;
  --app-action: #4FD8EB;
  --app-time-travel: #9B8CFF;
  --app-record: #FF5C7A;
  --app-redaction: #FFB86B;
  --app-success: #5BE3A4;

  /* ---------- Type ----------
     --font-display is the headline face, shared with the Wherry site so the family reads as one: Mona Sans (SIL OFL
     1.1, renamed subset, static/fonts/), declared in site.css. Body and mono are the system faces. */
  --font-display: "Glimmer Display", "Glimmer Display Fallback", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Shape */
  --radius-card: 14px;
  --radius-control: 9px;
  --radius-full: 999px;

  /* Motion: short and functional */
  --motion-fast: 150ms;
  --motion-base: 200ms;
  --motion-slow: 260ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --motion-fast: 0ms;
    --motion-base: 0ms;
    --motion-slow: 0ms;
  }
}
