/* The grown-up pages' fonts (Marcio, 4 Nov 2026: "go with 1"): Young Serif for headlines and Lexend for the text,
   which has plain zeros. Linked after site.css on the grown-up pages only (cbg/site.py grownup_page); the children's
   pages keep Fredoka and Nunito. Served from our own origin, as fonts.css is (SIL Open Font License 1.1:
   OFL-YoungSerif.txt, OFL-Lexend.txt beside them). Subsets of the files used for the mock-ups, latin + latin-ext,
   as woff2 (about a fifth smaller, wish list #47) with the woff as a fallback. The names carry the font version, so they can be cached for a year. */
@font-face { font-family: 'Young Serif'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(YoungSerif-v3003-latin-ext.woff2) format('woff2'), url(YoungSerif-v3003-latin-ext.woff) format('woff'); 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Young Serif'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(YoungSerif-v3003-latin.woff2) format('woff2'), url(YoungSerif-v3003-latin.woff) format('woff'); 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: 'Lexend'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(Lexend-v1007-latin-ext.woff2) format('woff2'), url(Lexend-v1007-latin-ext.woff) format('woff'); 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Lexend'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(Lexend-v1007-latin.woff2) format('woff2'), url(Lexend-v1007-latin.woff) format('woff'); 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; }

:root {
  --font-display: "Young Serif", Georgia, "Times New Roman", serif;
  --font-text: "Lexend", "Segoe UI", system-ui, sans-serif;
}
/* Young Serif has one weight: headlines that asked for bold stay as drawn rather than a faked bold */
h1, h2, h3, h4, .display { font-synthesis: none; }
/* as on Marcio's card: the headline 15 per cent smaller on a phone, where Young Serif runs wider */
@media (max-width: 500px) { h1 { zoom: 0.85; } }
/* Buttons stay in Lexend, bold like the yellow Join Scribble Club button (Claudia, 4 Nov): the serif is harder to
   read over the rainbow stripes, and on a phone "Email me a sign-in link" broke across two lines */
button, .btn, .go, .tab, input[type="submit"] { font-family: var(--font-text); font-weight: 700; }
/* On a phone the big button text comes down to the yellow nav button's size, so "Email me a sign-in link" fits on
   one line (Claudia, 4 Nov) */
@media (max-width: 500px) { .btn, .btn--big { font-size: 1rem; } }
