/* ==========================================================================
   Self hosted webfonts. Nothing here reaches out to fonts.googleapis.com or
   fonts.gstatic.com: a third party font request leaks visitor IP addresses to
   Google on every page load, which is a consent problem under PIPEDA and a
   cookie policy problem we would then have to write around.

   Eight files, chosen to keep the request count and the inode count low on a
   shared host. If a weight is not listed here, do not use it in CSS. The
   browser will synthesise a fake bold, and a synthesised bold on a monospace
   sequence changes the glyph widths, which is the one thing the mono family is
   here to prevent.

   Drop the .woff2 files into assets/fonts/. Filenames and sources are listed in
   assets/fonts/README.md. If a file is absent the stack in tokens.css takes
   over, so a missing font degrades to a system face rather than to nothing.
   ========================================================================== */

/* ------------------------------------------------------------------ Rajdhani
   Display only. Headings, never body copy, never data. */

@font-face {
	font-family: "Rajdhani";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/rajdhani-500.woff2") format("woff2");
}

@font-face {
	font-family: "Rajdhani";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/rajdhani-600.woff2") format("woff2");
}

/* --------------------------------------------------------------------- Inter
   Body copy and interface text. */

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

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

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

/* ------------------------------------------------------------ JetBrains Mono
   Functional, not decorative. Every sequence, molecular formula, CAS number,
   lot number, mass and purity figure renders in this family. */

@font-face {
	font-family: "JetBrains Mono";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/jetbrains-mono-400.woff2") format("woff2");
}

@font-face {
	font-family: "JetBrains Mono";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/jetbrains-mono-500.woff2") format("woff2");
}

@font-face {
	font-family: "JetBrains Mono";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/jetbrains-mono-700.woff2") format("woff2");
}
