:root {
  /* ── Typography ── */
  --font-sans: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.25rem;
  --text-lg: 1.5rem;
  --text-xl: 2rem;
  --text-2xl: 2.5rem;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-bold: 700;
  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.55;
  --tracking-tight: -0.02em;
  --tracking-wide: 0.06em;

  /* ── Fibonacci Spacing ── */
  --sp-1: 0.3125rem;
  --sp-2: 0.5rem;
  --sp-3: 0.8125rem;
  --sp-4: 1.3125rem;
  --sp-5: 2.125rem;
  --sp-6: 3.4375rem;
  --sp-7: 5.5625rem;

  /* ── Light palette ── */
  --ink: #0a0a0b;
  --ink-2: #605f56;
  --ink-3: #84847a;
  --paper: #f9f8f4;
  --paper-2: #f0efea;
  --line: #dfddd6;
  --accent: #2535f5;
  --accent-hover: #1020cc;
  --accent-soft: rgba(37, 53, 245, 0.06);
  --on-accent: #ffffff;
  --negative: #b8191b;
  --warning: #b45309;
  --green: #16a34a;

  /* ── Category colors ── */
  --c-sport: #2563eb;
  --c-sante: #16a34a;
  --c-perso: #7c3aed;
  --c-travail: #ea580c;
  --c-mindset: #0891b2;

  /* ── Heatmap ── */
  --hm-0: var(--paper-2);
  --hm-1: #dbeafe;
  --hm-2: #93b4fd;
  --hm-3: #5b7ff8;
  --hm-4: var(--accent);

  /* ── Shape & Motion ── */
  --radius: 8px;
  --radius-full: 9999px;
  --duration: 200ms;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --shadow: 0 2px 4px rgba(0,0,0,0.04), 0 8px 16px rgba(0,0,0,0.04);
  --shadow-overlay: 0 20px 60px rgba(0,0,0,0.14);

  /* ── Density ── */
  --density: 1;
}

.dark {
  --ink: rgba(255,255,255,0.90);
  --ink-2: rgba(255,255,255,0.58);
  --ink-3: rgba(255,255,255,0.40);
  --paper: oklch(0.14 0.012 260);
  --paper-2: oklch(0.18 0.012 260);
  --line: oklch(0.24 0.010 260);
  --accent: #5570ff;
  --accent-hover: #7088ff;
  --accent-soft: rgba(85, 112, 255, 0.10);
  --on-accent: #ffffff;
  --negative: #ef4444;
  --warning: #f59e0b;
  --green: #4ade80;
  --shadow: 0 2px 4px rgba(0,0,0,0.2), 0 8px 16px rgba(0,0,0,0.2);

  --hm-0: oklch(0.18 0.012 260);
  --hm-1: oklch(0.24 0.06 264);
  --hm-2: oklch(0.32 0.12 264);
  --hm-3: oklch(0.42 0.18 264);
  --hm-4: var(--accent);
}
