themes-brutalist/docs/adr/0007-the-hero-headline-fits-its-width.md
Alex Dunmow 8e50336260 fix: website factory launch run defects (0.7.8)
Footer contact details, eyebrow alignment, long headlines, scrims and
grid rows found by the WO-101 render pass; see docs/adr.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 18:27:47 +08:00

20 lines
2.0 KiB
Markdown

# The hero headline fits its width
Decided 2026-11-22 for brutalist 0.7.8, from the website factory's launch runs (orchestrator WO-101, ADR 0092).
## Context
The website factory compiles a customer's site onto this theme. Twelve launch sites built on dev on 2026-11-22 showed defects on their home pages, recorded in the orchestrator's `docs/works/evidence/WO-090/runs/RESULTS.md`; the render pass now also renders a 60 to 80 character headline with long words on every theme.
## Decision
- The hero headline takes its size from its longest word and its length. The template adds `headline-w7`, `headline-w9`, `headline-w11` or `headline-w13` for each word of 7 to 8, 9 to 10, 11 to 12 and 13 or more letters, and `headline-mid` or `headline-long` past 20 and 40 characters; each sets a custom property, and the font size is the smaller of the two, between 2rem and the old 18rem. The sizes allow about 0.7em a letter for the uppercase display face, in viewport width and capped in rem by the 70rem column. `overflow-wrap: anywhere` breaks a word that is longer still. The old `clamp(3rem, 22vw, 18rem)` fitted about six letters, so Kova Studio's "RISOGRAPHED" and "IDENTITIES" ran off the right edge at 1280 and 390, and its ten-word headline filled two and a half screens. A short headline of short words keeps the old size.
- `assets/style.css` carries the same rules, since it is served after the site stylesheet and repeats the headline rule.
## Consequences
- brutalist 0.7.8 is published to the dev registry; the orchestrator's `internal/factory/themes.yaml` pins it.
- No schema field changes. Production sites on this theme pick the change up with the automatic theme update; the regression check for sites the factory did not build compared the production release with 0.7.8 (orchestrator `docs/works/evidence/WO-101/theme-regression/`).
Keywords: hero, headline, long headline, headline-w7, headline-w9, headline-w11, headline-w13, headline-mid, headline-long, clamp, overflow-wrap, clipped headline, WO-101, website factory, launch runs, brutalist