/* Self-hosted Inter + Manrope, as variable fonts (latin + latin-ext).

   This used to be twenty static files: one per weight, per subset. The site uses
   Inter at 400/500/600/700/800/900, so a page downloaded six separate 47 KB files
   — 330 KB of font before Manrope — and any page whose copy happened to contain a
   latin-ext character pulled an 83 KB file on top of that.

   A variable font carries the whole 100–900 axis in one file, and Inter's is 47 KB:
   the size of a single static weight. Same typefaces, same weights, one request.

   It also renders the in-between weights the CSS actually asks for — there are
   font-weight: 650 / 750 / 850 / 950 rules in this codebase, which the static set
   could only round to the nearest file it happened to have. */

/* ── Inter ── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/inter-var-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-var-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;
}

/* The rupee sign is the only latin-ext character on the entire site — it appears
   in every salary figure on /jobs, /programs and /blog. Matching it against the
   face above meant those pages downloaded 83 KB of Latin Extended to draw one
   glyph. This is that glyph, subset out of the same variable font: 2 KB.

   It must stay declared *after* the latin-ext face. Both cover U+20B9, and when
   two faces in a family match a codepoint the later one wins — which is what
   keeps the 83 KB file from being requested at all. Any other latin-ext character
   still falls through to it correctly. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/inter-var-rupee.woff2) format('woff2');
  unicode-range: U+20B9;
}

/* ── Manrope ── */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/fonts/manrope-var-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: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/fonts/manrope-var-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;
}
