/* LinkPage Studio design tokens — the single source for color, type, spacing, radius, elevation, and motion. */
:root {
  /* Brand */
  --navy-950: #061637;
  --navy-900: #0a1f4d;
  --navy-800: #13306b;
  --navy-700: #1d3f86;
  --blue-700: #1c43c4;
  --blue-600: #2952e3;
  --blue-500: #4a72f0;
  --blue-100: #e6edff;
  --blue-50: #f2f6ff;
  --amber-400: #ffbe4d;
  --amber-100: #fff3d9;

  /* Neutrals */
  --gray-950: #0e1726;
  --gray-800: #273247;
  --gray-700: #3d4a61;
  --gray-600: #56637b;
  --gray-500: #5f6b84;
  --gray-400: #98a2b6;
  --gray-300: #cdd4e1;
  --gray-200: #e2e7f0;
  --gray-100: #eef1f6;
  --gray-50: #f6f8fb;
  --white: #ffffff;

  /* Semantic */
  --color-bg: var(--gray-50);
  --color-surface: var(--white);
  --color-surface-muted: var(--gray-50);
  --color-border: var(--gray-200);
  --color-border-strong: var(--gray-300);
  --color-text: var(--gray-950);
  --color-text-muted: var(--gray-600);
  --color-text-subtle: var(--gray-500);
  --color-primary: var(--blue-600);
  --color-primary-hover: var(--blue-700);
  --color-primary-soft: var(--blue-50);
  --color-primary-border: #c5d3ff;
  --color-focus: #2952e3;

  --color-success: #0f7a55;
  --color-success-soft: #e6f6ef;
  --color-success-border: #b5e3cf;
  --color-warning: #8f5200;
  --color-warning-soft: #fff4e0;
  --color-warning-border: #f3d29b;
  --color-danger: #c22c3a;
  --color-danger-hover: #a51f2c;
  --color-danger-soft: #fdecee;
  --color-danger-border: #f4c1c7;
  --color-info: var(--blue-600);
  --color-info-soft: var(--blue-50);
  --color-info-border: #c5d3ff;

  /* Typography */
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --text-xs: 0.75rem;   /* 12 — uppercase labels, badges, tags only */
  --text-sm: 0.8125rem; /* 13 */
  --text-base: 0.875rem;/* 14 */
  --text-md: 1rem;      /* 16 */
  --text-lg: 1.125rem;  /* 18 */
  --text-xl: 1.375rem;  /* 22 */
  --text-2xl: 1.75rem;  /* 28 */
  --text-3xl: 2.25rem;  /* 36 */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-heavy: 800;
  --leading-tight: 1.2;
  --leading-snug: 1.4;
  --leading-normal: 1.55;

  /* Spacing (4px grid) */
  --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;

  /* Shape */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 999px;
  --border-width: 1px;

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(14, 23, 38, 0.06);
  --shadow-sm: 0 1px 3px rgba(14, 23, 38, 0.08), 0 1px 2px rgba(14, 23, 38, 0.04);
  --shadow-md: 0 8px 24px rgba(14, 23, 38, 0.10), 0 2px 6px rgba(14, 23, 38, 0.05);
  --shadow-lg: 0 20px 48px rgba(6, 22, 55, 0.18), 0 4px 12px rgba(6, 22, 55, 0.08);
  --focus-ring: 0 0 0 3px rgba(41, 82, 227, 0.35);

  /* Sizing */
  --control-h: 2.5rem;     /* 40px inputs and buttons */
  --control-h-sm: 2rem;    /* 32px compact controls */
  --sidebar-w: 260px;
  --content-max: 1240px;
  --topbar-h: 60px;

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

  /* Layers */
  --z-sticky: 20;
  --z-sidebar: 40;
  --z-menu: 60;
  --z-toast: 100;
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur-fast: 0ms; --dur: 0ms; }
}
