/* ------------------------------------------------------------------
   Self-hosted webfonts for the UCLA Extension geography courses
   (Geography XL 1 = 10 decks, UC Biogeography = 13 decks).
   Subset to the union of the two character sets (see _pgwork/fonts-report.md
   and _pgwork/fonts-report-bio.md).  Served from fonts/.

   Family substitution map:
     Calibri .................... Carlito          (metrically identical)
     Calibri Light .............. Carlito Light    (alias of Carlito regular +
                                  98.73% size-adjust, no bold face so 700 runs
                                  get synthetic bold like PowerPoint's)
     Times New Roman / Times .... Liberation Serif (metrically identical)
     Arial ...................... Liberation Sans  (metrically identical)
     Garamond ................... EB Garamond      (OFL; ~1% width delta)
     Georgia .................... Gelasio          (metrically identical)
     Verdana .................... DejaVu Sans      (Bitstream Vera licence)
     Gill Sans MT ............... Carlito          (fallback; <=0.5% width)
     Gibson ..................... Liberation Sans  (fallback; italic runs only)
     Google Sans ................ Liberation Sans  (fallback)
     Wingdings .................. its U+F0E0 / U+F0DF arrows are re-mapped to
                                  U+2192 / U+2190 inside every family below,
                                  so route those runs through one of them.

   System-font fallbacks stay behind each self-hosted family, so a browser that
   lacks the woff2 still gets the real Calibri/Garamond/Georgia/Verdana.

   EB Garamond, Gelasio and DejaVu Sans carry ascent/descent/line-gap overrides
   so their line box matches the Microsoft original exactly; Liberation Serif
   drops the line gap Times New Roman does not have.  Older browsers ignore
   those descriptors and simply use the font's own (slightly taller) line box.
   ------------------------------------------------------------------ */

/* Carlito */

@font-face {
  font-family: "Carlito";
  src: url("fonts/carlito-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Carlito";
  src: url("fonts/carlito-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Carlito";
  src: url("fonts/carlito-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Carlito";
  src: url("fonts/carlito-bolditalic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* Liberation Serif */

@font-face {
  font-family: "Liberation Serif";
  src: url("fonts/libserif-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Liberation Serif";
  src: url("fonts/libserif-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Liberation Serif";
  src: url("fonts/libserif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Liberation Serif";
  src: url("fonts/libserif-bolditalic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
  line-gap-override: 0%;
}

/* Liberation Sans */

@font-face {
  font-family: "Liberation Sans";
  src: url("fonts/libsans-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Liberation Sans";
  src: url("fonts/libsans-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Liberation Sans";
  src: url("fonts/libsans-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Liberation Sans";
  src: url("fonts/libsans-bolditalic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* EB Garamond */

@font-face {
  font-family: "EB Garamond";
  src: url("fonts/ebg-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  ascent-override: 86.18%;
  descent-override: 26.32%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "EB Garamond";
  src: url("fonts/ebg-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  ascent-override: 86.18%;
  descent-override: 26.32%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "EB Garamond";
  src: url("fonts/ebg-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  ascent-override: 86.18%;
  descent-override: 26.32%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "EB Garamond";
  src: url("fonts/ebg-bolditalic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
  ascent-override: 86.18%;
  descent-override: 26.32%;
  line-gap-override: 0%;
}

/* Gelasio */

@font-face {
  font-family: "Gelasio";
  src: url("fonts/gelasio-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  ascent-override: 91.70%;
  descent-override: 21.92%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Gelasio";
  src: url("fonts/gelasio-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  ascent-override: 91.70%;
  descent-override: 21.92%;
  line-gap-override: 0%;
}

/* DejaVu Sans */

@font-face {
  font-family: "DejaVu Sans";
  src: url("fonts/dejavu-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  ascent-override: 100.54%;
  descent-override: 21.00%;
  line-gap-override: 0%;
}

/* aliases - same files as above, different metric treatment */

@font-face {
  font-family: "Carlito Light";
  src: url("fonts/carlito-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  size-adjust: 98.73%;
}
