# Cloud Sleeper

A starry indigo night with painted clouds drifting through it. Pages sit on a deep violet-black, and the top of each page is a framed card of sky: tiny scattered stars, a thin crescent moon, and soft cartoon cloud banks lit rosy along their tops. Over the sky, headlines are a bookish serif set centred and calm, with a single violet button and a dark outlined one beside it. Then a dark product window floats over the bottom edge of the sky, showing a dotted canvas of small connected cards with glowing status dots. Radii are small, borders are hairlines, and the rest of the page is quiet dark panels. It feels dreamy and unhurried, but precise underneath, like a night shift that has everything in hand.

Use it for: travel and overnight services, transport and logistics with a human face, sleep and wellbeing products, hospitality, booking tools, B2B products that run while customers rest (monitoring, scheduling, delivery). Avoid it for: bright daytime brands, food photography, kids and games that need loud colour, dense data tables as the main view.

## 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 Sleeper 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 rail co-op called Nightbound that runs sleeper trains across Europe.

## Fonts

All free on Google Fonts:

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

| Role | Font | Use |
|---|---|---|
| Headlines | Literata 500 | Page titles, section titles, prices, pull quotes and the big quote. Tracking -0.02em. Never bold, never uppercase. |
| Body and UI | Inter 400 to 600 | Body at 400, nav, buttons and labels at 500, card titles at 600. |
| Labels and times | IBM Plex Mono 400 to 500 | Eyebrows (uppercase, 0.04em tracking), times, node subtitles, badges, table heads (`.cs-num`). |

## Color

| Token | Hex | Role |
|---|---|---|
| `--cs-deep` | #0D0C14 | Product windows, inputs, dark buttons, the featured plan |
| `--cs-night` | #14121D | The page |
| `--cs-panel` | #1B1927 | Cards, nodes, plans |
| `--cs-raise` | #262336 | Badges, icon tiles, card hover |
| `--cs-text` | #F2EFF8 | Headlines and body |
| `--cs-dim` | #ABA5BE | Leads, card text, nav links |
| `--cs-faint` | #6F6987 | Captions, hints, table heads |
| `--cs-violet` | #7A5BE2 | The one filled button, focus rings, the active node |
| `--cs-lilac` | #BBA8F6 | Eyebrows, icons, times, connector dots |
| `--cs-mint` | #62D4A6 | "On time" status dots, ticks, "Yes" in tables |
| `--cs-amber` | #F1B86A | "Warming" or "pending" status only |
| `--cs-star` | #FFF5DD | Stars and the moon, nothing else |

The sky is tokens too: `--cs-sky` (the indigo gradient), `--cs-glow` (a rosy glow from below), `--cs-stars` (two scattered star layers), `--cs-clouds-back` and `--cs-clouds-front` (the painted cloud banks as inline SVG). Never redraw a cloud by hand.

Rules:
- Violet is the only filled button. Everything else is a dark button (`.cs-btn--dark`) with a hairline ring.
- Lilac is for small things: eyebrows, icons, times, dots. Never a block of colour.
- Rosy pinks live only inside the clouds. The page itself stays cool violet-black.
- Mint and amber are status colours. Use them on dots and badges, not decoration.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--cs-text-hero` | clamp(38px, 5.4vw, 66px) | Centred serif titles over the sky, one or two short lines |
| `--cs-text-h2` | clamp(28px, 3.3vw, 42px) | Section titles |
| `--cs-text-h3` | 18px | Card, node and plan names (Inter 600) |
| `--cs-text-lead` | clamp(17px, 1.5vw, 20px) | Leads |
| `--cs-text-body` | 16px | Body and UI |
| `--cs-text-small` | 14px | Card text, notes |
| `--cs-text-micro` | 12px | Eyebrows, badges, table heads (mono) |

Headlines are plain and a little poetic ("Fall asleep in Lisbon. Wake up in Paris."). Leads are one or two warm, concrete sentences.

## Shape and space

- Radius: 4px badges, 6px small buttons and icon tiles, 8px buttons and inputs, 12px cards, nodes, windows and plans, 16px the sky frame. No pills except avatars and status dots.
- Borders: hairlines everywhere (`--cs-line`, `--cs-line-bright`). Depth comes from the big window shadow (`--cs-shadow-window`), never from heavy card shadows.
- The sky frame: `.cs-frame.cs-sky` is inset 16px from the page edge (8px on phones) with a hairline border and 16px radius, like a window onto the night. Add `.cs-moon` for the crescent and `.cs-sky--drift` to let the clouds drift slowly.
- The overlap: a `.cs-window` placed in `.cs-hero__overlap` straddles the bottom of the sky. This is the signature move: one per landing page, and a smaller one under an article header.
- The canvas: `.cs-canvas` has a faint dot grid. Inside, `.cs-route` lays out `.cs-node` cards joined by dashed `.cs-route__link` connectors with a glowing lilac dot. On phones the route turns vertical.
- Sections: 96px vertical padding (64px on phones), separated by hairlines (`.cs-section--line`). Container 1160px with 24px gutters. Text column 680px.
- Motion: slow. Clouds drift over 90 seconds, content rises 12px on load. Nothing bounces.

## Components (in components.css)

| Class | What it is |
|---|---|
| `.cs` | Put on `<body>`: night page, Inter, light text |
| `.cs-container`, `.cs-narrow`, `.cs-center`, `.cs-section`, `--tight`, `--line` | Layout helpers |
| `.cs-h1`, `.cs-h2`, `.cs-h3`, `.cs-lead`, `.cs-eyebrow`, `.cs-num`, `.cs-small`, `.cs-muted`, `.cs-link` | Type |
| `.cs-btn` + `--violet`, `--dark`, `--ghost`, `--sm`, `--block`, `.cs-btn__arrow`, `.cs-actions` | Buttons, 8px radius |
| `.cs-nav`, `__links`, `__end`, `__login`, `.cs-logo`, `__mark` | Nav above the sky frame, with a moon-over-rails mark |
| `.cs-frame`, `.cs-sky`, `.cs-sky--drift`, `.cs-moon` | The framed night sky |
| `.cs-hero`, `__title`, `--short`, `.cs-hero__overlap` | Centred hero inside the sky; the overlap wrapper for the window |
| `.cs-window`, `__bar`, `__crumbs`, `__tabs`, `__avatar` | Dark product window with breadcrumbs and tabs |
| `.cs-canvas`, `.cs-route`, `__link`, `.cs-node`, `--active`, `__head`, `__icon`, `__title`, `__sub`, `__meta`, `.cs-status`, `--amber` | The connected-card canvas |
| `.cs-grid`, `--2`, `--3`, `.cs-card`, `__icon`, `.cs-split` | Feature cards and two-column splits |
| `.cs-timeline` | A dark list of times, events and badges |
| `.cs-badge` + `--violet`, `--mint`, `--amber` | Small mono badges |
| `.cs-quote`, `.cs-avatar` | Centred serif quote |
| `.cs-field`, `.cs-label`, `.cs-input`, `.cs-select`, `.cs-hint`, `.cs-row`, `.cs-check`, `.cs-choices`, `.cs-choice`, `.cs-divider` | Forms |
| `.cs-auth`, `__form`, `__side` | Split sign-up layout with a sky panel |
| `.cs-toggle`, `.cs-plans`, `.cs-plan`, `--featured`, `__head`, `__price`, `__per`, `__list`, `.cs-table-wrap`, `.cs-table`, `.cs-yes`, `.cs-faq` | Pricing |
| `.cs-article`, `__meta`, `.cs-figure` | Long-form article |
| `.cs-cta` | A small sky frame for the closing call to action |
| `.cs-footer`, `__grid`, `__about`, `__base` | Footer |
| `.cs-rise`, `--2`, `--3` | Load motion |

## Pages in this kit

- `demo.html`: landing page. Nav, sky frame with moon and centred serif title, a product window overlapping the sky with a four-stop route canvas, feature cards, stats, a timeline split, a quote, a sky CTA and the footer.
- `pricing.html`: short sky hero with a fare toggle, three plans overlapping the sky (the middle one featured), a comparison table, FAQ.
- `blog.html`: sky header with title and author meta, a small canvas figure overlapping it, the article, related posts, sky CTA.
- `signup.html`: split layout, form on the left, a tall sky panel on the right holding a node card and a quote.

## Page recipe

1. `<body class="cs">`, then the nav in a `.cs-container`.
2. One `.cs-frame.cs-sky` at the top with `.cs-moon` and a `.cs-hero`: eyebrow (optional), serif title, lead, `.cs-actions` with one violet and one dark button.
3. A `.cs-hero__overlap` holding a `.cs-window` with a canvas that shows the product doing its job. Keep it to three or four nodes.
4. Sections on plain night, separated by hairlines: cards, a split with a timeline, a quote.
5. Close with a small `.cs-frame.cs-sky.cs-cta`, then the footer.

Pricing recipe: `.cs-hero--short` sky with a `.cs-toggle`, then `.cs-plans` pulled up over the sky edge by about 96px. Feature the middle plan only. Follow with a `.cs-table` and a `.cs-faq` in a split.

Article recipe: sky header with eyebrow, title (max about 820px) and `.cs-article__meta`. Pull a small `.cs-window` figure up over the sky edge, then `.cs-article` with serif `h2`s, a violet-ruled blockquote and lilac list markers.

Sign-up recipe: `.cs-auth` with the form on the left (logo, serif title, lead, fields, `.cs-choices` for one preference, violet submit, a divider and a dark alternative) and a `.cs-frame.cs-sky.cs-auth__side` on the right with one node card and a short quote. On phones the sky panel moves above the form.

## Don'ts

- Don't use the sky as a full-bleed background. It always sits in the inset frame with a hairline border.
- Don't add more than one full sky and one small sky CTA per page.
- Don't round things into pills. Buttons, inputs and badges stay squarish.
- Don't set body copy or buttons in the serif, or headlines in Inter.
- Don't use violet for more than one button in a view, or put pink anywhere outside the clouds.
- Don't add photos. The sky and the canvas are the imagery.
- Don't animate fast. If you can see something move in the first second, it is too fast.
