/* ============================================================
   KidVerse — the typefaces, served from here
   ============================================================

   These used to come from fonts.googleapis.com on every page load,
   which meant every child's browser announced itself to a third party
   before the first word appeared. For a product sold to schools that
   is not a detail: the ICO audited twenty-eight edtech providers this
   year and third-party calls nobody declared were among the findings.
   So the fonts live here, in our own folder, and nothing leaves.

   Three faces, each with a job.

   · **Andika** is what a child reads. It is SIL's literacy face: a
     single-storey a and g, an l with a tail, a capital I with serifs
     — the letterforms children are actually taught to write, and the
     ones that stop b/d/p/q and I/l/1 collapsing into each other. It
     is used for the reader, for quiz questions, and for anything an
     early reader has to decode. Nothing else in this product earns a
     typeface choice as much as that does.

   · **Lexend** is the interface. Drawn to reduce visual crowding, it
     is wide, even and quiet, which is what you want behind a hundred
     small labels. It replaces Nunito, which is the default every
     children's app reaches for.

   · The display face changes with the theme, because it is where the
     personality lives: Fraunces for Press, Grandstander for Cut
     Paper, Bricolage Grotesque for Lamplight.

   Only the latin subsets are here. The moment the catalogue ships in
   a language that needs more, the subset ships with it — which is a
   build step, not a redesign.
   ============================================================ */

@font-face {
  font-family: "Andika";
  src: url("fonts/andika-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Andika";
  src: url("fonts/andika-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Lexend";
  src: url("fonts/lexend.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Grandstander";
  src: url("fonts/grandstander.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Bricolage";
  src: url("fonts/bricolage.woff2") format("woff2-variations");
  font-weight: 200 800; font-style: normal; font-display: swap;
}

:root {
  --font-ui: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-read: "Andika", "Lexend", system-ui, sans-serif;
  --font-display: var(--font-ui);

  /*
   * Surfaces, as tokens rather than as white at four per cent.
   *
   * Every module was written against a dark page, so a raised panel
   * was rgba(255,255,255,.06) and a hairline was white at a tenth.
   * On paper both of those are invisible — the register's code
   * buttons disappeared entirely the first time a light theme was
   * switched on. These four stand in for them, and the defaults below
   * are exactly what those values were, so with no theme chosen
   * nothing has changed at all.
   */
  --surf-1: rgba(255,255,255,.06);   /* a panel lifted off the page */
  --surf-2: rgba(255,255,255,.11);   /* lifted further, or pressed */
  --hair:   rgba(255,255,255,.10);   /* a dividing line */
  --edge:   rgba(255,255,255,.16);   /* the edge of something you press */
  --sunk:   rgba(0,0,0,.18);         /* a well: an input, a slot */
  --quiet:  rgba(255,255,255,.10);
  --inset:  rgba(0,0,0,.16);
  --line:   rgba(255,255,255,.10);
  --on-accent: #12183C;
  --yes: #7ED3B2; --yes-ink: #7ED3B2; --no: #FF8A7A;
  --maybe: #FFD75E; --away: #8EC5FF;
  --warn: #FF8A3D; --warn-wash: rgba(255,138,61,.12); --warn-line: rgba(255,138,61,.35);
  --card-edge: 1px solid transparent;
  --r-card: 20px; --r-input: 14px; --r-chip: 999px;
}
