Sustainability through design choices, and we have to be able to point at them. - [x] plain CSS, no UI framework (smaller bundle) - [x] code-split the detail route - [x] no request until Search is pressed, and `cache-first` fetch policy - [x] `prefers-color-scheme` (dark mode saves energy on OLED) - [x] bundle-size budget enforced in CI **Acceptance:** the measures are listed in the README with the numbers (bundle size, request count for a typical search). ## Two of these already hold Plain CSS is the project's rule and `client/` has no UI framework at all. `SearchForm.tsx` debounces 300 ms and cancels the pending timer on Enter, tested in `SearchForm.test.tsx`. `useQuery` is not given a `fetchPolicy`, which means Apollo's default `cache-first` applies; setting it explicitly would be a fair half-hour, but the behaviour is already what this asks for. ## One thing I dropped and why The checklist above used to include "lazy-loaded images, `width`/`height` set to avoid layout shift". There are no images. Album cover images are #23 and that is M4. Adding it back once #23 lands is the right moment, since the `width`/`height` attributes only mean something when the element exists. ## The code-split half is #11 Same code as `route '/album/:id' (code-split as its own chunk)` in #11. If rachelks builds it as its own chunk there, this issue only has to measure it. Do not build it twice. ## Acceptance needs numbers, so collect them as you go Bundle size and request count are the whole point of the acceptance line, and both are cheap to record while you are in the code. `pnpm build` gives the bundle, and the request count for a typical search is visible in the network panel against a local `pnpm --filter @t19/server dev`. Both are local, neither needs the VM. ## The debounce bullet was reworded It used to say "debounce + `cache-first` fetch policy (no wasted requests)" and both halves were true when #19 was written. The debounce is gone. #19 was changed so the query is committed on Search rather than after a pause in typing, which is a stronger version of the same idea: zero requests while someone is typing, not one per pause. The bullet now describes what the code does rather than the mechanism that was removed. ## Done, PR #59 All five boxes are ticked and the acceptance line is met. The measures and their numbers are in the README under "Sustainability measures". Two of them were already true and only needed recording: `prefers-reduced-motion` and the CI bundle budget (`ci.yml`, 512 000 bytes per JS chunk). The code-split half was #11's to build, and it is - `AlbumDetailPage-*.js` is a separate 3.73 kB chunk - so this issue only measured it, which is what the note below said to do. What this PR actually adds is the dark theme and the numbers. One thing worth knowing: the palette that came out of the first pass had `--border-strong` at `#556055`, which measures 2.5:1 against the surface. That is under the 3:1 a form-control border needs, so it became `#6b766b` at 3.4:1. Every ratio in the PR table is computed rather than assumed.