/* ============================================================
   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)

   Replace the palette with the app's own colours (page tint from the
   app's background, ink from its darkest text, ONE accent from its
   brand colour; dark mode mirrors the app's dark palette). Keep the
   --focus ring high-contrast on both pages. Then update the two
   <meta name="theme-color"> values in every page's <head>.
   Reference palettes that shipped: docs/themes/ in the boilerplate.
   ============================================================ */
/* Theme: Default. Neutral slate page, near-black ink, one blue accent.
   A starting point, not a design: swap it for the app's palette. */

@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: #f5f6f8;
    --surface: #eaedf1;
    --surface-2: #dde2e8;
    --line: #d2d8e0;
    --hero-bg: #eaedf1;
    --ink: #151a22;
    --muted: #525c6b;
    --accent: #2563eb;
    --accent-ink: #1d4ed8;
    --accent-soft: #dbe6fb;
    --focus: #005fcc;
    --cta-bg: #151a22;
    --cta-ink: #ffffff;
    --phone-shadow: drop-shadow(0 30px 40px rgba(21, 26, 34, 0.28));
    /* the app's three cycle colours (Shared/Colors.xcassets): coral physical, aqua emotional, violet intellectual */
    --cycle-physical: #f2785c;
    --cycle-emotional: #0b8f99;
    --cycle-intellectual: #6b4fd6;
    --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: #0f1217;
    --surface: #171c24;
    --surface-2: #1f2630;
    --line: #2a3340;
    --hero-bg: #13181f;
    --ink: #eceff3;
    --muted: #a3acb9;
    --accent: #5b8cff;
    --accent-ink: #8db0ff;
    --accent-soft: #1d2a47;
    --focus: #ffd60a;
    --cta-bg: #eceff3;
    --cta-ink: #0f1217;
    --phone-shadow: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.6));
    --cycle-physical: #ff8e74;
    --cycle-emotional: #3cc8d1;
    --cycle-intellectual: #a08cff;
}

@media (prefers-color-scheme: dark) {
    html[data-theme="system"] {
        color-scheme: dark;
        --paper: #0f1217;
        --surface: #171c24;
        --surface-2: #1f2630;
        --line: #2a3340;
        --hero-bg: #13181f;
        --ink: #eceff3;
        --muted: #a3acb9;
        --accent: #5b8cff;
        --accent-ink: #8db0ff;
        --accent-soft: #1d2a47;
        --focus: #ffd60a;
        --cta-bg: #eceff3;
        --cta-ink: #0f1217;
        --phone-shadow: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.6));
        --cycle-physical: #ff8e74;
        --cycle-emotional: #3cc8d1;
        --cycle-intellectual: #a08cff;
    }
}
