/* Eligara design tokens. Copy this file unchanged into the launch application.
   Component styles consume semantic roles; all brand values live here. */
:root {
    color-scheme: light;

    /* Color roles */
    --color-background: #ece8e0;
    --color-surface: #f7f4ed;
    --color-surface-hover: #eef1e6;
    --color-surface-accent: #e4f0ea;
    --color-surface-emphasis: #e4ebe1;
    --color-border: #ddd8cc;
    --color-border-strong: #a6b5af;
    --color-border-accent: #b4d1c4;
    --color-text: #28342c;
    --color-text-secondary: #3d4338;
    --color-text-muted: #5c6358;
    --color-heading: #102840;
    --color-action: #326e70;
    --color-action-hover: #24585a;
    --color-on-action: #ffffff;
    --color-link: var(--color-action-hover);
    --color-focus: var(--color-action);
    --color-selection: #c8ccb8;
    --color-warning-surface: #f6edd8;
    --color-warning-border: #e0c48a;
    --color-warning-text: #92400e;
    --color-match-fit-text: #28674f;
    --color-match-fit-surface: #e4f2e9;
    --color-match-excluded-text: #964b43;
    --color-match-excluded-surface: #fae9e5;
    --color-match-check-text: #82611e;
    --color-match-check-surface: #fbf0cf;
    --color-nav-surface: color-mix(in srgb, var(--color-surface) 96%, transparent);
    --color-section-surface: color-mix(in srgb, var(--color-surface) 74%, transparent);
    --color-raised-surface: color-mix(in srgb, var(--color-on-action) 70%, transparent);
    --color-grid: color-mix(in srgb, var(--color-text) 4.5%, transparent);
    --color-decor-sage: #c8ccb8;
    --color-decor-rose: #e3b2ab;
    --color-decor-leaf: #b7c4a6;
    --color-video-overlay: color-mix(in srgb, var(--color-heading) 85%, transparent);
    --gradient-brand: linear-gradient(135deg, var(--color-action-hover) 0%, var(--color-action) 100%);

    /* Typography: rem sizes respect browser font preferences. */
    --font-family-body: 'Instrument Sans', system-ui, sans-serif;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-size-xs: 0.8125rem; /* Secondary metadata only. */
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-md: 1.0625rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-display: clamp(2.5rem, 4.5vw, 3.5rem);
    --font-size-title: clamp(2rem, 4vw, 3rem);
    --font-size-section: clamp(1.8rem, 3.2vw, 2.4rem);
    --font-size-subheading: clamp(1.45rem, 2.8vw, 1.9rem);
    --font-size-card: clamp(1.25rem, 2.2vw, 1.5rem);
    --font-size-intro: clamp(1rem, 1.7vw, 1.125rem);
    --font-size-benefit: clamp(1.375rem, 2.1vw, 1.625rem);
    --font-size-tools: clamp(1.4rem, 2.4vw, 1.75rem);
    --font-size-error-number: clamp(6rem, 20vw, 10rem);
    --line-height-tight: 1.12;
    --line-height-heading: 1.25;
    --line-height-compact: 1.4;
    --line-height-ui: 1.5;
    --line-height-normal: 1.6;
    --line-height-relaxed: 1.75;
    --letter-spacing-body: -0.011em;
    --letter-spacing-heading: -0.03em;
    --letter-spacing-display: -0.04em;
    --letter-spacing-label: 0.09em;
    --letter-spacing-badge: 0.035em;

    /* Spacing: a quarter-rem scale (4px at the default root size). */
    --space-1: 0.25rem;
    --space-1-5: 0.375rem;
    --space-2: 0.5rem;
    --space-2-5: 0.625rem;
    --space-3: 0.75rem;
    --space-3-5: 0.875rem;
    --space-4: 1rem;
    --space-4-5: 1.125rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-7: 1.75rem;
    --space-8: 2rem;
    --space-9: 2.25rem;
    --space-10: 2.5rem;
    --space-11: 2.75rem;
    --space-12: 3rem;
    --space-14: 3.5rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Shape and control sizing */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-control: 0.75rem;
    --radius-card: 1rem;
    --radius-panel: 1.125rem;
    --radius-lg: 1.5rem;
    --radius-pill: 999px;
    --radius-circle: 50%;
    --control-height-small: 2.75rem;
    --control-height: 3rem;
    --control-height-large: 3.125rem;
    --logo-height: 5rem;

    /* Layout: page composition can differ between marketing and the app. */
    --layout-content-width: 70rem;
    --layout-wide-width: 80rem;
    --layout-reading-width: 48.75rem;
    --layout-message-width: 32.5rem;
    --layout-redirect-width: 36rem;
    --layout-video-width: 44rem;
    --page-gutter: clamp(1.25rem, 4vw, 3rem);
    --section-padding: var(--space-14);
    --section-padding-compact: var(--space-11);
    --panel-padding: clamp(1.5rem, 3.5vw, 2.5rem);
    --nav-height: 6.5rem;
    --nav-padding-inline: clamp(1rem, 2.5vw, 2.5rem);
    --nav-padding-block: var(--space-2-5);

    /* Reusable effects */
    --shadow-action: 0 5px 16px color-mix(in srgb, var(--color-action) 12%, transparent);
    --shadow-action-hover: 0 4px 14px color-mix(in srgb, var(--color-action) 22%, transparent);
    --shadow-card: 0 8px 28px color-mix(in srgb, var(--color-heading) 6%, transparent);
    --shadow-subtle: 0 1px 3px color-mix(in srgb, var(--color-text) 8%, transparent);
    --shadow-video: 0 8px 24px color-mix(in srgb, var(--color-heading) 8%, transparent);
    --shadow-video-play: 0 4px 14px color-mix(in srgb, var(--color-heading) 20%, transparent);
    --shadow-video-play-hover: 0 6px 18px color-mix(in srgb, var(--color-heading) 28%, transparent);
    --shadow-action-glow: 0 0 0 3px color-mix(in srgb, var(--color-action) 14%, transparent), 0 0 24px 6px color-mix(in srgb, var(--color-action) 28%, transparent);
}

@media (max-width: 1024px) {
    :root {
        --nav-height: 5.5rem;
        --logo-height: 4rem;
        --nav-padding-inline: var(--space-4);
        --nav-padding-block: var(--space-2);
    }
}
@media (max-width: 760px) {
    :root { --section-padding: var(--space-11); --section-padding-compact: var(--space-10); }
}
@media (max-width: 600px) {
    :root { --font-size-display: clamp(2.4rem, 9.7vw, 3rem); }
}
@media (max-width: 360px) {
    :root { --page-gutter: var(--space-4); }
}
