# Horizon Grid

A dark night scene that looks forward. Near-black violet surfaces, an aurora sky that fades from violet through magenta into mint, and a glowing perspective floor grid that runs off to a bright horizon line. Headlines are thin and airy (Sora at 200 to 300), labels and buttons are square mono capitals, and every box is a 1px outline with square corners. It feels calm and cinematic, with a little synth-era nostalgia, and it suits anything that happens at night or far away.

Use it for: travel and transport, night services, events and festivals, observatories and science centres, launches, futuristic consumer apps. Avoid it for: daytime family brands, healthcare forms, dense dashboards, anything that should feel warm and handmade.

## 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 Horizon Grid 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 for an invented sleeper train company, Nightliner, built only with the kit.

## Fonts

All free on Google Fonts:

```html
<link href="https://fonts.googleapis.com/css2?family=Sora:wght@200;300;400&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&family=Space+Mono:wght@400;700&display=swap" rel="stylesheet">
```

| Role | Font | Use |
|---|---|---|
| Display | Sora 200 to 400 | Hero (200), section headings (300), card titles (400), big numbers and prices (200). Never bold. |
| Body | DM Sans 400 to 600 | Paragraphs, nav links, cards, form inputs. |
| Mono | Space Mono 400 | Buttons, labels, badges, table headers, timestamps. Always uppercase with 0.06em to 0.08em tracking. |

## Color

| Token | Hex | Role |
|---|---|---|
| `--hg-night` | #0B0A14 | Page background |
| `--hg-deep` | #13111F | Panels, cards, alternate sections |
| `--hg-raised` | #1B1830 | Live rows, inline code, avatars |
| `--hg-line` | #2B2745 | Every 1px outline and rule |
| `--hg-line-bright` | #48407A | Tags, icon boxes, avatars |
| `--hg-text` | #EEEDF7 | Main text, outline buttons |
| `--hg-muted` | #9D99BA | Secondary text, leads |
| `--hg-dim` | #67638A | Captions, timestamps, footer labels |
| `--hg-violet` | #9C7CFF | The one main action, links, list bullets, live states |
| `--hg-magenta` | #D45BC6 | Sky glow and gradient text only. Never body text or buttons. |
| `--hg-mint` | #6CEFC2 | Horizon line, labels, success and done states, card corner ticks |
| `--hg-amber` | #FFC46B | Delays and warnings only |

The sky (`--hg-sky`) and horizon (`--hg-horizon`) gradients are tokens too. Use them; don't mix your own.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--hg-text-hero` | 42 to 88px | One per page, weight 200, tracking -0.035em |
| `--hg-text-h2` | 32 to 56px | Section headings, weight 300 |
| `--hg-text-h3` | 22px | Card titles, weight 400 |
| `--hg-text-lead` | 17 to 20px | The paragraph under a heading, in `--hg-muted` |
| `--hg-text-body` | 16px | Everything else (articles use 18px) |
| `--hg-text-small` | 14px | Footer, hints, meta |
| `--hg-text-micro` | 12px | Mono labels and badges |

## Shape and space

- Corners are square (`--hg-radius: 0`). The only soft corner allowed is `--hg-radius-soft` (4px) for tiny inline chips if you need them.
- Boxes are drawn with 1px `--hg-line` outlines, not shadows. Glow (`--hg-glow`, `--hg-glow-mint`) is for focus, hover on the main button, live dots and the horizon line.
- Cards get a small mint corner tick in the top left. Grids of cards share a single outline where they touch (pricing plans, stats).
- Sections breathe: `--hg-section` is 72 to 128px. Container is 1200px, reading width 720px, gutters 20px.

## Components (in components.css)

- **Base**: `.hg` on `<body>`, `.hg-container`, `.hg-narrow`, `.hg-center`, `.hg-section`, `.hg-section--deep`, `.hg-rule`, `.hg-horizon-line`.
- **Type**: `.hg-hero-title`, `.hg-h2`, `.hg-h3`, `.hg-lead`, `.hg-label` (mint mono caps), `.hg-label--muted`, `.hg-glow-text` (violet to mint gradient text, one phrase per page), `.hg-mono`.
- **Announcement**: `.hg-announce`, a full-width violet strip above the nav.
- **Nav**: `.hg-nav`, `.hg-logo`, `.hg-nav__links` (hidden under 860px), `.hg-nav__actions`.
- **Buttons**: `.hg-btn` plus `--primary` (violet, one per view), `--outline` (white outline, inverts on hover), `--ghost`, `--sm`, `--block`. Group them in `.hg-actions`.
- **Hero**: `.hg-hero` with three empty children in this order: `.hg-hero__sky`, `.hg-hero__horizon`, `.hg-hero__floor`, then content in `.hg-hero__inner`. `.hg-hero--short` for inner pages. The same three layers work inside any `position: relative; overflow: hidden; isolation: isolate` box, such as a CTA band or a strip in an article.
- **Tag**: `.hg-tag` with a `<b>` mint chip, above the hero title.
- **Marquee**: `.hg-marquee` > `.hg-marquee__track` with the items written twice.
- **Layout**: `.hg-grid` with `--2` or `--3`, `.hg-split` (text beside a visual).
- **Cards**: `.hg-card`, `.hg-card__icon`.
- **Console**: `.hg-console`, `.hg-console__bar`, `.hg-console__body`, rows of `.hg-step` (time, dot, text, state) with `--done`, `--live` or `--warn`. Use it for any sequence: a journey, a build, a timeline.
- **Stats**: `.hg-stats` > `.hg-stat` with `<strong>` and `<span>`.
- **Badges**: `.hg-badge` plus `--mint`, `--violet`, `--amber`.
- **Quote**: `.hg-quote` with `<cite>`.
- **Pricing**: `.hg-segment` toggle, `.hg-plans` > `.hg-plan` (`--featured` gets a mint top line), `__name`, `__price`, `__note`, `ul`.
- **Table**: `.hg-table-wrap` > `.hg-table`.
- **FAQ**: `.hg-faq` > `details` > `summary`.
- **Article**: `.hg-article` (styles h2, p, blockquote, code, ul), `.hg-figure`, `.hg-byline`, `.hg-avatar`.
- **Forms**: `.hg-panel`, `.hg-form`, `.hg-field`, `.hg-input`, `.hg-select`, `.hg-hint`, `.hg-check`.
- **Footer**: `.hg-footer`, `.hg-footer__grid`, `.hg-footer__base`.

## Pages in this kit

| File | Page |
|---|---|
| `demo.html` | Landing page: announcement, nav, grid hero, city marquee, live journey console, route cards, stats, quote, grid CTA, footer |
| `pricing.html` | Fares: short grid hero with a segmented toggle, three joined plans that overlap the floor, comparison table, FAQ |
| `blog.html` | Journal post: badges, thin title, byline, a horizon strip, article with a console figure and a pull quote, related cards |
| `signup.html` | Sign-up: copy and numbered perks beside a form panel, with the floor grid glowing at the bottom of the page |

## Page recipe

1. Optional `.hg-announce`, then `.hg-nav`.
2. A `.hg-hero` with sky, horizon and floor. One thin headline, one `.hg-glow-text` phrase at most, a lead and two buttons (primary and ghost or outline).
3. A `.hg-marquee` or a row of names to set the scale.
4. Alternate `.hg-section` and `.hg-section--deep`. Open each with a `.hg-label` then a `.hg-h2`.
5. Show the product working in a `.hg-console` inside a `.hg-split`.
6. Cards in a three-column grid, then `.hg-stats`, then a single `.hg-quote`.
7. Close with a CTA band that reuses the sky and horizon, then `.hg-footer`.

**Pricing recipe**: `.hg-hero--short` with a `.hg-segment`, then `.hg-plans` pulled up over the floor with a negative top margin. Exactly one `--featured` plan with the only primary button. Follow with a `.hg-table` and a `.hg-faq` beside a heading.

**Article recipe**: badges, `.hg-hero-title` at about 68px, lead and `.hg-byline` in `.hg-narrow`, then a short strip with the three hero layers as the cover image, then `.hg-article`. Use a `.hg-console` inside `.hg-figure` for diagrams. Finish with a `.hg-horizon-line` and two related cards.

**Sign-up recipe**: a page wrapper with the three hero layers fixed to the bottom, nav with a log in link, then a two-column grid: heading, lead and numbered perks on the left, `.hg-panel.hg-form` on the right. One primary button at the bottom of the form.

## Don'ts

- Don't round corners or add drop shadows. Outlines and glow only.
- Don't make headlines bold. Thin is the point.
- Don't use magenta for text, buttons or icons; it lives in the sky.
- Don't put more than one primary violet button in a view.
- Don't draw the floor grid on every section. Hero, one CTA and maybe one strip per page.
- Don't use photos as hero backgrounds; the sky and grid are the image.
- Don't write labels or buttons in sentence case. Mono labels are always capitals.
- No em dashes in copy.
