/*
 * The field apps' four faces, self-hosted.
 *
 * Not a Google Fonts <link> like the customer and admin layouts use: a bus door
 * tablet has to paint in a dead zone, and a stylesheet on fonts.googleapis.com
 * is a blocking request to an origin the bus may not reach. The customer and
 * admin layouts keep their link — they run on phones and desks, and churning
 * them is not part of this change.
 *
 * Here rather than in app/assets/tailwind/application.css because Tailwind's CLI
 * does not rewrite url(); Propshaft's CSS compiler does, resolving these
 * relative URLs against this file's logical directory and finding the digested
 * font in app/assets/fonts. stylesheet_link_tag :app picks this file up as part
 * of its bulk include.
 *
 * Each weight range is the one the file actually carries, read off its fvar
 * table rather than assumed — declaring 100 900 on a face that stops at 700
 * leaves the browser silently clamping.
 */

@font-face {
  font-family: "Sora";
  src: url("/assets/Sora-Variable-5d66928b.woff2") format("woff2-variations");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/IBMPlexSans-Variable-dd885320.woff2") format("woff2-variations");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/JetBrainsMono-Variable-58f8b334.woff2") format("woff2-variations");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* The field apps load no webfont at all today, so --font-body ("Open Sans")
   falls through to system-ui on every tablet. The passenger screen is the brand
   face of this product and the printed slip is set in it, so it is self-hosted
   here too. */
@font-face {
  font-family: "Open Sans";
  src: url("/assets/OpenSans-Variable-2a1de131.woff2") format("woff2-variations");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
