# NikahCard — locked design system

Authority: this file is the brand lock. Any design skill, agent, or redesign
must work **within** it — never re-palette, re-font, or re-radius the product.
For the living roadmap see `progress/MASTER_PLAN.md` (git-ignored).

## Stack constraints (hard)

- Laravel + Blade + **vanilla CSS/JS in `public/`**. No Tailwind, no React,
  no build pipeline, no npm. All assets are local (`public/fonts`,
  `public/assets`, `public/css`, `public/js`).
- New styling goes into existing token/utility classes in
  `public/css/app.css` or a scoped section — never inline hex, never a new
  font-family, never a CDN link.
- Invitations are **live-rendered** by `public/js/engine.js` from WeddingData
  + per-template tokens. Template artwork palettes are authored per design and
  are not governed by the platform palette — but the surrounding chrome is.

## Palette (`:root` in `public/css/app.css`)

| Token | Value | Use |
|---|---|---|
| `--paper` | `#faf7f1` | page background |
| `--paper-deep` | `#f1ebde` | banded sections |
| `--ink` | `#1c1813` | primary text |
| `--muted` | `#7a7162` | secondary text |
| `--line` / `--line-strong` | `#e5ddcd` / `#cec4b0` | hairlines/borders |
| `--surface` | `#ffffff` | cards |
| `--accent` / `--accent-deep` | `#0e5c46` / `#0a4536` | primary actions, links (emerald) |
| `--accent-soft` | `#e3efe8` | tinted fills |
| `--gold` / `--gold-deep` / `--gold-soft` | `#b08d3e` / `#8f6f2c` / `#f3ead4` | **ornament only** — invitation detail, seals, premium marks; never generic chrome |
| `--danger` | `#b3402f` | destructive/error |

## Type

- Display: `'Playfair Display Variable'` (serif, weight ~500, tight tracking)
- Body/UI: `'Outfit Variable'`
- Bengali: `'Noto Sans Bengali'` (UI) / `'Noto Serif Bengali'` (display)
- Bengali + English are first-class everywhere — every new surface must
  survive `.bn` text and Bangla digits.

## Shape & motion

- Radii: `--r-sm 10 / --r-md 16 / --r-lg 24 / --r-xl 32`, plus pill chips.
- Elevation: soft tinted shadows; `--shadow-gold` only for gold moments.
- Motion: small lifts (`translateY(-1px)`), soft transitions, scroll reveals
  (`.reveal-io`). Respect `prefers-reduced-motion`.

## Three surfaces, three personalities (from MASTER_PLAN)

| Surface | Character | Dials (variance/motion/density) |
|---|---|---|
| Marketing (`/`, `/designs`, `/pricing`, `/print`) | expressive, editorial, warm | ~7 / ~5 / ~3 |
| Tool surfaces (`/editor`, `/account`) | calm, task-focused, honest states | — / ~2 / ~5 |
| Admin (`/admin`) | dense, legible, auditable | — / ~1 / ~7 |

## Do not

- No dark-mode conversion of invitation artwork; template palettes are authored.
- No generic AI defaults: purple-blue gradients, glassy hero cards, eyebrow
  labels in tracked caps, invented metrics/testimonials, emoji as icons.
- No new fonts, no CDN assets, no framework imports.
- Don't restyle locked chrome (header/footer/logo/legal copy) silently.
