/* Crestivo Freight — self-hosted webfonts (SIL OFL 1.1) */

/* Saira is the LOGOTYPE face. It is here so the wordmark can be re-set, not
   so interface copy can be set in it. Use Archivo for display and Inter for
   text. The wordmark files in logo/ are outlined and need none of this. */
@font-face {
  font-family: 'Saira';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 50% 125%;
  font-display: swap;
  src: url('../fonts/saira/Saira-Variable.woff2') format('woff2-variations'),
       url('../fonts/saira/Saira-Variable.woff2') format('woff2');
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/archivo/Archivo-Variable.woff2') format('woff2-variations'),
       url('../fonts/archivo/Archivo-Variable.woff2') format('woff2');
}

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

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono/IBMPlexMono-Regular.woff2') format('woff2');
}

/* Metric-compatible fallbacks: these size adjustments keep layout from
   shifting while a webfont loads. Values measured against each family. */

@font-face {
  font-family: 'Archivo Fallback';
  src: local('Helvetica Neue'), local('Arial');
  ascent-override: 96%;
  descent-override: 24%;
  size-adjust: 101%;
}

@font-face {
  font-family: 'Inter Fallback';
  src: local('Helvetica Neue'), local('Arial');
  ascent-override: 90%;
  descent-override: 22.5%;
  size-adjust: 107%;
}
