/*
 * blazot.com's public HUD theme ("Uplink"): fonts and tokens, copied from the Blazot repo's
 * src/Server/StyleSources/hud/_hud.scss (the font faces, the `.hud` token block and the `hud-theme-light` mixin).
 * A second copy, so it can drift: tools/SyncOpenApi.cs compares it with the public file (docs/V2_DOCS_PLAN.md §4.4).
 * Change the theme on blazot.com first, then re-copy here; portal-only styles go in portal.css, never here.
 * The dark tokens are the base; the light ones apply when chosen, or when nothing is chosen and the system is light.
 */

@font-face {
    font-family: 'Chakra Petch';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/hud/chakra-petch-500.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: 'Chakra Petch';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/hud/chakra-petch-600.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: 'Atkinson Hyperlegible';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/hud/atkinson-hyperlegible-400.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: 'Atkinson Hyperlegible';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/hud/atkinson-hyperlegible-700.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: 'Martian Mono';
    font-style: normal;
    font-weight: 400 500;
    font-display: swap;
    src: url('/fonts/hud/martian-mono.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: 'Chakra Petch';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/hud/chakra-petch-500-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;
}

@font-face {
    font-family: 'Chakra Petch';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/hud/chakra-petch-600-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;
}

@font-face {
    font-family: 'Atkinson Hyperlegible';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/hud/atkinson-hyperlegible-400-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;
}

@font-face {
    font-family: 'Atkinson Hyperlegible';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/hud/atkinson-hyperlegible-700-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;
}

@font-face {
    font-family: 'Martian Mono';
    font-style: normal;
    font-weight: 400 500;
    font-display: swap;
    src: url('/fonts/hud/martian-mono-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;
}

@font-face {
    font-family: 'Atkinson Hyperlegible Fallback';
    src: local('Arial'), local('ArialMT');
    size-adjust: 98.61%;
    ascent-override: 96.34%;
    descent-override: 29.41%;
    line-gap-override: 0%;
}

@font-face {
    font-family: 'Chakra Petch Fallback';
    font-weight: 500 700;
    src: local('Arial Bold'), local('Arial-BoldMT'), local('Arial');
    size-adjust: 97.32%;
    ascent-override: 101.72%;
    descent-override: 31.85%;
    line-gap-override: 0%;
}

@font-face {
    font-family: 'Martian Mono Fallback';
    src: local('Courier New'), local('CourierNewPSMT');
    size-adjust: 116.65%;
    ascent-override: 85.73%;
    descent-override: 17.15%;
    line-gap-override: 0%;
}

:root {
    --hud-void: #060B14;
    --hud-deck: #0A1422;
    --hud-deck-2: #0E1B2D;
    --hud-hull: #1C3A57;
    --hud-hull-hi: #2C5B83;
    --hud-signal: #1EC8FF;
    --hud-brand: #2FAEF7;
    --hud-ion: #9CFF00;
    --hud-text-hi: #E6F1FA;
    --hud-text-mid: #9DB2C6;
    --hud-text-low: #6A8299;
    --hud-alert: #FF6B7A;
    --hud-warn: #FFB547;
    --hud-ok: #4BE3A0;
    --hud-on-signal: #021421;
    --hud-on-brand: #FFFFFF;
    --hud-void-rgb: 6 11 20;
    --hud-deck-rgb: 10 20 34;
    --hud-signal-rgb: 30 200 255;
    --hud-alert-rgb: 255 107 122;
    --hud-glow: rgb(var(--hud-signal-rgb) / .28);
    --hud-hero-fill: linear-gradient(180deg, #0B1828, #070E19 70%);
    --hud-hero-surface: #0A1624;
    --hud-color-scheme: dark;
    --hud-hex-side: url('/images/hud/hex-side.svg');
    --hud-cut-s: 8px;
    --hud-cut-m: 14px;
    --hud-cut-l: 28px;
    --hud-gutter: clamp(16px, 4vw, 40px);
    --hud-shell-max: 1320px;
    --hud-measure: 65ch;
    --hud-surface: var(--hud-void);
    --hud-f-display: 'Chakra Petch', 'Chakra Petch Fallback', 'Bahnschrift', 'Arial Narrow', system-ui, sans-serif;
    --hud-f-body: 'Atkinson Hyperlegible', 'Atkinson Hyperlegible Fallback', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --hud-f-mono: 'Martian Mono', 'Martian Mono Fallback', 'Cascadia Mono', 'Consolas', ui-monospace, monospace;
    color-scheme: var(--hud-color-scheme);
}

:root[data-hud-theme="light"] {
    --hud-void: #EEF3F8;
    --hud-deck: #FAFCFE;
    --hud-deck-2: #E7EEF6;
    --hud-hull: #C6D5E4;
    --hud-hull-hi: #8EABC8;
    --hud-signal: #0A6FA8;
    --hud-brand: #2FAEF7;
    --hud-ion: #2E7D00;
    --hud-text-hi: #0B1B2B;
    --hud-text-mid: #3B5367;
    --hud-text-low: #566E84;
    --hud-alert: #C62838;
    --hud-warn: #975800;
    --hud-ok: #1D7A4D;
    --hud-on-signal: #FFFFFF;
    --hud-on-brand: #FFFFFF;
    --hud-void-rgb: 238 243 248;
    --hud-deck-rgb: 250 252 254;
    --hud-signal-rgb: 10 111 168;
    --hud-alert-rgb: 198 40 56;
    --hud-glow: rgb(var(--hud-signal-rgb) / .16);
    --hud-hero-fill: linear-gradient(180deg, #FFFFFF, #F2F6FB 70%);
    --hud-hero-surface: #FAFCFE;
    --hud-color-scheme: light;
    --hud-hex-side: url('/images/hud/hex-side-light.svg');
}

@media (prefers-color-scheme: light) {
    :root:not([data-hud-theme]) {
        --hud-void: #EEF3F8;
        --hud-deck: #FAFCFE;
        --hud-deck-2: #E7EEF6;
        --hud-hull: #C6D5E4;
        --hud-hull-hi: #8EABC8;
        --hud-signal: #0A6FA8;
        --hud-brand: #2FAEF7;
        --hud-ion: #2E7D00;
        --hud-text-hi: #0B1B2B;
        --hud-text-mid: #3B5367;
        --hud-text-low: #566E84;
        --hud-alert: #C62838;
        --hud-warn: #975800;
        --hud-ok: #1D7A4D;
        --hud-on-signal: #FFFFFF;
        --hud-on-brand: #FFFFFF;
        --hud-void-rgb: 238 243 248;
        --hud-deck-rgb: 250 252 254;
        --hud-signal-rgb: 10 111 168;
        --hud-alert-rgb: 198 40 56;
        --hud-glow: rgb(var(--hud-signal-rgb) / .16);
        --hud-hero-fill: linear-gradient(180deg, #FFFFFF, #F2F6FB 70%);
        --hud-hero-surface: #FAFCFE;
        --hud-color-scheme: light;
        --hud-hex-side: url('/images/hud/hex-side-light.svg');
    }
}
