/*
 * Design-system tokens (docs/charte/tokens.json).
 * Light theme on the root element, dark theme on <html> or on a band that carries data-bs-theme="dark".
 * Two blocks rather than light-dark(): Tabler recomputes its shades on the element that
 * declares the base color, and a relative color built on light-dark() is not verified.
 * Every color of the application comes from here; no other file writes a color literal.
 */
:root {
    --surface: #f4f4f2;
    --surface-raised: #ffffff;
    --surface-sunken: #eaeae6;
    --line: #dcdcd6;
    --line-strong: #8a8a85;
    --ink: #26282b;
    --ink-muted: #63666b;
    --ink-faint: #8b8d93;
    --brand: #a64c2a;
    --brand-hover: #8e3f22;
    --on-brand: #ffffff;
    --brand-soft: #f5e6de;
    --act: var(--brand);
    --ai: #5e6e57;
    --on-ai: #ffffff;
    --ai-ink: #4a5944;
    --ai-soft: #e8ece4;
    --success: #28714a;
    --success-soft: #dfeee4;
    --warning: #7a5200;
    --warning-soft: #f7e9c4;
    --danger: #a31444;
    --danger-soft: #fae5ec;
    --info: #7f6342;
    --info-soft: #efe7db;
    --cat-client: var(--info);
    --cat-ai: var(--ai);
    --cat-expert: var(--brand);
    --focus: var(--brand);
    --overlay: #26282ba6;

    /* Artworks of the landing: a document keeps its colors in both themes */
    --art-dark: #26282b;
    --art-paper: #f4f4f2;
    --art-brand: #b4532e;
    --art-sage: #5e6e57;
    --art-sand: #c9b8a6;
    --art-ink-on-dark: #f4f4f2;
    --art-white: #ffffff;
    --shadow-sm: 0 1px 2px #26282b14;
    --shadow-md: 0 24px 48px -12px #26282b24;

    /* Spacing, 4px grid */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;

    /* Radii */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-pill: 999px;

    /* One family, from Fontsource, then the fallback stack */
    --font: "Manrope Variable", "Helvetica Neue", Arial, sans-serif;
}

[data-bs-theme="dark"] {
    --surface: #26262b;
    --surface-raised: #303036;
    --surface-sunken: #1e1e22;
    --line: #3f3f47;
    --line-strong: #85858e;
    --ink: #ecebe7;
    --ink-muted: #b8b6bd;
    --ink-faint: #8f8e96;
    --brand: #d8a657;
    --brand-hover: #e3b86f;
    --on-brand: #18181b;
    --brand-soft: #4a3a20;
    --ai: #7fa7b0;
    --on-ai: #18181b;
    --ai-ink: #a9c4cb;
    --ai-soft: #2c3b40;
    --success: #8ad0a8;
    --success-soft: #254434;
    --warning: #efd66a;
    --warning-soft: #4a4119;
    --danger: #f288ab;
    --danger-soft: #4f2434;
    --info: #d2c3b0;
    --info-soft: #3d362d;
    --overlay: #000000b3;
    --shadow-sm: 0 1px 2px #00000066;
    --shadow-md: 0 24px 48px -12px #000000a6;
}
