/*
 * Design tokens shared by the public site and the staff pages (Flight-AI-az0).
 * Source colours mean the same thing everywhere: regulation blue, AIM green,
 * handbook magenta, advisory circular amber.
 *
 * Fonts are vendored because the CSP allows fonts from 'self' only: Inter
 * (@fontsource-variable/inter 5.2.8) and Space Grotesk
 * (@fontsource-variable/space-grotesk 5.2.10), Latin variable-weight files,
 * SIL Open Font License (fonts/OFL-*.txt). Upgrade by replacing the files.
 */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("fonts/inter-latin-wght.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: "Space Grotesk";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("fonts/space-grotesk-latin-wght.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;
}

:root {
    /* Ink and grounds */
    --ink: #14181f;
    --ink-2: #343a46;
    --ink-muted: #5b6170;
    --ground: #ffffff;
    --ground-2: #f7f7f5;
    --line: #e4e4e0;
    --line-2: #d6d6d0;

    /* The graph canvas */
    --night: #0f1218;
    --night-2: #171b23;
    --night-line: #2a303b;
    --night-edge: #2e3542;
    --night-ink: #e8eaee;
    --night-ink-2: #a3a9b5;

    /* Source kinds: dot on dark, then text and tint on light */
    --cfr: #5b8def;
    --cfr-ink: #1e4aa8;
    --cfr-tint: #eef2fb;
    --aim: #3fb88a;
    --aim-ink: #1b6e52;
    --aim-tint: #e9f5f0;
    --handbook: #e26aa8;
    --handbook-ink: #9b2c68;
    --handbook-tint: #fbeff5;
    --ac: #e0a84a;
    --ac-ink: #8a5a00;
    --ac-tint: #fbf3e4;

    --accent: #2457c5;
    --danger: #b42318;
    --danger-tint: #fdecea;
    --success-ink: #1b6e52;

    /* Type */
    --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

    /* Shape and motion */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --pill: 999px;
    --fast: 0.15s ease;
}

/*
 * Names the older stylesheets and scripts (feedback.css, chat.js,
 * error-handler.js) read, mapped onto the tokens above, so they work on pages
 * that don't load style.css.
 */
:root {
    --primary-blue: var(--accent);
    --primary-blue-dark: #1b449e;
    --primary-blue-light: #4b78d6;
    --gray-50: var(--ground-2);
    --gray-100: #f1f2f4;
    --gray-200: var(--line);
    --gray-300: var(--line-2);
    --gray-400: #8f95a1;
    --gray-500: var(--ink-muted);
    --gray-600: #4a4f5a;
    --gray-700: var(--ink-2);
    --gray-800: #1f242d;
    --gray-900: var(--ink);
    --success: #2f9e6e;
    --success-light: var(--aim-tint);
    --error: #d64545;
    --error-light: var(--danger-tint);
    --warning: var(--ac);
    --info: var(--accent);
    --transition-fast: var(--fast);
    --transition-smooth: 0.3s ease;
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}
