/*
  The Athena palette. BlazorBase (linked before this file) defines the token names and the layout scales; this
  file only swaps the colours, so every BlazorBase and Fluent UI component follows through the Fluent bridge
  without naming a Fluent token here.

  - Accent: the blue of the app icon. Light theme #2F4FA8 is the accent and the fill (7.5:1 against the cards, the
    white label on the fill 7.5:1, hover 9.3:1, pressed 11.4:1). Dark theme: #93A9F2 for links, focus rings and
    icons (7.4:1 on the cards) and #4767D0 as the fill with a white label (5.1:1; the fill itself stands off the
    cards by 3.3:1).
  - Neutrals: blue-grey surfaces. Primary, secondary and muted text keep at least 4.5:1 on every surface, hover
    and subtle layer, light and dark.
  - Gold (--color-brand-gold) is the voice motif of the logo and nothing else: the three bars before something a
    person said and the rule beside quoted speech. It never carries text on a light surface and never marks a
    status; success and danger keep the BlazorBase values. Dark warning is orange (#F59E5B, 5.7:1 on the
    warning chip) so the gold of the voice motif never reads as a status.
  - --chip-tint is how much of the tone a status chip mixes into the card colour (14% light, 18% dark).

  The derived accent shades (--color-accent-text, -hover, -pressed, -subtle) are mixed from --color-accent by
  BlazorBase and need no entry here. The dark values are written twice, like in BlazorBase: once for the system
  setting (guarded so an explicit light choice still wins) and once for an explicit dark choice.
*/

:root {
    --space-7: 48px;
    --shell-max: 1120px;
    --tap-target: 44px;
    --shadow-raised: 0 6px 24px #0000001F;

    --color-bg-surface: #F5F6FA;
    --color-bg-elevated: #FFFFFF;
    --color-bg-subtle: #ECEFF6;
    --color-bg-hover: #EFF1F7;
    --color-bg-selected: #2F4FA814;

    --color-border: #DDE1EB;
    --color-border-strong: #BFC6D5;
    --color-border-focus: #2F4FA8;

    --color-text-primary: #141A2E;
    --color-text-secondary: #454D64;
    --color-text-muted: #5A627A;

    --color-accent: #2F4FA8;
    --color-accent-fill: #2F4FA8;
    --color-accent-fill-hover: #27428F;
    --color-accent-fill-pressed: #1F3676;
    --color-text-on-accent: #FFFFFF;

    --color-neutral-base: #868CA0;

    --color-brand-gold: #F2B53A;
    --chip-tint: 14%;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --color-bg-surface: #0E1224;
        --color-bg-elevated: #161C33;
        --color-bg-subtle: #12182C;
        --color-bg-hover: #1F2742;
        --color-bg-selected: #93A9F224;

        --color-border: #29314D;
        --color-border-strong: #3D4668;
        --color-border-focus: #93A9F2;

        --color-text-primary: #E8EBF5;
        --color-text-secondary: #B1B8CC;
        --color-text-muted: #9299B0;

        --color-accent: #93A9F2;
        --color-accent-fill: #4767D0;
        --color-accent-fill-hover: #3F5DC2;
        --color-accent-fill-pressed: #3752B0;
        --color-text-on-accent: #FFFFFF;

        --color-neutral-base: #868CA0;

        --color-warning: #F59E5B;
        --chip-tint: 18%;
    }
}

:root[data-theme="dark"] {
    --color-bg-surface: #0E1224;
    --color-bg-elevated: #161C33;
    --color-bg-subtle: #12182C;
    --color-bg-hover: #1F2742;
    --color-bg-selected: #93A9F224;

    --color-border: #29314D;
    --color-border-strong: #3D4668;
    --color-border-focus: #93A9F2;

    --color-text-primary: #E8EBF5;
    --color-text-secondary: #B1B8CC;
    --color-text-muted: #9299B0;

    --color-accent: #93A9F2;
    --color-accent-fill: #4767D0;
    --color-accent-fill-hover: #3F5DC2;
    --color-accent-fill-pressed: #3752B0;
    --color-text-on-accent: #FFFFFF;

    --color-neutral-base: #868CA0;

    --color-warning: #F59E5B;
    --chip-tint: 18%;
}
