/* ---------------------------------------------------------------------------
 * Rubik — self-hosted variable font, used across the whole site.
 *
 * Loaded by both the public layout and the admin panel; --font and --display in
 * theme.css both point at it, so body copy and headings share one family.
 *
 * Self-hosted rather than pulled from Google Fonts: no third-party request on
 * every page load, no dependency on an external host staying up, and nothing
 * about visitors leaving the server.
 *
 * These are VARIABLE fonts — one file covers weights 300-900, so asking for
 * font-weight:900 costs no extra download. WOFF2 (~110 KB) is offered first;
 * the TTF (~345 KB) is only a fallback for very old browsers. font-display:swap renders text in a
 * system fallback immediately and swaps to Rubik when it arrives, so a slow
 * font never leaves the page blank.
 * --------------------------------------------------------------------------- */

@font-face {
  font-family: 'Rubik';
  src: url('../rubik/Rubik-VariableFont_wght.woff2') format('woff2-variations'),
       url('../rubik/Rubik-VariableFont_wght.woff2') format('woff2'),
       url('../rubik/Rubik-VariableFont_wght.ttf') format('truetype-variations');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Rubik';
  src: url('../rubik/Rubik-Italic-VariableFont_wght.woff2') format('woff2-variations'),
       url('../rubik/Rubik-Italic-VariableFont_wght.woff2') format('woff2'),
       url('../rubik/Rubik-Italic-VariableFont_wght.ttf') format('truetype-variations');
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}
