# Cloud Drift

A dreamy storybook style that still sells. Pages open on a periwinkle sky that fades into a pale lilac page, with soft pink, blue and mint cloud banks drawn as grainy gradients along the bottom edge. Headlines are a soft, slightly wonky serif with one phrase set in violet italic; body text is a round, friendly sans. A frosted-glass pill nav floats over the sky, the main action is always a single coral pill with a soft halo, and hand-drawn doodles (thick ink outlines, flat butter, lavender, sea and pink fills) bob slowly in the clouds. Cards are white with 24px corners, shadows are soft and tinted violet, and nothing is sharp.

Use it for: consumer apps with a gentle story, community and hobby services, pen pals and stationery, kids' learning, travel dreaming, sleep and wellbeing, indie developer platforms that want warmth, gift and subscription boxes. Avoid it for: dense dashboards, finance or legal tools that must feel sober, sale-heavy shops, anything that needs a dark theme or hard edges.

## 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 Drift 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 a made-up slow-letter pen pal service called Moonpost. Put `class="cd"` on `<body>`.

## Fonts

All free on Google Fonts:

```html
<link href="https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;1,9..144,400;1,9..144,500&family=Figtree:wght@400;500;600;700&display=swap" rel="stylesheet">
```

| Role | Font | Weight | Use |
|---|---|---|---|
| Display | Fraunces | 400, 500 | Hero titles, section titles, card titles, plan names, prices, stats, quotes, the logo. Soft and wonky axes on |
| Display italic | Fraunces Italic | 400 | One phrase per headline, in `<em>`, colored violet. Also blockquotes and the city strip |
| Body and UI | Figtree | 400 to 700 | Body copy, nav, buttons, labels, badges, meta |

Never set a whole headline in italic. The italic phrase is the accent, usually the second half.

## Color

| Token | Hex | Use |
|---|---|---|
| `--cd-sky` | #B9BDF7 | Top of every sky gradient |
| `--cd-haze` | #DCDCFB | Middle of the sky, where it fades |
| `--cd-page` | #F8F7FE | The page |
| `--cd-lilac` | #EFECFD | Quiet sections and blockquotes |
| `--cd-ink` | #251A4D | Text, footer, doodle outlines |
| `--cd-soft` | #5B5480 | Leads and secondary text |
| `--cd-violet` | #6D3FDC | The italic phrase, eyebrows, links, focus rings, featured plan border |
| `--cd-coral` | #F2654F | The one main button per screen. Nowhere else but stamps in doodles |
| `--cd-cloud-pink`, `--cd-cloud-blue`, `--cd-cloud-mint` | #F6B3CF, #A9C6F3, #BFE6E4 | Cloud banks only (`--cd-clouds`) |
| `--cd-line`, `--cd-line-strong` | #E1DEFA, #C9C4F2 | Card borders, field borders |

The `--cd-draw-*` tokens (ink, lavender, butter, sea) only color doodles, through the `cd-f-*` fill classes. Coral should appear once per screen: one button, maybe one tiny stamp.

## Type scale

| Class | Size | Notes |
|---|---|---|
| `cd-hero-title` | clamp(40px, 5.4vw, 72px) | Fraunces 400, line-height 1.06, tracking -0.02em, with an `<em>` phrase |
| `cd-h2` | clamp(30px, 3.6vw, 46px) | Same, with an `<em>` phrase |
| `cd-h3` | 22px | Card titles; the italic word is usually the last |
| `cd-lead` | clamp(18px, 1.5vw, 20px) | Figtree, `--cd-soft`, max 540px |
| `cd-eyebrow` | 12px | Figtree 700, uppercase, tracking 0.12em, violet |
| Body | 16px | Figtree 400, line-height 1.6 |
| `cd-prose` | 18px | Line-height 1.75, coral list markers |

## Shape and space

- Controls are pills (`--cd-radius-pill`): buttons, nav groups, toggles, badges, the subscribe field.
- Cards and banners are 24px (`--cd-radius-card`); fields, FAQ rows and choices are 14px.
- Frosted glass (`cd-glass`, the nav groups, `cd-segment`) only sits on top of a sky.
- Shadows are soft and violet tinted (`--cd-shadow-soft`, `--cd-shadow-float`). The coral button has its own halo (`--cd-shadow-coral`).
- Every sky gets the `--cd-grain` noise overlay; it is what makes the gradient feel printed rather than digital.
- Sections are 72 to 128px tall in padding. Hero content sits left with art right; pricing and article heroes are centered.

## Components (in components.css)

- **Sky** `cd-sky` (add `--short` for article heads): the periwinkle gradient, cloud banks and grain. Wrap the nav and hero in it.
- **Nav** `cd-nav`: `cd-logo` with an SVG `cd-logo__mark`, a frosted `cd-nav__links` pill group (hidden under 900px, mark the page with `aria-current`), and a frosted `cd-nav__end` with a ghost Log in and a small coral Join.
- **Hero** `cd-hero` (two columns) or `cd-hero--center`, with `cd-hero__art` holding absolutely placed doodles.
- **Doodles** `cd-doodle` on an inline SVG: ink outlines at 2.4px, round caps, fills from `cd-f-butter`, `cd-f-lav`, `cd-f-sea`, `cd-f-pink`, `cd-f-white`, `cd-f-coral`. `cd-dash` makes a dotted flight path. `--slow` and `--late` vary the bob.
- **Buttons** `cd-btn` plus `--coral`, `--violet`, `--white`, `--ghost`, `--sm`, `--block`. Group with `cd-actions`.
- **Badges** `cd-badge`, `--coral`, `--glass` (on a sky).
- **Cards** `cd-cards` of `cd-card`, each with a `cd-card__art` mini sky and a doodle, or a `cd-icon`.
- **Section head** `cd-head` (add `cd-center`).
- **City strip** `cd-logos`: italic serif place or partner names in faint ink.
- **Steps** `cd-steps` of `cd-step` with drawn number circles.
- **Stats** `cd-stats` with `cd-stat__num` (put a unit in `<em>`).
- **Quote** `cd-quote`, `cd-byline`, `cd-avatar` (`--blue`).
- **Banner** `cd-banner`: a small sky in a rounded box for calls to action.
- **Toggle** `cd-segment` with `aria-pressed` buttons.
- **Pricing** `cd-plans` of `cd-plan` (`--featured` gets the violet border and float shadow), `cd-plan__top`, `cd-plan__name`, `cd-plan__price`, `cd-checks`.
- **FAQ** `cd-faq` of `<details>` with a violet plus.
- **Article** `cd-article-head`, `cd-meta`, `cd-figure` (a sky panel holding doodles), `cd-caption`, `cd-prose`, `cd-note`, `cd-author`.
- **Forms** `cd-form`, `cd-field`, `cd-label`, `cd-input`, `cd-select`, `cd-textarea`, `cd-hint`, `cd-row`, `cd-check`, `cd-choices` of `cd-choice`, `cd-divider`, `cd-subscribe`.
- **Auth layout** `cd-auth` with a sky `cd-auth__side` and a white `cd-auth__main` holding `cd-auth__box`.
- **Sections** `cd-section`, `--lilac`, `--white`, `--ink`, `--flush`, `cd-container`, `cd-narrow`, `cd-grid-2`, `cd-stack`.
- **Footer** `cd-footer` (deep ink) with `cd-footer__grid`, `cd-footer__title` and `cd-footer__base`.

## Pages in this kit

- `demo.html`: landing page (sky hero with floating doodles, city strip, three step cards, a lilac story with stats, a quote, a sky banner, footer)
- `pricing.html`: centered sky hero with a monthly or yearly toggle, three plans overlapping the sky's bottom edge, then an FAQ
- `blog.html`: a Journal article with a short sky head, a doodle figure and prose
- `signup.html`: a split form with a sky side panel, doodles and a glass testimonial

## Page recipe

1. `cd-sky` holding `cd-nav` and a `cd-hero`: glass badge, title with an italic violet phrase, lead, one coral button and a ghost link. Three to five doodles in `cd-hero__art`, never more.
2. A `cd-logos` strip just under the sky.
3. A centered `cd-head` and three `cd-card`s, each with a mini sky and one doodle.
4. A `cd-section--lilac` with `cd-grid-2`: art in a `cd-banner` on one side, story and `cd-stats` on the other.
5. A centered `cd-quote`.
6. A `cd-banner` call to action with the coral button and a white secondary.
7. `cd-footer`.

## Pricing page recipe

The sky with nav, then `cd-hero--center` holding a glass badge, title, lead and `cd-segment`. Pull `cd-plans` up so the cards overlap the bottom of the sky. Three plans: the middle one `--featured` with a coral badge and the only coral button; the others use white buttons. Follow with a `cd-faq` in `cd-narrow`.

## Article page recipe

A `cd-sky--short` with nav and a centered `cd-article-head` (glass badge, title, lead, `cd-meta` with avatar). Then a wide `cd-figure` with two or three doodles and a `cd-caption`, `cd-prose` in `cd-narrow` with h2s that carry an italic phrase, a lilac blockquote, a coral `cd-note`, and `cd-author`. End with a `cd-banner`.

## Sign-up page recipe

`cd-auth`: the left `cd-auth__side` is a sky with the logo, doodles and a `cd-glass` testimonial; the right holds `cd-auth__box` with an eyebrow step count, an `cd-h2` with an italic phrase, then the form. One coral submit, a `cd-divider`, a white alternative.

## Don'ts

- Don't put two coral buttons on one screen, or use coral for text or backgrounds.
- Don't italicize whole headlines, or use the italic without the violet.
- Don't use hard shadows, square corners or black (`#000`). Ink is deep indigo.
- Don't put glass on the plain page; it only works over a sky.
- Don't fill the sky with doodles. Three to five, with air between them.
- Don't draw doodles in thin or colored outlines. Always ink, 2.4px, round caps.
- Don't skip the grain on a sky; flat gradients look cheap here.
