# 16 · Accessibility and long sessions **Across the app** · **Harness** `npm run contrast`, `npm run measure`, `npm run luminance` Two audiences that overlap more than they look: people who need the interface to accommodate them, and people who will sit in it for six hours. Both are served by the same things — contrast, size, stillness, and not being shouted at. ## What is today — verified, not assumed | Claim | Evidence | |---|---| | Every text pairing meets WCAG AA | `npm run contrast`: **37 pairings pass**, both themes, every interactive state | | Contrast is measured on rendered pairings | Alpha is composited over ancestors; hover measured separately | | Reading measure is 68 characters | `npm run measure` at 10, 16 and 22 px, normal and focus mode | | Dark-mode brightness is budgeted | `npm run luminance`: no surface > 4,000 px² exceeds luminance 0.15 | | Reduced motion substitutes, not silences | `transform: none`, `opacity: 1` verified under the OS setting | | Materials are gated | Reduced-transparency and a manual override produce identical geometry | | Controls are capsules, surfaces are not | `npm run audit` | | No glass samples glass | `npm run luminance` walks every route | ## Where it falls short 1. ~~The command palette does not focus its own search field, and nothing traps focus.~~ **Fixed.** `src/lib/focus.ts` provides `useSurfaceFocus`, which waits for the surface to actually report `visible` before focusing, traps `Tab` inside while open, and restores the trigger on close. Measured after the fix: focus is on the palette input on open, is still inside after fourteen `Tab` presses, and returns to the trigger on `Escape`. Applied to the palette, the shortcuts dialog, the sampling drawer and the setup modal. 2. **Closed overlays are correctly inert, open ones are not.** `inert={!open}` is applied on the palette, context rail, sampling drawer, shortcuts dialog and the serving sheet — so a *closed* surface is out of the tab order, which is right. An *open* one still lets focus walk out into the page behind it. 3. **Landmarks are adequate; the outline is not.** One `
`, one `