Generate a production-ready Next.js 14 (App Router) app for AMPAM Consular Court with multi-page UX and API routes. Must run locally and on Vercel cleanly on first deploy. Branding, colors, masthead, and logo handling are mandatory. Include a simple “Logo Manager” that stores two uploaded logos as base64 in the database and serves them to all pages.
STACK
- Next.js 14 (App Router) + TypeScript
- Tailwind CSS + shadcn/ui
- Prisma ORM with SQLite locally and Postgres in production
- next-auth (credentials) for basic admin gate (single passphrase in Settings)
- Zod for validation
- QR optional (client) not required at first—focus on core flows
- File storage for attachments not required at first
- Security headers via middleware (CSP safe for our usage)
BRANDING (MANDATORY)
- Masthead (exact): Allodium Moroccan Praedium Anti Michigan
- Subtitle: AMPAM Consular Court – De Jure Consular Jurisdiction
- Colors: brand.black #0B0B0B; brand.ink #111111; brand.gold #CFAE2C; brand.blue #0A3D91; …