/*
 * Studio Stereo Chorus — design tokens (overrides the neutral defaults in kit.css).
 *
 * Concept: a 2U rack-mount stereo chorus from an early-80s control room — charcoal anodised
 * faceplate with rack ears, engraved condensed legends, and a round cyan-phosphor vectorscope
 * whose bezel doubles as the orbit track of the chorus voices.
 *
 *   colour      anodised blue-grey metal; one phosphor cyan for everything that is "signal";
 *               amber only where the right channel has to be told apart from the left
 *   type        system fonts, no downloads: a condensed grotesque for engraved legends,
 *               monospace numerals for read-outs
 *   shape       tight 3–6 px radii, hairline borders, recessed displays
 *
 * Contrast (computed from OKLCH lightness): text 0.94 on panel 0.245 ≈ 12:1 · muted legends 0.77
 * on raised 0.285 ≈ 6.9:1 · cyan 0.84 on panel ≈ 8.7:1 · ink 0.18 on cyan ≈ 11:1.
 * --color-text-faint (≈ 3:1) is used for tick marks only, never for text.
 */

@layer tokens {
  :root {
    /* — primitives (the first five names come from the specification) — */
    --bg-chassis: oklch(0.165 0.012 240);
    --surface-panel: oklch(0.245 0.014 240);
    --accent-cyan: oklch(0.84 0.125 200);
    --meter-ok: oklch(0.80 0.17 152);
    --meter-clip: oklch(0.67 0.22 27);

    --surface-raised: oklch(0.285 0.014 240);
    --surface-glass: oklch(0.125 0.02 215);
    --line-soft: oklch(0.345 0.014 240);
    --line-hard: oklch(0.45 0.016 240);
    --legend: oklch(0.94 0.008 220);
    --legend-dim: oklch(0.77 0.014 228);
    --legend-faint: oklch(0.55 0.014 232);
    --accent-amber: oklch(0.83 0.135 78);
    --meter-warn: oklch(0.87 0.155 95);
    --ink-on-accent: oklch(0.18 0.03 220);
    --metal-light: oklch(0.62 0.012 240);
    --metal-dark: oklch(0.2 0.012 240);
    --shadow-black: oklch(0 0 0 / 0.45);

    /* — semantic — */
    --color-chassis: var(--bg-chassis);
    --color-panel: var(--surface-panel);
    --color-panel-raised: var(--surface-raised);
    --color-inset: var(--surface-glass);
    --color-bench: var(--bg-chassis);
    --color-border: var(--line-soft);
    --color-border-strong: var(--line-hard);
    --color-text: var(--legend);
    --color-text-muted: var(--legend-dim);
    --color-text-faint: var(--legend-faint);
    --color-accent: var(--accent-cyan);
    --color-accent-2: var(--accent-amber);
    --color-on-accent: var(--ink-on-accent);
    --color-focus: var(--legend);
    --color-danger: var(--meter-clip);
    --color-meter-ok: var(--meter-ok);
    --color-meter-warn: var(--meter-warn);
    --color-meter-clip: var(--meter-clip);

    --font-ui: "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Avenir Next Condensed", "DIN Condensed", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;

    --radius-sm: 0.1875rem;
    --radius-md: 0.3125rem;
    --radius-lg: 0.375rem;

    /* — component — */
    --knob-cap: var(--surface-panel);
    --knob-cap-edge: var(--metal-light);
    --knob-track: var(--surface-glass);
    --panel-sheen: color-mix(in oklch, var(--surface-panel) 86%, white);
    --panel-shade: color-mix(in oklch, var(--surface-panel) 88%, black);
    --screw-head: var(--metal-light);
    --screw-slot: var(--metal-dark);
    --scope-bezel: var(--metal-dark);
    --knob-shadow: var(--shadow-black);
  }
}
