/* Self-hosted web fonts for ASK.HIRSCH (PAC-10684).
 *
 * Replaces the Google Fonts <link> that used to sit in templates/index.html.
 * That link was the app's only Subresource Integrity gap (OWASP ZAP flagged it),
 * but the SRI attribute ZAP suggests is the wrong fix: Google serves different
 * CSS per browser, so a pinned hash breaks the stylesheet for any user agent
 * that does not match the hashed variant. Serving the fonts ourselves removes
 * the finding, the outbound dependency on Google's CDN, and the third-party
 * trust relationship in one change -- and it is faster, with no extra DNS
 * lookup and TLS handshake.
 *
 * font-display: swap is reproduced deliberately. The old URL carried
 * &display=swap; dropping it would silently change first-paint behaviour to
 * the default (block), which is a visible regression on a cold load.
 *
 * These are the COMPLETE faces, not Google's per-script subsets, so there is no
 * unicode-range partitioning here. That costs a little more on first load and
 * gains broader glyph coverage than the previous setup had -- the css2 endpoint
 * was serving latin/latin-ext slices.
 *
 * Weights match what the UI actually uses, measured rather than assumed:
 * Barlow 400/500/600/700/800 are all genuinely referenced (600 heavily), and
 * IBM Plex Mono uses 400 and 500. No italics: the old URL requested none, so
 * italics were browser-synthesised and shipping upright-only preserves
 * rendering exactly. Two rules do apply font-weight:600 to the mono family and
 * there is no mono 600 face here -- that text is faux-bolded today and stays
 * faux-bolded, because adding a real 600 would be a silent UI change.
 *
 * Provenance and licensing -- both families are SIL Open Font License 1.1, and
 * the licence texts ship alongside these files:
 *   Barlow          OFL-Barlow.txt        converted from google/fonts TTF to
 *                                         woff2 with fontTools. No Reserved
 *                                         Font Name, so conversion is fine.
 *   IBM Plex Mono   OFL-IBMPlexMono.txt   taken byte-for-byte from IBM's own
 *                                         @ibm/plex-mono woff2 builds. Plex
 *                                         carries the Reserved Font Name
 *                                         "Plex", so the files are deliberately
 *                                         NOT modified or subset -- under OFL a
 *                                         subset counts as a modification and
 *                                         could not keep the Plex name.
 *
 * Author: Pandiyaraj Karuppasamy
 * Date: Aug-31-2026
 */

@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/barlow-400.woff2') format('woff2');
}

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

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

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

@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/static/fonts/barlow-800.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');
}
