Experiment: 10% Root Font Enlargement
Date: 2026-02-20 Status: Reverted Commit: cc77276 (partially reverted; “Recently on Almanack” and data-hide-on-page features kept)
What We Tried
Scaled the entire site 10% larger by setting font-size: 110% on :root,
with a reset to 100% at the 640px mobile breakpoint. Associated tweaks:
drop-cap height adjustment (+1em), manual hyphens on article titles, hidden
ornament endcaps on mobile.
Why
The base font (EB Garamond at 1.3rem off a 16px root = 20.8px) felt slightly small on modern high-DPI displays. A 10% bump to 22.88px was meant to improve readability without changing any relative sizing.
What Went Wrong
The three-column margins layout (0.33fr / 1fr / 0.33fr grid with 12rem
minimum margins) had no room to absorb the larger text. At intermediate
viewport widths (800px-1000px), margin boxes clipped off the edge and the
center body text had too few words per line (~7-8 instead of the target ~10).
The enlargement cascaded into several compounding problems:
-
Margin overflow: At 850px viewport, the grid minimum widths (12rem + 22rem + 12rem = 46rem = 810px at the new root size) exceeded available space after padding and gaps, causing the right margin to clip.
-
Font-size inheritance breakage: Margin boxes (
.margin-box), subscribe forms, and video chapter TOCs used hardcodedremvalues (0.9rem,0.85rem,0.8rem,0.7rem) that don’t scale with any responsive adjustment to.marginfont-size. Converting these toemunits fixed inheritance but changed the sizing chain in unexpected ways. -
Squeeze zone complexity: Fixing the layout required a new intermediate media query (935px-724px) with different grid proportions (
0.4fr / 1fr / 0.4fr), reduced body text (1.1rem), suppressed drop-cap enlargement, and a lowered Mode 3 breakpoint (723px). Each fix introduced new edge cases. -
JS/CSS breakpoint sync: The sidenotes JS (
minViewportWidth: 800) had to be manually kept in sync with the CSS Mode 3 breakpoint. At one point the JS was still at 800px while CSS was at 768px, leaving empty margin columns with no content.
What We Learned
-
remvsemin margins: Margin box internals should useem(relative to.marginparent) notrem(absolute to root). This allows a single.margin { font-size }change to scale everything inside. Affected:.margin-box(0.9rem),.subscribe-form(0.85rem),.video-chapter-toc(0.8rem),.video-chapter-toc-heading(0.7rem). -
Grid minimums constrain responsive range: The
minmax(12rem, 0.33fr)margins set a hard floor. Lowering tominmax(5rem, 0.33fr)allowed the layout to survive down to ~700px viewport, but margins at 5rem (88px) are barely usable. The comfortable three-column threshold is around 980-1000px at the enlarged root size. -
Breakpoint arithmetic: With root at 110%, the effective
remis 17.6px instead of 16px. Everyrem-based breakpoint, minimum, and spacing is 10% larger in absolute terms, which shifts all the layout thresholds. -
Wide desktop margin scaling works: Above ~1200px, bumping
.marginfont-size (from 0.85rem to 1.2rem) made sidenotes and margin boxes noticeably more readable, with no layout issues. This could be pursued independently of any root enlargement.
Approach If Revisited
Rather than a global root enlargement, consider:
-
Increase only
bodyfont-size (e.g. 1.4rem or 1.5rem) without touching:root. This keeps allrem-based layout values (grid minimums, breakpoints, spacing) at their designed sizes while making body text larger. -
Convert margin-box internals to
emfirst (the rem-to-em changes identified above), so margin font scaling works cleanly. -
Add a wide-desktop media query (
min-width: 1200px) to bump margin font-size independently, since there’s ample room at those widths. -
Test at 800px viewport as the critical squeeze point before committing any size increase.