/* fonts.css - fonts served from this site itself (faster, and no visitor data sent to Google).

   Millie Handwritten 1 is Millie's own handwriting (made at Calligraphr). It includes alternate letterforms, which the
   browser swaps in automatically (the "calt" feature) so repeated letters are not identical.
   It has letters A to Z, a to z and common punctuation, but no digits yet; digits (and the few other missing characters) fall back to Caveat, a free placeholder
   (SIL Open Font License; see fonts/Caveat-OFL-LICENSE.txt), so nothing ever goes missing. */

@font-face {
  font-family: 'Mill Handwritten';
  font-style: normal;
  font-weight: 400;
  /* Her letters are taller than Caveat's (x-height 590 vs 400 of 1000). 72% would match Caveat's lowercase size exactly, but her capitals are shorter, so 81% balances the two.
     Raise this number to make all handwriting bigger, lower it to make it smaller. */
  size-adjust: 81%;
  /* "block" avoids a flash of a different handwriting while this small file (about 70 KB) loads. */
  font-display: block;
  src: url('/fonts/millie-handwritten-1.woff2') format('woff2');
}

@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/caveat-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/caveat-latin-700-normal.woff2') format('woff2');
}

/* Three more handwriting styles (all SIL Open Font License or Apache 2.0, licences are next to the files in /fonts). Like the others, they only download when used. */
@font-face { font-family: 'Homemade Apple'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/homemade-apple-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Reenie Beanie'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/reenie-beanie-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Permanent Marker'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/permanent-marker-latin-400-normal.woff2') format('woff2'); }

/* Two alternative text styles for variety. Browsers only download a font when some text actually uses it,
   so these cost nothing on pages that do not. */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-latin-700-normal.woff2') format('woff2'); /* SIL Open Font License, see fonts/IBMPlexMono-OFL-LICENSE.txt */
}
@font-face {
  font-family: 'Special Elite';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/special-elite-latin-400-normal.woff2') format('woff2'); /* Apache 2.0, see fonts/SpecialElite-Apache-LICENSE.txt */
}

:root {
  /* The handwriting stack: her font first, then Caveat for any character hers lacks. */
  --hand: 'Mill Handwritten', 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;
  --font-label: 'IBM Plex Mono', ui-monospace, 'Courier New', monospace;      /* "label maker": capitals on a strip of tape */
  --font-typewriter: 'Special Elite', 'Courier New', Courier, monospace;      /* typewriter */
  --font-apple: 'Homemade Apple', 'Caveat', cursive;                          /* flowing pen cursive */
  --font-beanie: 'Reenie Beanie', 'Caveat', cursive;                          /* quick ballpoint scribble */
  --font-marker: 'Permanent Marker', 'Caveat', cursive;                       /* chunky felt-tip */
}
