# Dusk Pane

Calm, dreamy and quietly futuristic. The page is a soft off-white. Headlines are set in a transitional serif at regular weight, big and unhurried; everything else is a friendly grotesk, with a small mono face only for status labels inside app windows. The signature visual is the dusk pane: a huge rounded panel washed lilac to rose to peach, with app windows floating inside it. One is light and lists what's happening; the other is near-black, with a coral spark that marks the assistant, a short question and two pill answers. It feels like a lit screen held up against an evening sky: calm, a little magic, and very much in control.

Use it for: assistants and companion apps, wellness and sleep, smart home, personal software, calm consumer subscriptions, anything where a product talks to you and asks before it acts. Avoid it for: hard-sell retail, sport and energy drinks, dense dashboards, kids' games, anything that needs loud color or heavy 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 Dusk Pane 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 for an invented product, Nightfern (a wind-down companion that dims the lights and softens the house before bed), built only with the kit.

## Fonts

All free on Google Fonts:

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

| Role | Font | Use |
|---|---|---|
| Headlines | Source Serif 4 400 | Hero, section headings, prices, big numbers, quotes. Regular weight only, slight negative tracking. |
| Body | Figtree 400 to 600 | Paragraphs, nav, buttons, chips, cards, forms. 600 for card titles and form labels. |
| Labels | Geist Mono 400 | Tiny status lines and times inside app windows ("Listening softly", "21:40"). Never for headings or body. |

## Color

| Token | Hex | Role |
|---|---|---|
| `--dp-page` | #FAF9F7 | The page. Soft off-white, never pure white |
| `--dp-paper` | #FFFFFF | Cards, light windows, inputs, plans |
| `--dp-mist` | #F1EFF3 | Chips, toggles, alternate sections, chart fills |
| `--dp-line` | #E4E1E6 | Every border and divider |
| `--dp-ink` | #17151C | Text and primary buttons |
| `--dp-soft` | #5C5866 | Leads and secondary text |
| `--dp-night` | #1B1A21 | The assistant window, the featured plan, the callout, the closing band |
| `--dp-moon` | #ECE8F6 | Text and the "yes" pill on night surfaces |
| `--dp-lilac`, `--dp-rose`, `--dp-peach` | #C9C3E6, #E9C3D3, #F3D4BE | The dusk wash (`--dp-dusk`) and small chip dots only |
| `--dp-ember` | #E2643F | The one accent: the spark, one live dot, one key number, the blockquote rule |

Rules:
- The dusk gradient lives only inside `.dp-pane`, the logo mark, avatars and card swatches. Never as a page background, never on text or buttons.
- Night surfaces are for the assistant and the one thing you want chosen. One per screen, two at most.
- Ember appears once or twice per screen. The spark always means "the assistant is speaking".
- Buttons are near-black (`--primary`) or white with a border (`--outline`). On night, use `--moon`. No colored buttons.
- No hard shadows. Only floating windows and the featured plan cast `--dp-shadow-float`, a long soft plum-tinted drop.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--dp-text-hero` | clamp(40px, 5.6vw, 72px) | Hero headline, left aligned, tracking -0.025em, line-height 1.06 |
| `--dp-text-h2` | clamp(30px, 3.6vw, 46px) | Section headings, pricing and signup titles |
| `--dp-text-h3` | 20px | Card titles, Figtree 600 |
| `--dp-text-lead` | 19px | The sentence under a headline, soft, max 640px |
| `--dp-text-body` | 16px | Body; articles use 18px with line-height 1.72 |
| `--dp-text-micro` | 12px | Mono status labels inside windows |

Headlines are short, gentle and plain ("Let your evening wind itself down"). Sentence case, no period on the hero.

## Shape and space

- Radius: 10px buttons and inputs, 12px choices, 16px cards and windows, 32px dusk panes, pills on chips, badges and window answers.
- Borders: 1px `--dp-line` on cards, tables and the nav-less surfaces. Night surfaces have no border.
- Sections: 72px to 128px vertical padding. Container 1280px, text 700px. Gutter 28px, 16px on phones.
- Windows sit at the bottom edge of the pane with only their top corners rounded, or float fully rounded (`--float`) and overlap a neighbour by about 36px (`--lift`).
- Motion: color and border fades only, 0.2s. Nothing bounces.

## Components (in components.css)

- `.dp` on `<body>`: base font, page background, clips sideways overflow.
- `.dp-logo` with `.dp-logo__mark` (a small dusk tile with a night dot) and a lowercase wordmark.
- `.dp-nav`: sticky, translucent page color, no border. `.dp-nav__links` centered, `.dp-nav__right` with one small outline button.
- `.dp-btn` with `--primary`, `--outline`, `--moon` (on night), `--lg`, `--sm`, `--block`; an inline SVG icon inherits the text color. `.dp-textlink` is the quiet second action under a CTA.
- `.dp-hero` with `.dp-hero__grid`: headline, lead and chips on the left; `.dp-hero__cta` (big button and a text link) on the right, aligned to the bottom. Stacks under 860px.
- `.dp-chips` and `.dp-chip`: soft pills with a 12px dot (`i`, `i.is-rose`, `.is-peach`, `.is-ember`, `.is-night`). `--quiet` greys one out.
- `.dp-pane`: the dusk panel. `.dp-pane__stage` is a two-column grid for a light window and a lifted night window. `--short` for panes that hold plans, a single window or a signup aside.
- `.dp-window` with `__bar` (`__dots` for traffic dots, a title, a `.dp-mono` time), `__body`; `--float` (fully rounded), `--night`, `--lift` (overlaps its left neighbour).
- Night window parts: `.dp-status` (mono line with a leaf dot), `.dp-msg` with `__who` (spark and name), `__actions`, `.dp-msg__yes`, `.dp-msg__no`, `__note`; `.dp-ask` (the input line).
- Light window parts: `.dp-rows` and `.dp-row` with `__time`; `svg.dp-wave` (viewBox 0 0 100 40, `preserveAspectRatio="none"`, one `path` plus an optional `path.is-fill`); `--moon` on night.
- `.dp-spark`: the eight-point coral star. Put the symbol in a hidden sprite and `<use href="#spark">`.
- `.dp-eyebrow` (small label, usually with a spark), `.dp-card` with `__swatch` (dusk) or `__swatch--night`, `.dp-grid--2`, `.dp-grid--3`.
- `.dp-stat__num` and `__cap`; `.dp-quote` with `<cite>`; `.dp-badge` and `--ember`.
- `.dp-toggle`: pill segmented control, the pressed button turns white.
- Pricing: `.dp-plans`, `.dp-plan`, `--featured` (night), `__name`, `__price` with `<small>`, `__note`, `__list`. `.dp-table-wrap`, `.dp-table`. `.dp-faq` with `<details>`.
- Article: `.dp-article` (serif h2, ember-ruled serif blockquote, `code`), `.dp-byline`, `.dp-avatar`, `.dp-callout` (night, with spark).
- Forms: `.dp-form`, `.dp-field`, `.dp-fieldset`, `.dp-legend`, `.dp-input`, `.dp-select`, `.dp-choices` and `.dp-choice` (radio cards, ink ring when checked), `.dp-check`, `.dp-divider`.
- `.dp-footer` with `__grid`, `h4`, `__base`. `.dp-section`, `--mist`, `--night`. `.dp-hide-sm` hides an element under 640px.

## Pages in this kit

| File | Shows |
|---|---|
| `demo.html` | Split hero with chips, the dusk pane with a light "Tonight" window and a lifted night assistant window, three cards, a rooms window, quote and stats, a night closing band |
| `pricing.html` | Headline with a billing toggle, three plans sitting on a dusk pane (the middle one night), comparison table, FAQ |
| `blog.html` | Centered article header with byline, a dusk pane holding one night window, article body with blockquote and callout, three related cards |
| `signup.html` | Form on the left, a tall dusk pane aside on the right with the assistant's first message |

## Page recipe

1. Nav: logo left, three or four centered links, one small outline button right.
2. Hero: serif headline and lead on the left, a chip row under them, the big black CTA with a text link on the right.
3. The dusk pane, full container width, right under the hero: a light window telling what's happening, a night window where the assistant asks one question.
4. Off-white section with three cards (two dusk swatches, one night swatch with a spark).
5. A mist section pairing copy with a floating light window.
6. A serif quote and three stats; one stat in ember.
7. Night closing band with a moon button, then the footer.

Pricing recipe: headline left, toggle right; the plans sit inside a `--short` dusk pane with the featured plan in night; then a table and a FAQ on mist.

Article recipe: 700px column, badge and read time, serif headline, lead, byline; one dusk pane with a single night window as the "image"; body at 18px; one ember-ruled quote and one night callout; a primary button at the end.

Sign-up recipe: two columns, form left (eyebrow with spark, h2, lead, fields, radio cards, consent check, block primary button, divider, outline alternative); dusk pane aside right with the assistant greeting. Stacks under 900px.

## Don'ts

- Don't put the dusk gradient behind text, on buttons or across a whole section.
- Don't bold the serif or set body copy in it.
- Don't use ember for buttons or large fills, and don't add a second accent.
- Don't use more than one night window per pane.
- Don't add photos or illustration styles; the windows are the imagery.
- Don't use hard or colored shadows, or borders on night surfaces.
- No em dashes in the copy.
