/* Self-hosted typefaces, both SIL Open Font Licence 1.1.

   Local rather than linked: the engine's CSP is default-src 'self', so a
   Google Fonts link would simply be blocked -- and it would also mean a
   government site reporting every visitor to a third party.

   The Latin pair are VARIABLE fonts, so one file per style carries every
   weight and the @font-face declares the range.

   DDC Uchen is the Dzongkha Development Commission's own Uchen face, and is
   the third. It is declared LAST and restricted by `unicode-range` to the
   Tibetan block, which is what makes it safe to name FIRST in every font
   stack in app.css: the browser consults this range before the file, so for
   a Latin character the face is never a candidate and the stack falls
   straight through to EB Garamond or Hanken Grotesk. One declaration
   therefore covers every Dzongkha character anywhere on the site -- header,
   body, a page written in the CMS -- with no per-element font-family. */

@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/ebgaramond-normal-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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/ebgaramond-normal-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;
}

@font-face {
  font-family: "EB Garamond";
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/ebgaramond-italic-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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "EB Garamond";
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/ebgaramond-italic-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;
}

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/hankengrotesk-normal-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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/hankengrotesk-normal-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;
}

/* Dzongkha. U+0F00-0FFF is the whole Tibetan block and there is no supplement
   to it, so this single range is every character the script can produce.

   Not preloaded, unlike the two Latin faces: it is 212 kB against their 46 kB
   each, and the browser only fetches it once it meets a character in the
   range. On a page with no Dzongkha on it -- which is most of the register --
   it is never requested at all.

   Whole font, not a subset. The file's fsType carries the no-subsetting bit,
   and although the OFL grants the right regardless, the conversion here is
   format only: every table, every glyph, the name intact. */
@font-face {
  font-family: "DDC Uchen";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ddcuchen-normal-tibetan.woff2") format("woff2");
  unicode-range: U+0F00-0FFF;
}
