/* Self-hosted, subsetted campaign fonts (both OFL-1.1 — see *-OFL.txt).
   url()s are relative to this file, i.e. they resolve to /fonts/*.

   Subsetting is a one-off, done when the faces were vendored; the build only
   copies them. Regenerating needs fonttools + brotli, which CI does not have
   and should not need. The recipe is in AUTHORING.md. */

/* Montserrat — variable weight, clamped to the 400-600 the page uses.
   Carries Latin-1 plus the full Cyrillic block, because the feedback textarea
   renders whatever the visitor types.

   It replaces the design bundle's Archivo, which ships no Cyrillic at all: in
   the original, every Russian label fell through to system-ui and sat next to
   Latin card titles set in Archivo — two typefaces per card, and a different
   pairing on every platform. One family with both scripts settles it. */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/montserrat.woff2) format("woff2");
}

/* Source Serif 4 — the display face. Subsetted to the exact glyphs of the
   page's fixed headings, so it must be re-cut if that copy ever changes.
   Nothing user-supplied is set in it.

   BOTH AXES STAY LIVE, and the opsz one is the reason the headings look right.
   Source Serif ships an optical-size axis (8-60) and browsers drive it from the
   font-size by default, so "Что добавить?" at 78px is drawn with a display cut
   — fine serifs, high stroke contrast — while the 15px domain line gets a text
   cut built to hold up small. An earlier subset pinned opsz to 20 and froze the
   axis, which rendered every size in the 20pt text cut: visibly heavier and
   blunter than the design at display sizes. Only wght is clamped, to the range
   the page actually uses. */
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(fonts/source-serif-4.woff2) format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 300 500;
  font-display: swap;
  src: url(fonts/source-serif-4-italic.woff2) format("woff2");
}
