/* Open-props (subset) + Zoop-specific tokens.
   The full open-props CDN can be swapped in later; these are the primitives
   we need for the v1 surface, kept inline so the page works fully offline
   inside Docker without a network round-trip. */

/* Self-hosted fonts. Both Inter and Noto Sans are variable woff2 files
   (latin subset) — one file covers every weight via the variation axis,
   which is why both 400 and 700 @font-face rules point at the same src.
   Vendored to static/fonts/ to satisfy the strict CSP (font-src 'self'
   only) and so the app works offline inside Docker. Sourced from the
   Google Fonts CSS API (latin subset only, ~35–48 KB per family). */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("/static/fonts/inter-latin.65850a373e25.woff2") format("woff2");
}
@font-face {
    font-family: "Noto Sans";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("/static/fonts/noto-sans-latin.86d512f8885d.woff2") format("woff2");
}

:root {
    /* Neutral surface (Material 3-ish) */
    --color-surface: #ffffff;
    --color-surface-1: #f8fafc;
    --color-surface-2: #f1f5f9;
    --color-surface-3: #e2e8f0;
    --color-on-surface: #1f2937;
    --color-on-surface-muted: #64748b;
    --color-outline: #cbd5e1;

    /* Brand — Google product feel */
    --color-primary: #1a73e8;
    --color-primary-container: #d2e3fc;
    --color-on-primary: #ffffff;
    --color-on-primary-container: #001f4d;
    --color-danger: #d93025;
    --color-success: #188038;
    --color-warning: #f9ab00;

    /* Spacing scale */
    --size-1: 0.25rem;
    --size-2: 0.5rem;
    --size-3: 0.75rem;
    --size-4: 1rem;
    --size-5: 1.5rem;
    --size-6: 2rem;
    --size-7: 3rem;
    --size-8: 4rem;

    /* Type */
    --font-sans: "Inter", "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
    --font-size-0: 0.75rem;
    --font-size-1: 0.875rem;
    --font-size-2: 1rem;
    --font-size-3: 1.125rem;
    --font-size-4: 1.25rem;
    --font-size-5: 1.5rem;
    --font-size-6: 2rem;
    --line-height-1: 1.25;
    --line-height-2: 1.5;
    --line-height-3: 1.75;

    /* Elevation */
    --shadow-1: 0 1px 2px rgba(60, 64, 67, 0.08), 0 1px 3px rgba(60, 64, 67, 0.16);
    --shadow-2: 0 2px 6px rgba(60, 64, 67, 0.15), 0 1px 2px rgba(60, 64, 67, 0.3);
    --shadow-3: 0 4px 12px rgba(60, 64, 67, 0.2), 0 2px 4px rgba(60, 64, 67, 0.15);

    /* Radius */
    --radius-1: 4px;
    --radius-2: 8px;
    --radius-3: 12px;
    --radius-pill: 9999px;

    /* Motion */
    --ease-1: cubic-bezier(0.4, 0, 0.2, 1);
    --duration-1: 120ms;
    --duration-2: 240ms;
}

@media (prefers-color-scheme: dark) {
    :root {
        --color-surface: #0f172a;
        --color-surface-1: #1e293b;
        --color-surface-2: #334155;
        --color-surface-3: #475569;
        --color-on-surface: #f1f5f9;
        --color-on-surface-muted: #94a3b8;
        --color-outline: #475569;
        --color-primary: #8ab4f8;
        --color-primary-container: #1f2a44;
        --color-on-primary: #001f4d;
        --color-on-primary-container: #d2e3fc;
    }
}
