/* ============================================================
   CRO CUSTOMS — COLOR TOKENS
   ------------------------------------------------------------
   The brand lives in monochrome: high-contrast black & white,
   the way the one-color badge and the black-and-white shop
   photography read. A single warm BRASS accent (raw hardware,
   the bronze forged skull) carries highlight + action duty.
   FLAME is a hot orange-red borrowed from painted tank work,
   used sparingly for alerts and rare emphasis.
   ============================================================ */

:root {
  /* ---- Base neutrals: warm graphite ink → bone paper ---- */
  --ink-900: #0d0d0e;   /* near-black, faint warmth — primary surface */
  --ink-800: #161617;
  --ink-700: #1f1f21;
  --ink-600: #2c2c2f;
  --ink-500: #3d3d41;
  --steel-400: #5c5c61;  /* mid graphite */
  --steel-300: #8a8a90;  /* worn steel */
  --steel-200: #b9b9bd;
  --steel-100: #dad8d2;  /* light dust */
  --bone-50:  #f4f1ea;   /* warm bone / shop paper — primary light bg */
  --bone-0:   #fbfaf6;   /* lightest paper */
  --white:    #ffffff;
  --black:    #000000;

  /* ---- Brass: the one warm accent (hardware / bronze) ---- */
  --brass-700: #6e4912;
  --brass-600: #8a5d1a;
  --brass-500: #b07d27;  /* core brass */
  --brass-400: #c8902f;  /* bright brass — primary accent */
  --brass-300: #ddae5a;
  --brass-200: #ecca8e;

  /* ---- Flame: hot orange-red, painted-tank emphasis ---- */
  --flame-600: #a82d12;
  --flame-500: #d7401f;  /* core flame */
  --flame-400: #ef5e34;

  /* ---- Functional semantic hues (muted, shop-grade) ---- */
  --signal-go:    #4f8a3e;  /* go / success — worn enamel green */
  --signal-go-bg: #e7efe2;
  --signal-warn:    #b07d27;  /* warn — brass */
  --signal-warn-bg: #f6ecd6;
  --signal-stop:    #c0341a;  /* error / stop */
  --signal-stop-bg: #f7e1da;

  /* ============================================================
     SEMANTIC ALIASES — reference these in components, not raw
     ============================================================ */

  /* Surfaces (default = light / "shop paper" theme) */
  --surface-page:     var(--bone-50);
  --surface-raised:   var(--bone-0);
  --surface-card:     var(--white);
  --surface-sunken:   var(--steel-100);
  --surface-inverse:  var(--ink-900);

  /* Text */
  --text-strong:   var(--ink-900);
  --text-body:     var(--ink-700);
  --text-muted:    var(--steel-400);
  --text-faint:    var(--steel-300);
  --text-inverse:  var(--bone-50);
  --text-accent:   var(--brass-600);
  --text-on-accent: var(--ink-900);

  /* Lines & borders */
  --border-hairline: rgba(13,13,14,0.12);
  --border-default:  rgba(13,13,14,0.22);
  --border-strong:   var(--ink-900);
  --border-accent:   var(--brass-400);

  /* Interactive / accent */
  --accent:          var(--brass-400);
  --accent-hover:    var(--brass-500);
  --accent-press:    var(--brass-600);
  --accent-contrast: var(--ink-900);

  /* Focus ring */
  --focus-ring: var(--brass-400);
}

/* ============================================================
   DARK / "BLACKED-OUT" THEME
   The product world: black billet on black backdrops. Apply
   to any subtree with [data-theme="dark"].
   ============================================================ */
[data-theme="dark"] {
  --surface-page:    var(--ink-900);
  --surface-raised:  var(--ink-800);
  --surface-card:    var(--ink-700);
  --surface-sunken:  var(--black);
  --surface-inverse: var(--bone-50);

  --text-strong:  var(--bone-0);
  --text-body:    var(--steel-100);
  --text-muted:   var(--steel-300);
  --text-faint:   var(--steel-400);
  --text-inverse: var(--ink-900);
  --text-accent:  var(--brass-300);
  --text-on-accent: var(--ink-900);

  --border-hairline: rgba(255,255,255,0.10);
  --border-default:  rgba(255,255,255,0.18);
  --border-strong:   var(--bone-50);
  --border-accent:   var(--brass-400);

  --accent:       var(--brass-400);
  --accent-hover: var(--brass-300);
  --accent-press: var(--brass-500);
}
