/* Retenra design tokens.
   Premium redesign experiment, Phase 1, 2026-11-27: the design
   foundation. The palette is the navy and teal scheme the owner
   chose for this experiment. Navy carries the brand, interactive
   blue carries every action, teal is the secondary accent for
   progress and achievement adjacent moments, and success, error,
   and warning stay semantic only: green means correct or
   complete, red means an error or something wrong, amber means
   caution or uncertainty. Color never carries meaning alone; the
   text labels stay. Gold survives only as the achievement accent
   token at the bottom, defined here for later phases and applied
   nowhere yet. Every page builds from these values and no others. */

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Color, light theme (canonical) */
  --navy: #0B253B;          /* primary navy */
  --navy-2: #173B55;        /* secondary navy */
  --navy-3: #173B55;
  --blue: #3478F6;          /* interactive blue */
  --blue-dark: #2B66D6;
  --blue-soft: #E8F0FE;
  --teal: #168C8C;          /* muted teal, secondary accent */
  --teal-soft: #E0F2F2;
  --ink: #10283C;           /* primary text */
  --bg: #F4F6F9;            /* main background */
  --surface: #FFFFFF;       /* elevated surface */
  --surface-2: #E8EDF2;
  --line: #DCE3EB;          /* border */
  --muted: #64748B;         /* secondary text */
  --faint: #8496AB;
  --green: #16865A;         /* success */
  --green-strong: #0E6B45;
  --green-soft: #E0F2E9;
  --red: #C94A4A;           /* error */
  --red-dark: #A93A3A;
  --red-soft: #FAE9E9;
  --amber: #D99A24;         /* warning */
  --amber-dark: #9A6B14;
  --amber-soft: #FBF0DA;

  /* Depth. An elevation scale tuned for white surfaces resting
     on the light background: quiet at rest, clearly lifted for
     overlays and the largest cards. The two legacy shadow tokens
     alias the matching steps so existing rules keep their look. */
  --elev-1: 0 1px 2px rgba(11, 37, 59, 0.05), 0 2px 6px rgba(11, 37, 59, 0.05);
  --elev-2: 0 6px 20px rgba(11, 37, 59, 0.10);
  --elev-3: 0 10px 28px rgba(11, 37, 59, 0.12), 0 4px 10px rgba(11, 37, 59, 0.06);
  --elev-4: 0 18px 44px rgba(11, 37, 59, 0.14);
  --shadow-sm: var(--elev-2);
  --shadow: var(--elev-4);

  /* Gradients. Navy surfaces take a subtle fall from the
     secondary navy into the primary navy; progress fills may run
     from teal into the interactive blue. Nothing brighter. */
  --grad-navy: linear-gradient(155deg, #173B55 0%, #0B253B 70%);
  --grad-progress: linear-gradient(90deg, #168C8C, #3478F6);

  /* Glow. A soft blue halo for primary actions and focused
     fields, restrained enough for a professional tool. */
  --glow-primary: 0 8px 22px rgba(52, 120, 246, 0.35);
  --glow-primary-hover: 0 10px 26px rgba(52, 120, 246, 0.42);
  --glow-focus: 0 0 0 4px rgba(52, 120, 246, 0.22);

  /* Type. Inter throughout, self hosted. One hierarchy for page
     titles, section headings, question text, answer choices,
     explanations, labels, and stats. The heaviest weight the
     scale uses is 800. */
  --font: "Inter", system-ui, sans-serif;
  --text-caption: 0.72rem;
  --text-small: 0.85rem;
  --text-body: 0.95rem;
  --text-body-lg: 1.05rem;
  --text-h3: 1.2rem;
  --text-h2: 1.5rem;
  --text-display: 1.9rem;
  --leading-body: 1.55;
  --leading-tight: 1.2;

  /* Spacing. 4 point base; the steps are the values the shell
     and shared components use. */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-9: 36px;
  --space-12: 48px;

  /* Shape. One radius scale from small controls to the largest
     bands. */
  --radius-xs: 8px;
  --radius-sm: 14px;
  --radius: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  /* Achievement accent. Defined for the progression work in
     later phases of this experiment; applied nowhere in Phase 1. */
  --achievement: #B8860B;
  --achievement-soft: #F6EDD8;

  /* Touch */
  --tap-min: 44px;
}

[data-theme="dark"] {
  --ink: #EDF3F9;
  --bg: #07182A;
  --surface: #0B253B;
  --surface-2: #173B55;
  --line: #173B55;
  --muted: #A3B7C9;
  --faint: #8296AB;
  --green-strong: #6FD3AE;
  --green-soft: #0E2F26;
  --red-soft: #3D1418;
  --blue-soft: #12283F;
  --teal-soft: #0C2B2B;
  --amber-soft: #2E2410;
  --achievement-soft: #2E2410;
  --elev-1: 0 1px 2px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.3);
  --elev-2: 0 6px 20px rgba(0, 0, 0, 0.4);
  --elev-3: 0 10px 28px rgba(0, 0, 0, 0.45), 0 4px 10px rgba(0, 0, 0, 0.35);
  --elev-4: 0 18px 44px rgba(0, 0, 0, 0.5);
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.4);
}
