# Cloud Lantern

A clear night over drifting violet clouds. Pages are deep indigo, and the top of each one sits inside a rounded sky frame inset from the window edge: a scattered star field, soft cloud banks lit from below by a dusky rose glow, and one small warm lantern dot. Headlines are a soft, calm serif (Fraunces), the interface is a plain friendly sans (Figtree), and live data sits in a framed console window that rises out of the bottom of the sky like a tool waiting for you. There is one violet button colour and one warm amber accent, used sparingly. It feels quiet, capable and a little dreamy, like a service that works while you sleep.

Use it for: overnight and on-call services, logistics and delivery, operations tools for small businesses, sleep and night-time products, infrastructure that should feel calm rather than loud, any product with a live dashboard to show off. Avoid it for: bright daytime retail, kids' products, food photography, legal or medical pages that need a white page, anything that must feel loud or urgent.

## 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 Lantern 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 Owlrun that delivers stock to independent shops overnight.

## Fonts

All free on Google Fonts:

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

| Role | Font | Use |
|---|---|---|
| Headlines | Fraunces 400 | Page titles, section titles, stats, prices, pull quotes. Always 400, tracking -0.02em. Never bold, never uppercase. |
| Body and UI | Figtree 400 to 600 | Body at 400, buttons and labels at 500, card titles and eyebrows at 600. Eyebrows uppercase with 0.14em tracking. |
| Data | JetBrains Mono 400 to 500 | Only inside the console: times, counts, logs, chart axes. Never for paragraphs. |

## Color

| Token | Hex | Role |
|---|---|---|
| `--cl-night` | #13111F | The page |
| `--cl-deep` | #1C1931 | Cards, plans, quotes, tables |
| `--cl-raise` | #27233F | Icon tiles, badges, card hover, the selected toggle |
| `--cl-console` | #0D0B17 | The console window, inputs and ghost buttons |
| `--cl-text` | #F3F0FA | Headlines and body |
| `--cl-dim` | #AEA8C6 | Leads, card text, nav links |
| `--cl-faint` | #736D8E | Captions, hints, footer labels |
| `--cl-violet` | #7458E0 | The one filled button colour, progress bars |
| `--cl-violet-hi` | #9A82F0 | Button hover, eyebrows, links, focus rings, list markers |
| `--cl-lamp` | #F4C46A | The lantern dot, the eyebrow dot, one highlighted slot in a chart, the "most shops" badge |
| `--cl-mint` | #6CD1A5 | Live status dots, ticks, "Yes" in tables |
| `--cl-rose` | #E58A9E | Late or failed status only |

The sky has its own tokens (`--cl-sky`, `--cl-stars`, `--cl-stars-b`, `--cl-cloud`, `--cl-cloud-lit`, `--cl-cloud-rose`, `--cl-star`), so a sky is never redrawn by hand.

Rules:
- The page is night. Warmth only comes from the lantern and the rose under-glow of the clouds.
- Violet is the only filled button. Secondary actions are ghost buttons (console black with a hairline ring).
- Amber is a single point of light per view. Never a button, a block or body text.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--cl-text-hero` | clamp(40px, 6vw, 76px) | Centred page titles, five to eight words, often over two lines |
| `--cl-text-h2` | clamp(30px, 3.6vw, 46px) | Section titles |
| `--cl-text-h3` | 20px | Card and plan names (Figtree 600) |
| `--cl-text-lead` | clamp(17px, 1.5vw, 20px) | Leads under titles |
| `--cl-text-body` | 16px | Body and UI |
| `--cl-text-small` | 14px | Card text in dense areas, tables, meta |
| `--cl-text-micro` | 12px | Eyebrows, hints, badges |

Headlines are calm and concrete ("Your shelves, restocked while the town sleeps"). Leads are one or two plain sentences.

## Shape and space

- Radius: 8px inputs and small buttons, 12px buttons, nodes and icon tiles, 18px cards, plans and the console, 28px the sky frame. Pill only for badges.
- The sky frame (`.cl-sky`) is inset 16px from the window edges with a 28px radius and a hairline ring. It never runs full bleed.
- Borders: hairlines (`--cl-line`) in tables, FAQ, the console bar and the footer. Cards have no border, just a faint top highlight and a deep soft shadow (`--cl-shadow-card`).
- The console (`.cl-console`) has a violet halo shadow (`--cl-shadow-console`). In a hero it sits at the bottom of the sky with square bottom corners, so it looks like it rises out of the frame. Elsewhere add `.cl-console--whole`.
- Sections: 96px vertical padding (`.cl-section`), 64px for tight ones. Container 1160px with 24px gutters. Text column 680px.
- Motion: clouds drift 70px over a minute, the lantern breathes over 4s, buttons lift 1px. All off under `prefers-reduced-motion`.

## Components (in components.css)

| Class | What it is |
|---|---|
| `.cl` | Put on `<body>`: night page, Figtree, light text |
| `.cl-container`, `.cl-narrow`, `.cl-center`, `.cl-section`, `--tight` | Layout helpers |
| `.cl-h1` / `.cl-hero__title`, `.cl-h2`, `.cl-h3`, `.cl-lead`, `.cl-eyebrow`, `.cl-muted`, `.cl-faint`, `.cl-mono`, `.cl-link` | Type |
| `.cl-btn` with `--primary`, `--ghost`, `--glass`, `--sm`, `--block`; `.cl-btn__arrow` | Buttons. The arrow nudges right on hover |
| `.cl-nav`, `__inner`, `__links`, `__end`, `__login`; `.cl-logo`, `__mark` | Transparent nav above the sky frame |
| `.cl-sky`, `--short` | The inset sky frame with stars and a rose under-glow |
| `.cl-cloud`, `--sm`, `--far` | A cloud bank. Position it absolutely with top/left/right and a width (160 to 380px) |
| `.cl-lantern` | The single amber point of light |
| `.cl-hero`, `__lead`, `__actions`, `__stage` | Centred hero; `__stage` holds the console |
| `.cl-console`, `--whole`, `__bar`, `__crumb`, `__tabs`, `__body` | The framed app window with a dotted grid body |
| `.cl-node`, `__head`, `__meta` | Small cards inside the console |
| `.cl-status`, `--wait`, `--late` | Glowing status dot with a label |
| `.cl-log` | Monospace activity log with times |
| `.cl-grid`, `--2`, `.cl-card`, `--lift`, `.cl-icon` | Feature cards |
| `.cl-badge`, `--violet`, `--lamp` | Pills |
| `.cl-stats`, `.cl-stat__num`, `.cl-stat__label` | Big serif figures |
| `.cl-quote`, `.cl-person`, `.cl-avatar` | Testimonial |
| `.cl-check` | Tick list with mint ring markers |
| `.cl-cta` | Put on a second `.cl-sky` for the closing call to action |
| `.cl-toggle`, `.cl-plans`, `.cl-plan`, `--featured`, `__name`, `__price` | Pricing |
| `.cl-table-wrap`, `.cl-table`, `.cl-yes` | Comparison table that scrolls on phones |
| `.cl-faq` | `<details>` FAQ with violet plus signs |
| `.cl-article__meta`, `.cl-prose`, `.cl-pull`, `.cl-figure`, `.cl-callout` | Article |
| `.cl-form`, `.cl-row`, `.cl-field`, `.cl-label`, `.cl-hint`, `.cl-input`, `.cl-select`, `.cl-checkbox`, `.cl-choice`, `.cl-divider`, `.cl-panel` | Forms. `.cl-panel` is a frosted card for use over the sky |
| `.cl-footer`, `__grid`, `__brand`, `__base` | Footer |

## Pages in this kit

- `demo.html`: landing page. Sky frame with clouds, centred serif headline, two buttons, a console rising out of the sky, three feature cards, a split section with a timeline card, stats, a quote and a closing sky CTA.
- `pricing.html`: a short sky with a billing toggle, three plans overlapping the bottom of the sky, a comparison table and an FAQ.
- `blog.html`: a short sky with the title and byline, a prose column with a pull quote, a console used as a chart figure, a callout and related posts.
- `signup.html`: one full-height sky with the pitch on the left and a frosted form panel on the right.

## Page recipe

1. Nav (`.cl-nav`) on plain night, above the frame.
2. One `.cl-sky` with 3 to 5 clouds (mix sizes, one `--far`), one `.cl-lantern`, then the hero.
3. If the product has data, end the sky with `.cl-hero__stage` and a `.cl-console` whose bottom edge meets the frame.
4. Plain night sections below: cards, a split, stats, a quote. Alternate centred and left-aligned sections.
5. Close with a second, smaller `.cl-sky.cl-cta` with two clouds and one button.
6. Footer.

Pricing recipe: a short sky (title, lead, `.cl-toggle`), then `.cl-plans` pulled up 40px to overlap it, the middle plan `--featured` with a `--lamp` badge. Then a table and an FAQ in a two-column split.

Article recipe: a short sky with eyebrow, title in `.cl-narrow`, and `.cl-article__meta`. Then `.cl-prose` in a 680px column with one `.cl-pull`, one figure (a `.cl-console--whole` makes a good chart frame), one `.cl-callout`, and an author row. End with three related `.cl-card`s.

Sign-up recipe: one sky that fills the viewport, the logo and a sign-in link inside it, the pitch and a `.cl-check` list on the left, a `.cl-panel` form on the right. On phones they stack.

## Don'ts

- Don't run the sky full bleed or square its corners. It is always an inset, rounded frame.
- Don't add a second accent colour, gradients on buttons or coloured section backgrounds.
- Don't use more than one lantern per sky, or amber on anything large.
- Don't set headlines in the sans, in bold, or in capitals.
- Don't put photos in the sky. Clouds and stars only.
- Don't use the mono font outside the console and charts.
- Don't stack more than two skies on a page.
