/* Reign Zero — the product face, in one place.
 *
 * Figtree, self-hosted. It used to be a Google Fonts <link> scoped to a
 * single theme, which meant two things: every other surface fell back
 * to Inter, and the pages a customer's own Mac opens — the update
 * details page an OS notification links to, the enrolment and consent
 * pages — depended on reaching fonts.googleapis.com. A locked-down
 * customer network that blocks it loses the face everywhere, silently.
 * Served from the same origin as the page, it cannot.
 *
 * One variable file covers 300-900, so weight changes cost no extra
 * request. 30 KB for the pair. Licence in fonts/OFL.txt.
 *
 * Every standalone page has its own <head>, so each links this file.
 * Add the link to any new one.
 */

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  /* swap, not block: text paints immediately in the fallback and
     changes face when the file lands. On a Mac mid-update, opening a
     page that renders nothing until a font arrives is the wrong
     trade. */
  font-display: swap;
  src: url('/static/fonts/figtree-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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
                 U+FFFD;
}

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/static/fonts/figtree-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;
}

:root {
  --rz-font-sans: Figtree, Inter, ui-sans-serif, system-ui,
                  -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
                  sans-serif;
  --rz-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas,
                  'Liberation Mono', monospace;
  /* Two pages already read --font-sans. Aliased rather than rewritten
     so they pick the face up and keep working if they are edited
     without this file in mind. */
  --font-sans: var(--rz-font-sans);
}

/* Form controls do not inherit the body face on any browser, so they
   are named explicitly — without this the page reads as Figtree and
   every input reads as the OS default, which is exactly the mismatch
   that makes a UI feel unfinished. */
html, body, button, input, select, textarea, optgroup {
  font-family: var(--rz-font-sans);
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
