/* Self-hosted webfonts — replaces the fonts.googleapis.com CDN links.
 *
 * The dashboard is reached over a Tailscale/Cloudflare tunnel; the
 * browser fetching fonts straight from Google's CDN is an external
 * dependency that fails whenever the network blocks fonts.googleapis.com
 * (text falls back to Times New Roman, Material Symbols icons vanish).
 * Serving the fonts from /fonts/ removes that dependency entirely.
 *
 * Sources (vendored as variable woff2):
 *   Inter            — @fontsource-variable/inter
 *   Manrope          — @fontsource-variable/manrope
 *   Material Symbols — material-symbols (npm)
 */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter-variable.woff2') format('woff2');
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/fonts/manrope-variable.woff2') format('woff2');
}

@font-face {
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  font-display: block;
  font-weight: 100 700;
  src: url('/fonts/material-symbols-outlined.woff2') format('woff2');
}

/* Base class for the icon font. Mirrors the definition Google's CDN CSS
 * used to provide — index.css only layers font-variation-settings on top,
 * so font-family / ligature settings must live here or icons render as
 * their literal ligature text (e.g. "refresh" instead of the glyph). */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: 'liga';
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}
