/* =====================================================================
   Adverit Legal — Inter + IBM Plex Mono, self-hosted
   ---------------------------------------------------------------------
   Authorised by ADR-0014 (Design System Refresh, Phase 1). The Figma file
   is Inter and nothing else, so both --adv-font-heading and --adv-font-body
   resolve to this family. IBM Plex Mono is the --adv-font-mono face
   (ADR-0016): the console's metadata level, and the themes' eyebrows,
   breadcrumbs and mono metadata lines. The token has promised it since v1
   and until AD-77 nothing served it — every consumer silently fell back to
   ui-monospace. Both Hugo themes must publish the four woff2 files
   explicitly (see each theme's partials/fonts.html), or these @font-face
   rules 404 at runtime.

   SELF-HOSTED ON PURPOSE. Every firm site and the master site previously
   pulled Poppins + Open Sans + IBM Plex Mono from fonts.googleapis.com on
   every page load, which is a visitor-IP transfer to a third country on
   every request — against the EU data-residency Immutable Rule, and not
   something a law firm's own site should be doing on its clients' behalf.
   Nothing here touches the network.

   Source: Inter v4.1, https://github.com/rsms/inter (SIL Open Font License
   1.1 — see ../fonts/LICENSE.txt). Subset with pyftsubset from the official
   InterVariable.ttf / InterVariable-Italic.ttf to the latin and latin-ext
   ranges, default layout features (kern/liga/calt — no stylistic sets or
   character variants, which Inter ships many of and we use none of), and
   compressed to woff2.

   Variable, so 400/500/600 — every weight in the type scale — come out of
   one file per subset rather than one file per weight.

   What a visitor actually downloads:
     EN / NL page, no italics ....... latin roman only        ~68 KB
     with italics ................... + latin italic          ~74 KB
     accented text (FR/DE names) .... + the latin-ext pair    as needed
   unicode-range is what makes that conditional — do not remove it.

   To regenerate, see design-system/README.md.
   ===================================================================== */

/* ---------- latin ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;           /* variable wght axis */
  font-display: swap;
  src: url('../fonts/inter-variable-latin.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;
}

@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-variable-italic-latin.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;
}

/* ---------- latin-ext ----------
   Needed for FR/DE/NL diacritics and the eastern-European names that turn up
   in a cross-border legal network. Downloaded only when such a glyph is on
   the page. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-variable-latin-ext.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;
}

@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-variable-italic-latin-ext.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;
}

/* ---------- IBM Plex Mono (console metadata face, ADR-0016) ----------
   Two static weights, not the variable font: Plex Mono ships no variable
   wght axis, and the console uses exactly 400 (values) and 500 (labels).
   Source: fontsource subset of IBM Plex v6 (SIL OFL 1.1 — see
   ../fonts/ibm-plex-mono-LICENSE.txt). Fetched only when a page actually
   renders something in --adv-font-mono — unicode-range and font matching
   keep it off pages with no mono text. */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-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;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-latin-500-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;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-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;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-latin-ext-500-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;
}
