/* ==========================================================================
   Design tokens — the single source of truth for the visual system.
   ========================================================================== */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Typography */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  --text-xs: 0.75rem;    /* 12 */
  --text-sm: 0.875rem;   /* 14 */
  --text-base: 1rem;     /* 16 */
  --text-lg: 1.125rem;   /* 18 */
  --text-xl: 1.25rem;    /* 20 */
  --text-2xl: 1.5rem;    /* 24 */
  --text-3xl: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
  --text-display: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.55;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Color — brand */
  --navy-950: #071528;
  --navy-900: #0b1f3a;
  --navy-800: #132d52;
  --navy-700: #1d3d6b;
  --blue-700: #1748a8;
  --blue-600: #1d5fd1;
  --blue-500: #3b7cf0;
  --blue-100: #dce8ff;
  --blue-50: #eef4ff;
  --sun-400: #ffd45c;
  --sun-200: #ffecb0;
  --sun-50: #fff8e1;

  /* Color — neutrals */
  --ink: #0f172a;
  --text: #1e293b;
  --text-muted: #4f5d73;
  --text-subtle: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-sunken: #f1f5f9;
  --canvas: #f6f8fb;

  /* Color — semantic */
  --primary: var(--blue-600);
  --primary-hover: var(--blue-700);
  --primary-soft: var(--blue-50);
  --on-primary: #ffffff;
  --success: #0f7a55;
  --success-soft: #e6f6ef;
  --danger: #b42318;
  --danger-hover: #912018;
  --danger-soft: #fdecea;
  --warning: #8a5300;
  --warning-soft: #fff4d6;
  --info: var(--blue-600);
  --info-soft: var(--blue-50);
  --focus-ring: #1d5fd1;

  /* Spacing (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Shape */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 999px;
  --border-width: 1px;

  /* Elevation (kept deliberately subtle) */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 6px 16px -4px rgba(15, 23, 42, 0.10), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, 0.25);

  /* Layout */
  --container: 1200px;
  --container-narrow: 760px;
  --sidebar-width: 264px;
  --header-height: 68px;
  --control-height: 44px;
  --control-height-sm: 36px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --duration-fast: 120ms;
  --duration: 200ms;

  /* Layers */
  --z-header: 30;
  --z-popover: 40;
  --z-drawer: 60;
  --z-dialog: 80;
  --z-toast: 100;
}

/* Breakpoints (documented; CSS custom properties cannot be used in media queries)
   --bp-mobile: 600px · --bp-tablet: 900px · --bp-laptop: 1200px · desktop above */
