/*
 * FABBRAIN: the Geist faces of the FabBrain look, declared once (phase 2).
 *
 * Every page that shows the look links this file right after the tokens
 * (index_css.php group "fabbrain", css_assets.php for the other pages and the
 * Excalidraw editor page, offline.php caches the files). Nothing else declares
 * these faces.
 */

/* ---- Geist -------------------------------------------------------------------
   Geist 1.8.2 (npm "geist", Vercel, SIL OFL 1.1, fonts/geist/OFL.txt): the
   three weights the prototype uses. Descriptors cannot read var(), so the
   weights are written out (same rule as css/fonts.css). */
@font-face {
    font-family: 'Geist';
    src: url('../fonts/geist/Geist-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Geist';
    src: url('../fonts/geist/Geist-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Geist';
    src: url('../fonts/geist/Geist-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* The app names 'Inter' in about a hundred rules, several with !important.
   Its own font switch (js/theme-init.js, "Main app font") works by declaring
   the 'Inter' faces again, and so does this layer: the same descriptors,
   declared later, replace the bundled Inter, so every one of those rules
   draws Geist with no override of its own. 300 has no Geist face here and
   takes the regular, as the app's switch does for system fonts. A font the
   owner picks in the settings is appended later still and keeps working. */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/geist/Geist-Regular.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/geist/Geist-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/geist/Geist-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/geist/Geist-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
