/* ==========================================================================
   Seated: design tokens (2026-10 rebrand)
   ==========================================================================
   Rota Done's family base (ink, paper, Geist) with Seated's own signature,
   plum. Paper is the default; html.dark switches to ink (templates/_theme.html,
   localStorage key `seated-theme`).

   --action is the button colour: ink on paper, paper on ink. --brand is plum,
   the signature: the logo, the full stop, and tables that are seated. It is
   never an error colour; --bad is.
   ========================================================================== */

@font-face { font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/static/fonts/geist-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/static/fonts/geist-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/static/fonts/geist-mono-latin.woff2') format('woff2'); }

:root {
  /* ---- Paper (default) ---------------------------------------------- */
  --bg:            #f6f5f1;
  --surface:       #ffffff;
  --surface2:      #eeece6;
  --band:          #e8e5dc;
  --border:        #d4d0c6;
  --border-soft:   rgba(17, 22, 29, 0.08);
  --border-strong: rgba(17, 22, 29, 0.28);

  --text:   #11161d;
  --muted:  #4d5561;
  --muted2: #626a75;   /* 5:1 on paper: secondary text passes AA */

  --action:        #11161d;
  --action-strong: #000000;
  --on-action:     #ffffff;
  --wash:          rgba(17, 22, 29, 0.06);

  --brand:        #7b3fb0;
  --brand-strong: #66329a;
  --brand-text:   #6a3499;
  --brand-wash:   rgba(123, 63, 176, 0.10);
  --on-brand:     #ffffff;

  --good: #1e7a55;
  --warn: #966000;
  --bad:  #c2261b;

  --shadow: 0 22px 60px rgba(17, 22, 29, 0.12);
  --radius: 10px;
  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  /* Numbers (times, counts, covers) are Geist with even-width figures, so they
     line up in columns without the typewriter look. Mono is for keys and links. */
  --font-num: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}

html.dark {
  /* ---- Ink ---------------------------------------------------------- */
  --bg:            #0e1116;
  --surface:       #151920;
  --surface2:      #1c2129;
  --band:          #12161c;
  --border:        #2a303a;
  --border-soft:   rgba(255, 255, 255, 0.06);
  --border-strong: rgba(243, 242, 238, 0.24);

  --text:   #f3f2ee;
  --muted:  #a7adb6;
  --muted2: #858d98;   /* 5.6:1 on ink */

  --action:        #f3f2ee;
  --action-strong: #ffffff;
  --on-action:     #11161d;
  --wash:          rgba(243, 242, 238, 0.08);

  --brand:        #a77bd8;
  --brand-strong: #b991e0;
  --brand-text:   #b58fe0;
  --brand-wash:   rgba(167, 123, 216, 0.14);
  --on-brand:     #120b19;

  --good: #3fb97a;
  --warn: #e0a53a;
  --bad:  #ff6b5e;

  --shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}
