/* Self-hosted webfonts.
 *
 * These used to be fetched from fonts.googleapis.com on every page load, with
 * no local copy. When that host is unreachable — a customer behind a corporate
 * firewall, a flaky connection, an offline install — Material Icons renders its
 * *ligature text* instead of an icon: the word "shopping_cart" appears in the
 * menu, the word "bolt" next to the product name, and because the words are far
 * wider than the glyphs they replace, they push the headings out of alignment.
 * The whole interface degrades into something that looks broken.
 *
 * Serving them from the app removes the dependency entirely, and also removes
 * a third-party request from every page a customer loads.
 */

@font-face {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  font-display: block;  /* never show the ligature text: wait, or show nothing */
  src: url('../fonts/material-icons.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/inter.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono.woff2') format('woff2');
}

.material-icons {
  font-family: 'Material Icons';
  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;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}
