7f11b6e88e
`styles.css` line 1 carried a malformed rule for the life of the site:
@font-face{font-family:Manrope;src:url('https://fonts.googleapis.com/css2?...')}
`src:` in an @font-face must point at a font binary. That URL returns a CSS
stylesheet, so no browser could ever load a face from it. Every
`font-family:Manrope,Arial,sans-serif` fell through to Arial, and 'DM Mono' was
never declared as a family at all, so it fell through to generic monospace. The
intended typography has never once been seen.
Task 02 spotted this and was told to default to deleting the dead rule and
declaring the stacks that actually render. It recorded that decision, deferred
the deletion to "future component tasks", and nothing picked it up. The human
has now chosen the other branch: the real fonts.
Self-hosted rather than linked from fonts.googleapis.com because
scripts/audit-ui.mjs rejects any external <link>/<script>, and because the site
is presented in workshop rooms with unreliable networks. Latin and latin-ext
subsets only — the site is EN and PT-BR, so the cyrillic, greek and vietnamese
subsets Google also serves are dropped. Manrope ships as one variable file
covering 400-800. 89 KB total across six faces, all SIL OFL.
One public/fonts/fonts.css serves both trees, with relative url()s that each
consumer resolves against that file's own location: BaseLayout.astro links it
for Astro pages, the legacy root styles.css @imports it.
This changes how every page renders. That is the point, and it is the one
sanctioned visual change in the migration — screenshots taken before today show
Arial and are no longer a valid baseline. The three governing documents that
said "do not add a webfont" are updated so the next design-system-keeper does
not undo this.
Adds .stylelintignore, mirroring .prettierignore's legacy list for the same
reason: staging the minified styles.css to change one declaration produced ~180
declaration-block-single-line-max-declarations errors and blocked the commit.
public/fonts/fonts.css is deliberately excluded from that ignore list.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
30 lines
899 B
Plaintext
30 lines
899 B
Plaintext
dist
|
|
node_modules
|
|
hands-on
|
|
public/hands-on
|
|
submitted-skills
|
|
public/submitted-skills
|
|
skill-reviews
|
|
vote-service
|
|
|
|
# Legacy site sources, slated for deletion at cutover (task 20). Same list and
|
|
# same reasoning as .prettierignore: these are minified, single-line
|
|
# stylesheets. stylelint's `declaration-block-single-line-max-declarations`
|
|
# fires once per rule in them — ~180 errors for `styles.css` alone — so staging
|
|
# one to change a single declaration blocks the commit outright. The rule is
|
|
# about hand-written source readability and says nothing useful about minified
|
|
# output that is about to be deleted.
|
|
#
|
|
# `public/fonts/fonts.css` is deliberately NOT here: it is new, hand-written,
|
|
# and must stay linted.
|
|
#
|
|
# Root-anchored on purpose: a bare `rules` would also swallow .agents/rules/.
|
|
/styles.css
|
|
/landing.css
|
|
/chapters.css
|
|
/responsive.css
|
|
/skills-review/
|
|
/rules/
|
|
/skills/
|
|
/full-guide/
|