/* ============================================================
   THEME SCHEMA (same shape as the SnapNutrition site, so a page
   can be restyled by swapping this file)
   Surfaces   --paper  --surface  --surface-2  --line  --hero-bg
   Text       --ink  --muted
   Accent     --accent  --accent-ink  --accent-soft  --focus
   Buttons    --cta-bg  --cta-ink
   Type       --font-display  --font-body  --display-weight  --display-tracking
   Shape      --radius  --radius-lg
   Depth      --device-shadow
   Rhythm     --section
   ============================================================ */
/* Theme: Studio. Cool paper, deep navy ink, one periwinkle accent — the
   colour of the tap marker in the app's own mirror view. */

@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: #f3f4f8;
    --surface: #e9ebf3;
    --surface-2: #dde1ee;
    --line: #cfd4e4;
    --hero-bg: #e9ebf3;
    --ink: #141b33;
    --muted: #4f5878;
    --accent: #5b5bff;
    --accent-ink: #3a3ad6;
    --accent-soft: #dcdcff;
    --focus: #005fcc;
    --cta-bg: #141b33;
    --cta-ink: #ffffff;
    --device-shadow: drop-shadow(0 30px 40px rgba(20, 27, 51, 0.28));
    --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(4rem, 3rem + 4vw, 7rem);
    --glass: #0e1120;
    --glass-edge: #2a3050;
    --screen: #161b31;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --paper: #0e1120;
    --surface: #171b30;
    --surface-2: #20253e;
    --line: #2a3050;
    --hero-bg: #12162a;
    --ink: #eceef8;
    --muted: #a3aac6;
    --accent: #7d7dff;
    --accent-ink: #a5a5ff;
    --accent-soft: #23264d;
    --focus: #8ab4ff;
    --cta-bg: #eceef8;
    --cta-ink: #0e1120;
    --device-shadow: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55));
    --glass: #05070f;
    --glass-edge: #3a4166;
    --screen: #0e1226;
}

@media (prefers-color-scheme: dark) {
    html[data-theme="system"] {
        color-scheme: dark;
        --paper: #0e1120;
        --surface: #171b30;
        --surface-2: #20253e;
        --line: #2a3050;
        --hero-bg: #12162a;
        --ink: #eceef8;
        --muted: #a3aac6;
        --accent: #7d7dff;
        --accent-ink: #a5a5ff;
        --accent-soft: #23264d;
        --focus: #8ab4ff;
        --cta-bg: #eceef8;
        --cta-ink: #0e1120;
        --device-shadow: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55));
        --glass: #05070f;
        --glass-edge: #3a4166;
        --screen: #0e1226;
    }
}
