# Guide Rail

A dark, precise style drawn on a visible layout grid. The page is warm charcoal. Two thin vertical rails frame the content column all the way down, every section starts with a hairline that crosses the rails, and a tiny plus mark sits at each crossing, like registration marks on a blueprint. Inside, cards are cells joined by 1px lines rather than floating boxes. Headlines are heavy and tight in white, with the last line in mint. Mint pill buttons, mono labels with a small square bullet, and code-style cards with a file tab and soft syntax colors finish it. It feels technical, tidy and fresh, but not cold.

Use it for: developer and data products, infrastructure, ops and planning tools, civic and community tools that want to look organised, gardening, energy and science products with a technical side. Avoid it for: luxury, fashion, kids' products, wellness that should feel soft, anything that must feel playful or hand-made.

## 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 Guide Rail 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 one invented product, Tillrow (plot maps, watering rotas and waiting lists for community gardens), built only with the kit.

## Fonts

All free on Google Fonts:

```html
<link href="https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500&display=swap" rel="stylesheet">
```

| Role | Font | Use |
|---|---|---|
| Headlines | Geist 700 | Hero and section headlines, tracked tight (-0.035em hero, -0.03em h2), line-height about 1.05 |
| Body | Geist 400 to 600 | Paragraphs, nav, buttons, forms |
| Mono | Geist Mono 400 to 500 | Labels, tags, code cards, table heads, footer headings, legal line |

## Color

| Token | Hex | Role |
|---|---|---|
| `--gr-night` | #101214 | The page |
| `--gr-panel` | #16191C | Panel bands, code cards, the featured price, the sign-up panel |
| `--gr-panel-2` | #1D2124 | Inputs, hover on linked cells |
| `--gr-line` | #25292D | Rails, band lines, cell joins, borders |
| `--gr-line-2` | #33383D | Outline buttons, inputs, tags |
| `--gr-text` | #F3F5F4 | Headlines and main text |
| `--gr-dim` | #969DA3 | Leads, body in cells, nav on hover off |
| `--gr-faint` | #5F666C | Plus marks, code comments, captions |
| `--gr-mint` | #55E6C1 | The one accent: main button, last headline line, active tab, label bullet, focus |
| `--gr-plum` | #C7A2FF | Syntax and product UI only |
| `--gr-sand` | #F0C879 | Syntax and product UI only |
| `--gr-coral` | #FF8A7A | Syntax and product UI only |

Rules:
- Mint is the only accent in the page chrome. One mint button per view.
- Plum, sand and coral live inside code cards, maps and charts. Never on buttons or headlines.
- The mint announcement bar is the only full mint surface.
- Glows are soft mint radial washes behind heroes and closing sections only.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--gr-text-hero` | clamp(42px, 5.4vw, 68px) | Hero, two or three short lines, last one in `.gr-mint` |
| `--gr-text-h2` | clamp(30px, 3.6vw, 46px) | Section headings, two lines, second in `.gr-mint` |
| `--gr-text-h3` | 19px | Cell and card titles |
| `--gr-text-lead` | 18px | Dim leads, max 520px |
| `--gr-text-body` | 16px | Body; articles at 18px |
| `--gr-text-micro` | 12px | Mono labels, uppercase, tracked 0.06em |

Write headlines as short stacked statements that end on the payoff: "Every plot. One shed key. One garden map." The final line is mint.

## Shape and space

- The grid is the decoration. Every section is a `.gr-band` (hairline on top) holding a `.gr-rails` column (hairline left and right). Plus marks appear automatically where they cross.
- Radius: 16px on the sign-up panel, 12px on code cards, cell grids and tables, 8px on inputs and icon tiles, pills on buttons, tags, toggles and choices.
- Borders: always 1px. Cards are joined cells (`.gr-cells`, 1px gap on a line background), never separate floating boxes with gaps.
- Shadow: only `--gr-shadow` on the sign-up panel. Everything else is flat.
- Sections: 72px to 120px of padding inside the rails, 48px side gutter (20px on phones). Rails column 1180px, reading column 700px.
- Left align most sections; center the pricing intro and the closing call to action.

## Components (in components.css)

| Class | What it is |
|---|---|
| `.gr` | Body class: charcoal page, Geist, no sideways scroll |
| `.gr-band`, `--flush`, `--panel`, `--glow` | Full-width section with a top hairline; `--flush` drops the line (use for the nav) |
| `.gr-rails` | The framed column inside a band, with side rails and plus marks |
| `.gr-pad`, `.gr-pad--sm`, `.gr-narrow`, `.gr-center` | Spacing and widths inside the rails |
| `.gr-announce` | Mint bar above the nav |
| `.gr-nav`, `.gr-nav__left`, `.gr-nav__links`, `.gr-nav__end`, `.gr-logo` | Mint uppercase wordmark, white links, a text log-in link and a small mint button |
| `.gr-hero-title`, `.gr-h2`, `.gr-h3`, `.gr-mint`, `.gr-lead`, `.gr-label`, `.gr-mono`, `.gr-muted` | Type |
| `.gr-btn--mint/outline`, `--sm`, `--block`, `.gr-actions` | Pill buttons |
| `.gr-hero` | Two columns: words left, code card right |
| `.gr-code`, `.gr-code__bar`, `.gr-code__tab`, `.gr-code__meta` | Code card with a file tab; spans `.c .k .s .f .n` color comments, keywords, strings, functions, numbers. Also frames product UI (maps, rotas) |
| `.gr-strip`, `.gr-strip__label`, `.gr-strip__names` | "Trusted by" cell with a row of names |
| `.gr-cells`, `--2`, `--4`, `.gr-cell`, `.gr-cell__icon`, `.gr-cell__meta` | Hairline-joined card grid; `a.gr-cell` lifts on hover |
| `.gr-tag`, `.gr-tag--mint` | Mono pills |
| `.gr-stat`, `.gr-quote`, `.gr-avatar` | Numbers, quotes and initials |
| `.gr-toggle`, `.gr-price`, `--featured`, `.gr-price__head`, `.gr-price__amount`, `.gr-table-wrap`, `.gr-table` | Pricing (put `.gr-price` items inside `.gr-cells`) |
| `.gr-faq` | `<details>` rows with a mint plus |
| `.gr-byline`, `.gr-article`, `.gr-note` | Blog post |
| `.gr-panel`, `.gr-form`, `.gr-field`, `.gr-input`, `.gr-row`, `.gr-check`, `.gr-or`, `.gr-choices` | Forms |
| `.gr-footer`, `.gr-legal` | Footer with mono column heads, then a legal band |

## Pages in this kit

- `demo.html`: landing page with a config-file hero card, a name strip, three joined cells, a live plot map, a quote with stats and a closing call to action
- `pricing.html`: three joined price cells with a monthly or yearly toggle, a comparison table and a FAQ
- `blog.html`: a journal post with a rota cover card, a pull quote, inline code and a note
- `signup.html`: pitch on the left, sign-up panel on the right with role choices

## Page recipe

1. `.gr-announce` bar, then the nav in a `.gr-band--flush`.
2. `.gr-band--glow` hero: label, stacked headline ending in mint, lead, mint and outline buttons, and a `.gr-code` card on the right.
3. A thin band with a `.gr-strip` of names.
4. Feature band: label and two-line h2 on the left, lead on the right, then three `.gr-cells`.
5. `.gr-band--panel` with a product picture inside a `.gr-code` card.
6. Quote and three stats.
7. Centered `.gr-band--glow` closing call to action.
8. Footer band and legal band.

**Pricing recipe:** centered glow intro with a headline, lead and `.gr-toggle`, three `.gr-price` cells inside `.gr-cells` (the middle one `--featured`), a band with the `.gr-table`, then a panel band with the h2 on the left and `.gr-faq` on the right.

**Article recipe:** glow band with label, stacked headline, byline and a `.gr-code` cover showing product UI, then `.gr-article` in the reading column with one `.gr-quote`, one `<code>`, one `.gr-note`, and a panel band of three linked cells.

**Sign-up recipe:** one glow band split in two: label, headline, lead and a short plus-bullet list on the left; a 440px `.gr-panel` on the right with an outline button, `.gr-or`, fields, `.gr-choices` and one mint block button.

## Don'ts

- Don't drop the rails or the band lines. Without the grid it is just another dark page.
- Don't float cards with gaps and shadows. Join them into cells.
- Don't use more than one mint button per view, and never color buttons plum, sand or coral.
- Don't put the mint on the first line of a headline. It is the payoff, so it goes last.
- Don't use pure black or pure white; stay on the tokens.
- Don't round the rails' corners or animate the grid.
- Don't use em dashes in copy.
