/* Design tokens. Values mined from the legacy class names (docs/AUDIT.md §6). Dark-only. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/inter-latin-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/poppins-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/poppins-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/fonts/poppins-latin-900.woff2') format('woff2');
}

:root {
  color-scheme: dark;

  /* Brand palette (legacy theme tokens + the most used ad-hoc values) */
  --vc-mint: #4fd1c5;
  --vc-green: #39cc89;
  --vc-teal: #00a383;
  --vc-teal-light: #23bcab;
  --vc-green-dark: #0f3d36;
  --vc-green-medium: #145850;
  --vc-ink: #001311;
  --vc-bg: #0b2a24; /* legacy home page background */
  --vc-ink-soft: #072828;
  --vc-footer: #0a1f1f;

  /* Semantic roles. WCAG AA checked (see the Phase 3 PR): text, muted and mint pass 4.5:1 on bg,
     surface, green-dark, footer and menu. Don't put teal text on green-dark (3.8:1), or muted/mint
     text on green-medium (3.3 / 4.4:1). */
  --color-bg: var(--vc-bg);
  --color-surface: rgb(15 61 54 / 0.45); /* glass card on the page background */
  --color-surface-solid: var(--vc-ink-soft); /* menus and panels that sit over content */
  --color-surface-strong: var(--vc-green-dark);
  --color-text: #f5fafa;
  --color-muted: #9ca3af;
  --color-accent: var(--vc-mint);
  --color-accent-hover: var(--vc-green);
  --color-on-accent: var(--vc-ink);
  --color-accent-tint: rgb(79 209 197 / 0.1);
  --color-border: rgb(79 209 197 / 0.12);
  --color-border-strong: rgb(79 209 197 / 0.3);
  --color-focus: var(--vc-mint);

  /* Font families */
  --font-heading: 'Poppins', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;

  /* Type scale (fluid between 375px and 1440px) */
  --text-xs: 0.6875rem; /* eyebrows and labels */
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  --text-2xl: clamp(1.75rem, 1.4rem + 1.6vw, 3rem);
  --text-3xl: clamp(2.25rem, 1.4rem + 4.4vw, 5.5rem);
  --leading-tight: 1.05;
  --leading-snug: 1.25;
  --leading-relaxed: 1.65;
  --tracking-tight: -0.02em;
  --tracking-wide: 0.2em;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-section: clamp(4rem, 2.8rem + 5vw, 7rem);
  --gutter: clamp(1rem, 0.6rem + 2vw, 1.5rem);

  /* Layout */
  --container: 80rem;
  --container-text: 46rem;
  --header-height: 4.5rem;

  /* Radii */
  --radius-sm: 0.5rem;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2.5rem;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-glow: 0 0 20px rgb(79 209 197 / 0.3);
  --shadow-deep: 0 20px 50px rgb(0 0 0 / 0.45);
  --blur-glass: 16px;

  /* Motion */
  --duration: 0.2s;
}
