/*
 * M4M design tokens.
 *
 * Pick (16 Nov 2026): direction B "Hravá modř". Adam picked docs/mockups/direction-b-v2.html
 * and steered it into docs/mockups/direction-b-v3-game.html. The app builds from v3
 * (Ruling 29), whose look the applet galleries (applets-round2.html) already use.
 *
 * Steering notes:
 * - Two blues. Flag blue #0038B8 (Israeli flag, PMS 286 C, Eva's request) is for the brand
 *   and main actions. The lighter #3F7DEB is for progress, data and done states.
 *   Fallback if Eva means the lighter flag blue: #005EB8 (PMS 300) for --cobalt.
 * - Adam: "it still needs to be user friendly UX". Friendliness beats playfulness where they
 *   conflict, so the shell keeps the v3 colours, type, radii and pressable "lip" shadows,
 *   but leaves out XP levels, quests, chests and combo counters.
 * - No mascots, no leaderboards, no streak shaming.
 * - Fonts: Bricolage Grotesque (--font) for headings, buttons, labels and numbers, vendored under
 *   /vendor/bricolage/. Atkinson Hyperlegible Next (--font-text) for running text, vendored under
 *   /vendor/atkinson/ (Adam, 21 Nov: the text was hard to read on a computer). Both have the weight
 *   axis, latin and latin-ext for Czech. The system UI font stays as the fallback while they load.
 * - Computers (960 px and up) get a step larger text (the --fs-* block at the end).
 *
 * app.css uses only these custom properties.
 */
:root {
  /* Colour: brand and actions */
  --cobalt: #0038B8;
  --cobalt-deep: #00267D;
  --cobalt-tint: rgba(0, 56, 184, 0.13);
  /* Colour: progress, data, done */
  --blue-light: #3F7DEB;
  --blue-light-deep: #2A63CC;
  /* Colour: text and surfaces */
  --ink: #0F1C4D;
  --ink-soft: #26346A;
  --ink-dim: #3D4A7A;
  --mute: #56638F;
  --paper: #F5F8FE;
  --white: #FFFFFF;
  --sky: #DCE7FB;
  --sky-2: #EEF3FD;
  --sky-deep: #BCD0F5;
  --dash: #9FB1E6;
  --page-bg: #EAF0FB;
  --grid-line: rgba(0, 56, 184, 0.07);
  --road-edge: #C9D8F7;
  --road: #E9F0FD;
  --road-marks: #B3C6F1;
  --fog: #E7EBF6;
  --fog-deep: #D3DAEC;
  --fog-ink: #4C577F;
  /* Colour: accents */
  --sun: #FFC82E;
  --sun-tint: #FFF3CC;
  --sun-deep: #D9A100;
  --sun-lip: #F2DE9E;
  --coral: #F04E3E;
  --coral-deep: #C2321F;
  --coral-tint: #FFEDEA;
  --violet: #6A4CF5;
  --violet-deep: #4A2FC9;
  --violet-darker: #2A1A8C;
  --violet-tint: #EEEAFF;
  --violet-lip: #D6CCFF;
  --teal: #16B3A3;
  --teal-deep: #0B7B70;
  --teal-tint: #DBF6F2;
  --overlay: rgba(15, 28, 77, 0.45);
  /* Colour: the two letters of the limit definition (round 2 payoff). ε and the band are blue,
     n0 and its marker are amber, in lesson maths (.tx-eps, .tx-n0) and in the applets. */
  --eps-ink: #1566D6; /* 5.1:1 on paper */
  --n0-ink: #A35700; /* 5.0:1 on paper */

  /* Type */
  --font: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-text: 'Atkinson Hyperlegible Next', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fs-xs: 12.5px;
  --fs-sm: 13.5px;
  --fs-md: 15px;
  --fs-base: 16.5px;
  --fs-lg: 19px;
  --fs-xl: 23px;
  --fs-2xl: 27px;
  --fw-regular: 500;
  --fw-semi: 600;
  --fw-bold: 700;
  --fw-heavy: 800;
  --lh-tight: 1.12;
  --lh-body: 1.55;
  --track-tight: -0.015em;

  /* Radii */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-2xl: 26px;
  --r-sheet: 30px;
  --r-pill: 999px;

  /* Lip shadows: the pressable 3D edge of v3 buttons and cards */
  --lip-sm: 3px;
  --lip-md: 4px;
  --lip-lg: 5px;
  --lip-xl: 6px;
  --shadow-card: 0 var(--lip-md) 0 var(--sky-deep);
  --shadow-btn: 0 var(--lip-lg) 0 var(--cobalt-deep);
  --shadow-float: 0 28px 48px -24px rgba(15, 28, 77, 0.5);
  /* Cobalt deep on light surfaces (11.7:1 on the page). Dark surfaces (.world, .scope) switch to sun in app.css. */
  --focus-color: var(--cobalt-deep);
  --focus-ring: 3px solid var(--focus-color);

  /* Spacing and layout */
  --gutter: 16px;
  --tap: 48px;
  --column: 560px;
  --topbar-h: 68px;
  --tabbar-h: 72px;
  --rail-w: 220px;

  /* Motion */
  --ease-press: 0.07s ease;
  --ease-pop: cubic-bezier(0.3, 1.4, 0.5, 1);
}

/* Computers: the same screens read from further away, so the text steps up (Adam, 21 Nov). */
@media (min-width: 960px) {
  :root {
    --fs-sm: 14.5px;
    --fs-md: 16px;
    --fs-base: 17.5px;
    --fs-lg: 20.5px;
  }
}
