/* Self-hosted variable fonts (OFL), cyrillic + latin subsets.
   Files in app/assets/fonts/; propshaft rewrites the urls to digested paths.
   Unicode ranges match Google Fonts subsetting. */

/* Body font uses font-display: optional: if the woff2 isn't ready within the
   ~100ms block period (first visit on a slow link), the browser commits to the
   metric-matched Arial fallback below and never repaints — so the hero
   paragraph's LCP is its first paint. Preload in the layout keeps the webfont
   winning on real visits; don't switch back to swap, it re-adds the LCP-late
   repaint that cost ~1s in the Lighthouse audit. */
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 600;
  font-display: optional;
  src: url("/assets/golos-text-cyrillic-cf0bf393.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 600;
  font-display: optional;
  src: url("/assets/golos-text-latin-c26a8d73.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;
}

/* Metric-matched Arial: size-adjust/overrides computed from the woff2's real
   metrics (upm 1000, asc 980, desc 220) and avg advance widths over the
   homepage's Russian copy — Golos runs ~6% wider than Arial. Keeps CLS at 0
   and the fallback visually close when `optional` picks it. */
@font-face {
  font-family: "Golos Text Fallback";
  src: local("Arial");
  size-adjust: 106.33%;
  ascent-override: 92.16%;
  descent-override: 20.69%;
  line-gap-override: 0%;
}

/* Unbounded (display headings) keeps swap: the brand font should always win
   eventually, and headings aren't the LCP element. */
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/assets/unbounded-cyrillic-bc4f33be.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/assets/unbounded-latin-9c83474d.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;
}
