/* =================================================================================================
 * @suntek-solutions/design-base — the self-hosted brand faces. OPT-IN, and separate on purpose.
 *
 * `suntek-base.css` declares the font STACKS and falls back to system-ui, so it is correct with no
 * font files present. This file is the upgrade, and it is a separate import because it is the only
 * part of the package that needs two binaries on disk. Linking `suntek-base.css` can never 404 a
 * font.
 *
 * -------------------------------------------------------------------------------------------------
 * THE FACES. Inter for body, Sora for headings — brand-v2.css:7-9 records both as verified from the
 * live site on 2026-09-11, self-hosted, with no third-party font origin.
 *
 * ATT's font layer is not ported in either of its two versions, and the two contradict each other:
 * `.design-sync/conventions.md` and `.design-sync/fonts.css` (dated Sep 12) declare Lato + Josefin
 * Sans, while `src/styles/designTokens.js` (modified Sep 24) declares Figtree + Montserrat.
 * designTokens.js is the file `tailwind.config.mjs` actually imports, so the live ATT faces are
 * Figtree and Montserrat and the design-sync bundle has been binding @font-face for two families the
 * app no longer asks for. Anything taken from the conventions file's font row would be wrong on
 * arrival.
 *
 * -------------------------------------------------------------------------------------------------
 * TWO DETAILS CARRIED ACROSS FROM brand-v2.css RATHER THAN INVENTED.
 *
 * 1. DO NOT PRELOAD. brand-v2.css:12-13 records the reason as measured: "eagerly fetching the
 *    variable faces competed with the critical path on throttled mobile and hurt LCP". `swap` paints
 *    in the system fallback first, then upgrades. So: no <link rel="preload"> for these.
 *
 * 2. DECLARE THE VARIABLE RANGE. `font-weight: 100 800` for Sora (brand-v2.css:17) and `100 900` for
 *    InterVariable. One variable file then serves every weight, so `--su-weight-button` (650, the
 *    brand's button weight) and `--su-weight-display` (800, its h1) both resolve. This also makes
 *    impossible the class of bug STYLING.md records for ATT, where the app loads only
 *    Figtree-Regular and Figtree-Bold and so `font-semibold` / `font-medium` silently do nothing.
 *
 * -------------------------------------------------------------------------------------------------
 * WHAT YOU MUST DO TO USE THIS FILE.
 *
 * The two binaries ship in this package, in `fonts/` beside this `css/` folder (the owner said yes
 * on 2026-10-08). They are byte-for-byte the files the marketing site serves, copied from the
 * reference repository's `SuntekSolutions.io/public/fonts/`; their sha256s are in the README:
 *
 *     fonts/InterVariable-latin.woff2   (Inter 4.001, latin subset)    + fonts/OFL-Inter.txt
 *     fonts/Sora-Variable.woff2         (Sora 2.000, latin subset)     + fonts/OFL-Sora.txt
 *
 * Both are SIL OFL 1.1. Redistributing them is fine on licence grounds, on one condition: the
 * licence travels with them, so a consumer that copies a .woff2 copies its OFL-*.txt beside it.
 *
 * Serve the package's `fonts/` folder at `/fonts/` (copy it into the consumer's own static
 * directory, or mount it there) and import this file. Each file resolves through the exports map
 * as `@suntek-solutions/design-base/fonts/<name>`. The `url()` values below assume `/fonts/`, which
 * is the path the reference site uses (brand-v2.css:16). A consumer serving them elsewhere copies
 * this block and changes the two urls; CSS cannot put a custom property inside `url()`, so there is
 * no token for the path.
 *
 * NO PACKAGE, NO CDN, NO GOOGLE FONTS LINK. This works fully offline.
 * ============================================================================================== */

@font-face {
  font-family: 'Inter';
  src: url('/fonts/InterVariable-latin.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sora';
  src: url('/fonts/Sora-Variable.woff2') format('woff2-variations');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
