# Painted Night

A calm product after dark. The page is an ink-violet night, and the top of every page is one big rounded panel of painted sky: a soft violet gradient, a fine field of warm stars, and dusty mauve clouds with ragged, brushed edges and a rose light on their tops. Headlines are set in a soft bookish serif (Newsreader) over plain Inter, so the page reads like a storybook that happens to be software. One violet button with a lighter rim leads, a near-black button sits beside it, and a dark app window rises out of the bottom of the sky to show the product as a board of linked cards. It feels quiet, a little dreamy and very sure of itself.

Use it for: products people use in the evening or outdoors (travel, camping, astronomy, sleep, events), calm developer and planning tools, booking sites, creative tools, launches that want atmosphere without loud color. Avoid it for: bright daytime brands, food and retail with lots of photos, kids' brands that need primary colors, dense dashboards.

## 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 Painted 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` (a landing page), `pricing.html`, `blog.html` and `signup.html` are complete example pages built only with the kit, for an invented dark-sky camping site called Lowstar.

## Fonts

All free on Google Fonts:

```html
<link href="https://fonts.googleapis.com/css2?family=Newsreader:opsz,wght@6..72,400;6..72,500&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap" rel="stylesheet">
```

| Role | Font | Use |
|---|---|---|
| Headlines | Newsreader 500 | Hero, section titles, prices, quotes, article headings. Slight negative tracking (-0.015em). |
| Body and UI | Inter 400 to 600 | Body at 400, nav, buttons and labels at 500, card titles at 600. |
| Small print | IBM Plex Mono 400 to 500 | Eyebrows (uppercase, tracked), badges, table heads, log lines, timestamps. 11 to 12px. |

## Color

| Token | Hex | Role |
|---|---|---|
| `--pn-night` | #13111D | The page |
| `--pn-void` | #0C0A13 | App windows, dark buttons, the sign-up card |
| `--pn-panel` | #17141F | Cards, plans, nodes |
| `--pn-line` | #2D2840 | Every 1px border |
| `--pn-sky-mid` | #2A2347 | The middle of the painted sky gradient |
| `--pn-cloud` | #4E3E63 | Cloud bodies |
| `--pn-cloud-lit` | #7D566F | Rose light on cloud tops |
| `--pn-star` | #F3E8CF | Stars, list markers, inline code |
| `--pn-text` | #EFEBF7 | Headlines and body |
| `--pn-dim` | #A39CB6 | Leads, body copy in cards, nav links |
| `--pn-violet` | #6A4BD6 | The one accent: the main button, focus, active node |
| `--pn-violet-rim` | #9A85F2 | The button rim, eyebrows, link underlines, icons |
| `--pn-moss` | #63C99D | Status only ("booked", "pass") |
| `--pn-amber` | #E7B35A | Warnings in logs only |

Rules:
- Color comes from the sky, not from fills. Big areas are night, sky or void; violet is for one button per screen and small marks.
- The rose cloud light is the only warm color in large areas. Never use it on text or buttons.
- Moss and amber appear only as tiny status words or dots.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--pn-text-hero` | clamp(40px, 6vw, 72px) | Centred serif titles, two lines |
| `--pn-text-h2` | clamp(30px, 3.8vw, 46px) | Section titles, the article title |
| `--pn-text-h3` | 19px | Card and plan names (Inter 600) |
| `--pn-text-lead` | clamp(17px, 1.6vw, 20px) | Lead under titles |
| `--pn-text-body` | 15px | Body and UI |
| `--pn-text-micro` | 12px | Mono small print |

Headlines are gentle, concrete and a little poetic ("Find a field where the sky goes all the way down"). Leads say plainly what the product does.

## Shape and space

- Radius: 6px buttons and inputs, 10px nodes and tabs, 14px cards, plans and windows, 22px the sky panel, pill for badges.
- The sky panel is inset 16px from the page edges with a 1px border, so it reads as a framed painting.
- Borders: 1px `--pn-line` everywhere. Windows use a line ring in their shadow instead.
- Shadows: windows get a deep drop shadow (`--pn-shadow-window`); the violet button has an inner rim and a violet glow (`--pn-shadow-btn`); nodes have a bright ring (`--pn-shadow-node`), and the active node adds a soft violet halo.
- Sections: 72px to 112px vertical padding. Container 1160px with 24px gutters. Text column 660px.
- Motion: clouds drift very slowly (60s), hero content rises 14px on load, button arrows slide 3px on hover. All of it stops for reduced motion.

## Components (in components.css)

| Class | What it is |
|---|---|
| `.pn` | Put on `<body>`: night page, Inter, light text |
| `.pn-nav`, `__links`, `__end`, `.pn-logo`, `.pn-hide-sm` | Plain nav above the sky |
| `.pn-hero-title`, `.pn-h2`, `.pn-h3`, `.pn-lead`, `.pn-eyebrow`, `.pn-micro`, `.pn-link` | Type |
| `.pn-btn`, `--violet`, `--dark`, `--ghost`, `--sm`, `--lg`, `--block`, `.pn-arrow` | Buttons |
| `.pn-badge`, `--violet`, `--moss`, `.pn-dot` | Mono pill badges and status dots |
| `.pn-sky`, `--short`, `.pn-clouds`, `.pn-cloud`, `--lit`, `--shade`, `--streak` | The painted sky panel and its SVG clouds |
| `.pn-hero`, `__actions`, `__note` | Centred hero inside the sky |
| `.pn-window`, `--whole`, `__bar`, `__crumbs`, `__tabs`, `.pn-avatar-dot` | The app window |
| `.pn-canvas`, `__links`, `__grid`, `.pn-node`, `--on`, `__head`, `__icon`, `__meta` | A dotted board of linked cards |
| `.pn-log` | Mono log lines in a window, with `.ok` and `.warn` |
| `.pn-logos` | A row of italic serif names |
| `.pn-grid--2/3`, `.pn-card`, `__icon`, `.pn-split`, `.pn-list` | Cards, split layout, star-marked lists |
| `.pn-quote`, `.pn-avatar` | Serif testimonial |
| `.pn-tabs` | Segmented tabs (`aria-selected="true"` is active) |
| `.pn-plans`, `.pn-plan`, `--featured`, `__price`, `__amount`, `__per` | Pricing; the featured plan is a small sky |
| `.pn-table-wrap`, `.pn-table`, `.pn-faq` | Comparison table and `<details>` FAQ |
| `.pn-auth`, `.pn-form`, `.pn-field`, `.pn-label`, `.pn-input`, `.pn-select`, `.pn-hint`, `.pn-check`, `.pn-or` | Forms |
| `.pn-article`, `.pn-byline` | Long-form post |
| `.pn-cta` | Centred call to action inside a `.pn-sky--short` |
| `.pn-footer`, `__grid`, `__base` | Footer |
| `.pn-rise`, `--2`, `--3` | Load-in motion |

### Drawing the clouds

Each sky holds one `<svg class="pn-clouds" preserveAspectRatio="xMidYMid slice">` with groups of overlapping ellipses: `.pn-cloud--shade` underneath, `.pn-cloud` bodies, `.pn-cloud--lit` patches near the tops, and a few `.pn-cloud--streak` paths for thin wisps. Give every group a `filter` that points at an `feTurbulence` plus `feDisplacementMap` (scale 70) and a 1.2px blur, declared in that SVG's `<defs>` with a unique id. That filter is what turns plain ellipses into brushed, ragged clouds. Keep clouds at the sides and bottom so the title sits in clear sky.

## Pages in this kit

- `demo.html`: landing page. Nav, sky hero with a serif title and two buttons, an app window rising from the sky with a board of linked nodes, a row of host names, a split with a forecast log, stats, three cards, two serif quotes, a short sky CTA, footer.
- `pricing.html`: sky header with tabs, three plans overlapping the bottom of the sky with the middle one a starry `--featured` plan, a comparison table, FAQ, sky CTA.
- `blog.html`: sky header with a badge, title, byline and a log window as the figure, a mono caption, article with a serif pull quote, related posts.
- `signup.html`: one void sign-up card floating in a full sky.

## Page recipe

1. `.pn-nav` on the plain night page.
2. A `.pn-sky` with its cloud SVG and a centred `.pn-hero`: serif title in two lines, a lead with one underlined link, a `--violet` and a `--dark` button.
3. A `.pn-window` inside the sky, flush with its bottom edge, showing the product doing its job (a canvas of nodes, a log, a list).
4. Plain night sections below: logos, a split, cards, quotes. Use serif for titles and numbers only.
5. Close with a `.pn-sky--short` holding a `.pn-cta`, then the footer.

Pricing: tabs in the sky, plans pulled up to overlap its bottom edge, the featured plan's button `--violet` and the others `--dark`. Table and FAQ on the night page.

Article: badge, serif title, byline and a small window in the sky. Body in `.pn-article` with violet underlines, star-colored code and a violet-ruled serif quote.

Sign up: one `.pn-auth` card centred in a tall sky, social buttons in `--dark`, `.pn-or`, the form and a `--violet --block` submit.

## Don'ts

- Don't use the serif for body text, buttons or labels.
- Don't put more than one violet button on a screen.
- Don't use flat, smooth cloud shapes: always run them through the painted filter.
- Don't fill large areas with violet or rose, or add other bright colors.
- Don't use photos in the sky; it is always drawn.
- Don't let the sky touch the page edges; keep the 16px inset and the rounded corners.
- Don't use em dashes in copy.
