/**
 * Builder V8 — CSS Custom Properties (Design Tokens)
 *
 * Canonical defaults only. GeneratorAgentV8 writes per-lead overrides in a
 * <style> block inside each generated page using values from design.json.
 *
 * Satisfies AC4, AC13 — must contain --color-primary.
 */

:root {
    /* Colour palette — overridden per-lead via <style> block */
    --color-primary: #2563eb;
    --color-secondary: #1e40af;
    --color-accent: #f59e0b;

    /* Background surfaces */
    --color-bg-white: #ffffff;
    --color-bg-alt: #f8fafc;
    --color-bg-dark: #0f172a;

    /* Text colours */
    --color-text-primary: #0f172a;
    --color-text-secondary: #475569;
    --color-text-light: #94a3b8;
    --color-text-on-dark: #f8fafc;

    /* Typography — overridden per-lead */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Type scale */
    --text-xs: clamp(0.75rem, 1.5vw, 0.875rem);
    --text-sm: clamp(0.875rem, 1.8vw, 1rem);
    --text-base: clamp(1rem, 2vw, 1.125rem);
    --text-lg: clamp(1.125rem, 2.2vw, 1.25rem);
    --text-xl: clamp(1.25rem, 2.5vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 3vw, 2rem);
    --text-3xl: clamp(1.875rem, 4vw, 2.5rem);
    --text-4xl: clamp(2.25rem, 5vw, 3rem);
    --text-5xl: clamp(2.75rem, 6vw, 4rem);

    /* Spacing scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Section padding */
    --section-padding-y: clamp(3rem, 8vw, 6rem);
    --section-padding-x: clamp(1rem, 4vw, 2rem);

    /* Border & radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --border-color: #e2e8f0;

    /* Shadows */
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}
