/* ================================================================
   tokens.css — design tokens shared by every page
   Art direction: deep-space navy + indigo/violet gradient accents,
   technical, code-forward. Cabinet Grotesk + Satoshi + JetBrains Mono.
   ================================================================ */

:root {
  /* Type scale (fluid) */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.3rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(2.75rem, 1rem + 6vw, 6rem);

  /* 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;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 220ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Widths */
  --content-narrow: 640px;
  --content: 1180px;
  --content-wide: 1320px;

  /* Fonts */
  --font-display: 'Cabinet Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Satoshi', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* ----------------- DARK THEME (primary) ----------------- */
:root,
[data-theme='dark'] {
  --color-bg: #07070c;
  --color-bg-deep: #05050a;
  --color-surface: #0e0e16;
  --color-surface-2: #14141f;
  --color-surface-3: #1c1c2a;
  --color-border: #24243a;
  --color-border-strong: #34344d;

  --color-text: #e8e8f0;
  --color-text-muted: #9a9ab0;
  --color-text-faint: #8b8ba6;   /* ~6:1 on --color-bg, passes WCAG AA */

  --color-primary: #8b8dff;      /* indigo */
  --color-primary-hover: #a5a7ff;
  --color-accent: #d65cff;       /* violet */
  --color-accent-2: #58d6ff;     /* cyan touch */

  --grad: linear-gradient(135deg, #8b8dff 0%, #d65cff 55%, #ff7bdc 100%);
  --grad-soft: linear-gradient(135deg, rgba(139, 141, 255, 0.18), rgba(214, 92, 255, 0.18));

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 10px 40px -10px rgba(139, 141, 255, 0.45);
}
