Local only: Cormorant Garamond and Mulish instead of Marcellus and Jost

Not pushed: Bryan compares it with the current test version first.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-15 17:15:04 +01:00
co-authored by Claude Sonnet 5.5
parent d9ff875ade
commit 107647f7a5
15 changed files with 81 additions and 10 deletions
+6 -1
View File
@@ -78,7 +78,12 @@ Conclusion for Bryan to confirm: the twigs are images from the theme and fall un
## Fonts
Marcellus (headings) and Jost (text) via the npm packages `@fontsource/marcellus` and `@fontsource/jost`, both under the SIL Open Font License 1.1, served from the site itself (no Google Fonts request).
Cormorant Garamond (headings, weights 500 and 600) and Mulish (text, nav and buttons, weights 300, 400 and 500), the main fonts of the live site, self-hosted through the npm packages `@fontsource/cormorant-garamond` and `@fontsource/mulish` (version 5.3.0). Both fonts are Google Fonts under the SIL Open Font License 1.1 (free for commercial use and for self-hosting; the licence text ships in the packages), so there is no theme licence involved. Only the latin subset and the weights in use are loaded (about 100 KB of WOFF2 in total), with no request to Google. The previous fonts, Marcellus and Jost, were replaced.
- Layout shift: `src/fonts.css` defines two fallback faces ("Cormorant Garamond Fallback" on Georgia, "Mulish Fallback" on Arial) with `size-adjust`, `ascent-override` and `descent-override` computed from the font files, so the text barely moves when the web fonts arrive (measured layout shift of the pages: 0.001 to 0.016 on desktop and phone, as before).
- Size: Cormorant Garamond has a smaller x-height than Marcellus (0.386 against 0.50), so every use of the heading font carries `font-size-adjust: 0.43` (about 12% larger letters; browsers that do not know the property show the font at its natural size). Prices use lining numerals (`font-variant-numeric: lining-nums`), because the default figures of Cormorant Garamond are old-style. Headings use weight 500 instead of 400 (Cormorant is thin at 400).
- No font preload is used (the images are the largest content of the first screen); the fallback metrics keep the first paint stable.
- The CSP is unchanged (`font-src 'self'`).
## When you add an image