/* ADM FILMS — COLOR SYSTEM
 * Chiaroscuro: warm near-blacks against candlelit ivory and gold,
 * anchored by rich, deep reds. No greys-for-greys'-sake, no desaturation.
 */

:root {
  /* ---- Ink: the dark side of the frame (warm, never blue-black) ---- */
  --ink-950: #0A0807;
  --ink-900: #120E0C;
  --ink-850: #181311;
  --ink-800: #1F1815;
  --ink-700: #2B221D;
  --ink-600: #3A2E27;
  --ink-500: #4E3F35;

  /* ---- Red: the brand's blood. Oxblood → garnet → candlelit signal ---- */
  --red-950: #2E0808;
  --red-900: #4A0E0E;
  --red-800: #6E1413;
  --red-700: #8B1A18;
  --red-600: #A81F1C;  /* primary */
  --red-500: #C2302B;
  --red-400: #D9554C;
  --red-300: #E98A82;

  /* ---- Amber: candlelight, the warm highlight ---- */
  --amber-600: #B0863A;
  --amber-500: #C9A24B;
  --amber-400: #D8B86A;
  --amber-300: #E7CE94;

  /* ---- Bone: the light side of the frame — warm ivory paper ---- */
  --bone-50:  #F6F1E9;
  --bone-100: #EEE6D9;
  --bone-200: #DFD3C2;
  --bone-300: #C7B9A4;
  --bone-400: #A4927C;
  --bone-500: #7E6C59;
  --bone-600: #5C4D3E;

  /* ---- Status (kept warm and filmic, not candy) ---- */
  --positive: #6E8C5A;
  --caution:  var(--amber-500);
  --negative: var(--red-500);

  /* ===================================================================
   * SEMANTIC ALIASES — dark is the default register (the studio voice)
   * =================================================================== */
  --bg-base:        var(--ink-950);
  --bg-raised:      var(--ink-900);
  --bg-inset:       var(--ink-850);
  --surface-card:   var(--ink-850);
  --surface-overlay: rgba(10, 8, 7, 0.72);

  --text-primary:   var(--bone-50);
  --text-secondary: var(--bone-200);
  --text-muted:     var(--bone-400);
  --text-faint:     var(--bone-500);
  --text-inverse:   var(--ink-900);
  --text-on-accent: var(--bone-50);

  --accent:         var(--red-600);
  --accent-hover:   var(--red-500);
  --accent-press:   var(--red-700);
  --accent-quiet:   rgba(168, 31, 28, 0.14);
  --highlight:      var(--amber-500);
  --highlight-quiet: rgba(201, 162, 75, 0.14);

  --border-subtle:  rgba(246, 241, 233, 0.10);
  --border-strong:  rgba(246, 241, 233, 0.22);
  --border-accent:  var(--red-700);

  --focus-ring:     var(--amber-400);
}

/* Light register — for paper: proposals, docs, printed decks.
 * Ivory ground, ink text, the same red. */
[data-theme="light"] {
  --bg-base:        var(--bone-50);
  --bg-raised:      #FFFFFF;
  --bg-inset:       var(--bone-100);
  --surface-card:   #FFFFFF;
  --surface-overlay: rgba(18, 14, 12, 0.55);

  --text-primary:   var(--ink-900);
  --text-secondary: var(--ink-700);
  --text-muted:     var(--bone-600);
  --text-faint:     var(--bone-500);
  --text-inverse:   var(--bone-50);
  --text-on-accent: var(--bone-50);

  --accent:         var(--red-700);
  --accent-hover:   var(--red-600);
  --accent-press:   var(--red-800);
  --accent-quiet:   rgba(168, 31, 28, 0.10);
  --highlight:      var(--amber-600);
  --highlight-quiet: rgba(176, 134, 58, 0.12);

  --border-subtle:  rgba(18, 14, 12, 0.12);
  --border-strong:  rgba(18, 14, 12, 0.24);
  --border-accent:  var(--red-700);

  --focus-ring:     var(--red-600);
}
