# Moon Deck

A clear night seen from a quiet deck. Deep indigo pages hold one big rounded sky panel, inset a little from the page edges, full of tiny warm stars, soft plum clouds that drift slowly and sometimes a gold moon. On that sky sit centred headlines in a warm book serif (Newsreader), a calm sans for everything else, and one dusk-violet button with a lit edge beside a dark outlined one. Product screens rise out of the bottom of the sky like a lit cabin window. It feels dreamy and unhurried, but still clear and trustworthy, a product you would hand your weekend to.

Use it for: travel and outdoor bookings, hospitality, sleep and wellness apps, night-time services, calm developer or data platforms, launches that want a storybook mood without losing polish. Avoid it for: bright daytime brands, kids' products that need primary colours, dense dashboards, discount retail, anything that needs a white page for print.

## 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 Moon Deck 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 dark-sky campsite booking service called Lowsky.

## Fonts

All free on Google Fonts:

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

| Role | Font | Use |
|---|---|---|
| Headlines | Newsreader 400 to 500 | Hero titles, section titles, big numbers, prices, pull quotes. Slight negative tracking. Never bold. |
| Body and UI | Plus Jakarta Sans 400 to 600 | Body at 400, nav and buttons at 500, card titles at 600. |
| Labels | IBM Plex Mono 400 to 500 | Eyebrows (uppercase, spaced, gold), badges, table heads, meta and footnotes. 12px. |

## Color

| Token | Hex | Role |
|---|---|---|
| `--md-night` | #12101B | The page, app windows, inputs |
| `--md-deep` | #1A1727 | Cards, plans, canvas nodes |
| `--md-raised` | #231F34 | Badges, icon tiles, empty meter blocks |
| `--md-line` | #332E48 | Every 1px border |
| `--md-sky-top` / `--md-sky-low` | #1B1930 / #2B2440 | The sky gradient, top to horizon |
| `--md-cloud` / `--md-cloud-lit` | #5B4867 / #8C6577 | Painted clouds (inside `--md-cloud-paint`) |
| `--md-star` | #FFF4D6 | Star dots |
| `--md-text` | #F2EFF8 | Headlines and body |
| `--md-dim` | #A6A0BC | Leads, nav links, card copy |
| `--md-violet` | #6E4FC4 | The one accent: main button, selected states, checks |
| `--md-violet-lit` | #9478E6 | Button edge, link underlines, active tab line |
| `--md-moon` | #F1D58A | Eyebrows, the moon, list dots, inline code. Small marks only. |
| `--md-sage` | #7FC8A9 | Status dots ("open", "clear") only |

Rules:
- The page is near-black indigo, never pure black. Colour arrives through the sky panel: stars, clouds and the moon.
- One violet button per view. Its partner is always the dark `--night` button with a bright 1px border.
- Gold is for tiny marks. Never fill a large area with it.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--md-text-hero` | clamp(40px, 6vw, 72px) | Centred titles on the sky, two lines with a manual `<br>` |
| `--md-text-h2` | clamp(30px, 3.8vw, 46px) | Section titles, serif |
| `--md-text-h3` | 19px | Card and plan names, sans 600 |
| `--md-text-lead` | 19px | Dim lead under a title |
| `--md-text-body` | 16px | Body and UI |
| `--md-text-micro` | 12px | Mono labels |

Headlines are calm and a little poetic ("Sleep somewhere the stars still show up"). Leads are plain and practical, and may hold one underlined link.

## Shape and space

- Radius: 8px buttons and inputs, 12px nodes, 18px cards, plans and windows, 28px for the sky panel, pill for badges and toggles.
- Borders: 1px `--md-line` on cards, tables and the footer. The dark button and form panel use the brighter `--md-line-bright`.
- Shadows: the violet button has an inset lit edge and a soft violet glow (`--md-shadow-btn`). Windows and the form panel get a deep drop shadow (`--md-shadow-window`). No other shadows.
- The sky: `.md-sky` is inset `--md-sky-inset` (16px) from the page edges with a 28px radius. Two star layers at different tile sizes, then `.md-cloud--a` to `--d` and an optional `.md-moon`. Use one or two sky panels per page: the hero, and maybe the closing CTA.
- The window: `.md-window` sits at the bottom of the hero sky with square bottom corners, so it looks like it rises out of the horizon.
- Sections: 112px vertical padding (`.md-section`), 24px for slim bands (`--tight`). Container 1200px with 24px gutters. Text column 680px.
- Motion: slow. Content rises 14px on load (`.md-rise`); two clouds drift 28px over 18 seconds. Respect reduced motion.

## Components (in components.css)

| Class | What it is |
|---|---|
| `.md` | Put on `<body>`: night page, Plus Jakarta Sans, light text |
| `.md-nav`, `__links`, `__end`, `.md-logo`, `.md-hide-sm` | Flat nav above the sky; links centred |
| `.md-hero-title`, `.md-h2`, `.md-h3`, `.md-lead`, `.md-link`, `.md-micro`, `.md-eyebrow`, `.md-dimmed` | Type |
| `.md-btn`, `--violet`, `--night`, `--ghost`, `--sm`, `--block`, `.md-btn__arrow` | Buttons |
| `.md-badge`, `--violet`, `--sage`, `.md-dot` | Mono pill badges |
| `.md-sky`, `--short`, `.md-cloud--a` to `--d`, `.md-moon` | The sky panel and its paint |
| `.md-hero`, `__actions` | Centred hero on the sky |
| `.md-window`, `__bar`, `__crumb`, `__tabs`, `__body` | App window with a dotted canvas |
| `.md-node`, `__head`, `__icon`, `__meta` | Small cards on the canvas |
| `.md-grid`, `.md-card`, `__icon`, `--sky` | Feature cards; `--sky` paints stars into a card |
| `.md-stats`, `.md-stat`, `__num`, `__label` | Ruled number row |
| `.md-quote`, `__who`, `.md-avatar` | Serif pull quote |
| `.md-toggle`, `.md-plans`, `.md-plan`, `--lit`, `__price` | Pricing |
| `.md-table`, `.md-table-wrap` | Comparison table |
| `.md-faq` | `<details>` FAQ |
| `.md-form`, `.md-field`, `.md-label`, `.md-input`, `.md-select`, `.md-hint`, `.md-check`, `.md-divider`, `.md-panel` | Forms |
| `.md-article`, `.md-meta` | Long reading |
| `.md-cta` | Centred closing band, usually inside a `.md-sky--short` |
| `.md-footer`, `__grid`, `__base` | Footer |
| `.md-rise` | Load animation |

## Pages in this kit

- `demo.html`: landing page. Sky hero with moon and an app window, three feature cards, a stats row, a split section with a starry card, a quote and a short sky CTA.
- `pricing.html`: sky hero with a period toggle and three plans sitting on the sky, a comparison table and an FAQ.
- `blog.html`: sky hero with title and author meta, a long article with a chart card and a pull quote, then related cards.
- `signup.html`: a full-height sky holding one form panel.

## Page recipe

1. `<body class="md">`, then `.md-nav`.
2. A `.md-sky` header with two or three `.md-cloud` divs, an optional `.md-moon`, and a `.md-hero` (eyebrow, two-line serif title, lead, violet plus night buttons).
3. Optional: a `.md-window` at the bottom of the sky, inside `.md-container`, showing the product.
4. Sections on the plain night: left-aligned eyebrow and serif `.md-h2`, then cards, stats or a split.
5. Close with a `.md-sky--short` holding a `.md-cta`, then `.md-footer`.

Pricing recipe: put the toggle in the hero and the `.md-plans` inside the same sky, so the plans float over clouds. One `.md-plan--lit` with a violet button; the others use night buttons. Table and FAQ follow on the plain page.

Article recipe: a sky header with `.md-meta`, then `.md-article` on the plain page. Use one `blockquote` and at most one chart or figure inside a `.md-card`.

Sign-up recipe: a single tall `.md-sky` centring a heading and a `.md-panel` form. One violet submit, one night alternative, a `.md-divider` between.

## Don'ts

- Don't use pure black or pure white surfaces.
- Don't bold the serif, and don't set body copy in it.
- Don't add a second accent colour or gradients on text.
- Don't stack more than two sky panels on one page, or put the sky behind long reading.
- Don't use photos of the sky. The sky is drawn: gradients, dots and soft clouds.
- Don't make clouds sharp or cartoonish; they stay soft and low-contrast.
- Don't use em dashes in copy.
