/* GNU FreeFont: unmodified FreeSerif webfonts; license and credits in fonts/free-serif/. */
@font-face {
  font-family: "Brand FreeSerif";
  src: url("fonts/free-serif/FreeSerif.woff") format("woff");
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
}
@font-face {
  font-family: "Brand FreeSerif";
  src: url("fonts/free-serif/FreeSerifBold.woff") format("woff");
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
}
@font-face {
  font-family: "Brand FreeSerif";
  src: url("fonts/free-serif/FreeSerifItalic.woff") format("woff");
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
}
@font-face {
  font-family: "Brand FreeSerif";
  src: url("fonts/free-serif/FreeSerifBoldItalic.woff") format("woff");
  font-style: italic;
  font-weight: 600 900;
  font-display: swap;
}

/* :lang() follows the selected page language and explicit Armenian material labels. */
:where(body, body *):is(:lang(en), :lang(hy)):not(:where(
  svg, svg *, .icon, .icon *, .menu, .arrow, .mini-note > span,
  code, code *, pre, pre *, kbd, kbd *, samp, samp *,
  [class*="icon-"], [class*="icon-"] *, [class*="-icon"], [class*="-icon"] *
)) {
  font-family: "Brand FreeSerif", "Noto Sans Armenian", Georgia, serif;
}

/* Keep language-picker labels in their own language's existing font. */
:where(body) [lang]:not(:lang(en), :lang(hy)) {
  font-family: "Noto Sans Armenian", Arial, sans-serif;
}

/* These existing Unicode symbols inherit the original UI font, not the text face. */
.icon, .menu, .arrow, .mini-note > span {
  font-family: "Noto Sans Armenian", Arial, sans-serif;
}
