## Goal Show a short list of matching wines while the user types in the search field on the landing page and in the header, so they can go straight to a wine. This is optional and comes after the required features (filters, detail page and reviews). ## Tasks - [ ] Choose a tested combobox library, or justify building our own - [ ] Fetch about 5 wines with `wines(search, first: 5)` and only the fields shown - [ ] Debounce requests (about 300 ms) and use the Apollo cache - [ ] Link each suggestion to the wine detail page - [ ] Add a last option that opens all results on `/sok` - [ ] Handle loading, no hits and API errors without blocking normal search - [ ] Make it work on mobile and at 320 px width ## Accessibility - [ ] Follow the WAI-ARIA combobox pattern - [ ] Support arrow keys, Enter and Escape - [ ] Announce the number of suggestions to screen readers - [ ] Keep the search usable with suggestions closed - [ ] Test with a keyboard and a screen reader ## Sustainability - [ ] Measure extra requests and JavaScript, and update the budget in the README - [ ] Explain in the README why the feature is worth the extra data ## Done when - [ ] Suggestions work on the landing page and in the header, locally and on the VM - [ ] Unit tests, axe and an e2e flow cover the feature - [ ] Lint, format, tests and build pass, and the README is updated Markdown file formatted with AI