/* ==========================================================================
   Design tokens
   Single source of truth for colour, type, spacing, radius and elevation.
   Change a value here and it propagates across every page.
   ========================================================================== */

:root {
  /* --- Core palette --- */
  --color-bg: #f2f2f3;
  --color-surface: #e9e9ea;
  --color-text: #1d1f20;
  --color-accent: #5980a6;
  --color-accent-2: #728fab;
  --color-highlight: #b4643c;
  --color-divider: color-mix(in srgb, #1d1f20 16%, transparent);

  /* --- Tonal ramps ---
     Generated in OKLCH on one shared lightness scale, so the same step of
     any role reads at the same visual value as the others. */
  --color-neutral-100: #f5f5f8;
  --color-neutral-200: #e7e7ea;
  --color-neutral-300: #d4d4d7;
  --color-neutral-400: #b7b7ba;
  --color-neutral-500: #98989b;
  --color-neutral-600: #7a7a7d;
  --color-neutral-700: #5d5d60;
  --color-neutral-800: #424244;
  --color-neutral-900: #2b2b2d;

  --color-accent-100: #eef6ff;
  --color-accent-200: #d6ebff;
  --color-accent-300: #b5d9fd;
  --color-accent-400: #94bce3;
  --color-accent-500: #749dc4;
  --color-accent-600: #597ea3;
  --color-accent-700: #416180;
  --color-accent-800: #2c455d;
  --color-accent-900: #1d2d3d;

  --color-accent-2-100: #eef6ff;
  --color-accent-2-200: #d6ebff;
  --color-accent-2-300: #bdd8f2;
  --color-accent-2-400: #9ebbd8;
  --color-accent-2-500: #7e9cb8;
  --color-accent-2-600: #627d98;
  --color-accent-2-700: #486077;
  --color-accent-2-800: #314457;
  --color-accent-2-900: #1f2d3a;

  /* --- Type --- */
  --font-heading: "Barlow Condensed", ui-sans-serif, system-ui, sans-serif;
  --font-heading-weight: 600;
  --font-body: "Barlow", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, monospace;

  /* --- Spacing scale --- */
  --space-1: 3.4px;
  --space-2: 6.8px;
  --space-3: 10.2px;
  --space-4: 13.6px;
  --space-6: 20.4px;
  --space-8: 27.2px;
  --space-12: 40.8px;
  --space-16: 54.4px;

  /* --- Radius ---
     The system is a blueprint: components are square. The radius tokens
     exist for the few elements that legitimately curve (avatars, pills). */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 7px;

  /* --- Elevation ---
     Soft ink-tinted shadows, derived from the darkest neutral. */
  --shadow-sm: 0 1px 2px color-mix(in srgb, #2b2b2d 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #2b2b2d 16%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2b2b2d 22%, transparent);

  /* --- Layout ---
     The wrapper grows with the viewport instead of stranding margins on a
     wide display, but stops before lines get too long to scan. Reading
     columns stay narrow regardless. */
  --wrap: min(1560px, 92vw);
  --wrap-narrow: min(104ch, 100%);
  --header-h: 64px;

  /* --- Motion --- */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: 0.18s;
  --dur: 0.32s;
  --dur-slow: 0.6s;
}
