/*
 * Yendo's typeface: General Sans (Indian Type Foundry, distributed by Fontshare).
 *
 * Self-hosted from /static, so a page never waits on, or tells, a third-party font service. Only the
 * weights CORA's pages use are here: regular (400), medium (500), semibold (600), bold (700) and italic.
 * Every page links this one file (templates/base.html, coratmp/shell.html and login.html), and the
 * font stack below names the system fonts after it, so a character General Sans does not have
 * (arrows and check marks, for instance) is drawn in the system font, and so is text if the
 * font file ever fails to load.
 *
 * General Sans has no tabular figures (its digits are different widths), so anything marked
 * `tabular-nums` stays in the system font. That is what keeps columns of numbers lined up.
 */
@font-face {
  font-family: "General Sans";
  src: url("/static/fonts/general-sans/GeneralSans-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("/static/fonts/general-sans/GeneralSans-Italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("/static/fonts/general-sans/GeneralSans-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("/static/fonts/general-sans/GeneralSans-Semibold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("/static/fonts/general-sans/GeneralSans-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --yendo-font: "General Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --system-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html, body { font-family: var(--yendo-font); }

/* Digits that must line up in a column: the system font has tabular figures, General Sans does not. */
.tabular-nums { font-family: var(--system-font); }
