/* SPDX-License-Identifier: GPL-3.0-only */
/* Night studio, the single source of color and type. Every renderer
   stylesheet consumes these tokens; raw hex anywhere else fails the
   design lint (scripts/check-design.js). Amber is reserved for live and
   active states, red for record and error. The waveform pill is the one
   loud element; everything else stays quiet. */
:root {
  /* ground */
  --ink: #0f0e11;
  --panel: #17161b;
  --panel-lift: #26242c;
  --panel-glass: rgba(23, 22, 27, 0.96);
  --panel-edge: rgba(236, 233, 228, 0.07);

  /* voice */
  --text: #ece9e4;
  --text-dim: #9a968f;
  --cream-06: rgba(236, 233, 228, 0.06);
  --cream-14: rgba(236, 233, 228, 0.14);
  --cream-22: rgba(236, 233, 228, 0.22);
  --cream-25: rgba(236, 233, 228, 0.25);
  --cream-35: rgba(236, 233, 228, 0.35);
  --cream-55: rgba(236, 233, 228, 0.55);
  --cream-60: rgba(236, 233, 228, 0.6);

  /* brand: burnished gold, the icon's metal at label luminance.
     Headlines, micro-labels, and static highlights wear it; it sits
     deliberately below signal amber in brightness so the live needle
     still outshines the hardware (LaBroi direction, 2026-09-07). */
  --brand: #d9a441;
  --brand-edge: rgba(217, 164, 65, 0.5);

  /* paint (US-073, the brushwork art direction, LaBroi 2026-10-01).
     Brush marks only, never interface chrome. Smoke is background
     brushwork, rice paper is chalky strokes and paper grounds, ember is
     splatter and celebration. Ember never marks an error; red does. */
  --smoke: #3a3c44;
  --rice: #e9e3d6;
  --ember: #e8582b;

  /* signals */
  --amber: #f0a44b;
  --amber-soft: rgba(240, 164, 75, 0.55);
  --red: #e5484d;
  --red-soft: rgba(229, 72, 77, 0.55);

  /* data emphasis: the activity wall's default fill. Vibrant orange on
     purpose (LaBroi, 2026-09-07): cream read as the white belt color.
     Distinct from signal amber, which stays reserved for live states. */
  --heat-default: #f97316;
  /* The inverted wall's resting square: pure white by founder decree
     (2026-09-07), so dark fills read like ink on paper. */
  --heat-invert-bg: #ffffff;
  --red-edge: rgba(229, 72, 77, 0.35);
  --red-glow: rgba(229, 72, 77, 0.7);
  --red-wash: rgba(229, 72, 77, 0.06);
  --ok: #7fb069;
  /* Keep in sync with founderGold in shared/cosmetics.json. */
  --founder-gold: #e0b64f;
  --ok-edge: rgba(127, 176, 105, 0.4);

  /* type */
  --font-body:
    'Inter',
    -apple-system,
    'Segoe UI',
    sans-serif;
  --font-mono: 'Cascadia Mono', 'SF Mono', ui-monospace, monospace;

  /* The bare overlay's ink edge (US-061): the ink at about half strength,
     hugging each mark so it reads over a white page without drawing an
     outline. LaBroi picked this over a hard outline and a smoke cloud
     from a live preview, 2026-09-25. */
  --ink-edge: rgba(15, 14, 17, 0.55);
}

/* Unlockable theme: morning mist. Cooler ground, same signals. */
:root[data-theme='mist'] {
  --ink: #10131a;
  --panel: #191d26;
  --panel-glass: rgba(25, 29, 38, 0.96);
  --panel-edge: rgba(226, 233, 240, 0.08);
  --text: #e6ebf0;
  --text-dim: #93a0ac;
}
