# Night Bloom

A deep indigo night with a soft violet and orchid glow blooming behind the content, like stage lights through haze. Headlines are chunky, rounded and geometric, set big and centred. The main action is always a glowing white pill with violet text, often with a small mono "command chip" under it that holds a link or code you can copy. Announcements arrive as split pills: a little gradient tag on the left and a plain message on the right. Cards are deep navy with a faint lilac light along their top edge. It feels bold and friendly at the same time, more late-night venue than server room.

Use it for: music and live events, creator tools, community and membership products, night-time apps (sleep, astronomy, nightlife), launches that want a bit of glamour, developer tools that want to feel warm instead of cold. Avoid it for: healthcare and finance products that need to feel sober, children's products, editorial sites with long reading, anything that needs a light theme or lots of photography.

## How to use this file

Give this file, `tokens.css` and `components.css` to your AI coding tool and say:

> Build [your page] in the Night Bloom style. Follow DESIGN.md exactly. Use the tokens in tokens.css and the classes in components.css; don't invent new colors, fonts, radii or shadows.

`demo.html` (a landing page), `pricing.html`, `blog.html` and `signup.html` are complete example pages built only with the kit, for an invented tour-booking app for independent bands called Roadsheet.

## Fonts

All free on Google Fonts:

```html
<link href="https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800&family=Figtree:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
```

| Role | Font | Use |
|---|---|---|
| Headlines | Outfit 800 | Display, h1, h2, prices and stats. Tight tracking (-0.02em), sentence case, short lines. h3, FAQ questions and quotes use 600 to 700. |
| Body and UI | Figtree 400 to 600 | Body at 400, leads in the haze colour, buttons and labels at 600. |
| Mono | JetBrains Mono 400 to 500 | Eyebrows (uppercase, 0.08em tracking), badges, meta lines, table heads, the command chip and inline code. |

## Color

| Token | Hex | Role |
|---|---|---|
| `--nb-night` | #0C0A22 | The page |
| `--nb-deep` | #130F33 | Cards, panels, plans, the command chip |
| `--nb-raise` | #1C1748 | Icon tiles, chips, hover, inline code |
| `--nb-line` | #2C2563 | Hairlines and card borders |
| `--nb-line-bright` | #463C8E | Outline buttons, input borders, featured cards |
| `--nb-text` | #F5F2FF | Headlines, main text and the white pill |
| `--nb-haze` | #B8B0E0 | Leads and body copy |
| `--nb-dim` | #7D74AE | Meta, captions, placeholders |
| `--nb-indigo` | #3B2FC2 | The cool side of the bloom |
| `--nb-violet` | #7F3FE8 | Main accent: text on the white pill, check marks, list markers |
| `--nb-orchid` | #D04FC0 | The warm side of the bloom, gradient ends, one badge style |
| `--nb-lilac` | #B9A2FF | Links, icons and eyebrows on dark |
| `--nb-mint` | #5EE0B0 | Success and "confirmed" only |
| `--nb-coral` | #FF7A8A | Errors only |

Gradients: `--nb-bloom` is the main glow (indigo top left, violet right, a little orchid low down). `--nb-bloom-soft` is a quieter version for inner sections and article heads. `--nb-chip-grad` (indigo to violet to orchid) fills split tags, avatars and the glow button. `--nb-text-grad` (lilac to orchid) colours one phrase per headline. `--nb-edge-grad` is the thin light line along the top of cards.

Rules:
- The page is always night. Colour comes from the bloom behind sections, never from flat coloured section fills.
- The white pill is the main action. Use one per view.
- Only one phrase per page gets `.nb-glow-text`, usually the second half of a headline.
- Mint and coral are for states only, never decoration.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--nb-text-display` | clamp(40px, 6.2vw, 80px) | Landing hero, two lines at most |
| `--nb-text-h1` | clamp(36px, 5vw, 60px) | Page titles and CTA titles |
| `--nb-text-h2` | clamp(28px, 3.4vw, 42px) | Section headings |
| `--nb-text-h3` | 20px | Card, plan and step names |
| `--nb-text-lead` | 19px | Haze lead, max 560px |
| `--nb-text-body` | 16px | Body |
| `--nb-text-small` | 14px | Captions, chips, meta |
| `--nb-text-micro` | 12px | Mono eyebrows and badges |

Headlines are short, confident and plain ("Book the whole tour from one page"). No uppercase headlines and no italics.

## Shape and space

- Radius: 999px for buttons, split pills, toggles, badges and avatars. 22px for cards, plans, panels and windows. 14px for icon tiles, 10px for inputs and the command chip.
- Borders: 1px `--nb-line` on everything that sits on the page. Featured items move up to `--nb-line-bright`.
- Shadows: `--nb-shadow-glow` (a lilac ring plus a violet glow underneath) for the featured plan, the sign-up panel, product windows and one highlighted card. `--nb-shadow-btn` under the white pill. Nothing else gets a shadow.
- Light: put `.nb-bloom` on a hero, CTA or sign-up `main`; it paints the glow behind and fades it into the page at the bottom. Add an `.nb-stars` layer for a few faint specks. Use `.nb-bloom--soft` on inner sections.
- Layout: 1200px container with 32px gutters (20px on phones), 720px for articles. Sections are 96px apart; heroes get 128px on top. Heroes and CTAs are centred; content sections can split into two columns.

## Components (in components.css)

| Class | What it is |
|---|---|
| `.nb` | Put on `<body>`: night page, Figtree, clipped sideways overflow |
| `.nb-container`, `.nb-narrow`, `.nb-section`, `--tight`, `.nb-center` | Layout |
| `.nb-display`, `.nb-h1`, `.nb-h2`, `.nb-h3`, `.nb-lead`, `.nb-eyebrow`, `.nb-muted`, `.nb-dim`, `.nb-small`, `.nb-mono`, `.nb-glow-text` | Type |
| `.nb-btn`, `--light`, `--glow`, `--sm`, `--wide`, `--block`, `.nb-link`, `.nb-actions`, `.nb-stack` | Outline pill, white pill, gradient pill, sizes, a lilac link, and button rows or a stacked button plus chip |
| `.nb-split`, `__tag`, `__msg` | Split announcement pill |
| `.nb-cmd`, `__prompt`, `__text` | Mono command chip with a copy button |
| `.nb-nav`, `__inner`, `__links`, `__end`, `.nb-wordmark` | Sticky blurred top navigation |
| `.nb-bloom`, `--soft`, `.nb-stars` | The signature glow and star specks |
| `.nb-hero` | Centred hero |
| `.nb-logos` | Centred wall of customer names in mixed type |
| `.nb-head` | Section head |
| `.nb-grid`, `--2`, `--3`, `.nb-card`, `--glow`, `.nb-icon` | Card grid with top edge light and icon tiles |
| `.nb-badge`, `--violet`, `--mint`, `--orchid`, `.nb-dot` | Mono status badges |
| `.nb-window`, `__bar`, `__body`, `.nb-row`, `__date`, `__name`, `__sub` | A product window drawn in HTML |
| `.nb-stat__num`, `.nb-stat__label` | Big numbers |
| `.nb-quote`, `.nb-author`, `.nb-avatar` | Testimonial |
| `.nb-toggle`, `.nb-plans`, `.nb-plan`, `--featured`, `__price`, `.nb-checks` | Pricing |
| `.nb-table-wrap`, `.nb-table`, `.nb-yes` | Comparison table |
| `.nb-faq` | Details and summary list |
| `.nb-article__head`, `.nb-meta`, `.nb-prose`, `.nb-figure`, `__art` | Article parts (blockquotes get a gradient bar) |
| `.nb-form`, `.nb-field`, `.nb-row-2`, `.nb-label`, `.nb-input`, `.nb-select`, `.nb-hint`, `.nb-check`, `.nb-divider`, `.nb-panel` | Forms |
| `.nb-cta` | Closing call to action |
| `.nb-footer`, `__grid`, `__base` | Footer |

## Pages in this kit

- `demo.html`: landing page with a centred bloom hero (split pill, display headline, white pill, command chip), a logo wall, a how-it-works split with a tour window, a feature card grid, stats, a testimonial and a bloom CTA.
- `pricing.html`: centred header with one glowing phrase and a billing toggle, three plans with the middle one featured, a comparison table, FAQ and CTA.
- `blog.html`: a tour diary article with a soft bloom head, a route figure drawn in SVG, a gradient-bar pull quote and two related cards.
- `signup.html`: two columns inside a bloom, selling points on the left and a glowing form panel on the right.

## Page recipe

1. `.nb-nav` with the wordmark, links and a white `--sm` pill.
2. A `.nb-bloom` header with `.nb-stars` and a centred `.nb-hero`: `.nb-split`, `.nb-display`, `.nb-lead`, then `.nb-stack` holding a `--light --wide` button and a `.nb-cmd`.
3. A `.nb-logos` wall under a short haze line.
4. Content sections, each with one idea: a split with a `.nb-window`, a `.nb-grid--3` of cards (one `--glow`), a row of stats, a quote card.
5. A `.nb-bloom` `.nb-cta` with an h1, a lead and two buttons, then `.nb-footer`.

Pricing recipe: bloom header with eyebrow, h1 with one `.nb-glow-text` phrase, lead and `.nb-toggle`; then `.nb-plans` with the middle plan `--featured` holding the only white button; then a table and a two-column FAQ.

Article recipe: `.nb-bloom--soft` header around a `.nb-narrow` `.nb-article__head` (meta with a badge, h1, lead, author); then a `.nb-figure` drawn with SVG on a bloom; then `.nb-prose` with h2s every few paragraphs and one blockquote.

Sign-up recipe: a `.nb-bloom` `main` with a two-column grid; a split pill, h1 with a glow phrase and three icon points on the left; a `.nb-panel` with the form on the right, white submit button, `.nb-divider` and an outline alternative.

## Don'ts

- Don't fill sections with flat violet or put the bloom behind body text in articles. Glow goes behind heroes, CTAs and empty space.
- Don't use more than one white pill per view, or more than one glowing headline phrase per page.
- Don't make corners square. Everything is pill-shaped or softly rounded.
- Don't use uppercase or italic headlines. Uppercase is only for mono eyebrows and table heads.
- Don't add colourful photos or illustrations. Draw with lines, dots and the gradient.
- Don't use em dashes in copy.
