/* Self-hosted typefaces.
 *
 * Before this file, index.html linked fonts.googleapis.com and pulled the
 * files from fonts.gstatic.com, which meant every visitor's IP and
 * User-Agent reached Google before the app had rendered a frame - on a
 * surface that then asks them to sign in. The company site had already
 * moved off the CDN and says so in its privacy policy; this brings the app
 * to the same footing, and lets server.py's CSP drop both origins.
 *
 * The files are the identical subsets the company site ships. Regenerate
 * with carbon-circuit-intelligence/website/fonts/REGENERATE.md and copy
 * them across rather than re-deriving them here - two recipes for one set
 * of files is two things to keep in step.
 *
 * Latin subset only, which is what the site checked its copy against.
 * Re-check before adding copy in another language.
 *
 * IBM Plex Sans is a VARIABLE font and is declared with a weight range.
 * Google's css2 endpoint emits one pinned block per requested weight, all
 * pointing at this same file; copying that shape caps the family at its
 * heaviest declared weight, and Chromium then clamps <strong> and <b> down
 * to it instead of reading the axis. That exact bug shipped on the company
 * site. Chakra Petch and IBM Plex Mono are static per-weight files and are
 * correctly declared one weight each.
 */

@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/static/fonts/chakra-petch-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/static/fonts/chakra-petch-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/chakra-petch-700.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 100 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('/static/fonts/ibm-plex-sans-variable.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/ibm-plex-mono-400.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/static/fonts/ibm-plex-mono-500.woff2') format('woff2');
}
