/* Design-Tokens „Inlay“: Farbrollen, Schrift, Abstände, Radien.
   Dunkel (Inlay) ist Standard; data-theme="light" am <html> schaltet auf Ahorn (hell).
   Der Modus tauscht nur Farbwerte. Maßgeblich: entwicklung/design/DESIGNKONZEPT.md. */

@font-face {
    font-family: "Instrument Sans";
    src: url("../fonts/InstrumentSans-Variable.ttf") format("truetype");
    font-weight: 400 700;
    font-stretch: 75% 100%;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: dark;
    /* Farbrollen · Inlay (dunkel) */
    --bg: #16120E;
    --surface: #1D1813;
    --board: #1F1913;
    --text: #EEE7D8;
    --text-muted: #A39B8C;
    --line-fine: #3A332B;
    --line-ctl: #7A7062;
    --accent: #CFE5DE;
    --on-accent: #16120E;
    --amber: #E8C987;
    --coral: #E0907C;
    /* abgeleitete Flächen (nur Deko, nie für Text) */
    --accent-soft: rgba(207, 229, 222, 0.14);
    --accent-mid: rgba(207, 229, 222, 0.32);
    --accent-strong: rgba(207, 229, 222, 0.62);
    --text-soft: rgba(238, 231, 216, 0.08);
    --scrim: rgba(10, 8, 6, 0.72);
    --shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    --gloss: rgba(255, 255, 255, 0.7);

    /* Schrift */
    --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --fs-number: 108px;
    --fs-display: 64px;
    --fs-title1: 36px;
    --fs-title2: 28px;
    --fs-title3: 22px;
    --fs-large: 18px;
    --fs-text: 15px;
    --fs-small: 13px;
    --fs-label: 11px;

    /* Abstände (4er-Raster) */
    --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
    --pad-card: 24px;
    --pad-page: 48px;
    --page-max: 1344px;

    /* Radien */
    --r-seg: 4px;
    --r-input: 8px;
    --r-card: 16px;
    --r-round: 999px;

    /* Mindestgröße für Tippziele */
    --tap: 44px;
}

:root[data-theme="light"] {
    color-scheme: light;
    /* Farbrollen · Ahorn (hell) */
    --bg: #F3EBDD;
    --surface: #FBF7F0;
    --board: #E8D9C0;
    --text: #2A2119;
    --text-muted: #6B5E4E;
    --line-fine: #D8CAB4;
    --line-ctl: #857259;
    --accent: #2E6B63;
    --on-accent: #FBF7F0;
    --amber: #87590A;
    --coral: #A8452F;
    --accent-soft: rgba(46, 107, 99, 0.10);
    --accent-mid: rgba(46, 107, 99, 0.30);
    --accent-strong: rgba(46, 107, 99, 0.60);
    --text-soft: rgba(42, 33, 25, 0.06);
    --scrim: rgba(42, 33, 25, 0.45);
    --shadow: 0 24px 64px rgba(42, 33, 25, 0.18);
    --gloss: rgba(255, 255, 255, 0.55);
}

@media (max-width: 700px) {
    :root {
        --fs-number: 72px;
        --fs-display: 40px;
        --fs-title1: 28px;
        --fs-title2: 22px;
        --pad-card: 20px;
        --pad-page: 20px;
    }
}
