/* ===========================================================
   PROCVETAEV — fonts
   TikTok Sans is the only typeface used across the site.
   Shared by index.html, team.html, member.html, case.html.

   The files were raw .ttf: 741 KB for the variable cut alone, on the
   critical path, before a single word could be painted. They are now
   WOFF2, with the .ttf kept as the last src fallback so nothing breaks
   on a browser that somehow cannot take it.
   =========================================================== */

/* Variable font: wght and wdth (expanded / condensed) in one file, so
   font-stretch resolves locally, no CDN.

   This is a subset — Latin, Cyrillic, and the punctuation, arrows and
   currency marks the site actually sets. 229 KB against the 741 KB
   .ttf it replaces, and it was checked character by character against
   index/team/member/case/404 and data.js: nothing the site renders was
   dropped.

   There was a second @font-face here holding the full 340 KB cut as a
   catch-all for codepoints outside the subset's ranges. It made the
   browser fetch BOTH files — 569 KB — because the page sets ✓, ✦ and 🎁,
   which fall outside those ranges. Those three are not in the full cut
   either (nor in the original .ttf), so they have always rendered from a
   system fallback and still do. The catch-all bought a 340 KB download
   and no glyphs, so it is gone. The full file is still in fonts/ if the
   copy ever grows beyond Latin and Cyrillic — swap the url and re-check.

   The .ttf below is a src fallback for a browser that cannot take WOFF2,
   not a glyph fallback: it is only fetched if the .woff2 fails to load. */
@font-face {
  font-family: 'TikTok Sans';
  src: url('fonts/TikTokSans-Variable.subset.woff2') format('woff2'),
       url('fonts/TikTokSans-Variable.ttf') format('truetype-variations');
  /* The axes really are wght 300-900 and wdth 75-150%. This used to claim
     100-900, so a rule asking for 200 was silently clamped to 300. */
  font-weight: 300 900;
  font-stretch: 75% 150%;
  font-style: normal;
  font-display: swap;
}

/* Form controls do not inherit font-family from the page by default —
   without this they fall back to the UA font (Arial). */
button,
input,
select,
textarea {
  font-family: inherit;
}

/* Static 18pt Condensed cut — kept for the fixed-width UI labels
   that were designed against it. Used by team.html and style.css.
   These are only fetched when something actually sets the family. */
@font-face {
  font-family: 'TikTok Sans 18pt Condensed';
  src: url('fonts/TikTokSans_18pt_Condensed-Light.woff2') format('woff2'),
       url('fonts/TikTokSans_18pt_Condensed-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TikTok Sans 18pt Condensed';
  src: url('fonts/TikTokSans_18pt_Condensed-Regular.woff2') format('woff2'),
       url('fonts/TikTokSans_18pt_Condensed-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TikTok Sans 18pt Condensed';
  src: url('fonts/TikTokSans_18pt_Condensed-Medium.woff2') format('woff2'),
       url('fonts/TikTokSans_18pt_Condensed-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TikTok Sans 18pt Condensed';
  src: url('fonts/TikTokSans_18pt_Condensed-SemiBold.woff2') format('woff2'),
       url('fonts/TikTokSans_18pt_Condensed-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TikTok Sans 18pt Condensed';
  src: url('fonts/TikTokSans_18pt_Condensed-Bold.woff2') format('woff2'),
       url('fonts/TikTokSans_18pt_Condensed-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TikTok Sans 18pt Condensed';
  src: url('fonts/TikTokSans_18pt_Condensed-ExtraBold.woff2') format('woff2'),
       url('fonts/TikTokSans_18pt_Condensed-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TikTok Sans 18pt Condensed';
  src: url('fonts/TikTokSans_18pt_Condensed-Black.woff2') format('woff2'),
       url('fonts/TikTokSans_18pt_Condensed-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
