/*
 * Design tokens for kevaltrade.com.
 *
 * Values come from the supplied designs (docs/html files), which use a
 * Material 3 palette with a purple primary and gold accent. Change brand
 * colours here only; components reference these variables.
 *
 * Breakpoints (used in media queries, cannot be variables):
 *   sm 640px · md 768px · lg 1024px · xl 1280px
 */
:root {
    /* Brand */
    --color-primary: #4f378a;
    --color-primary-strong: #3d2a6e;
    --color-primary-container: #6750a4;
    --color-primary-fixed: #e9ddff;
    --color-primary-fixed-dim: #cfbcff;
    --color-on-primary: #ffffff;
    --color-secondary: #63597c;
    --color-secondary-container: #e1d4fd;
    --color-tertiary: #765b00;
    --color-tertiary-container: #c9a74d;
    --color-tertiary-fixed: #ffdf93;
    --color-on-tertiary-container: #503d00;

    /* Surfaces */
    --color-surface: #fdf7ff;
    --color-surface-lowest: #ffffff;
    --color-surface-low: #f8f2fa;
    --color-surface-container: #f2ecf4;
    --color-surface-high: #ece6ee;
    --color-surface-highest: #e6e0e9;
    --color-surface-neutral: #fbfbfa;
    --color-inverse-surface: #322f35;
    --color-ink: #131b2e;

    /* Text and lines */
    --color-text: #1d1b20;
    --color-text-muted: #494551;
    --color-outline: #7a7582;
    --color-outline-variant: #cbc4d2;
    --color-on-dark: #ffffff;
    --color-on-dark-muted: #e6e0e9;

    /* Status */
    --color-error: #ba1a1a;
    --color-error-container: #ffdad6;
    --color-success: #1b6b3a;
    --color-success-container: #d5f5de;

    /* Typography */
    --font-sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
    --text-4xl: clamp(2rem, 1.5rem + 2vw, 3rem);
    --text-5xl: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);
    --leading-tight: 1.15;
    --leading-snug: 1.3;
    --leading-body: 1.65;
    --tracking-label: 0.12em;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.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;
    --section-y: clamp(3.5rem, 2.5rem + 4vw, 7rem);
    --section-y-tight: clamp(2rem, 1.5rem + 2vw, 3.5rem);

    /* Layout */
    --container: 80rem;
    --container-narrow: 48rem;
    --gutter: clamp(1rem, 0.5rem + 2.5vw, 3rem);
    --utility-h: 2.25rem;
    --header-h: 4rem;
    --tabbar-h: 4rem;

    /* Shape */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-pill: 999px;

    /* Elevation */
    --shadow-header: 0 1px 8px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(29, 27, 32, 0.06), 0 1px 2px rgba(29, 27, 32, 0.04);
    --shadow-md: 0 4px 20px rgba(29, 27, 32, 0.08);
    --shadow-lg: 0 18px 40px -12px rgba(29, 27, 32, 0.18);
    --shadow-xl: 0 30px 60px -20px rgba(29, 27, 32, 0.35);
    --shadow-primary: 0 6px 18px -6px rgba(79, 55, 138, 0.45);

    /* Motion */
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --duration-fast: 150ms;
    --duration: 250ms;
    --duration-slow: 600ms;

    /* Layers */
    --z-header: 50;
    --z-tabbar: 60;
    --z-drawer: 100;
}

@media (min-width: 1024px) {
    :root {
        --header-h: 5rem;
        --tabbar-h: 0px;
    }
}
