/* 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): Hell und Dunkel mit Gold-Akzent.
 * Ohne eigene Wahl gilt die Systemvorgabe, auch ohne JavaScript. data-theme setzt eine ausdrückliche Darstellung.
 */
:root {
    color-scheme: light dark;
    --canvas: light-dark(#f6f7f9, #000000);
    --surface: light-dark(#ffffff, #0d0f12);
    --surface-2: light-dark(#eceff3, #171a20);
    --ink: light-dark(#0d0f12, #ffffff);
    --muted: light-dark(#3f4652, #b2b6bd);
    --subtle: light-dark(#69717e, #656a76);
    --rule: light-dark(rgba(13, 15, 18, .12), rgba(178, 182, 189, .16));
    --rule-strong: light-dark(rgba(13, 15, 18, .55), rgba(178, 182, 189, .42));
    --accent: light-dark(#8a6500, #f2c14e);
    --accent-ink: light-dark(#ffffff, #000000);
    --img-filter-light: grayscale(1) contrast(1.05);
    --img-filter-dark: grayscale(1) brightness(.9) contrast(1.08);
    --img-filter: var(--img-filter-light);
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --img-filter: var(--img-filter-dark);
}

:root[data-theme="light"] {
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        --img-filter: var(--img-filter-dark);
    }
}
*,
*::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;
    }

}
