/**
 * The faces a printed sheet may be set in.
 *
 * Served from the application rather than from a CDN, for the reason stated in
 * the design system's own font file: this product has to run on a server with
 * no outbound internet, and an invoice that reaches a customer in a fallback
 * face because a font host was unreachable is a defect they can see.
 *
 * IRANYekan is shipped in its Persian-numeral cut (`FaNum`), which is the
 * whole point of having it: it is the face the owner's existing printed
 * invoices are set in, and its Arabic-Indic digits are what a sheet printed in
 * Persian figures is supposed to look like.
 */

@font-face {
  font-family: 'IRANYekan';
  src: url('/fonts/print/IRANYekanRegularFaNum.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'IRANYekan';
  src: url('/fonts/print/IRANYekanMediumFaNum.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'IRANYekan';
  src: url('/fonts/print/IRANYekanBoldFaNum.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'IRANSans';
  src: url('/fonts/print/IRANSansWeb.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'IRANSans';
  src: url('/fonts/print/IRANSansWeb_Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'IRANSans';
  src: url('/fonts/print/IRANSansWeb_Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

/*
 * And the Latin faces, for the figures.
 *
 * Most sheets go out with Latin digits — that is the product's own rule and
 * the ordinary case — so a list of figure faces that offered only Persian
 * families was a setting with no answer for the common case. Barlow Semi
 * Condensed is here because its digits are narrow and flat-topped, which is
 * what packs a nine-figure sum into a column without the column widening.
 */

@font-face {
  font-family: 'Barlow Semi Condensed';
  src: url('/fonts/print/BarlowSemiCondensed-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Barlow Semi Condensed';
  src: url('/fonts/print/BarlowSemiCondensed-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Barlow Semi Condensed';
  src: url('/fonts/print/BarlowSemiCondensed-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
