/*
 * Code & Commerce theme (Palette Option C "Distinct identity", chosen 14 Oct 2026).
 * A theme only sets tokens. Every page style in /css/app.css reads these, so a new brand is a copy
 * of this folder with new values, a new mark.svg, and Brand:Theme pointing at it. See docs/branding.md.
 */
@font-face { font-family: "Space Grotesk"; src: url("/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/ibm-plex-sans-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  /* Type */
  --font-display: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;

  /* Brand */
  --brand-ink: #14304a;          /* Ledger Navy: headings, primary actions, dark panels */
  --brand-ink-hover: #1d3d5c;
  --brand-ink-raised: #1d3d5c;   /* cards on dark panels */
  --brand-on-ink: #f6f5f0;       /* text on navy */
  --brand-on-ink-muted: #b8bfce;
  --brand-highlight: #b0306b;    /* Raspberry: "new", "today", offers; use sparingly */
  --brand-highlight-soft: #f2a7c3; /* highlight on dark panels, the wordmark join */
  --brand-mark-ring: #4fa3c2;

  /* Subject accents (Brand:SubjectAccents maps specifications to these) */
  --accent-1: #1c6e8c;           /* Code Blue: Computer Science, KS3 Computing */
  --accent-1-soft: #e3f0f4;
  --accent-2: #5b3377;           /* Commerce Purple: Business */
  --accent-2-soft: #efe7f4;
  --accent-3: #b0306b;
  --accent-3-soft: #f8e6ee;

  /* The quiz itself (Quiz Teal is kept to the quiz app) */
  --quiz: #2a9d8f;
  --quiz-soft: #e2f3f0;

  /* Feedback */
  --correct: #5fa35a;            /* fills and icons only (3.1:1) */
  --correct-ink: #2f5a33;        /* text on --correct-soft */
  --correct-soft: #e8f3e6;
  --wrong: #b42318;
  --wrong-ink: #8f1d14;
  --wrong-soft: #fbeae8;
  --warning-soft: #fdf3dc;
  --warning-ink: #7a4b00;

  /* Neutrals: warm paper, as in the lesson template */
  --surface-page: #f6f5f0;
  --surface-sunken: #eeece5;     /* sidebar */
  --surface-card: #fffdf8;
  --surface-raised: #ffffff;
  --line: #e4e1d8;
  --line-strong: #cfcbc0;
  --text: #3a3f44;               /* Charcoal */
  --text-muted: #5b6170;
  --text-faint: #8a8f99;

  /* Shape and depth */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgb(20 48 74 / 0.05);
  --shadow: 0 1px 2px rgb(20 48 74 / 0.05), 0 4px 16px rgb(20 48 74 / 0.06);
  --shadow-lg: 0 2px 4px rgb(20 48 74 / 0.05), 0 16px 40px rgb(20 48 74 / 0.10);
  --focus-ring: 0 0 0 3px rgb(28 110 140 / 0.28);
  --on-fill: #ffffff;            /* text and icons on solid accent fills */
  --radius-xl: 28px;
  --shadow-xl: 0 4px 8px rgb(11 26 43 / 0.06), 0 30px 80px rgb(11 26 43 / 0.18);

  /* Night: the quiz site's hero and pupil header, a deeper Ledger Navy */
  --night: #0b1a2b;
  --night-raised: #13283f;
  --night-line: #233c57;
  --on-night: #f6f5f0;
  --on-night-muted: #a9b6c8;

  /* Quiz extras */
  --quiz-ink: #1d6f65;           /* teal text on light surfaces (5.6:1) */
  --quiz-bright: #5fd3c2;        /* teal on night */
  --sun: #f2b84b;                /* stars and "secure" highlights; fills only */
  --sun-soft: #fdf1d8;
  --sun-ink: #7a4b00;
  --misconception: #c2410c;      /* sure but wrong */
  --misconception-soft: #fde9dd;
}
