feat(styles): add hyphenation utility for post content (#1128)
Adds a `hyphenate` utility class, because Tachyons has no hyphenation
classes, and applies it to single-page content (`layouts/single.html`
and `layouts/page/single.html`).
* `hyphens: auto` with `hyphenate-limit-chars: 6 3 3`.
* Headings, inline code, `kbd`, and `samp` keep their words whole; code
blocks keep `hyphens: none`.
* Sites change or disable it by redefining `.hyphenate` in
`ananke.custom_css`, for example `.hyphenate { hyphens: manual; }`.
* `DESIGN.md` lists the class in the typography section.
Documentation: `gohugo-ananke/documentation` branch `docs/hyphenation`
(styles guide and custom CSS guide).
## Validation
* `npm test`: 57/57 with Hugo 0.160.0 and 0.170.1.
* `npm run test:coverage-gate`: passes (no new parameter).
* `npx playwright test`: 109 passed, including the new
`tests/e2e/hyphenation.spec.ts`; the hyphenation spec also passes with
Hugo 0.160.0.
* Lint results are unchanged from v2.22.0. Visual snapshots: the same 8
of 12 fail on v2.22.0 and on this branch.
* Rendered hyphenation confirmed in Firefox. Playwright's Chromium build
has no hyphenation dictionaries, so it shows no visual change.
* [x] Added or updated feature fixtures and tests, and registered
parameters and shortcodes in `tests/catalog.yaml` (or explained why no
tests are needed). No new parameter or shortcode, so no catalogue entry;
added `tests/e2e/hyphenation.spec.ts`.