/*
 * Musardine design tokens
 *
 * Components should consume semantic custom properties from this file.
 * Theme-specific values stay here so components remain reusable.
 */

:root {
    color-scheme: light;

    /* Typography */
    --font-family-sans: "Montserrat", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-family-mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;

    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;

    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.7;

    --letter-spacing-tight: -0.02em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.08em;

    /* Light theme: cool ivory, graphite and slate. */
    --color-primary: #24272D;
    --color-secondary: #626B77;
    --color-accent: #788694;

    --color-background: #F4F3F0;
    --color-surface: #FFFFFF;
    --color-surface-alt: #EAE9E6;

    --color-border: #C7C9CD;

    --color-text: #22252B;
    --color-text-muted: #565F69;

    /* Interactive colors */
    --color-focus: #506A86;
    --color-hover: #343A43;

    /* Semantic state colors */
    --color-info: #DDE7EF;
    --color-info-text: #284A62;

    --color-success: #DFE9E1;
    --color-success-text: #31543B;

    --color-warning: #F1E5CB;
    --color-warning-text: #644B1F;

    --color-error: #F0DEDA;
    --color-error-text: #783B35;

    /* Brand mark: follows the explicitly selected application theme. */
    --logo-primary: #24272D;
    --logo-secondary: #788694;
    --logo-eye: #F4F3F0;

    /* Reusable visual values */
    --radius-small: 3px;
    --radius-medium: 5px;

    --shadow-card:
        0 1px 2px rgb(26 37 51 / 4%),
        0 6px 20px rgb(26 37 51 / 5%);
}

html[data-theme="dark"] {
    color-scheme: dark;

    /* Dark theme: raven black, graphite and muted storm-slate. */
    --color-primary: #E9E9EC;
    --color-secondary: #A7ACB5;
    --color-accent: #8794A3;

    --color-background: #18191C;
    --color-surface: #222328;
    --color-surface-alt: #2B2D33;

    --color-border: #44474F;

    --color-text: #E9E9EC;
    --color-text-muted: #AEB1BA;

    /* Interactive colors */
    --color-focus: #A8BBD0;
    --color-hover: #393D46;

    /* Semantic state colors */
    --color-info: #293B4A;
    --color-info-text: #C6E0F2;

    --color-success: #293F33;
    --color-success-text: #C5E6CE;

    --color-warning: #483C29;
    --color-warning-text: #F3DCAB;

    --color-error: #4B3033;
    --color-error-text: #F2C8C7;

    --logo-primary: #E9E9EC;
    --logo-secondary: #8794A3;
    --logo-eye: #18191C;

    /* Dark surfaces need less visible shadow than light surfaces. */
    --shadow-card:
        0 1px 2px rgb(0 0 0 / 20%),
        0 8px 24px rgb(0 0 0 / 18%);
}
