/*
 * Self-hosted typefaces: Alexandria (Arabic) and Manrope (Latin).
 *
 * Both files are the variable builds served by the Google Fonts API, so one
 * file covers the 400-700 range the interface uses. They are committed with
 * the app and precached by the service worker, so typography does not depend
 * on a network font CDN -- which matters for the offline promise.
 *
 * The families are stacked as 'Manrope', 'Alexandria': Manrope has no Arabic
 * glyphs, so Arabic falls through to Alexandria per character, giving correct
 * shaping and Latin/Arabic harmony without locale-specific font rules.
 * Both are licensed under the SIL Open Font License.
 */

@font-face {
  font-family: 'Alexandria';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/alexandria-arabic.woff2') format('woff2');
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/manrope-latin.woff2') format('woff2');
}

/*
 * Authorized-signature typefaces. Kept separate from the interface stack so
 * the two signatories are visually distinct, and loaded only on the
 * signatures settings screen / document preview where they are actually used.
 * All three are SIL Open Font License (see the OFL text files alongside the
 * binaries).
 */
@font-face {
  font-family: 'Aref Ruqaa';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/ArefRuqaa-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Aref Ruqaa';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/ArefRuqaa-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Amiri';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/Amiri-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Amiri';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/Amiri-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Reem Kufi';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/ReemKufi-Regular.woff2') format('woff2');
}
