/* ==========================================================================
   DESIGN TOKENS — DIM UTM
   Central design token system for the entire theme.
   ========================================================================== */

:root {
    /* ── Brand Colors ── */
    --color-navy: #00205B;
    --color-navy-dark: #001844;
    --color-navy-light: #0A3076;
    --color-gold: #C9A04C;
    --color-gold-light: #D4B06A;
    --color-gold-dark: #B08A3A;
    --color-gold-text: #8C651A; /* WCAG 2.2 AA (4.6:1) compliant on white/light backgrounds */

    /* ── Neutrals ── */
    --color-white: #FFFFFF;
    --color-offwhite: #F8F8F6;
    --color-gray: #F1F2F4;
    --color-border: #D9DDE3;
    --color-border-light: #E8EAED;
    --color-text: #20252B;
    --color-muted: #69717C;
    --color-muted-light: #9BA2AC;

    /* ── Semantic Colors ── */
    --color-success: #2D7D46;
    --color-error: #C23B22;
    --color-info: #1A6FB5;

    /* ── Typography ── */
    --font-heading: 'DM Serif Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* ── Type Scale (desktop) ── */
    --text-display: clamp(2.5rem, 4vw + 1rem, 4.25rem);
    --text-h1: clamp(2.25rem, 3vw + 0.75rem, 3.5rem);
    --text-h2: clamp(1.75rem, 2.5vw + 0.5rem, 2.75rem);
    --text-h3: clamp(1.375rem, 1.5vw + 0.5rem, 1.75rem);
    --text-h4: clamp(1.125rem, 1vw + 0.375rem, 1.375rem);
    --text-body: clamp(1rem, 0.25vw + 0.9rem, 1.125rem);
    --text-small: 0.875rem;
    --text-xs: 0.8125rem;
    --text-eyebrow: 0.75rem;

    /* ── Line Heights ── */
    --leading-tight: 1.15;
    --leading-snug: 1.3;
    --leading-normal: 1.6;
    --leading-relaxed: 1.75;

    /* ── Letter Spacing ── */
    --tracking-tight: -0.02em;
    --tracking-normal: 0;
    --tracking-wide: 0.06em;
    --tracking-wider: 0.1em;

    /* ── Font Weights ── */
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;

    /* ── Spacing Scale ── */
    --space-2xs: 0.25rem;   /* 4px */
    --space-xs: 0.5rem;     /* 8px */
    --space-sm: 0.75rem;    /* 12px */
    --space-md: 1rem;       /* 16px */
    --space-lg: 1.5rem;     /* 24px */
    --space-xl: 2rem;       /* 32px */
    --space-2xl: 3rem;      /* 48px */
    --space-3xl: 4rem;      /* 64px */
    --space-4xl: 6rem;      /* 96px */
    --space-5xl: 8rem;      /* 128px */

    /* ── Section Spacing ── */
    --section-padding: clamp(4rem, 8vw, 7rem);
    --section-padding-sm: clamp(3rem, 5vw, 4.5rem);

    /* ── Layout ── */
    --container: 1240px;
    --container-narrow: 860px;
    --container-wide: 1400px;
    --gutter: clamp(1rem, 2vw, 2rem);

    /* ── Border Radius ── */
    --radius-sm: 3px;
    --radius-md: 6px;
    --radius-lg: 10px;

    /* ── Shadows (restrained) ── */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.1);

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

    /* ── Z-Index Scale ── */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-overlay: 300;
    --z-modal: 400;
    --z-toast: 500;

    /* ── Header ── */
    --topbar-height: 38px;
    --main-header-height: 74px;
    --header-height: 112px;
    --header-height-scrolled: 64px;
}

@media (max-width: 1023px) {
    :root {
        --header-height: 72px;
        --header-height-scrolled: 64px;
    }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    :root {
        --transition-fast: 0ms;
        --transition-base: 0ms;
        --transition-slow: 0ms;
    }
}
