/* The Arabic faces, declared here rather than in the bundled stylesheet.

   Both are limited to the Arabic ranges, which is what lets them sit at the
   FRONT of the body font stack: a Latin character never matches them and
   carries on to Geist, while an Arabic character is caught here before it can
   reach a Latin face that happens to carry Arabic glyphs. That is the whole
   mechanism - it needs no lang attribute, no class, and no discipline from
   whoever writes the next screen.

   -------------------------------------------------------------------
   me_quran, which is here: me_quran.woff2, beside this stylesheet.

   This lives in /public rather than in globals.css on purpose, and stays
   there now that the file exists. A url() inside the bundled stylesheet is
   resolved at build time, and one pointing at a file that is not there makes
   the bundler drop the rest of the sheet - silently, from that rule onward.
   Keeping the declaration here means removing the font is a matter of
   deleting it, with nothing to edit and nothing that can break by being
   deleted: the stack simply falls through to Amiri Quran.

   The .ttf in the src list is not a missing file waiting to 404. A browser
   takes the first format it supports and never asks for the rest, so with
   the woff2 present the .ttf is never requested; it is there for an operator
   who drops in a TrueType of their own.

   me_quran is not freely licensed - "free for non commercial use" - and its
   terms are in me_quran-LICENSE.txt beside it. Read that before deploying
   this to anything that charges. */

@font-face {
  font-family: "me_quran";
  src: url("/fonts/me_quran.woff2") format("woff2"),
       url("/fonts/me_quran.ttf") format("truetype");
  font-display: swap;
  /* Arabic only. A face claiming the Latin range too would take over headings
     and clocks the moment the file appeared. */
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

/* The face that is always here. Amiri Quran is a genuine Quranic type, and
   this is its Arabic subset - 45 KB, self-hosted so a television with no
   internet renders the same as one with it. SIL Open Font License 1.1; the
   licence sits beside it in amiri-quran-OFL.txt.

   Named apart from the "Amiri Quran" that next/font loads so the two do not
   collide. next/font's copy stays as the fallback further down the stack;
   this one is here because it can be range-limited, and next/font's cannot. */
@font-face {
  font-family: "Amiri Quran Arabic";
  src: url("/fonts/amiri-quran-arabic.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891,
    U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41,
    U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
