/* Spanish Trainer v2 - design tokens
   Rule: Spanish text = Serif, Russian/UI = Sans, numbers and dates = Mono.
   One accent. Green = done/correct, red = work today/incorrect. No other signal colors. */

:root {
  --font-sans: 'IBM Plex Sans', system-ui, sans-serif;
  /* Serif and Mono ship Latin only: Cyrillic in them falls back to Sans, never to a system serif or monospace. */
  --font-serif: 'IBM Plex Serif', 'IBM Plex Sans', Georgia, serif; /* all Spanish text */
  --font-mono: 'IBM Plex Mono', 'IBM Plex Sans', ui-monospace, monospace;

  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 16px;
  --tap: 44px;          /* minimum touch target */
  --quiet-weight: 400;  /* quiet text (muted, dim, menu items); heavier on the pale light themes (D-119, D-120) */
  --module-done: var(--ok);  /* a module card's bar when the day is done; the accent on the light themes (D-120) */
  --btn-session: 60px;  /* grade buttons in a session */

  /* dark - default */
  --bg: #0b0e12;
  --surface: #12161c;
  --surface-raised: #181d24;
  --border: #222932;
  --line: #2c343e;          /* outlines of neutral buttons, inputs */
  --text: #e8ebef;
  --text-body: #c9cfd7;     /* long reading text */
  --text-muted: #949ca8;
  --text-dim: #7c8591;
  --accent: #5cb3e6;
  --on-accent: #06121b;
  --accent-wash: #0f2230;   /* current item, irregular verb part */
  --accent-line: #24506b;
  --ok: #52c08a;
  --ok-wash: #0e2119;
  --ok-line: #245a3f;
  --bad: #ec7268;
  --bad-wash: #261514;
  --bad-line: #5e2b28;      /* "work today" card border: thin, no fill */
}

/* Light: the softer "denim" (D-120) — a blue-grey ground instead of near-white, jeans-blue accent; quiet text darker
   and a little heavier, as on the warm themes. */
[data-theme=light] {
  --bg: #eef2f7;
  --surface: #f9fbfd;
  --surface-raised: #e3e9f1;
  --border: #d6dee9;
  --line: #c3cedc;
  --text: #1c2633;
  --text-body: #2c3848;
  --text-muted: #4a586b;
  --text-dim: #556378;
  --quiet-weight: 500;
  --module-done: var(--accent);
  --accent: #2f5d8a;
  --on-accent: #ffffff;
  --accent-wash: #dfe8f3;
  --accent-line: #a9bed8;
  --ok: #1a7d44;
  --ok-wash: #e8f5ed;
  --ok-line: #a6d5b9;
  --bad: #bf3a33;
  --bad-wash: #fcefee;
  --bad-line: #eab1ad;
}

/* Warm light themes (D-119): blush — dusty rose with raspberry, lavender — lilac with violet. Their quiet text is
   darker and a little heavier, so it reads on the pale ground. */
[data-theme=blush] {
  --bg: #fbeff1;
  --surface: #fffafb;
  --surface-raised: #f7e3e8;
  --border: #eed3d9;
  --line: #e2bfc9;
  --text: #3b2430;
  --text-body: #42293a;
  --text-muted: #5e3f4c;
  --text-dim: #6b4d59;
  --quiet-weight: 500;
  --module-done: var(--accent);
  --accent: #b0436b;
  --on-accent: #ffffff;
  --accent-wash: #f8dce5;
  --accent-line: #e7afc2;
  --ok: #2f7d55;
  --ok-wash: #e6f3eb;
  --ok-line: #a9d3bb;
  --bad: #b83a3a;
  --bad-wash: #fbeaea;
  --bad-line: #e8b0b0;
}

/* Quiet dark themes (D-120): graphite — orange accent; pine — dark green. */
[data-theme=graphite] {
  --bg: #1b1e21;
  --surface: #24282c;
  --surface-raised: #2a2e33;
  --border: #343a40;
  --line: #3f464d;
  --text: #eceef0;
  --text-body: #cdd2d7;
  --text-muted: #a3a9b0;
  --text-dim: #8c939a;
  --accent: #ff8a3d;
  --on-accent: #1b1e21;
  --accent-wash: #3a2a1e;
  --accent-line: #7a4a2a;
  --ok: #6ccb8f;
  --ok-wash: #15271d;
  --ok-line: #2f5e42;
  --bad: #f07a6e;
  --bad-wash: #2b1816;
  --bad-line: #6a302b;
}

[data-theme=pine] {
  --bg: #141b17;
  --surface: #1b241f;
  --surface-raised: #202b25;
  --border: #2c3a32;
  --line: #36463d;
  --text: #e8efe9;
  --text-body: #c8d4cb;
  --text-muted: #a2b3a7;
  --text-dim: #8a9c90;
  --accent: #8fcb7a;
  --on-accent: #14200f;
  --accent-wash: #24382a;
  --accent-line: #4c6b48;
  --ok: #6fbf9a;
  --ok-wash: #142a20;
  --ok-line: #2d5a44;
  --bad: #ef7b6f;
  --bad-wash: #2a1715;
  --bad-line: #66302b;
}

/* Mi amor (D-131): the ground of pine, the orange accent of graphite. */
[data-theme=miamor] {
  --bg: #141b17;
  --surface: #1b241f;
  --surface-raised: #202b25;
  --border: #2c3a32;
  --line: #36463d;
  --text: #e8efe9;
  --text-body: #c8d4cb;
  --text-muted: #a2b3a7;
  --text-dim: #8a9c90;
  --accent: #ff8a3d;
  --on-accent: #141b17;
  --accent-wash: #3a2a1e;
  --accent-line: #7a4a2a;
  --ok: #6fbf9a;
  --ok-wash: #142a20;
  --ok-line: #2d5a44;
  --bad: #ef7b6f;
  --bad-wash: #2a1715;
  --bad-line: #66302b;
}

[data-theme=lavender] {
  --bg: #f4f0fa;
  --surface: #ffffff;
  --surface-raised: #ece5f7;
  --border: #ded4ee;
  --line: #cfc2e6;
  --text: #2c2340;
  --text-body: #322a48;
  --text-muted: #4b4166;
  --text-dim: #574d72;
  --quiet-weight: 500;
  --module-done: var(--accent);
  --accent: #7448c2;
  --on-accent: #ffffff;
  --accent-wash: #ebe2fa;
  --accent-line: #c9b6ec;
  --ok: #2f7d55;
  --ok-wash: #e6f3eb;
  --ok-line: #a9d3bb;
  --bad: #b83a3a;
  --bad-wash: #fbeaea;
  --bad-line: #e8b0b0;
}

/* Type scale (px): 11.5 label caps, 13 meta, 15 UI, 16.5-18 reading,
   19 Spanish example, 28 screen title, 40 card question (Sans), 48 card answer (Serif), 64 summary number (Mono). */
