# Rail Star

Open, friendly and a little homemade. Plain white pages split into blocks by thin ink rules, a fixed left rail with stacked text links, and big plain grotesk sentences that talk to the reader like a person at the door. Controls are rose pills with ink outlines, a cobalt bar carries the news, and one chunky magenta asterisk is the mark. Pictures are flat drawn shapes, never photos, each with a tiny caption above it. It feels creative and welcoming because it looks made by hand with a ruler and three pens, and it says "everyone is welcome" without shouting.

Use it for: community studios and workshops, classes, clubs, co-ops, nonprofits, creative tools, education, anything that wants beginners to feel at home. Avoid it for: luxury, finance, enterprise software, dark moody brands, anything that needs to look expensive or very serious.

## 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 Rail Star 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 Kiln Club, a fictional community pottery studio, built only with the kit.

## Fonts

All free on Google Fonts:

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

| Role | Font | Use |
|---|---|---|
| Everything | Schibsted Grotesk 400 to 700 | The talking intro at 400, headlines at 500, card titles at 700, body, nav, buttons, forms |
| Labels | IBM Plex Mono 400 to 500 | Cell numbers ("01"), tags in caps, times in schedules, footer headings |

## Color

| Token | Hex | Role |
|---|---|---|
| `--rs-paper` | #FFFFFF | Every page and cell |
| `--rs-well` | #F3F2F0 | Behind drawn artwork, recipe boxes, inline code |
| `--rs-ink` | #191919 | Text, every rule and every outline |
| `--rs-magenta` | #E5205F | The asterisk, the logo, one highlighted phrase per headline, star bullets |
| `--rs-rose` | #F07AA1 | Pill controls, the selected toggle and choice, the closing banner |
| `--rs-rose-soft` | #FBDBE6 | One highlighted cell, tags, button hover |
| `--rs-cobalt` | #2337B8 | The top announcement bar, focus rings, hover on the ink button |
| `--rs-clay` / `--rs-moss` | #E39A54 / #7AA66A | Drawn artwork only |

Rules:
- Color sits in flat blocks: a full-width bar, a filled pill, a filled cell. No gradients, no tints on text except the magenta highlight.
- One cobalt bar at the top of a page and at most one rose bar near the bottom.
- Only one rose-soft cell per row.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--rs-text-display` | clamp(30px, 3.4vw, 44px) | The talking intro paragraph on landing pages, weight 400, max 24 characters per line wide |
| `--rs-text-h1` | clamp(36px, 5vw, 64px) | Page titles, weight 500, tracking -0.035em |
| `--rs-text-h2` | clamp(26px, 2.8vw, 34px) | Block headings and big numbers, weight 500 |
| `--rs-text-h3` | 20px | Cell titles, weight 700 |
| `--rs-text-body` | 17px | Body; 19px inside `.rs-prose` |
| `--rs-text-caption` | 12px | Captions above artwork, mono labels |

Write the intro as one warm run-on paragraph that ends with a welcome ("Beginners, regulars and the clay-curious are all welcome!"). It is the only place an exclamation mark is allowed. Headlines are sentence case; one phrase may go magenta with `.rs-hl`.

## Shape and space

- Rules: 1px ink (`--rs-rule`) between the rail and the page, between blocks, and between cells. Soft gray rules (`--rs-rule-soft`) only between rows inside a list or table.
- Radius: controls and buttons are full pills; inputs are 22px; recipe boxes 18px; artwork, cells and blocks are square.
- Shadows: none. Depth comes from rules and filled color.
- The rail is 200px and sticky. Below 860px it becomes a top bar with the logo and a "Menu" pill.
- Blocks: 40px to 80px vertical padding, 20px to 40px side padding.
- Motion: the asterisk turns into place once on load. Nothing else moves.

## Components (in components.css)

| Class | What it is |
|---|---|
| `.rs-app`, `.rs-main` | Two-column shell: rail and ruled main column |
| `.rs-rail`, `__links`, `__foot`, `__menu` | Sticky left rail with the logo, stacked links and pill buttons at the bottom; collapses to a top bar |
| `.rs-logo` | Lowercase magenta wordmark with a small asterisk between the words |
| `.rs-asterisk` | Inline SVG with three `<line>`s that draws the six-arm magenta asterisk at any size |
| `.rs-bar`, `--rose`, `__close` | Full-width cobalt (or rose) announcement bar with a close cross |
| `.rs-controls`, `.rs-select`, `.rs-search` | Row of rose pill dropdowns and a long rose search pill, all ink outlined |
| `.rs-btn`, `--rose`, `--ink`, `--lg`, `--block` | Outlined pill buttons; rose fill for the main action in the rail, ink fill for the main action on a page |
| `.rs-intro`, `.rs-display` | The talking paragraph beside a big asterisk |
| `.rs-h1`, `.rs-h2`, `.rs-h3`, `.rs-lead`, `.rs-hl`, `.rs-soft`, `.rs-link`, `.rs-tag`, `--cobalt` | Type and small mono tags |
| `.rs-block`, `--tight`, `__head`, `.rs-ruled-top`, `.rs-caption` | Ruled blocks and the tiny caption that sits above artwork |
| `.rs-art` with `.a-*` fills | A full-width drawn SVG panel standing in for photos |
| `.rs-cells`, `--2`, `--4`, `.rs-cell`, `__num`, `--rose` | Grids split by 1px ink rules |
| `.rs-stars` | List with magenta asterisk bullets |
| `.rs-rows` | Schedule rows: mono time, title, tag |
| `.rs-toggle`, `.rs-plan`, `__price` | Pill toggle split by a rule; plans live in `.rs-cells` |
| `.rs-table`, `.rs-faq` | Ruled table; FAQ whose asterisk turns when open |
| `.rs-article-head`, `.rs-meta`, `.rs-prose`, `.rs-recipe`, `.rs-code` | Article parts; blockquotes get a big magenta asterisk |
| `.rs-form`, `.rs-field`, `.rs-label`, `.rs-input`, `.rs-textarea`, `.rs-hint`, `.rs-choices`, `.rs-choice`, `.rs-check` | Form parts; choices are pills that fill rose when picked |
| `.rs-footer` | Four ruled cells with mono headings |

## Pages in this kit

- `demo.html`: rail, cobalt bar, controls row, talking intro with the asterisk, a drawn shelf of pots, three ruled cells, a schedule, a big quote, four numbers, a rose bar and the ruled footer.
- `pricing.html`: title with a magenta phrase, pill toggle that switches prices, three plans in ruled cells, a comparison table and an FAQ.
- `blog.html`: journal article with a drawn figure, a blockquote, a recipe box and two related cells.
- `signup.html`: ruled two-column split with promises and an asterisk on the left, a form with date pills on the right.

## Page recipe

1. `.rs-app` with `.rs-rail` on the left.
2. In `.rs-main`: a cobalt `.rs-bar`, then `.rs-controls` if the page has anything to filter.
3. `.rs-intro`: one `.rs-display` paragraph and a large `.rs-asterisk`.
4. A `.rs-caption` and a full-width `.rs-art` panel.
5. `.rs-cells` for what you offer, then `.rs-block`s for details, a quote in `.rs-display`, and a row of numbers in `.rs-cells--4`.
6. A rose `.rs-bar` and the `.rs-footer`.

Pricing recipe: `.rs-block` with tag, `.rs-h1` and a `.rs-toggle`; plans as `.rs-cells` with the favourite in `.rs-cell--rose` and an ink button; a `.rs-caption` about concessions; `.rs-table`; `.rs-faq` beside its heading.

Article recipe: controls row, `.rs-article-head` with tag, title and meta, a caption and `.rs-art`, then `.rs-prose` with one blockquote and one `.rs-recipe`, then two related cells and a rose bar.

Sign-up recipe: a two-cell ruled split. Left: tag, `.rs-h1` with a magenta phrase, lead, `.rs-stars`, an asterisk at the bottom. Right: `.rs-form` with `.rs-choices`, fields, one checkbox, an ink button beside an outlined one.

## Don'ts

- Don't add shadows, gradients or rounded cards. Blocks are square and ruled.
- Don't use photos or stock illustrations. Draw flat shapes with ink outlines.
- Don't fill buttons with magenta; magenta is for the mark and highlights.
- Don't center the layout in a narrow column on desktop. The rail stays on the left and blocks run edge to edge.
- Don't put more than one magenta phrase in a headline, or more than one cobalt bar on a page.
- Don't write cold copy. Speak like the person at the front desk.
