/* ==========================================================================
   Self-hosted webfonts.

   FILE NAMING: {family}-{weight-or-range}.woff2 — e.g. sbm-sans-regular.woff2.

   Everything here is served from our own origin. Never add a CDN <link> and
   never add a build step.
   ==========================================================================

   SBM Sans — Sparebanken Møre's corporate face, and the application UI face.

   The bank sets its whole site in one family: --font-family-body and
   --font-family-headings on sbm.no both resolve to "SBMSans", "Arial",
   sans-serif. We do the same, so the back-office, the kiosk and the infoscreens
   read as the same brand rather than as a product wearing a brand's colours.

   Only two cuts exist — Regular (400) and SemiBold (600) — which is the whole
   of the bank's web font package. The SemiBold face is therefore declared over
   the 500–700 range so `font-semibold` and `font-bold` in the views both land
   on it instead of asking the browser to synthesise a heavier weight it has no
   outlines for. woff2 first, woff second for the few clients that still need it.

   LICENSING: SBM Sans is Sparebanken Møre's licensed corporate typeface, taken
   from their own site for their own instance of this system. Instrument Sans
   stays in the --font-sans stack below it, so removing these four files is all
   it takes to fall back to a font we ship under an open licence.
   ========================================================================== */

@font-face {
  font-family: 'SBM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/sbm-sans-regular.woff2) format('woff2'),
       url(/fonts/sbm-sans-regular.woff) format('woff');
}

@font-face {
  font-family: 'SBM Sans';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(/fonts/sbm-sans-semibold.woff2) format('woff2'),
       url(/fonts/sbm-sans-semibold.woff) format('woff');
}

/* ==========================================================================
   Instrument Sans — the fallback UI face, second in --font-sans.

   Carries the interface if SBM Sans is ever pulled for licensing reasons, and
   covers any glyph the two-cut brand face is missing. One variable file per
   unicode range covers weights 400–700, so the whole range is a single
   download. Generated from the Google Fonts css2 API and rewritten to local
   paths; the content-hash filenames were stripped because they said nothing
   about what was inside. Only upright styles are vendored — italic is not used
   in the interface, and the browser can synthesise it if it ever is.
   ========================================================================== */

/* latin-ext */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/instrument-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin — includes æ ø å, so Norwegian never falls back to a second file */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/instrument-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
