/* Agnostik Cut design tokens: the "Instrument soft" editing layer on the Agnostik system (14 Nov 2026).
   A matte hardware body, black screens set into it, square keys with LEDs, and one hot colour: the project accent.
   Type is Geist in sentence case; Geist Mono only for timecode, durations and figures.
   Drop-in for 031's css/tokens.css: every existing name is kept (only values change), and the new names below
   "Instrument" are read by css/instrument.css. Rules and reasons: DESIGN-SYSTEM.md. */
@import url("fonts/geist.css");  /* vendored (was Google Fonts), so it works offline */

:root {
  color-scheme: dark;

  /* ── Project accent: the one hot colour. Set per project (project.json "accent"); Meander is clay. ── */
  --accent: #C66631;
  --hot: oklch(from var(--accent) calc(l + .1) calc(c + .03) h);          /* lit: keys on, LEDs, the spoken word */
  --hot-press: oklch(from var(--accent) calc(l + .02) c h);               /* the key's lower half */
  --hot-glow: oklch(from var(--hot) l c h / .5);
  --on-hot: #fff;

  /* ── Instrument: the body, keys, screens and LEDs ── */
  --body: #262523; --body-hi: #302f2c; --body-lo: #1c1b1a; --groove: #121110;
  --key-top: #2e2d2a; --key: #201f1d; --key-hi: rgba(255,255,255,.07); --key-lo: rgba(0,0,0,.5);
  --key-shadow: inset 0 1px 0 var(--key-hi), 0 1px 0 #000, 0 3px 8px rgba(0,0,0,.45);
  /* pressed in: the shadow goes inside, a catch-light sits under the hole's lip, and the face is dark and concave */
  --key-pressed: inset 0 2px 3px rgba(0,0,0,.75), inset 0 0 0 1px rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.06);
  --key-on-face: linear-gradient(#131211, #1a1918);
  --tray-bg: var(--groove); --tray: inset 0 1px 2px rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.05);  /* a row of choices sits in a recess */
  --key-grey-top: #8a8883; --key-grey: #6f6d68; --on-key-grey: #111;     /* Play: the one grey key */
  --screen: #000; --screen-r: 12px;
  --screen-bezel: 0 0 0 3px var(--body-lo), 0 0 0 4px var(--key-hi), inset 0 2px 10px rgba(0,0,0,.9);
  --lcd: #000; --lcd-text: #f5f3ef; --lcd-dim: #8f8b84;                   /* timecode and the transcript lane */
  --lcd-inset: inset 0 1px 3px rgba(0,0,0,.9), 0 0 0 1px var(--key-hi);
  --led: 6px; --led-off: #5f5c57;
  --grille: radial-gradient(circle, rgba(0,0,0,.55) 1.6px, transparent 2px) 0 0 / 9px 9px;

  /* ── Surfaces (031 names) ── */
  --bg: var(--body-lo); --panel: var(--body); --panel2: var(--body-hi); --raise: var(--key-top); --raise-hover: #383733; --hover: #2c2b29;
  --well: #000; --well2: #0d0c0c; --menu-bg: #2a2927; --toast-bg: #2f2e2b; --code-bg: #000; --black: #000;
  --line: var(--groove); --row-line: #1f1e1c; --row-line2: #2a2927; --edge: #3a3935; --edge2: #4a4844; --edge3: #6a6762;
  --tick: #4a4844; --tick-big: #6a6762; --track-off: #3a3935; --tog-off: #3a3935; --scrollbar: #3a3935;

  /* ── Text ── */
  --text: #d9d6d0; --bright: #f5f3ef; --dim: #8f8b84; --faint: #5f5c57; --muted: #bdb9b2; --code-text: #e8e5df;
  --on-accent: #fff; --on-star: #1b1508; --on-warn: #1d1005; --caption: #f5f3ef; --caption-on: var(--hot);

  /* ── Meaning: blue is time, focus and selection; the hot colour is "on"; the rest are marks ── */
  --blue: #4a95f0; --blue-hover: #64a5f4; --blue-dim: #1f4f87; --blue-text: #d3e4fa; --sel: #26303c;
  --star: #f2c14e;          /* pick */
  --reject: #ff6a55;        /* reject, errors */
  --warn: #f0a03c;          /* needs clearing (rights); amber, kept clear of the hot orange */
  --note: #e8d2a6;          /* note */
  --star-text: var(--star); --warn-text: var(--warn); --reject-text: var(--reject); --ok-text: var(--ok);  /* the mark colours as text: darker on the light body */
  --ok: #8ad28f;            /* cleared, connected */
  --danger-bg: #5a2420; --danger-edge: #7a3029; --danger-text: #ffd9d3; --danger-menu: #f0a097;
  --cam-a: #4a95f0; --cam-b: #4cc3b4;                                    /* main camera blue, second angle teal */
  --audio-tint: #121110; --tip-bg: #0c0b0b;
  /* loudness-coloured waveforms: body of speech, hot near full scale, clipping at the rails */
  --wave-quiet: #4d4b47; --wave-speech: #d9d6d0; --wave-hot: #f0a03c; --wave-clip: #ff4a2a;
  --live: var(--hot); --live-glow: var(--hot-glow);                      /* the word being spoken */

  /* ── Overlays ── */
  --scrim: rgba(0,0,0,.55); --scrim-strong: rgba(0,0,0,.62); --caption-fade: rgba(0,0,0,.6); --clip-edge: rgba(0,0,0,.6);
  --text-shadow: 0 1px 2px rgba(0,0,0,.6); --trim-mark: rgba(255,255,255,.75);
  --welcome-glow: radial-gradient(1100px 620px at 50% 0%, oklch(from var(--accent) .28 .05 h) 0%, rgba(28,27,26,.97) 62%);
  --frost: blur(28px) saturate(1.3);                                     /* only ⌘K and first run */

  /* ── Type ── */
  --ui: "Geist", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --words: var(--ui);                                                     /* transcript lane and captions */
  --fs-xs: 10.5px; --fs-s: 11.5px; --fs: 12.5px; --fs-m: 13.5px; --fs-l: 15px; --fs-xl: 22px; --fs-tc: 16px; --fs-word: 12.5px;
  --fw-quiet: 450; --fw-on: 600;
  /* Reading: long-form documents (the Brief), not editing chrome. --measure gives about 70 characters a line:
     ch is the width of Geist's 0, which is wide, so 68ch would be nearly 100 characters */
  --fs-read: 15px; --lh-read: 1.6; --measure: 860px;
  --fs-read-h1: 28px; --fs-read-h2: 20px; --fs-read-h3: 16px;
  --label: #a19d96;         /* small labels: 5.7:1 on --panel, 5.0:1 on --panel2 (WCAG AA 4.5:1) */

  /* ── Radii: hardware is nearly square ── */
  --r-xs: 2px; --r-s: 4px; --r: 5px; --r-m: 6px; --r-l: 8px; --r-xl: 12px; --r-pill: 99px;

  /* ── Shadows ── */
  --shadow-toast: 0 8px 24px rgba(0,0,0,.45); --shadow-menu: 0 14px 40px rgba(0,0,0,.6); --shadow-dlg: 0 24px 70px rgba(0,0,0,.65);
  --shadow-card: 0 30px 80px rgba(0,0,0,.6); --shadow-tip: 0 6px 18px rgba(0,0,0,.5);

  /* ── Motion: calm and precise, nothing bounces ── */
  --t-key: .06s;            /* a key going down */
  --t-fast: .08s; --t: .12s; --t-mid: .16s; --t-slow: .24s; --t-panel: .32s;
  --ease: cubic-bezier(.2,.7,.2,1); --ease-pop: var(--ease);
  --led-fade: .18s;         /* an LED lighting or going out */

  /* ── Layout: Premiere's grammar ── */
  --gutter: 2px; --nav-h: 44px; --steps-h: 36px; --bar-h: calc(var(--nav-h) + var(--steps-h)); --tab-h: 36px; --scrub-h: 18px; --heads-w: 120px; --ruler-h: 28px;
  --track-v: 60px; --track-a: 48px; --track-sub: 34px; --track-t: 56px; --timeline-h: 44vh; --timeline-min: 280px;
}

/* Light body (TP-7 aluminium): for daylight rooms. Screens, timecode and the transcript lane stay black. */
:root[data-body="light"] {
  color-scheme: light;
  --body: #c9c7c2; --body-hi: #d3d1cc; --body-lo: #b9b7b2; --groove: #a2a09b;
  --key-top: #e2e0db; --key: #b8b6b1; --key-hi: rgba(255,255,255,.6); --key-lo: rgba(0,0,0,.25);
  --key-shadow: inset 0 1px 0 var(--key-hi), 0 1px 0 rgba(0,0,0,.35), 0 3px 8px rgba(0,0,0,.18);
  --led-off: #8e8c87;
  --key-pressed: inset 0 2px 3px rgba(0,0,0,.3), inset 0 0 0 1px rgba(0,0,0,.18), 0 1px 0 rgba(255,255,255,.55);
  --key-on-face: linear-gradient(#a6a49f, #b3b1ac);
  --tray-bg: #b0aea9; --tray: inset 0 1px 2px rgba(0,0,0,.25), 0 1px 0 rgba(255,255,255,.5);
  --raise-hover: #ebe9e4; --hover: #c2c0bb; --menu-bg: #d9d7d2; --toast-bg: #2f2e2b;
  --row-line: #bcbab5; --row-line2: #b3b1ac; --edge: #a8a6a1; --edge2: #9a9893; --edge3: #85837e;
  --tick: #8e8c87; --tick-big: #6a6863; --track-off: #a8a6a1; --tog-off: #a8a6a1; --scrollbar: #9a9893;
  --text: #2c2b29; --bright: #121211; --dim: #6a6863; --faint: #8e8c87; --muted: #4a4845;
  --label: #4a4845;         /* 5.4:1 on --panel, 6.0:1 on --panel2 */
  --sel: #b5c7dc; --audio-tint: #1a1918;
  --star-text: #86610c; --warn-text: #9a560c; --reject-text: #b3301d; --ok-text: #2e7a35;
}
