# Plum Night

A quiet, dreamy dark look for products people use at odd hours. The page is a deep plum night. The hero lives in a rounded sky panel: a scatter of stars, a small moon with a soft glow, and layered storybook clouds whose tops are lit in dusty rose. A centered serif headline sits in the middle of the sky, and a real app window rises out of its bottom edge, cut off by the panel so it feels like it is floating up. Everything else is calm: plum cards with hairline borders, one soft iris purple for every action, and a warm moon yellow for the one thing that should catch the eye.

Use it for: healthcare and shift work, scheduling, sleep and wellbeing, HR and people tools, public services, any product that wants to feel kind, gentle and a little magical without being childish. Avoid it for: loud consumer launches, sports, finance dashboards that need dense data, anything that should feel urgent or high energy.

## 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 Plum Night 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` is a complete landing page built only with the kit. `pricing.html`, `blog.html` and `signup.html` show the same product (Owl Hours, night rotas for hospital wards) on other page types. Copy the cloud `<svg>` from any page: it is the same drawing everywhere.

## Fonts

All free on Google Fonts:

```html
<link href="https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,500;8..60,600&family=Figtree:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
```

| Role | Font | Use |
|---|---|---|
| Headlines | Source Serif 4, 600 | Hero, page titles, section headings, prices, quotes (500). Tracking -0.02em, balanced wrapping, usually centered. |
| Body and UI | Figtree 400 to 600 | Paragraphs, nav, buttons (500), card titles (600), labels. |
| Code | JetBrains Mono 400 | Inline code and IDs only. |

## Color

| Token | Hex | Role |
|---|---|---|
| `--pn-night` | #16121F | Page background |
| `--pn-deep` | #0F0C17 | App windows, inputs, footer, panel bands |
| `--pn-panel` | #1E1929 | Cards and plans |
| `--pn-glass` | deep at 72% | Frosted notes over a sky |
| `--pn-raised` | #282236 | Hover, rows, quiet chips |
| `--pn-line` / `--pn-line-strong` | pale lilac at 10% / 20% | Hairlines; ghost buttons and inputs |
| `--pn-sky-top` / `--pn-sky-low` | #1B1730 / #3A2A4A | Top and horizon of the sky gradient (`--pn-sky`) |
| `--pn-cloud` / `--pn-cloud-deep` | #4B3B5E / #2F2541 | Cloud body, far clouds |
| `--pn-cloud-lit` | #A77C93 | Lit cloud tops, avatar gradients |
| `--pn-text` / `--pn-text-2` / `--pn-text-3` | #F2EDF6 / #B6ADC2 / #7D748C | Headlines, body, metadata |
| `--pn-iris` | #6E4FCB | Primary button fill |
| `--pn-iris-lit` | #A58DF2 | Links, eyebrows, icons, active tab underline, focus |
| `--pn-moon` | #F3D9A4 | The moon, the eyebrow dot, one highlight badge, blockquote rule |
| `--pn-mint` / `--pn-coral` | #7FD6B0 / #EE8A7A | Success and error only |

Rules:
- The page is plum from edge to edge. Never use pure black or a neutral gray.
- Iris is the only action color. Moon yellow appears at most two or three times per screen.
- Tinted badges use the `-tint` tokens (14%) with the full color as text.
- Gradients only in the sky, the iris glow at the top of featured cards, and chart bars.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--pn-text-hero` | clamp(40px, 5.6vw, 72px) | Hero headline, serif 600, centered |
| `--pn-text-h1` | clamp(36px, 4.4vw, 56px) | Page titles, call to action sky |
| `--pn-text-h2` | clamp(28px, 3.2vw, 40px) | Section headings |
| `--pn-text-h3` | 20px | Card and plan titles, Figtree 600 |
| `--pn-text-lead` | 19px | Paragraph under a headline, max 36em |
| `--pn-text-body` | 16px | Body, line-height 1.6 |
| `--pn-text-small` / `--pn-text-micro` | 14px / 12px | Meta, captions, table text, rota cells |

## Shape and space

- Radius: 8px buttons and inputs, 12px cards and windows, 20px sky panels (16px on phones), full pill for badges and toggles.
- Borders: 1px `--pn-line` on every card, window and table. No heavy outlines.
- Shadows: only app windows (`--pn-shadow-window`) and the primary button (`--pn-shadow-btn`, an inner highlight plus an iris glow).
- The sky panel is inset 16px from the page edges (8px on phones), so plum shows around it like a frame.
- App windows carry a faint dot grid in their body. Their bottom corners go square when they rise out of a sky.
- Space: container 1200px, gutters 32px (18px on phones), sections 112px apart (72px on phones), article measure 680px.
- Motion: a 12px rise on load and a very slow drift on the far clouds. Respect reduced motion.

## Components (in components.css)

| Class | What it is |
|---|---|
| `.pn` | Body class: plum background, Figtree, clips sideways overflow |
| `.pn-container`, `.pn-narrow`, `.pn-center`, `.pn-grid-2`, `.pn-grid-3` | Layout |
| `.pn-section`, `.pn-section--panel`, `.pn-section-head`, `.pn-pt-0`, `.pn-pb-0`, `.pn-mt-*` | Section spacing, a deep band with hairlines, heading block, spacing helpers |
| `.pn-hero-title`, `.pn-h1`, `.pn-h2`, `.pn-h3`, `.pn-h4`, `.pn-lead`, `.pn-small`, `.pn-dim`, `.pn-text` | Type |
| `.pn-eyebrow` | Iris label with a glowing moon dot |
| `.pn-u` | Soft underline for a phrase in a lead |
| `.pn-btn`, `--primary`, `--quiet`, `--lg`, `--block`, `.pn-arrow`, `.pn-link` | Buttons and text link |
| `.pn-nav`, `.pn-logo`, `.pn-logo-mark`, `.pn-nav-links`, `.pn-nav-actions` | Top bar sitting on the page, not in the sky |
| `.pn-sky`, `--short`, `.pn-sky-clouds`, `.pn-sky-inner`, `.pn-sky-window`, `.pn-sky-spacer`, `.pn-hero-actions` | The sky panel and its parts |
| `.pn-stop-*`, `.pn-f-*`, `.pn-s-*` | Gradient stops, fills and strokes for inline SVG, all from tokens |
| `.pn-window`, `.pn-window-bar`, `.pn-crumbs`, `.pn-tabs`, `.pn-window-body` | App window |
| `.pn-shift`, `--night`, `--long`, `--rest` | Small status cells for grids inside windows |
| `.pn-card`, `--glow`, `.pn-icon` | Cards and icon tiles |
| `.pn-badge`, `--moon`, `--mint`, `--plain` | Pill badges |
| `.pn-quote`, `.pn-cite`, `.pn-avatar` | Serif quote with an avatar |
| `.pn-form`, `.pn-field`, `.pn-label`, `.pn-input`, `.pn-select`, `.pn-hint`, `.pn-check`, `.pn-divider` | Forms |
| `.pn-toggle`, `.pn-plans`, `.pn-plan`, `--featured`, `.pn-plan-head`, `.pn-price`, `.pn-list`, `.pn-table-wrap`, `.pn-table` | Pricing |
| `.pn-faq` | Details list with iris plus and minus |
| `.pn-article`, `.pn-figure`, `.pn-meta` | Article body, figure, byline row |
| `.pn-cta` | Call to action inside a sky |
| `.pn-sky-note` | Frosted deep panel for copy that sits over clouds |
| `.pn-footer`, `.pn-footer-grid`, `.pn-footer-base` | Footer |
| `.pn-rise`, `.pn-drift` | Motion |

## Pages in this kit

- `demo.html`: landing page. Sky hero with a rota window rising out of it, ward names, three feature cards, a split swaps section, steps, a quote, a call to action sky.
- `pricing.html`: short sky with a billing toggle, three plans overlapping its bottom edge, a comparison table, FAQ, call to action sky.
- `blog.html`: short sky with title and byline, article with a bar chart in a window, a moon-ruled pull quote and a next-post card.
- `signup.html`: form on the plum page beside a tall sky that holds a frosted note with a quote and two badges.

## Page recipe

1. `.pn-nav` on the bare page.
2. A `.pn-sky` with the cloud SVG, an eyebrow, a centered serif headline, a lead and two buttons (primary iris, plain dark).
3. A `.pn-sky-window` holding a real view of the product, cut off by the bottom of the sky.
4. Quiet sections on plum: a proof row, a heading block and three cards, one `.pn-section--panel` band.
5. A serif quote, then a second sky with the call to action, then the footer.

Pricing recipe: `.pn-sky--short` with the title and the toggle, a `.pn-sky-spacer` at its bottom, then plans pulled up over the edge with a negative top margin. Feature the middle plan with `--featured` and one moon badge.

Article recipe: `.pn-sky--short` with eyebrow, `.pn-h1` and `.pn-meta`, then `.pn-article` on plum. Charts and diagrams go in a `.pn-window`. One blockquote at most.

Sign-up recipe: two columns, the form on the left at max 420px, a full-height `.pn-sky` on the right with a quote. On phones the sky moves below the form.

## Don'ts

- Don't put the nav inside the sky, and don't let the sky touch the page edges.
- Don't use more than one sky per screen height; never two skies next to each other.
- Don't draw realistic clouds or photos. Clouds are soft clustered circles with a lit top.
- Don't use bold sans headlines. Headlines are serif 600.
- Don't add a second accent color or bright gradients on buttons.
- Don't use em dashes in copy.
