/* examy design tokens — see DESIGN.md. Every colour has a role; add roles, not hex values. */
:root {
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.625rem, 1.3rem + 1.2vw, 2.125rem);
  --step-4: clamp(2.25rem, 1.5rem + 3.4vw, 4rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: clamp(3.5rem, 2rem + 6vw, 6.5rem);

  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 70rem;
  --tap: 44px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* light (default): blue ink on cool paper, highlighter for your marks */
  --bg: #f5f6fa;
  --surface: #ffffff;
  --text: #131735;
  --muted: #545a78;
  --border: #dfe2ee;
  --accent: #3446e0;
  --accent-text: #ffffff;
  --accent-soft: #eceefd;
  --mark: #ffd84d;
  --mark-text: #131735;
  --success: #0f7b57;
  --success-soft: #e3f4ec;
  --danger: #b42a22;
  --danger-soft: #fbe6e4;
  --focus: #3446e0;
  --band: #131735;
  --band-text: #f5f6fa;
  --shadow: 0 1px 2px rgb(19 23 53 / 6%), 0 12px 32px -12px rgb(19 23 53 / 18%);
}

:root[data-theme="dark"] {
  --bg: #0e1126;
  --surface: #161a35;
  --text: #eceef8;
  --muted: #a3a9c7;
  --border: #272c4d;
  --accent: #8f9cff;
  --accent-text: #0e1126;
  --accent-soft: #1e2450;
  --success: #4fcb98;
  --success-soft: #12322a;
  --danger: #ff8b80;
  --danger-soft: #3a1c22;
  --focus: #8f9cff;
  --band: #1e2450;
  --band-text: #eceef8;
  --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 16px 40px -16px rgb(0 0 0 / 60%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1126;
    --surface: #161a35;
    --text: #eceef8;
    --muted: #a3a9c7;
    --border: #272c4d;
    --accent: #8f9cff;
    --accent-text: #0e1126;
    --accent-soft: #1e2450;
    --success: #4fcb98;
    --success-soft: #12322a;
    --danger: #ff8b80;
    --danger-soft: #3a1c22;
    --focus: #8f9cff;
    --band: #1e2450;
    --band-text: #eceef8;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 16px 40px -16px rgb(0 0 0 / 60%);
  }
}
