/* ============================================================================
   OWSA LABS — Self-hosted webfonts

   Figtree is the display face — a geometric sans with a double-storey 'a' and a
   variable weight axis reaching 900, the closest free match to Gilroy that we can
   lawfully self-host.

   It replaced Satoshi, which was the closer match visually but is licensed under the
   ITF Free Font Licence. That licence forbids "uploading them in a public server" and
   transmitting the font "over the Internet in font serving" without written consent,
   while offering the Fontshare API as its sanctioned web delivery. Serving it from our
   own origin was therefore in tension with its own terms — and the API route would have
   reintroduced exactly the third-party IP transmission that self-hosting exists to
   avoid. Figtree is OFL: redistribution and self-hosting are explicitly permitted.

   SELF-HOSTED ON PURPOSE. Hotlinking a font CDN sends every visitor's IP to a
   third party before the consent banner in mu-plugins/owsa-compliance/inc/consent.php
   has run — a Munich court ruled exactly that arrangement a GDPR breach in 2022.
   Self-hosting also removes a render-blocking external request and lets the store
   boot with no network at all.

   Binaries are gitignored (see assets/fonts/README.md); the OFL licence texts are
   tracked alongside them. A missing file fails the @font-face quietly and the stack in
   tokens.css falls through — the page is never blocked on a font.
   ============================================================================ */

@font-face {
	font-family: 'Figtree';
	src: url('../fonts/Figtree-Variable.woff2') format('woff2-variations'),
	     url('../fonts/Figtree-Variable.woff2') format('woff2');
	font-weight: 300 900;
	font-style: normal;
	font-display: swap;
}

/* ---- Body + mono faces -----------------------------------------------------
   These were loaded from Google Fonts, which sent every visitor's IP to Google
   before the consent banner ran. The enqueue is gone; declare them here instead.

   The binaries are NOT in the repo yet. Until they are added the cascade falls
   through to Figtree for body text and the system monospace stack for labels —
   both perfectly usable, so nothing is broken in the meantime. Drop the files in
   and they take over automatically:

     Inter          -> assets/fonts/Inter-Variable.woff2
                       https://github.com/rsms/inter/releases (OFL)
     IBM Plex Mono  -> assets/fonts/IBMPlexMono-Regular.woff2
                       assets/fonts/IBMPlexMono-Medium.woff2
                       assets/fonts/IBMPlexMono-SemiBold.woff2
                       https://github.com/IBM/plex/releases (OFL)
   -------------------------------------------------------------------------- */

@font-face {
	font-family: 'Inter';
	src: url('../fonts/Inter-Variable.woff2') format('woff2-variations'),
	     url('../fonts/Inter-Variable.woff2') format('woff2');
	font-weight: 300 700;
	font-style: normal;
	font-display: swap;
}

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

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

@font-face {
	font-family: 'IBM Plex Mono';
	src: url('../fonts/IBMPlexMono-SemiBold.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
