/*
 * IBM Plex, served from this site.
 *
 * The public module templates used to pull twelve faces from `fonts.googleapis.com` on every page
 * load, from nineteen separate enqueues. That sends every visitor's IP address to a third party
 * before they have consented to anything, which is the exact arrangement a German court found
 * unlawful in 2022 — and unlike the console's version of this bug, it was on pages the public sees.
 *
 * These are the same faces, from the same OFL-licensed originals (IBM Plex Sans 2.1; IBM Plex Mono
 * as shipped by WordPress core), converted to woff2 and served from the plugin. The whole set is
 * 256 KB, against roughly 200 KB fetched from Google plus a DNS lookup and a second connection.
 * `font-display: swap` keeps text visible while they load, matching what the Google URL asked for.
 *
 * Licence: assets/public/fonts/OFL-IBMPlex.txt.
 */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* Mono ships at 400 and 700. The templates ask for 500 in a few places; the browser picks 400 and
   synthesises nothing, which at 10–13px is indistinguishable and costs 45 KB less than a face
   nobody would notice. */
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-400.woff2") format("woff2");
  font-weight: 400 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-700.woff2") format("woff2");
  font-weight: 600 700; font-style: normal; font-display: swap;
}
