/* Application-wide fonts, design tokens, reset and accessibility defaults. Shared UI rules live at their common composition owner. */

/*
 * Archivo (SIL OFL 1.1, Lizenz: /fonts/OFL-Archivo.txt), selbst gehostet als variable WOFF2
 * mit Breiten- (wdth 62–125 %) und Gewichtsachse (wght 100–900) wie im Entwurf Runde 4.
 * Quelle: @fontsource-variable/archivo 5.3.0, Teilmengen latin und latin-ext.
 */
@font-face {
    font-family: "Archivo";
    font-style: normal;
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-display: swap;
    src: url("/fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Archivo";
    font-style: normal;
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-display: swap;
    src: url("/fonts/archivo-latin-wdth-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/*
 * Gestaltungsgrundlagen aus dem Entwurf Runde 4. Core-Kandidat (ADR 0003): Farbschema Dunkel (Standard) und Hell
 * mit festem Gold-Akzent. Das Theme steht als data-theme am html-Element; --canvas färbt auch die Browserleiste.
 */
:root,
:root[data-theme="dark"] {
    --canvas: #000000;
    --surface: #0d0f12;
    --surface-2: #171a20;
    --ink: #ffffff;
    --muted: #b2b6bd;
    --subtle: #656a76;
    --rule: rgba(178, 182, 189, .16);
    --rule-strong: rgba(178, 182, 189, .42);
    --img-filter: grayscale(1) brightness(.9) contrast(1.08);
    --accent: #f2c14e;
    --accent-ink: #000000;
    color-scheme: dark;
}

:root[data-theme="light"] {
    --canvas: #f6f7f9;
    --surface: #ffffff;
    --surface-2: #eceff3;
    --ink: #0d0f12;
    --muted: #3f4652;
    --subtle: #69717e;
    --rule: rgba(13, 15, 18, .12);
    --rule-strong: rgba(13, 15, 18, .55);
    --img-filter: grayscale(1) contrast(1.05);
    --accent: #8a6500;
    --accent-ink: #ffffff;
    color-scheme: light;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }

}
