# SEO and Accessibility

## SEO

- **Metadata:** every page exports `title`, `description`, and `alternates.canonical`. The root layout sets `metadataBase` from `siteConfig.url`, the title template `%s · Fort Adams Trust`, Open Graph defaults, and `twitter.card: summary_large_image`.
- **OG image:** currently `/images/og-default.svg` (placeholder). Many social platforms don't render SVG OG images. Add a real **1200×630 JPG/PNG** and update `layout.tsx`.
- **Sitemap:** `src/app/sitemap.ts` lists routes explicitly. Events get `changeFrequency: weekly`, others monthly; home has priority 1. **Add new routes by hand.**
- **Robots:** `src/app/robots.ts` allows everything except `/admin`, and links the sitemap.
- **Redirects:** `public/_redirects`. Map every indexed WordPress URL before launch to keep search rankings.
- **Headings:** one `h1` per page, with sections labelled by `aria-labelledby` headings.

## Accessibility (target: WCAG 2.1 AA)

Implemented patterns to keep when adding features:

| Area | Pattern |
| --- | --- |
| Landmarks | A skip link to `#main-content` (first focusable element), plus `header`/`main`/`footer`; the alert banner is `role="region"` with a label |
| Focus | Global brass `:focus-visible` outline; focus moves to confirmation messages after form success; Escape closes the mobile menu |
| Targets | Buttons and inputs at least 44px (`min-h-11`) |
| Images | Meaningful `alt` on all content images; `alt=""` for decorative; sponsor logos use "<Name> logo" |
| Forms | Visible labels bound with `useId`, required markers, `role="alert"` errors, `role="status"` success |
| Widgets | ARIA on the accordion, sticky tabs, filter pill groups (`role="group"` + `aria-label`), menu, and carousel dots |
| Media | Explore videos support WebVTT captions (`captionsPath`) and transcripts. **Add captions for all six videos.** |
| Motion | Smooth scroll only when `prefers-reduced-motion: no-preference` |
| Contrast | Gradient scrims behind text on photos; brass-on-navy and navy-on-sand palettes |
| Embeds | Titled iframes (Google Map, DAF widget) |

When adding UI, check it with keyboard only, with a screen reader (VoiceOver or NVDA), and with Lighthouse/axe.