# Cloud Cover

A calm night sky over a working tool. The page is deep indigo, and the hero is a big rounded panel inset from the edges, painted like a storybook night: a fine scatter of stars, soft plum clouds with dusky pink rims, and a faint warm glow along the horizon. A bookish serif headline sits centered in the sky, with one violet button that has a lighter rim and a dark outlined partner. The product rises out of the bottom of the sky as a dark app window with a dotted canvas and small node cards. It feels quiet, capable and a little dreamy, like software that works while everyone else sleeps.

Use it for: tools that run overnight or out of hours, science and nature apps, survey and field tools, infrastructure and developer platforms, travel and night services, anything that wants to feel technical but gentle. Avoid it for: bright daytime retail, kids brands that need primary colors, food and hospitality that live on photography, loud sales pages.

## 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 Cloud Cover 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 night bird survey app called Nightjar.

## Fonts

All free on Google Fonts:

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

| Role | Font | Use |
|---|---|---|
| Headlines | Newsreader 500, italic 400 | Hero, section titles, card and plan names, quotes, prices, FAQ questions. One italic phrase per headline may turn lavender. |
| UI and body | Inter 400 to 600 | Nav, buttons, leads, card text, forms. Buttons at 500. |
| Labels | JetBrains Mono 400 to 500 | Eyebrows, badges, table heads, node metadata, captions. 11 to 12px. |

## Color

| Token | Hex | Role |
|---|---|---|
| `--cc-night` | #110F19 | The page, window bodies, inputs, the ghost button |
| `--cc-sky` | #1B1729 | Top of the sky panel |
| `--cc-sky-low` | #2A2238 | Bottom of the sky panel, toward the horizon |
| `--cc-panel` | #17141F | Cards, plans, node cards, the auth card |
| `--cc-raised` | #221E2E | Badges, avatars, hover on ghost buttons |
| `--cc-line` | #2E2940 | Every 1px border |
| `--cc-line-bright` | #443D59 | Input borders, ghost button rim, canvas wires |
| `--cc-text` | #F2EFF8 | Headlines and strong text |
| `--cc-dim` | #ABA5BD | Leads, body copy |
| `--cc-faint` | #706A86 | Captions, placeholders, metadata |
| `--cc-violet` | #5E45C9 | The one filled button, checkboxes |
| `--cc-violet-rim` | #8B76EC | The button's inner rim, focus borders, the active tab, the featured plan border |
| `--cc-violet-bright` | #A595F7 | Eyebrows, italic headline phrases, list stars, links in articles |
| `--cc-cloud` | #3E3352 | Cloud bodies |
| `--cc-cloud-light` | #5B4A6E | Nearer, lighter clouds |
| `--cc-dusk` | #C58B9E | Cloud rims and the horizon glow only |
| `--cc-moss`, `--cc-amber` | #74D1A4, #E8B867 | Status dots only |

Rules:
- The page is near black indigo; the sky panel is the only lighter, painted area. Never paint the whole page as sky.
- Violet fills one button per screen. Everything else that needs color uses `--cc-violet-bright` text or the `--cc-violet-soft` wash.
- Dusk pink is light from a hidden moon: it only touches cloud tops and the horizon glow (`--cc-glow`).

## Type scale

| Token | Size | Use |
|---|---|---|
| `--cc-text-hero` | clamp(40px, 5.6vw, 72px) | Centered hero titles, two short lines, no full stop |
| `--cc-text-h2` | clamp(30px, 3.6vw, 46px) | Section titles |
| `--cc-text-lead` | clamp(17px, 1.6vw, 20px) | Dim leads in Inter |
| `--cc-text-h3` | 20px | Card and plan names in the serif |
| `--cc-text-read` | 19px | Serif article paragraphs |
| `--cc-text-body` | 16px | UI and card text |
| `--cc-text-micro` | 12px | Mono labels |

Headlines are plain, slightly poetic statements ("Count the birds that only sing after dark"). Leads are practical and say what the product does.

## Shape and space

- Radius: 4px inline code, 8px buttons and inputs, 12px icons and node cards, 18px cards, plans and windows, 28px the sky panel and the auth card, pill for badges and the toggle.
- Borders: 1px `--cc-line` everywhere. The sky panel has a border too, so it reads as an inset frame.
- The frame: the sky sits 16px in from the page edges (`.cc-frame`, 8px on phones) with a 28px radius. The nav sits on the plain page above it.
- Shadows: the violet button has an inner rim and a violet under-glow (`--cc-shadow-btn`). Windows float on a deep shadow (`--cc-shadow-window`). Cards get a top sheen and soft drop.
- Atmosphere: `.cc-sky::before` scatters stars; `--cc-glow` warms the horizon. Clouds are `.cc-cloud` spans placed by the page; use 3 to 5 per sky, some `--far` (smaller, fainter), one `--light`, one `--drift`. Let them bleed off the panel edges.
- Sections: 96px vertical padding (64px on phones). Container 1160px with 24px gutters. Reading column 680px.
- Motion: slow. Content rises 14px on load (`.cc-rise`), one cloud drifts 40px over 40 seconds, the live dot twinkles. All of it stops for reduced motion.

## Components (in components.css)

| Class | What it is |
|---|---|
| `.cc` | Put on `<body>`: indigo page, Inter, light text |
| `.cc-container`, `.cc-read`, `.cc-section`, `.cc-center` | Layout wrappers |
| `.cc-hero-title`, `.cc-h2`, `.cc-h3`, `.cc-lead`, `.cc-body`, `.cc-micro`, `.cc-eyebrow` | Type. `<em>` inside a title gives the lavender italic phrase |
| `.cc-btn` + `--primary`, `--ghost`, `--sm`, `--block`; `.cc-btn-row` | Buttons |
| `.cc-nav`, `.cc-brand`, `.cc-brand-mark`, `.cc-nav-links`, `.cc-nav-actions` | Top bar with the crescent mark |
| `.cc-frame`, `.cc-sky`, `.cc-sky-inner`, `--window`, `.cc-sky--short` | The painted night panel |
| `.cc-cloud` + `--light`, `--far`, `--drift` | Clouds. Position each one in the page's `<style>` |
| `.cc-window`, `.cc-window-bar`, `.cc-crumbs`, `.cc-tabs`, `.cc-window-body` | The app window rising from the sky |
| `.cc-node`, `.cc-node-title`, `.cc-node-meta`, `.cc-dot` | Small cards on the window's dotted canvas |
| `.cc-grid`, `.cc-card`, `.cc-icon`, `.cc-badge`, `.cc-quote`, `.cc-person`, `.cc-avatar` | Feature cards and testimonials |
| `.cc-plans`, `.cc-plan`, `--featured`, `.cc-price`, `.cc-list`, `.cc-toggle` | Pricing. The featured plan is a little piece of sky |
| `.cc-table-wrap`, `.cc-table`, `.cc-faq` | Comparison table and FAQ |
| `.cc-article`, `.cc-figure`, `.cc-byline` | Blog posts |
| `.cc-auth`, `.cc-field`, `.cc-label`, `.cc-input`, `.cc-select`, `.cc-hint`, `.cc-check`, `.cc-divider` | Forms |
| `.cc-cta`, `.cc-footer`, `.cc-footer-grid` | Closing sky panel and footer |
| `.cc-rise`, `.cc-twinkle` | Motion |

## Pages in this kit

- `demo.html`: landing. Sky hero with the app window, three feature cards, stats and a quote, a closing sky CTA, footer.
- `pricing.html`: short sky with a billing toggle, three plans overlapping its bottom edge, comparison table, FAQ.
- `blog.html`: short sky with the title and byline, serif article with a drawn route figure and a quote, more posts.
- `signup.html`: a full height sky with the auth card floating among the clouds.

## Page recipe

1. Nav on the plain page: crescent brand left, links centered, a text link and a small ghost button right.
2. `.cc-frame > .cc-sky` with 3 to 5 clouds, then a centered eyebrow (optional), hero title, lead and a primary plus ghost button pair.
3. On landing pages, a `.cc-window` showing the product as node cards on a dotted canvas, bleeding off the bottom of the sky (`.cc-sky-inner--window`).
4. Plain indigo sections below: a left-aligned heading block, then cards or a split with stats and a quote.
5. Close with a second, shorter sky (`.cc-cta`) and the footer.

Pricing recipe: a `.cc-sky--short` hero with the toggle, then the plans pulled up 40px to overlap the sky's bottom edge. The featured plan uses `--featured` (starry sky inside, violet rim border). Then the table and FAQ in a 1 to 2 split.

Article recipe: a short sky with eyebrow, title (one italic word) and byline, then a 680px serif column. Draw figures as inline SVG in a card. Blockquotes get a violet left rule and italic serif.

Sign-up recipe: one sky that fills the screen under the nav, a centered `.cc-h2` and lead, then the `.cc-auth` card with a ghost magic link button, a divider, fields and one primary button.

## Don'ts

- Don't use pure black or a flat gray page; keep the indigo cast.
- Don't use more than one filled violet button per screen.
- Don't use photos of the sky. The night is drawn with CSS: stars, clouds and a glow.
- Don't set body copy in the serif outside articles and quotes.
- Don't put clouds outside a `.cc-sky` panel or over text without checking contrast.
- Don't make the clouds busy: no more than five per panel.
