# Grain Rail

A late-night community look. The page is a warm near-black with a fine film grain over everything, like a photo of a dark room. The header is a ruled log sheet: two rows of thin paper-colored boxes holding the wordmark, the nav, a live clock and a "now" rail with a small play triangle. Headlines are a round geometric sans in lowercase, set large and a little tight. Credits, dates and tags are tiny mono. The archive is a grid of soft rounded square tiles with the credit line above a medium title. Buttons are pills: periwinkle for joining, and a bevelled grey pill with red text for anything happening right now. Asks sit in dashed rounded boxes, and every page ends on a huge lowercase wordmark. It feels like a station or studio that is still open when everything else has closed: friendly, handmade and a bit underground.

Use it for: member-run studios and co-ops, community radio, late-night venues, makerspaces, clubs with a schedule or archive, nonprofits funded by their members, anything with a "now happening" line. Avoid it for: banks and insurance, medical products, bright kids brands, luxury retail, anything that should feel corporate or squeaky clean.

## 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 Grain 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` is a complete landing page built only with the kit. `pricing.html`, `blog.html` and `signup.html` show the other page types. The example product is Night Kiln, a members' pottery studio open from 6pm to 2am.

## Fonts

All free on Google Fonts:

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

| Role | Font | Use |
|---|---|---|
| Display | Outfit 500 (600 for the footer wordmark) | Headlines, always lowercase, letter-spacing -0.03em, line-height 1.02. |
| Body | Outfit 300 to 400 | Paragraphs (300 for leads), nav, buttons, tile titles, form inputs. |
| Meta | DM Mono 400 | Tiny credits, dates, tags, labels, footer columns. 11.5px. |

## Color

| Token | Hex | Role |
|---|---|---|
| `--gr-black` | #0B0B0A | The page, inverted text on paper |
| `--gr-soot` | #161614 | Inputs, tiles without art |
| `--gr-ash` | #24231F | Hover on soot |
| `--gr-paper` | #EEEDE6 | Text, every hairline, the featured plan, small round buttons |
| `--gr-mute` | #8E8C84 | Secondary text, mono meta |
| `--gr-peri` | #8AA2FF | The one action color: join buttons, links, current nav item, one highlighted word in a headline |
| `--gr-flare` | #FF4A3D | Live only: the dot, the text in the bevelled pill, "firing now" badges, errors |
| `--gr-glaze-*` | #3F5B55 / #6B3B2E / #2F3A5E / #7A7466 / #C98A5A | Backdrops for drawn art tiles only, never for text or UI |

The grain is `--gr-grain`, an inline SVG noise laid over the page by `body::before`. Keep it on every page.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--gr-size-mark` | 72 to 300px | Footer wordmark |
| `--gr-size-hero` | 44 to 104px | Page headline |
| `--gr-size-h1` | 36 to 64px | Article title |
| `--gr-size-h2` | 28 to 42px | Section titles |
| `--gr-size-h3` | 22px | Small titles |
| `--gr-size-lead` | 20px | Intro paragraphs, weight 300 |
| `--gr-size-body` | 17px | Body |
| `--gr-size-nav` | 18px | Header rows |
| `--gr-size-meta` | 11.5px | Mono meta |

## Shape and space

- Hairlines are 1px `--gr-line` (paper at 90%) for the header boxes, plan cards and ruled logs. Use `--gr-line-soft` for rows inside content.
- Radius: 16px for small tiles, 22px for feature cards, plan cards, forms and asks, full pills for buttons, badges, selects and inputs. Nothing has square corners except the header boxes.
- No drop shadows. The only depth is the bevel on `.gr-btn--live` and a faint 1px ring on tiles.
- Dashed rounded boxes (`--gr-border-dash`) are for asks: donate, join, sliding scale.
- Space on an 8px base: `--gr-space-1` to `--gr-space-9` (4 to 112px). Sections are 72px apart. Gutter is 16 to 28px.

## Components (in components.css)

- **Header** `.gr-head`: `.gr-head-mark` (lowercase wordmark, spans both rows), two `.gr-head-row`s. Row one holds `.gr-nav` and `.gr-clock`; row two holds `.gr-now` with `.gr-tri` and a centred `.gr-now-text`.
- **Buttons** `.gr-btn` plus `--peri`, `--paper`, `--ghost`, `--live` (bevelled grey, red text, with `.gr-dot`), `--sm`, `--block`. `.gr-icon-btn` is a small paper circle ("i", arrows).
- **Badges** `.gr-badge` (outlined mono pill), `--live`, `--peri`. `.gr-dot` and `.gr-dot--pulse` for live.
- **Hero** `.gr-hero`, `.gr-hero-grid`, `.gr-hero-title` (wrap one phrase in `<em>` for periwinkle), `.gr-hero-row`.
- **Feature cards** `.gr-features` with `.gr-feature`: tall rounded art card, title top left, `.gr-feature-foot` with `.gr-play` bottom left. Art goes in `.gr-feature-art` on a `.gr-glaze--*` backdrop.
- **Archive** `.gr-filters` of `.gr-select` pills, then `.gr-tiles` of `.gr-tile`: an 84px rounded `.gr-tile-thumb`, mono credit, `.gr-tile-title`, `.gr-tags`. `.gr-pager` below.
- **Ask** `.gr-ask`, a dashed rounded centred box.
- **Log** `.gr-log` with `.gr-log-row` (mono label, bold line, badge).
- **Ticker** `.gr-ticker` and `.gr-ticker-track`, always inside a wrapper that clips.
- **Pricing** `.gr-plans`, `.gr-plan`, `.gr-plan--featured` (inverted to paper), `.gr-plan-name`, `.gr-price`, `.gr-list`, `.gr-faq`.
- **Article** `.gr-article`, `.gr-article-head`, `.gr-article-title`, `.gr-byline`, `.gr-prose` (h2, blockquote in a dashed box with a mono cite), `.gr-figure`.
- **Forms** `.gr-card`, `.gr-form`, `.gr-field`, `.gr-label` (mono, lowercase), `.gr-input` (pill), `.gr-textarea`, `.gr-choices` with `.gr-choice` pills, `.gr-check`, `.gr-help`, `.gr-error`.
- **Footer** `.gr-foot`, `.gr-foot-mark` (huge lowercase wordmark), `.gr-foot-cols` of boxed mono `.gr-foot-col`s.
- **Drawn art** fill helpers `.gr-f-*` for inline SVG (paper, black, each glaze, peri, flare, shade, shine).

## Pages in this kit

- `demo.html`: landing page with hero, three feature cards, filtered archive grid, ask box, kiln log and ticker.
- `pricing.html`: three plans (middle one inverted), sliding-scale ask, what's-included log, FAQ.
- `blog.html`: journal post with drawn figure, dashed pull quote and related tiles.
- `signup.html`: join form with pill inputs and pill choices beside a drawn art card.

## Page recipe

1. `.gr-head` with the wordmark, nav, live clock and a "now" line. Never drop the second row: it is the signature.
2. `.gr-hero`: a mono meta line, a lowercase headline with one `<em>` phrase, a light lead, then a periwinkle pill and an optional live pill.
3. A row of three `.gr-feature` cards with drawn art on glaze backdrops.
4. The archive: pill filters, then a four-column grid of tiles with mono credits.
5. A dashed `.gr-ask`.
6. A `.gr-log` of what's happening tonight, then a ticker with a small join pill.
7. `.gr-foot` with the giant wordmark and boxed mono columns.

**Pricing recipe:** hero with a meta line and short lead, `.gr-plans` with the middle plan `--featured`, a `.gr-ask` for a cheaper route, a `.gr-log` of what's included, then `.gr-faq` beside a small title.

**Article recipe:** `.gr-article` centred at 680px, outlined mono badges, lowercase title, ruled `.gr-byline`, `.gr-prose` with a lead, one drawn figure and one dashed blockquote, a closing `.gr-ask`, then three related tiles.

**Sign-up recipe:** two columns. Left: meta, headline, lead and a drawn art card. Right: `.gr-card` form with mono labels, pill inputs, `.gr-choices` for options, a check, and a periwinkle submit.

## Don'ts

- Don't use uppercase or title case for headlines. Lowercase only.
- Don't add drop shadows, gradients on surfaces, or glow.
- Don't use periwinkle and red together on one button. Periwinkle is for joining, red is for live.
- Don't put text on the glaze colors except feature card titles in paper.
- Don't square off cards or buttons. Only the header boxes are square.
- Don't remove the grain or the second header row.
- Don't use em dashes in copy.
