/*
 * INTER, SELF-HOSTED. Replaces the Google Fonts <link> every family used to carry.
 *
 * The documents asked Google Fonts for `family=Inter:wght@400;600&display=swap`. It sets no
 * cookies, but it does receive every visitor's IP address, and it was this app's only remaining
 * contact with a third party -- everything else is already 'self' under the CSP. Serving the files
 * ourselves makes "nothing leaves this app" true rather than nearly true.
 *
 * The domain is deliberately not written out anywhere in this file: dist/ is served, and a grep of
 * it for third-party hosts should come back empty rather than turning up a comment about one.
 *
 * ⚠️ THE FILES ARE COPIED INTO src/assets/fonts, NOT REFERENCED UNDER assets/vendor, AND THAT IS
 * DELIBERATE.
 *
 * @fontsource/inter is a dependency and is where these four files came from -- but build-assets.js
 * copies a vendor package WHOLE ("A package is copied WHOLE, exactly as gulp did", copyVendor's
 * note), because a reference names an entry point rather than a dependency set. That rule is right
 * for a library whose stylesheet needs its own fonts; for a font package it would ship all 252
 * files -- every weight from 100 to 900, italic and roman, woff and woff2 -- to serve the two
 * weights the documents actually ask for.
 *
 * Copied into src/assets instead, they go out through copyAssets() as four ordinary files, which
 * is why there is no build change anywhere in this commit.
 *
 * TO REFRESH THEM: `npm update @fontsource/inter`, then copy
 * node_modules/@fontsource/inter/files/inter-latin{,-ext}-{400,600}-normal.woff2 over the four in
 * src/assets/fonts. The dependency is pinned in package.json for exactly that purpose -- it is not
 * imported by any code, and should not be removed as unused.
 *
 * ⚠️ woff2 ONLY, and the two weights the documents asked for. The package also ships .woff for
 * browsers this app does not support, and the Google stylesheet being replaced served woff2 alone.
 *
 * The unicode-ranges are the package's own, so a page of French text still fetches only the latin
 * subset it needs. Arabic is NOT covered: Inter has no Arabic, the `ar` locale already falls back
 * to a system font, and that is unchanged by this file.
 */

/* inter-latin-ext-400 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/fonts/inter-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* inter-latin-400 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/fonts/inter-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* inter-latin-ext-600 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/assets/fonts/inter-latin-ext-600-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* inter-latin-600 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/assets/fonts/inter-latin-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
