/* LINGO — design tokens
   Single committed visual world: dark-first. Every color is declared here on
   :root so nothing depends on a media query resolving. */

:root {
  /* ---- Ground & surfaces -------------------------------------------------
     Cool charcoal, biased very slightly blue so the lime accent reads warm
     against it. Never pure #000 — the glow needs somewhere to fall off to. */
  --ground: #08090c;
  --ground-2: #0b0d11;
  --surface: #101319;
  --surface-2: #161a22;
  --surface-3: #1d222c;
  --surface-inset: #0a0c10;

  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.13);
  --line-lit: rgba(255, 255, 255, 0.22); /* top edge of elevated cards */

  /* ---- Text ---- */
  --text: #f1f3f6;
  --text-2: #a4abb8;
  --text-3: #6f7784;
  --text-on-accent: #0a0f03;

  /* ---- The one accent ---- */
  --accent: #c8ff4d;
  --accent-hot: #dbff7a;
  --accent-deep: #9ed116;
  --accent-soft: rgba(200, 255, 77, 0.12);
  --accent-line: rgba(200, 255, 77, 0.32);
  --accent-glow: rgba(200, 255, 77, 0.28);

  /* Depth tone. Appears only inside gradients and glow falloff — never as a
     second accent on its own. */
  --depth: #5b3cf0;
  --depth-soft: rgba(91, 60, 240, 0.22);

  /* ---- Semantic (separate from the accent) ---- */
  --ok: #3ee0a0;
  --warn: #ffb547;
  --danger: #ff5f57;
  --info: #56b6ff;
  --streak: #ff8a3d;

  /* ---- CEFR level hues — used as identity chips, low saturation on dark ---- */
  --lvl-a1: #7dd3fc;
  --lvl-a2: #5eead4;
  --lvl-b1: #c8ff4d;
  --lvl-b2: #fbbf24;
  --lvl-c1: #fb7185;
  --lvl-c2: #c084fc;

  /* ---- Type ---- */
  --font-display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --font-ui: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --step--2: 0.72rem;
  --step--1: 0.82rem;
  --step-0: 0.95rem;
  --step-1: 1.1rem;
  --step-2: 1.35rem;
  --step-3: 1.7rem;
  --step-4: 2.2rem;
  --step-5: clamp(2.4rem, 5vw, 3.4rem);
  --step-6: clamp(3rem, 9vw, 6.2rem);

  /* ---- Space ---- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;

  /* ---- Radii — three steps, spent by role ---- */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* ---- Elevation ---- */
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 8px 24px -8px rgba(0, 0, 0, 0.6);
  --shadow-3: 0 24px 60px -20px rgba(0, 0, 0, 0.75);
  --shadow-accent: 0 12px 40px -12px var(--accent-glow);

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 120ms;
  --t: 220ms;
  --t-slow: 420ms;

  /* ---- Layout ---- */
  --gutter: 20px;
  --maxw: 1240px;
  --sidebar-w: 248px;
  --topbar-h: 64px;
  --tabbar-h: 66px;

  color-scheme: dark;
}

@media (min-width: 900px) {
  :root {
    --gutter: 40px;
    --step-0: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --t-fast: 0ms;
    --t: 0ms;
    --t-slow: 0ms;
  }
}
