/*
 * The three typefaces, served from NimbleSign itself. No page asks Google (or anyone else) for a
 * font, so a visitor's browser — a signer's included — contacts nothing but this instance.
 *
 * Linked first in every layout (_Layout, _KioskLayout, _SiteLayout), before site.css or
 * marketing.css, whose tokens (--ns-font-ui, --ns-font-mono, --ns-font-brand, --nsm-font) name
 * these families. A browser downloads a face only when a page actually uses it, so one sheet for
 * all three layouts costs nothing on a page that needs only Plus Jakarta Sans.
 *
 * The files are the Latin subsets from the @fontsource npm packages, version 5.3.0, under
 * wwwroot/fonts/<family>/ with each family's licence (SIL Open Font License 1.1) as OFL.txt.
 * To add a weight, copy files/<family>-latin-<weight>-normal.woff2 from the same package version
 * into that folder and add an @font-face below; docs/design/foundations/type.md has the steps.
 */

/* Plus Jakarta Sans — the UI and marketing face (--ns-font-ui, --nsm-font). */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans/plus-jakarta-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans/plus-jakarta-sans-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans/plus-jakarta-sans-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans/plus-jakarta-sans-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans/plus-jakarta-sans-latin-800-normal.woff2') format('woff2');
}

/* Poppins SemiBold — the wordmark only (--ns-font-brand). */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins/poppins-latin-600-normal.woff2') format('woff2');
}

/* IBM Plex Mono — codes, hashes, references (--ns-font-mono). */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono/ibm-plex-mono-latin-600-normal.woff2') format('woff2');
}
