Accessibility: reader view and full palette swaps; version v1.12.1-accessibility

- Reading mode is now a reader view (ReaderView.tsx): the page renders
  hidden and its headings, paragraphs, links and described pictures
  are written out in one column, with no header, backdrop or footer.
- Color blind modes swap all three color families (teal, green,
  amber); palette hexes in components and CSS are now
  var(--pal-<family>-<shade>) so the modes reach them.
- CLAUDE.md and docs/updating-data-in-code.md describe both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Zaldimmar 2026-10-03 16:10:57 -05:00
parent 420a8058b4
commit de17da7dc8
19 changed files with 507 additions and 192 deletions

View file

@ -48,7 +48,7 @@ export default function StatsBand({ id, title, blurb, stats }: StatsBandProps) {
id={id}
ref={ref}
className="relative overflow-hidden py-24"
style={{ background: '#003a45' }}
style={{ background: 'var(--pal-teal-1)' }}
>
<div className="relative mx-auto max-w-6xl px-6">
<h2 className="font-display text-3xl font-bold text-white md:text-4xl">
@ -65,7 +65,7 @@ export default function StatsBand({ id, title, blurb, stats }: StatsBandProps) {
>
<dd className="font-display text-4xl font-extrabold leading-none text-white sm:text-5xl md:text-6xl">
<CountUp value={stat.value} run={seen} />
{stat.suffix && <span className="text-[#f0bd4f]">{stat.suffix}</span>}
{stat.suffix && <span className="text-[var(--pal-amber-2)]">{stat.suffix}</span>}
</dd>
<dt className="mt-3 text-sm font-semibold uppercase tracking-widest text-white/70">
{stat.label}