# Index Rail

A raw, functional page that reads like a well kept manual. Everything is set in one monospace face on off-white paper. A numbered index runs down the left edge (`[1] Studio`, `[2] Book a wheel`), so the whole site feels like a table of contents you can click. Product surfaces live in square black tiles, drawn as tiny screens: a terminal line, a text message, a halftone dot sphere. Buttons are square black blocks, sometimes split with a caret. There is no radius, no shadow and no gradient for decoration. The only color is a small kiln-orange block cursor that blinks after the page title.

Use it for: tools with several surfaces (desk, app, kiosk, text line), maker spaces, co-ops, repair shops, studios, indie software, developer tools, anything that wants to feel honest and a little nerdy. Avoid it for: luxury, beauty, kids' brands, wellness, or anything that needs warm photography and soft shapes.

## 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 Index 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 built only with the kit, for an invented shared pottery studio called kilnroom.

## Fonts

One family, free on Google Fonts:

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

| Role | Font | Use |
|---|---|---|
| Headlines | JetBrains Mono 400 | Page titles and section heads. Regular weight, slight negative tracking. Never bold. |
| Body | JetBrains Mono 400 | Paragraphs, nav, lists, forms. |
| Emphasis | JetBrains Mono 500 and 700 | Buttons and card titles (500), the wordmark and current index item (700). |

Do not add a second family. The single mono face is the style.

## Color

| Token | Hex | Role |
|---|---|---|
| `--ir-paper` | #F6F6F3 | The page |
| `--ir-paper-2` | #EDEDE9 | Hover fills, inline code, checked choices |
| `--ir-line` / `--ir-line-strong` | #D8D8D3 / #B9B9B3 | Dividers / input and ghost button borders |
| `--ir-ink` | #151515 | Text, primary buttons, rules above stats |
| `--ir-soft` | #5C5C58 | Leads, card text, index items |
| `--ir-faint` | #96968F | Index numbers, labels, meta |
| `--ir-tile` / `--ir-tile-2` | #191919 / #262626 | Black product tiles and fields inside them |
| `--ir-on-tile` / `--ir-on-tile-soft` | #ECECE7 / #8E8E88 | Text and dots inside tiles |
| `--ir-kiln` | #E2552C | The one accent: block cursor, focus ring, live dots, one highlighted line per tile |
| `--ir-ok` / `--ir-ok-soft` | #2F7A4A / #DCEBE0 | Success badges only |

Rules:
- Paper and ink do almost all the work. Black tiles are the only dark areas, plus the chosen pricing plan.
- Kiln orange appears at most three or four times per screen, always small: a cursor, a 6px square, one line of text in a tile.
- No gradients, except the dot pattern and shading inside a tile.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--ir-text-display` | clamp(34px, 5.4vw, 64px) | Page title (`.ir-display`), 400, tracking -0.02em, followed by `.ir-cursor` |
| `--ir-text-h2` | clamp(24px, 3vw, 32px) | Section headings, 400 |
| `--ir-text-h3` | 18px | Sub-heads, 500 |
| `--ir-text-lead` | 17px | The paragraph under a title, soft ink |
| `--ir-text-body` | 15px | Body, line-height 1.6 |
| `--ir-text-small` / `--ir-text-micro` | 13px / 11px | Index, meta, buttons / labels and badges |

Labels are uppercase micro text wrapped in brackets: `[ HOW IT WORKS ]`. Numbers are part of the voice: `[1]`, `01`, `[a]`, `journal / 014`. Copy is short, lowercase in small places (footer, topbar, labels) and sentence case in headings.

## Shape and space

- Radius: 0 everywhere. Not even on inputs.
- Borders: 1px. `--ir-line` for dividers, `--ir-line-strong` for inputs and ghost buttons, 1px ink for the line above a stat.
- Shadows: none. Depth comes from black tiles against paper.
- Layout: a 200px index rail on the left (sticky, full height), content to the right capped at 1080px, reading text at 680px.
- Space: 8px steps. Sections are 72px apart. Tiles sit 16px apart.
- Motion: only the blinking cursor (steps, no easing), off under reduced motion.

## Components (in components.css)

| Class | What it is |
|---|---|
| `.ir-shell`, `.ir-rail`, `.ir-main` | Two-column page: index rail and content. Below 760px the rail becomes a wrapped index strip on top. |
| `.ir-mark`, `.ir-mark__glyph` | Wordmark with a square ring glyph |
| `.ir-index`, `.ir-index__n` | The numbered index list. Mark the current page with `aria-current="page"`. |
| `.ir-topbar` | Small right-aligned line for status and sign in |
| `.ir-display`, `.ir-h2`, `.ir-h3`, `.ir-lead`, `.ir-label` | Type |
| `.ir-cursor` | The kiln-orange block cursor. Wrap it with the last word in `.ir-nowrap`. |
| `.ir-btn`, `.ir-btn--ghost`, `.ir-btn--wide`, `.ir-split`, `.ir-caret` | Square buttons and the split button with a caret |
| `.ir-track`, `.ir-card`, `.ir-tile`, `.ir-tile--wide` | Row of square black tiles that scrolls inside itself, with title, text and button under each |
| `.ir-screen`, `.ir-term`, `.ir-code`, `.ir-sphere` | Things drawn inside tiles: a tiny UI, a terminal line, a code or text message, a halftone dot sphere |
| `.ir-list` | Numbered rows with a right-hand note |
| `.ir-grid`, `.ir-stat` | Stats with an ink rule on top |
| `.ir-badge`, `.ir-badge--live`, `.ir-badge--ok`, `.ir-kbd` | Small square badges, live dot, key caps |
| `.ir-plans`, `.ir-plan`, `.ir-plan--pick` | Pricing columns in one bordered box; the picked plan is a black tile |
| `.ir-table`, `.ir-faq` | Comparison table and `[+]` questions |
| `.ir-article`, `.ir-meta`, `.ir-prose`, `.ir-quote`, `.ir-figure` | Blog post: `##` headings, dash bullets, `fig.` captions |
| `.ir-form`, `.ir-field`, `.ir-input`, `.ir-select`, `.ir-choice`, `.ir-check`, `.ir-panel` | Forms |
| `.ir-footer` | One quiet line at the bottom |

## Pages in this kit

- `demo.html`: landing page. Title with cursor, split button, a track of four surface tiles, numbered rules, stats and a bordered call to action.
- `pricing.html`: three plans in one box with the middle one black, a compare table and questions.
- `blog.html`: a journal post with a row of three dot-sphere tiles as the figure.
- `signup.html`: form on the left, a terminal tile and three numbered steps on the right.

## Page recipe

1. `.ir-shell` with `.ir-rail` (mark, numbered index, address in the foot) and `.ir-main`.
2. A `.ir-topbar` with one live badge and sign in.
3. `.ir-display` title ending in `.ir-cursor`, a `.ir-lead`, then `.ir-actions` with one black button (split if there are options) and one ghost.
4. A `.ir-track` of three to five tiles, one per product surface. Draw each tile's content with type and CSS only.
5. Sections with a bracketed `.ir-label`, a heading and a `.ir-list` or `.ir-grid`.
6. A bordered `.ir-panel` call to action, then `.ir-footer`.

Pricing: `.ir-plans` with plans labeled `[a]`, `[b]`, `[c]`; one `.ir-plan--pick`. Follow with `.ir-table` in `.ir-table-wrap` and a `.ir-faq`.

Article: `.ir-label` with the issue number, `.ir-display` title at h2 size, `.ir-meta`, then `.ir-prose`. Use one `.ir-figure` made of tiles, and one `.ir-quote`.

Sign up: two columns. Left: label `step 1 of 2`, title with cursor, a short form ending in a wide black button. Right: one tile summarizing what they get and a three-row `.ir-list`.

## Don'ts

- Don't round anything or add shadows.
- Don't use a sans or serif face, even for headings.
- Don't use kiln orange for buttons, backgrounds or big type.
- Don't put photos in tiles. Draw them with type, lines and dots.
- Don't drop the brackets and numbers; they are the signature.
- Don't use em dashes in copy.
