/* ============================================================
   DESIGN TOKENS
   Copied verbatim from the Alaasmagi design system so this site
   is fully self-contained — it does NOT import from or depend on
   the /alaasmagi-design-system folder. To rebrand the accent,
   change the hue value (229) in the six --accent-* lines and the
   two --text-link* lines; everything downstream re-colors.
   ============================================================ */

:root {
  /* ---- Base neutrals (dark end = low L) ---- */
  --neutral-0: oklch(17% 0.010 250);
  --neutral-1: oklch(20% 0.011 250);
  --neutral-2: oklch(24% 0.012 250);
  --neutral-3: oklch(29% 0.013 250);
  --neutral-4: oklch(32% 0.014 250);
  --neutral-5: oklch(40% 0.015 250);
  --neutral-6: oklch(52% 0.014 250);
  --neutral-7: oklch(66% 0.012 250);
  --neutral-8: oklch(80% 0.010 250);
  --neutral-9: oklch(95% 0.006 250);

  /* ---- Accent: cyan-blue, single hue family (229) ---- */
  --accent-9: oklch(78% 0.15 229);
  --accent-7: oklch(68% 0.16 229);
  --accent-6: oklch(60% 0.165 229);
  --accent-5: oklch(52% 0.16 229);
  --accent-3: oklch(30% 0.09 229);
  --accent-2: oklch(24% 0.06 229);

  /* ---- Semantic status hues (same L/C recipe, hue swapped) ---- */
  --success-7: oklch(68% 0.15 149);
  --success-3: oklch(28% 0.07 149);
  --warning-7: oklch(74% 0.15 76);
  --warning-3: oklch(30% 0.07 76);
  --danger-7: oklch(70% 0.17 25);
  --danger-3: oklch(29% 0.09 25);

  /* ---- Surfaces ---- */
  --surface-app: var(--neutral-0);
  --surface-raised: var(--neutral-1);
  --surface-card: var(--neutral-2);
  --surface-hover: var(--neutral-3);
  --surface-overlay: oklch(17% 0.010 250 / 0.72);

  /* ---- Borders ---- */
  --border-subtle: var(--neutral-4);
  --border-strong: var(--neutral-5);
  --border-focus: var(--accent-7);

  /* ---- Text ---- */
  --text-primary: var(--neutral-9);
  --text-secondary: var(--neutral-7);
  --text-disabled: var(--neutral-6);
  --text-on-accent: oklch(14% 0.02 229);
  --text-link: var(--accent-9);
  --text-link-hover: oklch(85% 0.13 229);

  /* ---- Actions ---- */
  --action-primary: var(--accent-7);
  --action-primary-hover: var(--accent-6);
  --action-primary-press: var(--accent-5);
  --action-primary-text: var(--text-on-accent);

  /* ---- Status ---- */
  --status-success: var(--success-7);
  --status-success-bg: var(--success-3);
  --status-warning: var(--warning-7);
  --status-warning-bg: var(--warning-3);
  --status-danger: var(--danger-7);
  --status-danger-bg: var(--danger-3);

  /* ---- Type families ---- */
  --font-display: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Consolas, monospace;

  /* ---- Type scale (1.25-ish ratio, 11 → 61px) ---- */
  --text-2xs: 11px;
  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 15px;
  --text-md: 17px;
  --text-lg: 20px;
  --text-xl: 25px;
  --text-2xl: 31px;
  --text-3xl: 39px;
  --text-4xl: 49px;
  --text-5xl: 61px;

  --leading-tight: 1.1;
  --leading-snug: 1.3;
  --leading-normal: 1.5;
  --leading-relaxed: 1.7;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;

  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.04em;
  --tracking-widest: 0.12em;

  /* ---- Spacing (4px base) ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* ---- Radius ---- */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  --radius-full: 999px;

  /* ---- Shadow (subtle, cool-tinted) ---- */
  --shadow-sm: 0 1px 2px oklch(12% 0.02 250 / 0.4);
  --shadow-md: 0 4px 12px oklch(12% 0.02 250 / 0.45), 0 1px 2px oklch(12% 0.02 250 / 0.5);
  --shadow-lg: 0 12px 32px oklch(12% 0.02 250 / 0.5), 0 2px 4px oklch(12% 0.02 250 / 0.4);
  --shadow-focus-ring: 0 0 0 3px var(--accent-3);

  /* ---- Border widths ---- */
  --border-thin: 1px;
  --border-thick: 1.5px;

  /* ---- Motion ---- */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --duration-fast: 120ms;
  --duration-normal: 180ms;
  --duration-slow: 280ms;
}

/* ============================================================
   LIGHT THEME — opt in with <html data-theme="light">.
   Same accent hue (229), re-tuned for contrast on light.
   ============================================================ */
:root[data-theme="light"] {
  --neutral-0: oklch(99% 0.004 250);
  --neutral-1: oklch(97% 0.005 250);
  --neutral-2: oklch(94% 0.006 250);
  --neutral-3: oklch(90% 0.007 250);
  --neutral-4: oklch(84% 0.008 250);
  --neutral-5: oklch(74% 0.010 250);
  --neutral-6: oklch(60% 0.012 250);
  --neutral-7: oklch(46% 0.014 250);
  --neutral-8: oklch(30% 0.014 250);
  --neutral-9: oklch(16% 0.012 250);

  --accent-9: oklch(45% 0.17 229);
  --accent-7: oklch(53% 0.17 229);
  --accent-6: oklch(48% 0.17 229);
  --accent-5: oklch(43% 0.165 229);
  --accent-3: oklch(90% 0.05 229);
  --accent-2: oklch(95% 0.03 229);

  --success-7: oklch(45% 0.15 149);
  --success-3: oklch(93% 0.04 149);
  --warning-7: oklch(48% 0.14 76);
  --warning-3: oklch(93% 0.05 76);
  --danger-7: oklch(48% 0.19 25);
  --danger-3: oklch(93% 0.05 25);

  --surface-overlay: oklch(20% 0.01 250 / 0.4);
  --text-on-accent: oklch(99% 0.003 229);
  --text-link-hover: oklch(38% 0.17 229);
}
