/* CV Pro colour tokens. Every colour web/pro.html uses comes from here; nothing else holds a hex.
   Three palettes, chosen by <html data-palette="chalk|night|harbour">; chalk ("Chalk & Brass") is the default.
   Semantic names only: surface (page, cards, raised), edge (hairlines), ink (text), accent (the teaching colour: links,
   focus of attention, progress), accent-strong (the one action to take), reward (what is done), good / bad (right / wrong),
   focus (keyboard ring), board-* (the teaching board), fig-* (lesson figures, set per context: paper in Read, board in Watch),
   code-* (syntax), mascot-* (the two hosts). on-* is the text drawn on a filled colour. */

:root, :root[data-palette="chalk"] {
  /* Chalk & Brass: warm charcoal, chalk cream, chalkboard green, terracotta, brass */
  --surface: #1c1a17; --surface-2: #26231f; --surface-3: #312d28; --surface-sunk: #161412;
  --edge: rgba(243, 236, 223, .09); --edge-strong: rgba(243, 236, 223, .18);
  --ink: #f3ecdf; --ink-muted: #b5ab9b; --ink-faint: #958b7c;
  --accent: #7fbf9c; --accent-fill: #3f7d5e; --accent-wash: rgba(127, 191, 156, .12);
  --accent-strong: #b45832; --accent-strong-hover: #a84f2c; --on-strong: #fff8f0;   /* terracotta #c8643b, 8% deeper so cream text passes AA (4.55) */
  --reward: #c9a24a; --reward-wash: rgba(201, 162, 74, .14); --on-reward: #1c1a17;
  --good: #6fb38e; --good-wash: rgba(111, 179, 142, .12);
  --bad: #d9907a; --bad-wash: rgba(217, 144, 122, .11);
  --focus: #e8c766;
  --scrim: rgba(12, 11, 9, .62); --shadow: rgba(0, 0, 0, .38);
  --glow-a: rgba(63, 125, 94, .16); --glow-b: rgba(201, 162, 74, .06);
  --board-bg: #22352c; --board-edge: #1a2922; --board-chalk: #eee8da; --board-dim: rgba(238, 232, 218, .55); --board-faint: rgba(238, 232, 218, .16);
  --board-mark: #e8c766; --board-pink: #e7a58f; --board-green: #a9d8b4; --board-blue: #9cc8de; --board-cap: rgba(10, 16, 13, .45);
  --paper: #f3ecdf; --paper-ink: #2a2520; --paper-muted: #6e6457; --paper-line: rgba(42, 37, 32, .18);
  --code-comment: #8f8677; --code-str: #b7d8a0; --code-num: #e8b57a; --code-kw: #9cc8de; --code-fn: #e7a58f; --code-bg: #141210;
  --mascot-a: #c8643b; --mascot-b: #f3ecdf; --mascot-eye: #1c1a17;
}

:root[data-palette="night"] {
  /* Studio Night: ink teal-black, off-white, signal orange, brass, mint */
  --surface: #0f1716; --surface-2: #172220; --surface-3: #1f2d2a; --surface-sunk: #0b1110;
  --edge: rgba(236, 242, 238, .08); --edge-strong: rgba(236, 242, 238, .17);
  --ink: #edf2ee; --ink-muted: #a6b4af; --ink-faint: #85948f;
  --accent: #ff7a3d; --accent-fill: #ff6b2c; --accent-wash: rgba(255, 107, 44, .12);
  --accent-strong: #ff6b2c; --accent-strong-hover: #ff8048; --on-strong: #0f1716;
  --reward: #c9a24a; --reward-wash: rgba(201, 162, 74, .14); --on-reward: #0f1716;
  --good: #7fd6b0; --good-wash: rgba(127, 214, 176, .11);
  --bad: #f2948a; --bad-wash: rgba(242, 148, 138, .11);
  --focus: #ffd08a;
  --scrim: rgba(4, 8, 7, .66); --shadow: rgba(0, 0, 0, .45);
  --glow-a: rgba(127, 214, 176, .07); --glow-b: rgba(255, 107, 44, .05);
  --board-bg: #14211e; --board-edge: #0e1715; --board-chalk: #e9efe9; --board-dim: rgba(233, 239, 233, .55); --board-faint: rgba(233, 239, 233, .15);
  --board-mark: #ff9a5c; --board-pink: #f5a99c; --board-green: #9be3c3; --board-blue: #9fd1e8; --board-cap: rgba(0, 0, 0, .4);
  --paper: #edf2ee; --paper-ink: #13201d; --paper-muted: #56645f; --paper-line: rgba(19, 32, 29, .18);
  --code-comment: #7d8c87; --code-str: #a9e3c4; --code-num: #ffb27d; --code-kw: #9fd1e8; --code-fn: #ffcf8a; --code-bg: #0a100f;
  --mascot-a: #ff6b2c; --mascot-b: #edf2ee; --mascot-eye: #0f1716;
}

:root[data-palette="harbour"] {
  /* Harbour: deep sea navy, sail white, harbour-light amber, sea-foam */
  --surface: #0d1b2a; --surface-2: #14263a; --surface-3: #1c3349; --surface-sunk: #0a1521;
  --edge: rgba(244, 241, 234, .08); --edge-strong: rgba(244, 241, 234, .17);
  --ink: #f4f1ea; --ink-muted: #a9b8c8; --ink-faint: #8798ab;
  --accent: #f2a541; --accent-fill: #f2a541; --accent-wash: rgba(242, 165, 65, .12);
  --accent-strong: #f2a541; --accent-strong-hover: #f5b25a; --on-strong: #0d1b2a;
  --reward: #e3c27a; --reward-wash: rgba(227, 194, 122, .13); --on-reward: #0d1b2a;
  --good: #7cc6b6; --good-wash: rgba(124, 198, 182, .12);
  --bad: #f09a8a; --bad-wash: rgba(240, 154, 138, .11);
  --focus: #f7d08a;
  --scrim: rgba(5, 11, 18, .66); --shadow: rgba(0, 0, 0, .45);
  --glow-a: rgba(124, 198, 182, .08); --glow-b: rgba(242, 165, 65, .05);
  --board-bg: #11293b; --board-edge: #0b1d2b; --board-chalk: #eef2f5; --board-dim: rgba(238, 242, 245, .55); --board-faint: rgba(238, 242, 245, .15);
  --board-mark: #f2b45a; --board-pink: #f3ab9e; --board-green: #9fdccd; --board-blue: #a9cdea; --board-cap: rgba(0, 0, 0, .38);
  --paper: #f4f1ea; --paper-ink: #12212f; --paper-muted: #566475; --paper-line: rgba(18, 33, 47, .18);
  --code-comment: #7f90a3; --code-str: #a6dccc; --code-num: #f6c27c; --code-kw: #a9cdea; --code-fn: #f3ab9e; --code-bg: #091420;
  --mascot-a: #f2a541; --mascot-b: #f4f1ea; --mascot-eye: #0d1b2a;
}

/* lesson figures: paper by default (Read), the board's chalk inside the board (Watch) */
:root {
  --fig-surface: var(--paper); --fig-ink: var(--paper-ink); --fig-muted: var(--paper-muted); --fig-line: var(--paper-line);
  --fig-accent: var(--accent-fill); --fig-good: #3f7d5e; --fig-bad: #b4552f; --fig-font: var(--font-ui);
  /* the code editor's own names (web/lib/codemirror/cvpro-editor.js reads these two) */
  --text: var(--ink); --gold: var(--focus);
}
:root[data-palette="night"] { --fig-good: #1f7a5a; --fig-bad: #c0452a; }
:root[data-palette="harbour"] { --fig-accent: #b06a10; --fig-good: #1f6f61; --fig-bad: #b4473a; }
.fig-board {
  --fig-surface: transparent; --fig-ink: var(--board-chalk); --fig-muted: var(--board-dim); --fig-line: var(--board-faint);
  --fig-accent: var(--board-mark); --fig-good: var(--board-green); --fig-bad: var(--board-pink);
}

/* faces: Newsreader for what is read (questions, lessons), Geist for the interface and numbers, Geist Mono for code,
   Kalam for the board's handwriting only. Loaded by the page from Google Fonts (display=swap). */
:root {
  /* one clean sans for everything (the owner did not like the serif headers) */
  --font-display: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-text: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-ui: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-code: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --font-hand: 'Kalam', 'Chalkboard SE', 'Segoe Print', cursive;
}
