/* ============================================================
   THEME SCHEMA
   Every theme file defines all of these tokens, once for light
   and once for dark (the dark block is repeated for the explicit
   html[data-theme="dark"] case and the system-preference case).
   Layout CSS in styles.css only ever reads these.

   Surfaces   --paper (page)  --surface (panels)  --surface-2  --line (hairlines)  --hero-bg
   Text       --ink  --muted
   Accent     --accent (controls)  --accent-ink (links on paper)  --accent-soft (tint)  --focus
   Buttons    --cta-bg  --cta-ink
   Type       --font-display  --font-body  --display-weight  --display-tracking
   Shape      --radius (images, inputs)  --radius-lg (panels)
   Depth      --phone-shadow
   Rhythm     --section (vertical space between sections)
   ============================================================ */
/* Theme: Indigo. Cool lavender-grey paper, deep indigo ink, the app's lavender as the accent;
   dark mode is the app's own night palette. The shipped theme. */

@font-face {
    font-family: "Instrument Sans";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/instrument-sans-latin.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;
}

@font-face {
    font-family: "Instrument Sans";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/instrument-sans-latin-ext.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;
}

:root {
    color-scheme: light;
    --paper: #f6f5fb;
    --surface: #ebe9f6;
    --surface-2: #dfdcf0;
    --line: #d9d6ea;
    --hero-bg: #ebe9f6;
    --ink: #1e1846;
    --muted: #5b5680;
    --accent: #9e85eb;
    --accent-ink: #6247c9;
    --accent-soft: #e6e0fa;
    --focus: #005fcc;
    --cta-bg: #1e1846;
    --cta-ink: #ffffff;
    --phone-shadow: drop-shadow(0 30px 40px rgba(30, 24, 70, 0.32));
    --font-display: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --display-weight: 700;
    --display-tracking: -0.03em;
    --radius: 16px;
    --radius-lg: 28px;
    --section: clamp(4.5rem, 3rem + 5vw, 7.5rem);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --paper: #0f0c24;
    --surface: #191540;
    --surface-2: #221c52;
    --line: #2a2458;
    --hero-bg: #130f2e;
    --ink: #efedfa;
    --muted: #a9a3cc;
    --accent: #b8a0f0;
    --accent-ink: #c9b8f7;
    --accent-soft: #241c55;
    --focus: #ffd60a;
    --cta-bg: #b8a0f0;
    --cta-ink: #14102e;
    --phone-shadow: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.65));
}

@media (prefers-color-scheme: dark) {
    html[data-theme="system"] {
        color-scheme: dark;
        --paper: #0f0c24;
        --surface: #191540;
        --surface-2: #221c52;
        --line: #2a2458;
        --hero-bg: #130f2e;
        --ink: #efedfa;
        --muted: #a9a3cc;
        --accent: #b8a0f0;
        --accent-ink: #c9b8f7;
        --accent-soft: #241c55;
        --focus: #ffd60a;
        --cta-bg: #b8a0f0;
        --cta-ink: #14102e;
        --phone-shadow: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.65));
    }
}
