/* tokens.css: every color, type size, space, radius, shadow and motion value for wmdradio.ai (The Show Desk).
   World: a late-night talk studio. Warm charcoal wall, walnut desk, the red REC lamp, amber key LEDs, a cream run sheet.
   Palette in OKLCH. Night is the default; "daytime" follows prefers-color-scheme: light.
   One light source: the desk lamp, up and to the left. Shadows and gradients read --light-*. */

@font-face {
  font-family: "Anybody";
  src: url("fonts/anybody-latin.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 50% 150%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk-latin.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
}

:root {
  color-scheme: dark light;
  --font-display: "Anybody", "Arial Narrow", sans-serif;     /* headlines condensed, console legends expanded */
  --font-text: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  /* named scale: label 12.5, small 14.5, body 17, lead 20, h3 24, h2 32, h1 38..62, model 26..34 */
  --t-label: 0.78125rem; --t-small: 0.90625rem; --t-body: 1.0625rem; --t-lead: 1.25rem;
  --t-h3: 1.5rem; --t-h2: 2rem; --t-h1: clamp(2.375rem, 1.5rem + 3.6vw, 3.875rem); --t-model: clamp(1.625rem, 1.3rem + 1.3vw, 2.125rem);
  --lh-body: 1.5; --lh-tight: 1.02; --track-label: 0.1em;
  --w-legend: 125%; --w-head: 72%; --w-model: 80%;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --measure: 66ch;
  /* radius personality: console keys are slightly rounded, paper is square, the lamp is a pill */
  --r-key: 6px; --r-panel: 14px; --r-pill: 999px; --r-paper: 1px;

  --light-x: -1; --light-y: -1; --light-angle: 160deg;
  --shadow-contact: calc(var(--light-x) * -1px) calc(var(--light-y) * -2px) 2px var(--shade-strong);
  --shadow-wide: calc(var(--light-x) * -6px) calc(var(--light-y) * -14px) 30px var(--shade-soft);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 140ms; --t-mid: 220ms; --t-slow: 280ms;

  /* night */
  --ground: oklch(0.17 0.022 25);
  --ground-2: oklch(0.21 0.026 25);
  --ground-3: oklch(0.27 0.03 25);
  --rule: oklch(0.40 0.03 30);
  --text: oklch(0.955 0.012 80);
  --text-dim: oklch(0.80 0.02 60);
  --tally: oklch(0.585 0.205 27);           /* the REC lamp: Amazon buttons and the lit lamp */
  --tally-ink: oklch(0.99 0.005 80);
  --tally-text: oklch(0.76 0.15 32);        /* red as text on the dark ground */
  --led: oklch(0.83 0.14 75);               /* amber key LEDs: the selected choice */
  --led-ink: oklch(0.22 0.04 60);
  --led-text: oklch(0.83 0.14 75);          /* amber used as text */
  --led-halo: oklch(0.83 0.14 75 / 0.45);
  --key-shade: oklch(0.06 0.02 25 / 0.5);
  --key-hi: oklch(1 0 0 / 0.08);
  --shade-strong: oklch(0.06 0.02 25 / 0.55);
  --shade-soft: oklch(0.06 0.02 25 / 0.45);
  --sheet: oklch(0.945 0.03 92);            /* the run sheet: VU-meter cream */
  --sheet-ink: oklch(0.24 0.03 30);
  --sheet-dim: oklch(0.42 0.03 40);
  --sheet-rule: oklch(0.80 0.04 90);
  --sheet-link: oklch(0.40 0.12 260);
  --mark: oklch(0.83 0.14 75 / 0.38);       /* highlighter under a quoted fact */
  --note-wash: oklch(0.83 0.14 75 / 0.16);

  /* scene */
  --wall: oklch(0.255 0.04 18);
  --wall-low: oklch(0.20 0.035 18);
  --lampshade: oklch(0.86 0.10 80 / 0.22);
  --foam: oklch(0.21 0.02 262);
  --foam-hi: oklch(0.31 0.025 262);
  --fabric: oklch(0.47 0.05 62);
  --fabric-hi: oklch(0.55 0.05 62);
  --desk-top: oklch(0.39 0.065 50);
  --desk: oklch(0.27 0.045 45);
  --desk-grain: oklch(0.33 0.055 48);
  --gear: oklch(0.17 0.008 260);
  --gear-top: oklch(0.25 0.01 260);
  --gear-edge: oklch(0.46 0.015 260);
  --gear-hi: oklch(0.64 0.02 260);
  --metal: oklch(0.72 0.01 260);
  --screen: oklch(0.32 0.06 230);
  --wave: oklch(0.83 0.14 75);
  --wave-2: oklch(0.80 0.12 160);
  --lamp-off: oklch(0.32 0.05 27);
  --lamp-on: oklch(0.62 0.21 27);
  --lamp-glow: oklch(0.62 0.21 27 / 0.45);
  --lamp-label: oklch(0.98 0.01 80);
  --cable: oklch(0.80 0.12 160);
  --floor: oklch(0.14 0.02 25);
  --window-top: oklch(0.15 0.04 265);
  --window-low: oklch(0.30 0.07 255);
  --window-frame: oklch(0.36 0.04 40);
  --city: oklch(0.86 0.12 80);
  --tag: oklch(0.955 0.012 80);
  --tag-ink: oklch(0.18 0.02 25);
}

@media (prefers-color-scheme: light) {
  :root {
    --ground: oklch(0.965 0.01 75);
    --ground-2: oklch(0.925 0.016 70);
    --ground-3: oklch(0.88 0.02 70);
    --rule: oklch(0.74 0.025 60);
    --text: oklch(0.22 0.03 30);
    --text-dim: oklch(0.41 0.03 35);
    --tally-text: oklch(0.50 0.19 28);
    --key-shade: oklch(0.30 0.03 40 / 0.35);
    --key-hi: oklch(1 0 0 / 0.5);
    --shade-strong: oklch(0.30 0.03 40 / 0.25);
    --shade-soft: oklch(0.30 0.03 40 / 0.18);
    --sheet: oklch(0.99 0.012 92);
    --sheet-rule: oklch(0.84 0.03 90);
    /* daytime studio */
    --wall: oklch(0.86 0.03 55);
    --wall-low: oklch(0.80 0.035 55);
    --lampshade: oklch(0.98 0.05 85 / 0.35);
    --foam: oklch(0.36 0.02 262);
    --foam-hi: oklch(0.46 0.025 262);
    --fabric: oklch(0.70 0.04 62);
    --fabric-hi: oklch(0.77 0.04 62);
    --desk-top: oklch(0.66 0.07 68);
    --desk: oklch(0.52 0.06 60);
    --desk-grain: oklch(0.60 0.065 65);
    --lamp-off: oklch(0.55 0.06 27);
    --led-text: oklch(0.47 0.11 62);
    --floor: oklch(0.70 0.03 55);
    --window-top: oklch(0.72 0.07 240);
    --window-low: oklch(0.90 0.05 80);
    --window-frame: oklch(0.97 0.01 80);
    --city: oklch(0.55 0.03 250);
  }
}
