/* Self-hosted Inter (variable, 300–700).
 *
 * WHY THIS EXISTS: every stylesheet in this project declares
 * `font-family: "Inter", ...` but NOTHING ever loaded Inter, and it is not
 * installed on this machine — `fc-match Inter` resolves to Noto Sans. So the
 * whole design has been rendering in a fallback it was not drawn against.
 * Inter's tighter defaults and its tabular figures matter a lot for dashboard
 * UI, and the difference is very visible at the small sizes on the wall.
 *
 * Self-hosted rather than linked to fonts.googleapis.com: this playground is
 * served offline from `python3 -m http.server`, and a webfont that only
 * appears when the machine happens to be online is worse than no webfont —
 * the layout would silently shift between runs.
 *
 * TWO SUBSETS, both required. latin alone is NOT enough here: the Romanian
 * copy uses ș (U+0219) and ț (U+021B), which live in latin-ext. Dropping it
 * would leave those glyphs to the fallback font, so "Construcții" would mix
 * two typefaces mid-word. unicode-range lets the browser fetch only what a
 * page actually needs — latin-ext is skipped entirely on an all-ASCII page.
 *
 * font-display: swap — text paints immediately in the fallback and re-renders
 * when Inter arrives. On a local server that window is ~0ms; over a network it
 * is the difference between visible text and a blank hero.
 *
 * Regenerate with:
 *   curl -A "<a desktop UA>" \
 *     "https://fonts.googleapis.com/css2?family=Inter:wght@300..700&display=swap"
 * and re-download the latin / latin-ext woff2 URLs it returns. A non-desktop
 * UA gets served legacy ttf instead of woff2.
 */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;          /* variable: one file covers the whole range */
  font-display: swap;
  src: url('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;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('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;
}

/* ---- Instrument Serif: the DISPLAY face -------------------------------- */
/* Paired with Inter, not replacing it. Inter is a neutral UI grotesk — it is
 * right for chips, KPIs and dashboard chrome, and wrong for a hero line,
 * where it reads as "app" rather than "brand". Instrument Serif is a
 * high-contrast editorial display face: at large sizes its thin/thick
 * modulation and small optical sizing do the work that expensive design
 * work usually signals. Used ONLY for the big caption; body copy stays Inter.
 *
 * Regular 400 only (that is all the family ships) — never synthesise bold or
 * italic from it, which is what `font-weight: 700` on a 400-only face does.
 *
 * latin-ext is included for the same reason as Inter's: the captions are
 * Romanian, and ș/ț would otherwise fall back mid-word. */

@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('instrument-serif-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: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('instrument-serif-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;
}
