# Slow Night

A quiet night sky in a rounded window. Each page opens on a deep indigo panel inset from the edges of the screen, scattered with tiny warm stars and soft mauve cloud banks with a lit top edge, like a storybook drawn at midnight. Over it sit calm serif headlines in Source Serif 4, plain Inter text, and one violet button with a glowing edge. The product rises out of the bottom of the sky in a dark app window: a breadcrumb bar, quiet tabs with a violet underline, and a dotted canvas holding small node cards. It feels unhurried, dreamy and trustworthy, like a serious tool that is happy to stay up late.

Use it for: products that live at night or ask people to slow down (stargazing, sleep, late-night radio, night trains), science and hobby services that want wonder without noise, creative and developer tools with a calm promise, memberships and clubs. Avoid it for: daytime retail and food, loud sales and launches, kids' brands that want bright colour, anything that depends on 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 Slow 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 company called Owlglass that lets people book a real telescope at a dark-sky observatory by the hour.

## 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=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
```

| Role | Font | Use |
|---|---|---|
| Headlines | Source Serif 4 500 | Hero, section titles, card titles, quotes, stats, prices, FAQ questions. -0.02em tracking on big sizes. Never bold. |
| Body and UI | Inter 400 to 600 | Paragraphs, nav, buttons (500), labels, the wordmark (600). |
| Data | JetBrains Mono 400 to 500 | Eyebrows (uppercase, 0.12em tracking), badges, times, node meta, table heads. Never for paragraphs. |

## Color

| Token | Hex | Role |
|---|---|---|
| `--sn-night` | #13111F | The page |
| `--sn-deep` | #0E0C18 | App window canvas, inputs, dark buttons, table heads |
| `--sn-sky` / `--sn-sky-low` | #1D1932 / #2A2342 | Top and horizon of the sky panel (`--sn-sky-fill`) |
| `--sn-panel` | #191628 | Cards, plans, quotes, node cards |
| `--sn-raise` | #231F38 | Card hover, badges, icon tiles, the selected row |
| `--sn-text` | #F1EEF8 | Headlines and body |
| `--sn-dim` | #ABA5C2 | Leads, card text, nav links |
| `--sn-faint` | #716B8A | Captions, meta, footer labels |
| `--sn-violet` | #6A48D6 | The one filled button colour |
| `--sn-violet-hi` | #9479F2 | Button edge, links underline, eyebrows, active tab, focus |
| `--sn-cloud` / `--sn-cloud-hi` / `--sn-cloud-lo` | #4B3B5E / #6E5781 / #2F2742 | Clouds only |
| `--sn-star` | #FFF3D9 | Stars and the moon, nothing else |
| `--sn-mint` | #86D4B4 | Online, available, ticks, "Yes" |
| `--sn-amber` | #E9B872 | Waiting and gentle warnings |

Rules:
- The page is night. The sky panel is the only place with a gradient, stars and clouds.
- Violet is the only filled button colour, and only one violet button per view. Secondary actions are dark (`.sn-btn--dark`) with a hairline ring.
- Mint and amber are for status dots, ticks and small badges. Never fill a large area with them.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--sn-text-hero` | clamp(40px, 5.6vw, 68px) | Centred page titles, five to eight words |
| `--sn-text-h2` | clamp(30px, 3.6vw, 44px) | Section titles |
| `--sn-text-h3` | 20px | Card, plan and node titles |
| `--sn-text-lead` | clamp(17px, 1.5vw, 20px) | Leads under titles |
| `--sn-text-body` | 16px | Body and UI |
| `--sn-text-small` | 14px | Notes, captions, nav |
| `--sn-text-micro` | 12px | Eyebrows, badges, hints |

Headlines are plain and gentle ("Look up through a real telescope, tonight"). A lead may hold one underlined link word (`.sn-link`), like a footnote in a story.

## Shape and space

- Radius: 6px buttons, inputs and badges; 10px cards, rows and node cards; 16px app windows, plans and the sign-up card; 22px the sky frame. Buttons are softly squared, never pills.
- The sky frame: `.sn-sky` sits 16px in from the screen edges (8px on phones), with a faint inner ring. Its `::before` and `::after` layers tile the stars at two sizes; the second one twinkles slowly.
- Clouds: `.sn-cloud` is a long pill with two round bumps, filled with a gradient that lights its top edge. Size it with `--w` and place it with `top/left/right/bottom`. Let clouds run off the sky edges. Use `--far` for the dim back layer, `--flip` to mirror and `--drift` for a slow sideways float. Three to five per sky.
- Depth: hairline rings (`--sn-line`, `--sn-ring`) and long soft shadows (`--sn-shadow-card`, `--sn-shadow-window`). The violet button has a lit 1px edge and a soft glow (`--sn-shadow-btn`).
- The app window: `.sn-window` on `--sn-deep`, a 52px bar with breadcrumbs and tabs, and a canvas with a 22px dot grid (`--sn-dot-grid`). In a hero it uses `--rising` and is cut off by the bottom of the sky.
- Sections: 112px vertical padding (72px for `--tight`). Container 1160px with 24px gutters. Text column 680px.
- Motion: slow. Content rises 16px over one second (`.sn-rise`), stars twinkle over seven seconds, clouds drift over ninety. Nothing bounces.

## Components (in components.css)

| Class | What it is |
|---|---|
| `.sn` | Put on `<body>`: night page, Inter, light text |
| `.sn-container`, `.sn-narrow`, `.sn-center`, `.sn-section`, `--tight`, `.sn-stack` | Layout helpers |
| `.sn-nav`, `__links`, `__end`, `__login`, `.sn-logo`, `__mark` | Nav on plain night above the sky, crescent-and-star mark |
| `.sn-h1`, `.sn-h2`, `.sn-h3`, `.sn-lead`, `.sn-eyebrow`, `.sn-small`, `.sn-micro`, `.sn-mono`, `.sn-link` | Type |
| `.sn-btn`, `--violet`, `--dark`, `--ghost`, `--sm`, `--lg`, `--block` | Buttons |
| `.sn-sky`, `--tall`, `--mid`, `--short`, `--card`, `--page` | The starry sky frame |
| `.sn-cloud`, `--far`, `--flip`, `--drift` | Cloud banks |
| `.sn-hero`, `__actions`, `__note` | Centred hero inside the sky |
| `.sn-window`, `--rising`, `__bar`, `__crumbs`, `__tabs`, `__canvas` | The product app window |
| `.sn-node`, `--active`, `__icon`, `__name`, `__meta`, `.sn-status`, `--wait`, `--off` | Node cards and glowing status dots |
| `.sn-card`, `.sn-grid--2/3/4`, `.sn-icon`, `--mint`, `--amber` | Cards and icon tiles |
| `.sn-badge`, `--violet`, `--mint`, `--amber` | Mono badges |
| `.sn-logos`, `.sn-logos-label` | Quiet row of customer names in serif |
| `.sn-split`, `.sn-list` | Two columns, mint ring ticks |
| `.sn-stats`, `.sn-stat`, `__num`, `__label` | Four serif figures between hairlines |
| `.sn-quote`, `.sn-avatar`, `--mint`, `--amber` | Serif testimonials with gradient avatars |
| `.sn-tabs` | Segmented tabs (`aria-selected="true"` is active) |
| `.sn-plans`, `.sn-plan`, `--featured`, `__desc`, `__price`, `__amount`, `__per` | Pricing |
| `.sn-table-wrap`, `.sn-table`, `.sn-yes`, `.sn-no` | Comparison table |
| `.sn-faq` | `<details>` FAQ with square toggles |
| `.sn-auth`, `.sn-form`, `.sn-field`, `.sn-label`, `.sn-input`, `.sn-select`, `.sn-hint`, `.sn-check`, `.sn-or`, `.sn-row-2` | Forms |
| `.sn-article`, `.sn-dropcap`, `.sn-byline`, `.sn-figure` | Long-form post |
| `.sn-cta` | Centred call to action, used with `.sn-sky` |
| `.sn-footer`, `__grid`, `__about`, `__base` | Footer |
| `.sn-rise`, `--2`, `--3` | Load-in motion |

## Pages in this kit

- `demo.html`: landing page. Nav on night; a tall sky with clouds, centred serif hero, violet and dark buttons, and the night-board app window rising out of the bottom; a customer row; three feature cards; a split with a booking window floating over a small offset sky; stats; two quotes; a sky CTA; footer.
- `pricing.html`: a mid sky with title and tabs, three plans pulled up over its bottom edge with the middle one violet-edged, a comparison table, FAQ, sky CTA.
- `blog.html`: badge, title, byline, a sky card with a drawn moon as the figure, article with a violet drop cap, a quote card and list, related cards.
- `signup.html`: the whole page is a sky, with one blurred night card in the middle.

## Page recipe

1. `.sn-nav` in a `.sn-container` on plain night.
2. A `.sn-sky--tall` with three to five `.sn-cloud`s, then a `.sn-hero`: title, lead with one `.sn-link`, a violet `--lg` button plus a dark one, and a `.sn-hero__note`.
3. Under the hero, still inside the sky, a `.sn-window--rising` showing the product. Let the sky cut it off.
4. Below, on plain night: an eyebrow, a `.sn-h2`, then panel cards. Show the product again in a `.sn-window` over a small `.sn-sky` placed behind it and offset.
5. Stats, quotes, then a `.sn-cta.sn-sky` and the footer.

Pricing: a `.sn-sky--mid` with eyebrow, title, lead and `.sn-tabs`, then `.sn-plans` pulled up over the bottom of the sky with a negative margin. Only the featured plan gets the violet edge and the violet button.

Article: a centred head on plain night (badge, title, lead, byline), then a `.sn-sky--card` as the hero figure. Body in `.sn-article` with a `.sn-dropcap`, violet-underlined links and markers, and a panel quote.

Sign up: wrap the page in `.sn-sky--page`, keep the nav to the logo and one ghost link, and centre one `.sn-auth` card with a mint "free" badge.

## Don'ts

- Don't use photos. The sky, the clouds and the app window are the pictures.
- Don't put stars or clouds outside a `.sn-sky`; plain night stays plain.
- Don't add a second filled button colour or use more than one violet button per view.
- Don't use pure black or pure white; use `--sn-night`, `--sn-deep` and `--sn-text`.
- Don't bold the serif or use pill-shaped buttons. Keep it soft and square.
- Don't speed things up: no bounces, no fast loops.
- Don't use em dashes in copy.
