style: serve Lora locally, lighten bg, bump article font size

- Install @fontsource/lora and serve latin/latin-ext woff2 files
  (weights 400/700, normal + italic) via Eleventy passthrough copy
- Lora now leads the serif font stack in Tailwind and critical CSS,
  with Iowan Old Style / Palatino as system-font fallbacks
- Light-mode background lightened: #fbf1c7 → #fefcf0 (still warm,
  noticeably less yellow)
- Article prose bumped: post.njk prose-lg, page.njk prose-xl

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
svemagie
2026-03-19 14:59:03 +01:00
parent 66414d8cd6
commit 1ed4cb4663
8 changed files with 100 additions and 11 deletions

View File

@@ -525,6 +525,17 @@ export default function (eleventyConfig) {
"node_modules/@fontsource/inter/files/inter-latin-*-normal.woff2": "fonts",
"node_modules/@fontsource/inter/files/inter-latin-ext-*-normal.woff2": "fonts",
});
// Copy Lora font files (latin + latin-ext, weights 400/700, normal + italic)
eleventyConfig.addPassthroughCopy({
"node_modules/@fontsource/lora/files/lora-latin-400-normal.woff2": "fonts",
"node_modules/@fontsource/lora/files/lora-latin-ext-400-normal.woff2": "fonts",
"node_modules/@fontsource/lora/files/lora-latin-400-italic.woff2": "fonts",
"node_modules/@fontsource/lora/files/lora-latin-ext-400-italic.woff2": "fonts",
"node_modules/@fontsource/lora/files/lora-latin-700-normal.woff2": "fonts",
"node_modules/@fontsource/lora/files/lora-latin-ext-700-normal.woff2": "fonts",
"node_modules/@fontsource/lora/files/lora-latin-700-italic.woff2": "fonts",
"node_modules/@fontsource/lora/files/lora-latin-ext-700-italic.woff2": "fonts",
});
// Watch for content changes
eleventyConfig.addWatchTarget("./content/");