/* Canada Careers — self-hosted webfonts.
 *
 * Replaces the render-blocking https://fonts.googleapis.com/css2?... <link> that used to sit in
 * views/layout.ejs. Same two families, same weights, same glyphs: these are the exact woff2 files
 * Google Fonts serves to an evergreen Chrome for the `latin` and `latin-ext` subsets, copied to our
 * own origin. Serving them ourselves removes two third-party origins from the critical path (one DNS
 * + TLS handshake each, on every cold visit) and lets the CSP drop fonts.googleapis.com /
 * fonts.gstatic.com entirely.
 *
 * Both files are VARIABLE fonts with a `wght` axis, which is what Google itself ships for
 * Inter v20 and Montserrat v31 — one file covers every weight we use, so `font-weight: 100 900`
 * here reproduces 400/500/600/700 (Inter) and 600/700/800 (Montserrat) from a single download
 * instead of seven. Do not "fix" this to per-weight blocks; that would add six more requests.
 *
 * The unicode-range values are Google's own. They are what stops an English page from ever
 * fetching latin-ext: the browser downloads a subset only when a character in its range is used.
 *
 * font-display: swap — text paints immediately in the system fallback and re-renders when the
 * webfont arrives. A job seeker on a slow connection reads the posting either way.
 */

/* ---------------------------------------------------------------- Inter (body text, UI) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-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: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-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;
}

/* ---------------------------------------------------------------- Montserrat (display, headings) */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/montserrat-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: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/montserrat-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;
}
