/*
  firmclerk-tokens.css — the Editorial design tokens for FirmClerk.
  Source of truth: DESIGN.md (this mirrors it). Defined in oklch.
  The palette is a near-neutral cool-grey ink ladder plus exactly one
  chromatic accent — the oxblood "suit lining", used sparingly.
*/
:root {
  /* surfaces */
  --fc-bg:        oklch(0.992 0 0);        /* page — near-white paper            */
  --fc-surface:   oklch(0.974 0.002 265);  /* raised panels, alt sections        */
  --fc-panel:     oklch(0.95 0.004 265);   /* nested panels, tag fills           */

  /* ink ladder */
  --fc-ink:       oklch(0.23 0.016 265);   /* primary text                       */
  --fc-ink-soft:  oklch(0.43 0.016 265);   /* secondary text                     */
  --fc-ink-faint: oklch(0.52 0.012 265);   /* tertiary text, mono labels (AA)    */
  --fc-rule:      oklch(0.9 0.006 265);    /* borders, dividers                  */
  --fc-rule-soft: oklch(0.95 0.004 265);   /* hairlines inside components        */

  /* dark "drenched" band */
  --fc-band:      oklch(0.23 0.016 265);   /* full-bleed ink band background     */
  --fc-paper-inv: oklch(0.985 0.003 60);   /* warm white text on the ink band    */

  /* single bespoke accent — the suit lining. Oxblood, used sparingly. */
  --fc-accent:    oklch(0.46 0.137 24);
  --fc-accent-dk: oklch(0.38 0.12 24);
  --fc-accent-dim: oklch(0.46 0.137 24 / 0.10);

  /* type */
  --fc-font-display: 'Fraunces', serif;        /* display, headings, pull-quotes */
  --fc-font:         'DM Sans', system-ui, sans-serif; /* body, UI, buttons       */
  --fc-font-mono:    'DM Mono', monospace;     /* kickers, labels, meta          */

  /* motion */
  --fc-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/*
  Dark usage is the ink band, not a full dark theme. On the band, lighten the
  accent for legibility (e.g. color-mix(in oklch, var(--fc-accent) 62%, white)).
*/
[data-theme="dark"] {
  --fc-bg:        oklch(0.23 0.016 265);
  --fc-surface:   oklch(0.27 0.016 265);
  --fc-panel:     oklch(0.31 0.016 265);
  --fc-ink:       oklch(0.985 0.003 60);
  --fc-ink-soft:  oklch(0.82 0.01 265);
  --fc-ink-faint: oklch(0.68 0.012 265);
  --fc-rule:      oklch(0.36 0.012 265);
  --fc-accent:    oklch(0.62 0.15 26);
}
