/**
 * tokens.css — David Nevals Design System
 *
 * Single source of truth for colors, typography, spacing and shape.
 * Adapted from the inspiration site (juanvilozio.com): dark theme,
 * purple accent → ELECTRIC/ROYAL BLUE. All pairings below are
 * pre-validated for WCAG 2.1 AA contrast. Never hardcode values —
 * consume these custom properties everywhere.
 */

:root {
	/* ---- Surfaces (dark) ---- */
	--color-bg: #0a0d14; /* page background */
	--color-surface: #12141c; /* cards / sections */
	--color-surface-2: #1a1d27; /* raised / hover */
	--color-border: rgba(255, 255, 255, 0.08);

	/* ---- Text (on dark) ---- */
	--color-text: #ffffff; /* headings / primary */
	--color-text-muted: #c4c7d0; /* body / subtitles */
	--color-text-subtle: #8a8f9c; /* captions / meta */

	/* ---- Brand — BLUE ---- */
	--color-brand: #2563eb; /* primary brand */
	--color-brand-strong: #1d4ed8; /* button bg (white text = 6.7:1 AA) */
	--color-brand-bright: #3b82f6; /* links / accents on dark (5.3:1 AA) */
	--color-brand-glow: rgba(37, 99, 235, 0.45); /* glows / overlays */

	/* ---- Feedback ---- */
	--color-focus: #3b82f6; /* visible focus ring */
	--color-success: #4ade80; /* form success (AA on dark) */
	--color-danger: #f87171; /* form error (AA on dark) */

	/* ---- Third-party brand (WhatsApp float CTA) ---- */
	--color-whatsapp: #25d366;
	--color-whatsapp-strong: #1ebe5d; /* hover */

	/* ---- Typography ----
	   Fallback faces are metric-adjusted (see base.css @font-face) to avoid
	   font-swap layout shift (CLS) while keeping display=swap. */
	--font-heading: "Poppins", "Poppins Fallback", system-ui, sans-serif;
	--font-body: "Inter", "Inter Fallback", system-ui, sans-serif;

	/* Fluid type scale (rem; echoes the inspiration's large hero) */
	--fs-300: 0.875rem; /* 14px */
	--fs-400: 1rem; /* 16px — base */
	--fs-500: 1.125rem; /* 18px */
	--fs-600: clamp(1.25rem, 2vw, 1.5rem); /* 20→24px */
	--fs-700: clamp(1.5rem, 3vw, 2rem); /* 24→32px */
	--fs-800: clamp(2rem, 4vw, 3rem); /* 32→48px */
	--fs-900: clamp(2.5rem, 6vw, 5.625rem); /* 40→90px — H1 hero */

	--lh-tight: 1.1;
	--lh-snug: 1.3;
	--lh-base: 1.6;

	--fw-regular: 400;
	--fw-medium: 500;
	--fw-semibold: 600;
	--fw-bold: 700;

	/* ---- Spacing scale (rem, multiples of 0.25rem) ---- */
	--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-9: 6rem;

	/* ---- Shape ---- */
	--radius-sm: 0.375rem;
	--radius: 0.5rem; /* default button/card radius */
	--radius-lg: 1rem;
	--radius-pill: 9999px;

	/* ---- Layout ---- */
	--container-max: 75rem; /* 1200px */
	--container-pad: var(--space-5);

	/* ---- Effects ---- */
	--shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35);
	--transition: 180ms ease;
}
