/**
 * AxiTrace brand tokens: the typefaces and the navy family, shared with the marketing site.
 *
 * THE ONE PLACE that names a typeface or a navy for everything master.html.twig serves
 * (the panel, the workspace selector, onboarding, the public auth pages). Every other
 * stylesheet, template and script reads these custom properties; a second file that
 * spells a font name or a navy hex is a bug (BrandTokensSingleSourceTest).
 *
 * Source of the values: landing-page/src/styles/homepage.css (`html:has(.hp)` and `.hp`)
 * and landing-page/src/styles/global.css (`--font-sans`). The test above fails when the
 * two drift apart.
 *
 *   --axi-font       body, tables, forms, controls, charts     Inter Variable
 *   --axi-display    headings, page and card titles, figures   Geist Variable
 *   --axi-mono       code, keys, ids                           JetBrains Mono
 *   --axi-n-*        navy surfaces and borders, darkest first
 *   --axi-ink        text on light surfaces (and its `r, g, b` triplet for rgba())
 *
 * No selector here depends on panel markup: the file holds @font-face rules and :root
 * custom properties only, so any layout can link it on its own.
 *
 * Fonts are self-hosted next to this file (../fonts/<family>/, SIL OFL 1.1, the files of
 * @fontsource-variable/geist 5.3.0, @fontsource-variable/inter 5.2.8 and
 * @fontsource-variable/jetbrains-mono 5.2.8: the faces and versions the marketing site
 * builds from; the code face ships as one variable file because the panel sets code in
 * four weights). Only the Latin and Latin Extended subsets ship: the panel
 * speaks English, Polish and Spanish. The files are cached for a year and their URLs carry
 * no version, so a new font version gets a new file name, never an overwrite. master.html.twig
 * preloads the two Latin files under exactly these URLs.
 */

/* ------------------------------------------------------------------
   Font faces
   ------------------------------------------------------------------ */
@font-face {
    font-family: 'Inter Variable';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('../fonts/inter/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
    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: 'Inter Variable';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('../fonts/inter/inter-latin-wght-normal.woff2') format('woff2-variations');
    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: 'Geist Variable';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('../fonts/geist/geist-latin-ext-wght-normal.woff2') format('woff2-variations');
    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: 'Geist Variable';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('../fonts/geist/geist-latin-wght-normal.woff2') format('woff2-variations');
    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;
}

/* The code face keeps the family name the marketing site uses ('JetBrains Mono'), so a
   copy installed on the reader's computer never replaces the shipped one. Not preloaded:
   code appears on few screens and below the fold. */
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-display: swap;
    font-weight: 100 800;
    src: url('../fonts/jetbrains-mono/jetbrains-mono-latin-ext-wght-normal.woff2') format('woff2-variations');
    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: 'JetBrains Mono';
    font-style: normal;
    font-display: swap;
    font-weight: 100 800;
    src: url('../fonts/jetbrains-mono/jetbrains-mono-latin-wght-normal.woff2') format('woff2-variations');
    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 {
    /* ------------------------------------------------------------------
       Typefaces (homepage: --font-sans, --hp-display, --font-mono)
       ------------------------------------------------------------------ */
    --axi-font: 'Inter Variable', 'Inter', ui-sans-serif, system-ui, sans-serif;
    --axi-display: 'Geist Variable', var(--axi-font);
    --axi-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    /* Display weights and tracking. The homepage sets 700 and -0.045em on headings three
       times the size of the panel's; the tracking is scaled down with the size. */
    --axi-display-weight: 700;       /* page titles, big figures (homepage h1, h2, figures) */
    --axi-display-weight-sub: 650;   /* card and section titles (homepage h3) */
    --axi-track-title: -0.03em;      /* 24px and up */
    --axi-track-figure: -0.025em;    /* KPI figures, 17px to 28px */
    --axi-track-sub: -0.015em;       /* card and section titles, below 20px */

    /* ------------------------------------------------------------------
       Navy family (homepage: --color-bg-deep ... --color-border-light, --hp-panel, --hp-ink)
       ------------------------------------------------------------------ */
    --axi-n-deep: #040816;       /* deepest ground: top bar */
    --axi-n-bg: #070c22;         /* ground: sidebar, navy fills */
    --axi-n-subtle: #0a102a;     /* subtle ground: controls on the top bar */
    --axi-n-surface: #0e1634;    /* surface */
    --axi-n-hover: #131d42;      /* hovered surface */
    --axi-n-elev: #18244f;       /* raised surface: avatar, selected item */
    --axi-n-border: #1b2750;     /* border on navy */
    --axi-n-border-l: #2a3970;   /* lighter border on navy */
    --axi-n-panel: #0c1330;      /* product panel on a navy ground */
    --axi-n-panel-2: #121b40;    /* raised part of a product panel */
    --axi-n-deep-rgb: 4, 8, 22;  /* --axi-n-deep for rgba(): scrims and shadows on navy */

    --axi-ink: #0b1230;          /* text on light surfaces */
    --axi-ink-rgb: 11, 18, 48;   /* --axi-ink for rgba(): hairlines, tints and shadows */
}
