/*
 * @flipova/assets/fonts/fonts.css
 * The brand's typefaces, declared once.
 *
 * This file is the unified source. An app imports it - and only it - to get every
 * face AND the family variables the design registry's `family` token delegates to
 * (`--font-sans` for `font.sans` / `font.body`, `--font-heading` for
 * `font.heading`). Before it, three projects declared their own: the site imported
 * a fontsource package, the app listed seven requires, and accounts declared a
 * placeholder that was never a brand font at all. They had already drifted.
 *
 * The files sit next to this stylesheet, so a bundler copies them out of the
 * package itself. No CDN, and no second copy in a project's `public/`. Each face
 * lists its `.woff2` first (`web/`, less than half the `.ttf`'s weight: what a browser
 * downloads) and its `.ttf` after (the original, kept for the native list in
 * `index.js` and as the fallback). A bundler copies them next to the build.
 *
 * Web:  import '@flipova/assets/fonts/fonts.css';
 * Native (Expo): the same list, as files - see `index.js`.
 */

/* Lexend - the brand sans. Body, forms, everything that is read. */
@font-face {
  font-family: 'Lexend';
  src:
    url('./web/lexend.woff2') format('woff2'),
    url('./Lexend/Lexend-VariableFont_wght.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Bricolage Grotesque - the display face. Titles. */
@font-face {
  font-family: 'Bricolage Grotesque';
  src:
    url('./web/bricolage-grotesque.woff2') format('woff2'),
    url('./Bricolage_Grotesque/BricolageGrotesque-VariableFont_opsz,wdth,wght.ttf')
      format('truetype-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Space Mono - the monospace. Code, identifiers. */
@font-face {
  font-family: 'Space Mono';
  src:
    url('./web/space-mono.woff2') format('woff2'),
    url('./SpaceMono-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/*
 * The families the registry names. `--font-sans` and `--font-heading` are the two
 * the generated theme asks for; the fallbacks after them are what a page uses
 * while a face is still loading, so the first paint is never a blank line.
 */
:root {
  --font-sans: 'Lexend', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Bricolage Grotesque', var(--font-sans);
  --font-mono: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
