/*
  Self-hosted web fonts (no third-party requests), SIL Open Font License 1.1.
  Licenses: ../fonts/OFL-*.txt, ../fonts/LICENSE-homemade-apple.txt (Apache 2.0)

  Heading fonts: see below (Kaushan Script by default).
  Signature fonts: see below (Mrs Saint Delafield by default).
  Instrument Sans: body text and UI labels. Axis: wght 400-700, upright + italic.
*/

/* Heading fonts (selectable in the backoffice under Texte > Design). Only the chosen one is
   downloaded by browsers. size-adjust matches each font's x-height to Kaushan Script's, so
   switching keeps headings visually the same size. */
@font-face {
  font-family: "Kaushan Script";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  size-adjust: 100%;
  src: url("../fonts/kaushan-script-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Satisfy";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  size-adjust: 117%;
  src: url("../fonts/satisfy-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Yellowtail";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  size-adjust: 107%;
  src: url("../fonts/yellowtail-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Courgette";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  size-adjust: 94%;
  src: url("../fonts/courgette-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Dancing Script";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  size-adjust: 118%;
  src: url("../fonts/dancing-script-latin-wght-normal.woff2") format("woff2");
}

/* Ephesis has a tiny x-height but tall capitals: matching the x-height alone (148%) would
   make capitals huge, so this is a compromise between x-height and cap height. */
@font-face {
  font-family: "Ephesis";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  size-adjust: 130%;
  src: url("../fonts/ephesis-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Birthstone";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  size-adjust: 135%;  /* x-height alone (122%) looks too small next to the others */
  src: url("../fonts/birthstone-latin-400-normal.woff2") format("woff2");
}

/* Signature fonts (selectable under Texte > Design). size-adjust roughly matches each one to
   Mrs Saint Delafield (average of x-height and capital height). */
@font-face {
  font-family: "Mrs Saint Delafield";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/mrs-saint-delafield-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Herr Von Muellerhoff";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  size-adjust: 95%;
  src: url("../fonts/herr-von-muellerhoff-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Monsieur La Doulaise";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  size-adjust: 107%;
  src: url("../fonts/monsieur-la-doulaise-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Allura";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  size-adjust: 103%;
  src: url("../fonts/allura-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Sacramento";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  size-adjust: 102%;
  src: url("../fonts/sacramento-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Homemade Apple";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  size-adjust: 64%;
  src: url("../fonts/homemade-apple-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Sans";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-sans-latin-wght-italic.woff2") format("woff2");
}
