# Moon Field

A calm night out, painted. Pages sit on deep indigo, and the top of each page is a big rounded sky panel inset from the window edges: a gradient from navy to dusky violet, a scatter of small stars, thin wisps of cloud at the top and a bank of soft, rim-lit clouds along the bottom with a warm glow where the horizon would be. Headlines are a bold, bookish serif set tight and centred. Everything else is a friendly rounded sans, with a small mono for labels. There is one violet button, dark outlined buttons beside it, and a dark app window that rises up out of the clouds and gets cut off by the bottom of the sky. It feels dreamy and unhurried but still clear and useful, like a tool you open on a quiet evening.

Use it for: outdoor and travel bookings, astronomy and nature apps, sleep and wellness products, hospitality and experiences, developer or infrastructure tools that want a softer, more human face, anything that happens at night. Avoid it for: busy retail, kids' products that need bright colour, finance dashboards that need a light page, dense data tables as the main content.

## 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 Field 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 Darkfield.

## Fonts

All free on Google Fonts:

```html
<link href="https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,600;8..60,700&family=Figtree:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
```

| Role | Font | Use |
|---|---|---|
| Headlines | Source Serif 4 600 | Display, h1, h2, stat numbers, prices, quotes. Tight tracking (-0.022em), line height 1.08, balanced wrapping. |
| Body and UI | Figtree 400 to 600 | Body at 400, buttons and nav at 500, h3 and card titles at 600. |
| Labels | JetBrains Mono 400 to 500 | Eyebrows (uppercase, wide tracking, violet), badges, table heads, forecast hours, captions. 11 to 12px. |

## Color

| Token | Hex | Role |
|---|---|---|
| `--mf-night` | #0E0C1B | The page, dark buttons, inputs and rows |
| `--mf-deep` | #15122A | Cards, plans, windows, FAQ items |
| `--mf-raise` | #1D1937 | Hover fills, the active toggle |
| `--mf-line` | #2B2646 | Every hairline |
| `--mf-line-bright` | #433C66 | Button and input borders |
| `--mf-sky-top` / `--mf-sky-mid` / `--mf-sky-low` | #1A1E3A / #2A3254 / #4A3F66 | The sky gradient, top to bottom |
| `--mf-cloud` / `--mf-cloud-lit` | #2C284F / #6A5F98 | Cloud bodies and their moonlit rims |
| `--mf-cloud-warm` | #C98A72 | The warm rim on the front clouds near the horizon |
| `--mf-moon` | #F2EFF9 | Main text |
| `--mf-mist` | #ABA5C4 | Leads and body copy |
| `--mf-dim` | #726C93 | Captions, meta, placeholders |
| `--mf-violet` / `--mf-violet-hi` | #6F52D9 / #9178EE | The one main button, eyebrows, focus rings, selected states |
| `--mf-ember` | #EBA27E | Warm badges and the blog quote rule |
| `--mf-clear` | #8ED8B2 | Good news: "clear", "go", yes cells and forecast bars |

Textures: `--mf-sky` (the gradient), `--mf-stars` with `--mf-stars-size` (a 26-star tile), `--mf-horizon` (warm glow at the bottom of the sky).

Rules:
- The violet is for one action per view plus small labels. Never fill a section with it.
- Warm colour only lives low in the sky: the cloud rims, the horizon glow and an occasional badge.
- Green means "clear" or "go" and nothing else.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--mf-text-display` | clamp(40px, 6.6vw, 84px) | Landing hero, two lines, centred |
| `--mf-text-h1` | clamp(36px, 5vw, 64px) | Page titles and closing CTAs |
| `--mf-text-h2` | clamp(30px, 3.6vw, 46px) | Section headings |
| `--mf-text-h3` | 20px | Card, plan and panel titles (sans 600) |
| `--mf-text-lead` | 19px | Mist lead, max 600px |
| `--mf-text-body` | 16px | Body; articles use 18px |
| `--mf-text-micro` | 12px | Mono labels |

Headlines are plain and warm, in sentence case, and often name a feeling or a place ("Pitch your tent where the stars still show up").

## Shape and space

- Radius: 8px for buttons, inputs, rows and badges' cousins; 14px for cards, plans and windows; 22px for the sky panel; 999px for badges and the announcement pill.
- Borders: 1px `--mf-line` on every surface. Buttons and inputs use `--mf-line-bright`.
- Shadows: deep and soft under windows and panels (`--mf-shadow`); a violet glow only under the violet button (`--mf-shadow-btn`).
- The sky: `.mf-sky` sits 16px in from the page edges with a 22px radius. Use one per page at the top, and optionally one more for a closing CTA. Inside it, add the top wisps, a `.mf-moon`, and the low cloud bank last.
- Windows: an app window in a hero has no bottom border or bottom radius, so the sky's edge cuts it off.
- Sections: 72 to 136px vertical padding. Container 1160px with 24px gutters; articles 680px.
- Motion: slow. The low clouds drift a few percent sideways over a minute (`.mf-clouds--drift`), and stop for reduced motion.

## Components (in components.css)

| Class | What it is |
|---|---|
| `.mf` | Put on `<body>`: night page, Figtree, moon text, clipped overflow |
| `.mf-container`, `.mf-narrow`, `.mf-section`, `--flush`, `.mf-rule` | Layout |
| `.mf-display`, `.mf-h1`, `.mf-h2`, `.mf-h3`, `.mf-lead`, `.mf-eyebrow`, `.mf-muted`, `.mf-dim`, `.mf-mono`, `.mf-u` | Type |
| `.mf-btn`, `--violet`, `--quiet`, `--sm`, `--block` | Dark outlined button; `--violet` is the one main action; `--quiet` is a text link button |
| `.mf-nav`, `__inner`, `__links`, `__end`, `.mf-logo` | Top bar: sans wordmark, centred grey links, quiet links on the right |
| `.mf-sky`, `.mf-clouds`, `--top`, `--low`, `--drift`, `.mf-moon` | The painted sky panel, its clouds and the moon |
| `.mf-hero`, `__body`, `.mf-actions`, `.mf-note` | Centred hero and its announcement pill |
| `.mf-window`, `--closed`, `__bar`, `__body`, `__end`, `.mf-avatar` | A dark app window; `--closed` gives it a full border |
| `.mf-forecast`, `.mf-hour`, `.is-best` | Hourly forecast tiles; set `--cover` on the `<i>` to the cloud percentage |
| `.mf-rows` | Bordered list rows with a trailing badge |
| `.mf-badge`, `--clear`, `--violet`, `--ember`, `.mf-dot` | Mono pills |
| `.mf-section-head`, `--center`, `.mf-grid`, `--2`, `.mf-card`, `__icon`, `__art` | Section heads and card grids; `__art` is a small sky |
| `.mf-stats`, `.mf-stat`, `.mf-quote` | Serif numbers between hairlines, a serif pull quote |
| `.mf-toggle`, `.mf-plans`, `.mf-plan`, `--featured`, `__price`, `.mf-table`, `.mf-scroll`, `.mf-faq` | Pricing; the featured plan is filled with sky and stars |
| `.mf-article`, `.mf-byline`, `.mf-tip` | Long-form text, byline and a violet tip box |
| `.mf-form`, `.mf-field`, `.mf-label`, `.mf-input`, `.mf-select`, `.mf-hint`, `.mf-check`, `.mf-choices`, `.mf-choice`, `.mf-divider`, `.mf-panel` | Forms in a dark glassy panel |
| `.mf-footer`, `__grid`, `__base` | Four-column footer |

### The clouds

Clouds are inline SVG, so copy them from `demo.html`. The low bank is three paths in `<defs>` (`mf-back`, `mf-bank`, `mf-warm`), each drawn twice: once in the rim colour shifted up a few units, then again in the body colour on top, which leaves a thin lit edge. The top wisps are flat ellipses. Put the low bank as the last child of `.mf-sky` so it sits behind everything else in the panel.

## Pages in this kit

| File | Page |
|---|---|
| `demo.html` | Landing: sky hero with an app window rising out of the clouds, trust line, feature cards, split forecast section, stats, quote, a second sky as the closing CTA, footer |
| `pricing.html` | Sky header with a billing toggle, three plans overlapping the bottom of the sky, comparison table, FAQ |
| `blog.html` | Sky header with title and byline, article with a drawn chart, quote and tip, related cards |
| `signup.html` | One full-height sky with copy on the left and the form panel on the right |

## Page recipe

1. `.mf-nav` on the plain night page.
2. A `.mf-sky` with the top wisps, a `.mf-moon` placed near a corner, a centred `.mf-hero` (note pill, display headline, lead, violet plus dark button) and the low cloud bank.
3. If the product has a UI, an open `.mf-window` inside the sky, below the hero, cut off by the sky's bottom edge.
4. A quiet trust line in dim serif names.
5. Sections on the night page: section head (mono eyebrow, serif h2, lead), then cards, a split with a closed window, stats and one quote.
6. Optionally a second, shorter sky for the closing CTA, then the footer.

Pricing recipe: sky header with an eyebrow, h1, lead and the toggle; plans pulled up 120px so they overlap the sky; the middle plan is `--featured`; then the table and an FAQ beside its own section head.

Article recipe: sky header in `.mf-narrow` with eyebrow, h1, lead and byline; then `.mf-article` at 18px with serif h2s, one drawn figure, one blockquote and one `.mf-tip`; end with two related cards.

Sign-up recipe: one sky that fills the viewport, a two-column grid with the pitch on the left and a `.mf-panel` form on the right, the low clouds underneath both.

## Don'ts

- Don't use photos or bitmap skies. The sky is gradient, stars and drawn clouds.
- Don't put more than two skies on a page, and never put a sky inside a card except the small `.mf-card__art`.
- Don't add a second accent colour or a gradient button.
- Don't set headlines in the sans or body text in the serif.
- Don't make the clouds busy: one low bank and a few wisps.
- Don't use pure black or pure white surfaces.
- Don't use em dashes in copy.
