/* ============================================================================
   VOX Suite — design tokens v2 "clean & precise"
   Single light palette. This file is the ONLY place a colour may be defined;
   every component, page, canvas bridge and server-emitted style consumes these
   custom properties. There is no dark theme and no toggle.

   Accent policy: ONE accent (deep calm blue) for primary actions, active and
   focus state. Semantic bands (good / watch / weak) are reserved for judgement.
   The magma ramp is chart data for spectrograms only — never chrome.

   Every text/surface pair below meets WCAG AA — verified by
   tools/check_contrast.py (run via tools/ui_guard.sh).

   Canonical copy lives in /design; run design/sync.sh to vendor into each app.
   ============================================================================ */

:root{
  /* ---- surfaces ------------------------------------------------------- */
  --vox-page:#f6f7f9;         /* app background                            */
  --vox-panel:#ffffff;        /* cards / panels / bars                     */
  --vox-sunken:#eef1f4;       /* wells, inputs, meter tracks               */
  --vox-line:#e4e8ed;         /* hairline rules                            */
  --vox-line-2:#cfd7df;       /* emphasised rules / control borders        */

  /* ---- ink ------------------------------------------------------------ */
  --vox-ink:#131a22;          /* headings, hero figures                    */
  --vox-body:#3c4653;         /* long-form body copy                       */
  --vox-muted:#5d6a77;        /* secondary labels                          */
  --vox-dim:#8894a0;          /* tertiary; never for essential text        */

  /* ---- the accent ------------------------------------------------------ */
  --vox-accent:#1d4ed8;       /* deep calm blue                            */
  --vox-accent-deep:#1e40af;  /* hover / pressed                           */
  --vox-accent-tint:#eef3fe;  /* selected wash                             */
  --vox-on-accent:#ffffff;    /* text on accent                            */

  /* ---- semantic score bands (judgement only) --------------------------- */
  --vox-good:#15803d;
  --vox-watch:#b45309;
  --vox-weak:#b91c1c;
  --vox-good-tint:#ecf7f0;
  --vox-watch-tint:#fdf3e7;
  --vox-weak-tint:#fdefef;

  /* ---- spectrogram colormap (magma) ------------------------------------ */
  /* Domain-standard data-visualisation ramp — coaches and professionals
     read spectrograms in these colours, so the spectrogram is the ONE
     deliberate dark instrument in the light UI. Chart data only: never
     chrome, text or state.                                                */
  --vox-spec-0:#000004;  --vox-spec-1:#1c1044;  --vox-spec-2:#4f127b;
  --vox-spec-3:#812581;  --vox-spec-4:#b5367a;  --vox-spec-5:#e55064;
  --vox-spec-6:#fb8761;  --vox-spec-7:#fec287;  --vox-spec-8:#fcfdbf;
  --vox-spec-trace:#39ff14;   /* pitch trace over magma — domain-standard green */

  /* ---- categorical (charts needing distinction, not judgement) ---------- */
  --vox-cat-1:#1d4ed8;
  --vox-cat-2:#0f766e;
  --vox-cat-3:#7c3aed;
  --vox-cat-4:#be185d;
  --vox-cat-5:#4d7c0f;

  /* ---- type ------------------------------------------------------------ */
  --vox-sans:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",sans-serif;
  --vox-mono:ui-monospace,"SF Mono",SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;

  --vox-fs-0:.6875rem;  --vox-fs-1:.75rem;   --vox-fs-2:.8125rem;
  --vox-fs-3:.9375rem;  --vox-fs-4:1.0625rem;--vox-fs-5:1.375rem;
  --vox-fs-6:1.75rem;   --vox-fs-hero:4.25rem;

  /* ---- space (4px base) ------------------------------------------------ */
  --vox-sp-1:4px;  --vox-sp-2:8px;  --vox-sp-3:12px; --vox-sp-4:16px;
  --vox-sp-5:24px; --vox-sp-6:32px; --vox-sp-7:48px; --vox-sp-8:64px;

  /* ---- shape & elevation ---------------------------------------------- */
  --vox-r-ctl:6px;
  --vox-r-card:10px;
  --vox-radius:10px;          /* kit-wide card radius                      */
  --vox-radius-sm:6px;        /* kit-wide control radius                   */
  --vox-shadow-1:0 1px 2px rgba(19,26,34,.06),0 1px 3px rgba(19,26,34,.04);
  --vox-shadow-2:0 4px 12px rgba(19,26,34,.08),0 1px 3px rgba(19,26,34,.05);
  --vox-scrim:rgba(19,26,34,.42);   /* overlay scrim                       */

  /* ======================================================================
     DEPRECATED ALIASES — dark-era names remapped to the light palette.
     Still consumed by the decks' inline layout CSS (~78 references), so
     they must stay until those pages migrate to the new names. Do not use
     in new code.
     ====================================================================== */
  --vox-void:#ffffff;         /* was the page black; also used as text-on-accent */
  --vox-raised:var(--vox-panel);
  --vox-raised-2:var(--vox-panel);
  --vox-cyan:var(--vox-accent);
  --vox-cyan-deep:var(--vox-accent-deep);
  --vox-cyan-ink:var(--vox-accent);
  --vox-violet:var(--vox-accent);
  --vox-violet-deep:var(--vox-accent-deep);
  --vox-green:var(--vox-good);
  --vox-amber:var(--vox-watch);
  --vox-red:var(--vox-weak);
  --vox-surface-0:var(--vox-sunken);
  --vox-surface-1:var(--vox-panel);
  --vox-surface-2:var(--vox-sunken);
  --vox-btn-ink:var(--vox-body);
  --vox-grad-page:var(--vox-page);
  --vox-grad-panel:var(--vox-panel);
  --vox-grad-bar:var(--vox-panel);
  --vox-grad-btn:var(--vox-panel);
  --vox-glow-cyan:0 0 0 0 transparent;
  --vox-glow-violet:0 0 0 0 transparent;
  --vox-glow-green:0 0 0 0 transparent;
  --vox-glow-amber:0 0 0 0 transparent;
  --vox-glow-red:0 0 0 0 transparent;
}

/* Numerals: every figure aligns like an instrument readout. */
.vox-num{font-variant-numeric:tabular-nums;font-feature-settings:"tnum"}
