/* Design tokens — single source of truth for both themes.
   The active theme is set as <html data-theme="light|dark"> by theme.js. */

@font-face {
    font-family: "Inter";
    src: url("../fonts/InterVariable.2bf3d951bf9d.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Inter";
    src: url("../fonts/InterVariable-Italic.8d1dc86da258.woff2") format("woff2");
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

:root {
    /* Typography */
    --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;

    /* Spacing scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 10px;

    /* Category colors (theme-independent) */
    --c-hotspot: #dc2626;
    --c-capital: #2563eb;
    --c-port:    #059669;
    --c-other:   #71717a;
}

:root[data-theme="dark"] {
    color-scheme: dark;

    --bg:            #0c0d10;
    --surface:       #16181c;
    --surface-2:     #1d2025;
    --border:        rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);

    --text:        #e7e7ea;
    --text-2:      #a6a7ad;
    --text-3:      #6b6c74;

    --accent:        #5b8def;
    --accent-strong: #3b76e8;
    --accent-soft:   rgba(91, 141, 239, 0.14);
    --accent-text:   #8fb3f5;

    --danger:      #f87171;
    --danger-soft: rgba(248, 113, 113, 0.12);
    --success:     #4ade80;

    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-pop:  0 8px 30px rgba(0, 0, 0, 0.55);

    --scrollbar: rgba(255, 255, 255, 0.16);
}

:root[data-theme="light"] {
    color-scheme: light;

    --bg:            #f7f7f8;
    --surface:       #ffffff;
    --surface-2:     #f1f1f3;
    --border:        rgba(17, 17, 20, 0.10);
    --border-strong: rgba(17, 17, 20, 0.18);

    --text:        #1a1b1f;
    --text-2:      #565861;
    --text-3:      #8e9098;

    --accent:        #2563eb;
    --accent-strong: #1d4fd8;
    --accent-soft:   rgba(37, 99, 235, 0.10);
    --accent-text:   #1d4fd8;

    --danger:      #dc2626;
    --danger-soft: rgba(220, 38, 38, 0.08);
    --success:     #059669;

    --shadow-card: 0 1px 2px rgba(17, 17, 20, 0.06);
    --shadow-pop:  0 8px 30px rgba(17, 17, 20, 0.14);

    --scrollbar: rgba(17, 17, 20, 0.22);
}
