Chapter 7, Exercise 1: Accessibility review of the library event page ===================================================================== Problem 1: Light grey (#aaaaaa) text on white Who it affects: readers with low vision, anyone in bright light, older readers. Why: #aaaaaa on white is roughly 2.3:1 (check by running a contrast checker), well under the 4.5:1 minimum for body text. Fix: darken the text to at least #767676 (about 4.5:1; check) and preferably #595959 (7:1, as measured in the chapter). Problem 2: 12px text Who it affects: low-vision readers, anyone on a small phone. Why: tiny text is hard to read even with good contrast, and a fixed pixel size may ignore the reader's browser font-size setting. Fix: set body text to 1rem (normally 16px) and captions no smaller than about 0.875rem. Use rem, not px. Problem 3: Justified paragraphs about 120 characters wide Who it affects: everyone, but especially readers with dyslexia or tracking difficulties. Why: a 120-character line is far beyond the comfortable 45-75, so the eye loses its place on the return sweep; justification adds uneven gaps ("rivers") between words. Fix: max-width: 65ch; text-align: left. Problem 4: All-caps italic event descriptions Who it affects: dyslexic readers and everyone reading more than a few words. Why: all caps removes the word shapes lower-case gives us, and italic slows reading further. Together they are the slowest combination. Fix: sentence case, upright text. Keep italic or caps for a single short label at most. Problem 5: Viewport setting blocks pinch-zoom Who it affects: low-vision readers on phones, who rely on zoom. Why: it removes the reader's main tool for fixing every other problem here. Fix: use and remove user-scalable=no and maximum-scale=1. Problem 6: "Sold out" shown only as a red word Who it affects: colour-blind readers (red can look like the surrounding text) and screen-reader users. Why: colour alone carries the meaning. Fix: write the words "Sold out" in plain text, add a second cue such as a bold label or an icon with a text alternative, and keep the colour as reinforcement only. Check the red against its background for contrast. The three fixes to make first, and why 1. Remove the zoom block (Problem 5): it is one line, and it unlocks every other adjustment for readers who need it. 2. Fix text colour and size (Problems 1 and 2): they affect nearly every visitor on every line of the page. 3. Fix the line length and alignment (Problem 3): a large reading gain for a small CSS change. The remaining fixes (caps/italic and the "sold out" cue) come straight after; they are quick, but they affect fewer passages of text. Verification steps after fixing: zoom to 200% and check nothing is cut off or overlapping; resize to phone width; switch the browser's default font size up and confirm the text follows; run a contrast check on every colour pair.