/* NaqshEngram design tokens — single source of palette, type, spacing, radius. */
:root {
  color-scheme: light;

  /* Palette */
  --bg: #f0eee9;
  --header: #fff8db;
  --panel: #ffffff;
  --soft: #f7faf9;
  --ink: #17211f;
  --muted: #62706c;
  --line: #d8e0dd;

  --green: #106b5c;
  --green-soft: #eaf7f2;
  --gold: #ffd54f;
  --gold-ink: #71551c;
  --blue: #285f9e;
  --blue-soft: #e8f0ff;
  --red: #b53d45;
  --red-soft: #fff3f4;

  /* Skill-graph states (text, fill, stroke) */
  --state-mastered: #106b5c;
  --state-mastered-fill: #dff4e8;
  --state-shaky: #7a4f01;
  --state-shaky-fill: #fff2c6;
  --state-learning: #285f9e;
  --state-learning-fill: #e8f0ff;
  --state-available: #455a64;
  --state-available-fill: #eceff1;
  --state-locked: #9aa39e;
  --state-locked-fill: #f2f4f3;

  /* Typography */
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --fs-eyebrow: 12px;
  --fs-sm: 13px;
  --fs-base: 15px;
  --fs-md: 16px;
  --fs-lg: 20px;
  --fs-xl: 26px;
  --fs-2xl: 30px;

  /* Spacing — 4px step */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;

  /* Radius */
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-1: 0 1px 2px rgba(23, 33, 31, 0.06);
  --shadow-2: 0 6px 18px rgba(23, 33, 31, 0.10);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.45;
}

h1, h2, h3, p { margin: 0; }

a { color: var(--blue); }
