/* ============================================================
   ORENTIQ — DESIGN SYSTEM FOUNDATIONS
   Semantic aliases below preserve the existing component architecture.
   ============================================================ */

:root {
    /* Brand and status primitives */
    --color-copper: #c47a32;
    --color-copper-light: #d89a5d;
    --color-copper-dark: #a95f22;
    --color-success: #2f7d5b;
    --color-warning: #a96716;
    --color-error: #b94b43;
    --color-info: #3f6f9e;

    /* Existing component aliases */
    --color-primary: var(--color-copper);
    --color-primary-hover: var(--color-copper-dark);
    --color-secondary: var(--color-surface);
    --color-accent: var(--color-copper);
    --color-accent-light: var(--color-copper-light);
    --color-accent-dark: var(--color-copper-dark);

    /* Typography */
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: "SF Mono", "Cascadia Code", Consolas, monospace;
    --text-display: clamp(2.75rem, 5vw, 4rem);
    --text-h1: clamp(2.25rem, 4vw, 3.25rem);
    --text-h2: clamp(1.875rem, 3vw, 2.5rem);
    --text-h3: 1.75rem;
    --text-h4: 1.375rem;
    --text-h5: 1.125rem;
    --text-body-large: 1.125rem;
    --text-body: 1rem;
    --text-body-small: .875rem;
    --text-caption: .75rem;
    --text-nav: .875rem;
    --text-button: .875rem;
    --text-label: .75rem;
    --line-display: 1.06;
    --line-h1: 1.12;
    --line-h2: 1.18;
    --line-h3: 1.25;
    --line-h4: 1.3;
    --line-h5: 1.35;
    --line-body: 1.6;
    --line-caption: 1.4;
    --tracking-tight: -.03em;
    --tracking-normal: 0;
    --tracking-wide: .01em;
    --tracking-wider: .04em;
    --tracking-caps: .09em;

    /* Spacing, layout, shape and motion */
    --space-1: .25rem; --space-2: .5rem; --space-3: .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;
    --container-max: 1440px;
    --container-narrow: 720px;
    --container-wide: 1440px;
    --gutter-desktop: 2rem;
    --gutter-tablet: 1.5rem;
    --gutter-mobile: 1rem;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-pill: 999px;
    --transition-fast: 150ms ease;
    --transition-base: 220ms ease;
    --transition-slow: 360ms ease;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-modal: 300;
    --z-mobile-menu: 400;
    --z-toast: 500;
}

/* Dark is the initial system theme. */
:root,
[data-theme="dark"] {
    --color-bg: #0d0c0b;
    --color-bg-secondary: #121110;
    --color-surface: #171513;
    --color-surface-elevated: #1e1a17;
    --color-surface-glass: rgba(30, 26, 23, .88);
    --color-text: #f5f1eb;
    --color-text-muted: #a9a29a;
    --color-text-inverse: #171513;
    --color-border: #302b26;
    --color-border-strong: #4a433b;
    --color-hover: rgba(209, 138, 69, .12);
    --color-focus: #d18a45;
    --color-navbar-bg: rgba(13, 12, 11, .92);
    --color-footer-bg: #121110;
    --color-hero-glow: rgba(209, 138, 69, .10);
    --color-overlay: rgba(13, 12, 11, .72);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .24);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, .22);
    --shadow-card: 0 8px 20px rgba(0, 0, 0, .22);
    --shadow-lg: 0 16px 36px rgba(0, 0, 0, .28);
    --shadow-elevated: 0 24px 56px rgba(0, 0, 0, .36);
    --shadow-accent: 0 8px 18px rgba(209, 138, 69, .20);
}

[data-theme="light"] {
    --color-bg: #f8f7f4;
    --color-bg-secondary: #f1efeb;
    --color-surface: #ffffff;
    --color-surface-elevated: #fcfbf9;
    --color-surface-glass: rgba(252, 251, 249, .92);
    --color-text: #171513;
    --color-text-muted: #625d56;
    --color-text-inverse: #ffffff;
    --color-border: #e4dfd7;
    --color-border-strong: #cec7bc;
    --color-hover: rgba(196, 122, 50, .09);
    --color-focus: #a95f22;
    --color-navbar-bg: rgba(248, 247, 244, .94);
    --color-footer-bg: #f1efeb;
    --color-hero-glow: rgba(196, 122, 50, .08);
    --color-overlay: rgba(23, 21, 19, .48);
    --shadow-sm: 0 1px 2px rgba(54, 43, 32, .05);
    --shadow-md: 0 8px 20px rgba(54, 43, 32, .07);
    --shadow-card: 0 8px 20px rgba(54, 43, 32, .07);
    --shadow-lg: 0 16px 36px rgba(54, 43, 32, .09);
    --shadow-elevated: 0 24px 56px rgba(54, 43, 32, .12);
    --shadow-accent: 0 8px 18px rgba(196, 122, 50, .18);
}
