# Line Gutter

Retro, minimal and a bit cheeky: the whole website is a file open in a text editor. The page is pure black and hugs the left edge, leaving honest empty space on the right. A narrow gutter numbers every block down the page (headline, paragraph, button row, chart) with one running count, so the site reads like a single document. The nav is a row of file tabs (`develop.md`, `prices.md`), labels are grey `# comments`, the main call to action is a typed command on a highlighted active line with a blinking orange block cursor, features and plans are code folds with a `▾` you can collapse, and empty lines at the end trail off in vim-style `~` tildes above a status line. One monospace family sets everything, from a 60px headline to a 12px footnote. One accent: safety orange. No radius, no shadows, no cards.

Use it for: small labs and workshops with a nerdy streak, mail-order and subscription services, indie shops, hobby products, newsletters, developer tools, repair and maker services, anything with a sense of humour that wants to feel stripped back and direct. Avoid it for: luxury, fashion and beauty, children's products, wellness and healthcare, photo-heavy brands, and anything that needs to feel soft, warm or glossy.

## 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 Line Gutter 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. Put every block of the page in its own `.lg-ln` line inside one `.lg-buffer`.

`demo.html` (a landing page), `pricing.html`, `blog.html` and `signup.html` are complete example pages built only with the kit, for an invented mail-order film lab called Fixer: you post your rolls in a prepaid bag and get scans by email and negatives back by post.

## Fonts

One family, free on Google Fonts:

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

| Role | Font | Use |
|---|---|---|
| Headlines | Spline Sans Mono 500 | Hero and section headings. Sentence case, tracking -0.045em on the hero and -0.03em on h2, line-height about 1.1. |
| Body and UI | Spline Sans Mono 400 to 700 | Paragraphs at 15px with a loose 1.75 line-height, tabs, buttons (700), labels, tables, code. |
| Quotes | Spline Sans Mono italic 400 | Pull quotes and testimonials only, after an orange `>`. |

Never add a sans or a serif. The single mono is the point.

## Color

| Token | Hex | Role |
|---|---|---|
| `--lg-black` | #050505 | The page, everywhere. No second surface for sections |
| `--lg-bar` | #121214 | Tab bar, status line, code blocks, the contact sheet, table headers |
| `--lg-tab-on` | #1C1C1F | The open tab |
| `--lg-hl` | #1F1F23 | The active line band and form inputs |
| `--lg-rule` | #2A2A2F | Every hairline |
| `--lg-ink` | #F3F1EA | Headings, commands, values, button text on ghost buttons |
| `--lg-text` | #B9B7B0 | Body copy |
| `--lg-comment` | #7C7A75 | `# comments`, meta, help text, inactive tabs |
| `--lg-dim` | #4C4B50 | Line numbers and tildes |
| `--lg-orange` | #FF6B1A | The one accent: active line edge, cursor, primary button, one headline phrase, `##` and `>` marks |
| `--lg-string` | #C8E38A | Strings and "yes" values inside code, tables and key = value rows only |
| `--lg-key` | #8EC5F2 | Keys and flags inside code and key = value rows only |
| `--lg-red` | #FF5468 | Form errors only |

Rules:
- Black is the only page color. Panels are `--lg-bar`, and only for code, tables, charts and the contact sheet.
- Orange appears a few times per screen: one active line, one primary button, maybe one phrase in the headline.
- Green and blue are syntax colors. They never color buttons, tabs or headings.
- The only pattern is the sprocket row on the contact sheet. No gradients, no glows.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--lg-text-hero` | clamp(30px, 5.2vw, 60px) | Hero, 2 to 4 lines, medium weight, can color one phrase orange |
| `--lg-text-h2` | clamp(24px, 3.2vw, 36px) | Section headings; in articles they start with an orange `##` |
| `--lg-text-h3` | 18px | Small headings |
| `--lg-text-lead` | 17px | The sentence under the hero, max 620px |
| `--lg-text-body` | 15px | Body, line-height 1.75 |
| `--lg-text-small` | 13px | Tabs, meta, tables, line numbers |
| `--lg-text-micro` | 12px | Help, tags, status line |

Copy is plain and a little dry ("Got a roll in the drawer?"). Labels are lowercase comments ("# order a mailer bag"). Names of things can look like code (`standing_order`, `develop()`), but sentences are always real sentences.

## Shape and space

- Radius 0 on everything. No shadows anywhere.
- Borders are 1px `--lg-rule`. The only thick line is the 3px orange edge of the active line (and of a focused input).
- The buffer sits on the left: an 80px gutter (44px below 640px) and a text column of at most 760px. Do not center it. The right side of a wide screen stays empty black.
- Each line has 8px of vertical padding. Separate sections with a blank numbered line (`.lg-ln--blank`), not with big margins.
- Motion: only the cursor blinks (stepped, stops for reduced motion) and links change color. Nothing slides or fades.

## Components (in components.css)

| Class | What it is |
|---|---|
| `.lg` | Body class: black page, mono font, no sideways overflow |
| `.lg-tabs`, `.lg-tab`, `--logo`, `--on` (or `aria-current="page"`), `__dot`, `.lg-tabs__end` | Sticky file-tab nav; the open tab is lighter with an orange top edge and a small orange square |
| `.lg-buffer`, `--wide` | The numbered document; resets the line counter. One per page or per pane |
| `.lg-ln` | One numbered line: gutter number plus content. Wrap every block in one |
| `.lg-ln--blank`, `--cont`, `--active`, `--hero`, `--h2`, `--gap` | Empty line; continuation without a number; highlighted line with orange edge; number alignment for big headings; extra top space |
| `.lg-tilde` | A `~` line after the end of the content |
| `.lg-hero`, `.lg-h2`, `.lg-h3`, `.lg-lead`, `.lg-accent` | Headings and lead; `.lg-accent` colors one phrase orange |
| `.lg-c`, `--rule`, `.lg-hash` | Grey `# comment`; the rule version adds dashes after it; orange `##` for article headings |
| `.lg-prompt`, `.lg-cmd`, `.lg-cursor` | A `$` command line in ink, with a blinking orange block cursor |
| `.lg-s`, `.lg-k`, `.lg-o`, `.lg-small` | Syntax colors for strings, keys and numbers; small text |
| `.lg-btn`, `--ghost`, `--sm`, `--block`, `__key` | Square orange button with a faded `↵`; ghost has a hairline border |
| `.lg-actions`, `.lg-link`, `.lg-kbd` | Button row; ink link with an orange underline; keyboard key |
| `.lg-tag`, `--on`, `--ok` | Small square tags; orange for "most picked", green outline for status |
| `.lg-fold`, `__head`, `__title`, `__name`, `__more`, `__body` | A `<details>` code fold. The head is a numbered line with `▾` or `▸`; the body lines get a thin left rule |
| `.lg-kv`, `__k`, `__eq`, `__v`, `__v--num` | `key = value` rows for stats, specs and receipts |
| `.lg-sheet`, `.lg-frame`, `--pick`, `__no`, `.lg-sprockets` | The drawn contact sheet: frames of line drawings between sprocket rows, one picked frame in orange |
| `.lg-split`, `.lg-pane`, `__bar` | Two buffers side by side with a small file bar each; stacks below 860px |
| `.lg-switch` | Two-option toggle; the pressed one gets a `--` prefix |
| `.lg-plan__price`, `__amount`, `__per`, `.lg-list`, `--no` | Price line and a `+` list for plans |
| `.lg-table-wrap`, `.lg-table`, `__yes`, `__no`, `__col--on` | Comparison table; the wrap scrolls sideways on phones |
| `.lg-faq` | Folds used as questions |
| `.lg-prose`, `.lg-meta`, `.lg-quote`, `.lg-code`, `.lg-note`, `.lg-figcap` | Article text, slash-separated meta, `>` quotes, code panels, dashed orange notes, captions |
| `.lg-author`, `__avatar`, `__name` | Initials in an orange square plus name and meta |
| `.lg-posts`, `.lg-post`, `__file`, `__title` | Related posts as a strip of three with a file name on top |
| `.lg-form`, `.lg-field`, `.lg-label`, `.lg-input`, `.lg-select`, `.lg-select-wrap` | Fields with `# label` comments; inputs are the active-line band with an orange edge on focus |
| `.lg-input-wrap`, `.lg-input-toggle`, `.lg-help`, `.lg-error`, `.lg-field--error` | Show/hide toggle, help text, red error with a `!` |
| `.lg-check`, `.lg-divider` | Square checkbox that fills orange with an `x`; dashed "or" divider |
| `.lg-footer`, `__cols` | Four columns of links with `# headings` |
| `.lg-status`, `__mode`, `__end`, `__hide` | The status line: orange mode block (`NORMAL`, `INSERT`), file name, place and position |

## Pages in this kit

- `demo.html`: landing page (comment, hero, typed command on the active line, buttons, contact sheet, three folds, `lab.conf` stats, a quote, a closing call to action, tildes, footer and status line).
- `pricing.html`: a per-roll or yearly switch, three plans as folds with the featured one on the active line, a comparison table, FAQ folds and a final command.
- `blog.html`: a journal post with `##` headings, a line chart, a code panel, a list, a note, a quote and related posts.
- `signup.html`: a split view; the form in `start.md` on the left and a read-only `bag.conf` with a quote on the right.

## Page recipe

1. `.lg-tabs`: the logo as the first tab, then one tab per page, the current one marked, and a small right-side tab (cart, log in).
2. One `.lg-buffer` holds the page. Start with a `# comment` line saying what this is.
3. Hero line (`.lg-ln--hero`), then a lead line.
4. A blank line, a comment, then the main action as a command on `.lg-ln--active` with `.lg-cursor`, followed by a line of buttons.
5. A product visual on its own line (the contact sheet, a chart, a code panel), with a `--cont` caption line under it.
6. Features as two or three `.lg-fold`s under a comment and an h2. Leave the last one closed.
7. Stats as `.lg-kv` rows under a `# filename.conf` comment.
8. A `.lg-quote`, then a closing h2 with buttons, a blank line and three tildes.
9. `.lg-footer` and `.lg-status`.

## Pricing page recipe

1. Tabs as above, a comment, the hero and a lead.
2. A `.lg-switch` on its own line. Keep both prices in `data-` attributes and swap them in a few lines of JS.
3. Each plan is an open `.lg-fold`: the name in snake case as the head, then the price, a `.lg-list` and a button. Put the featured plan's head on `.lg-ln--active` with a `.lg-tag--on`; it is the only orange button.
4. A `--cont` line of small print, then a `# compare` comment and the table.
5. A `# questions` comment and four or five FAQ folds, the first open.
6. The closing command line on the active line and one button, then tildes.

## Article page recipe

1. A comment for the section (`# journal / in the lab`), the hero as the title, then a line with the lead and `.lg-author`.
2. One paragraph per line. Headings use `<span class="lg-hash">##</span>`.
3. Use one figure (chart or drawing in `--lg-bar` with a caption), one `.lg-code`, one list, one `.lg-note` and one `.lg-quote`.
4. Close with an author line, a `# more from the journal` comment and `.lg-posts`.

## Sign-up page recipe

1. Tabs, then `.lg-split` with two `.lg-pane`s, each with a `__bar` naming its file.
2. Left buffer: a comment, an h2 with one orange phrase, a short line, then `.lg-form` (name, email, password with a toggle, a plan select, a checkbox, a block button, an "or" divider and two ghost buttons with letters, no brand logos).
3. Show errors with `.lg-field--error` and `.lg-error`; hints in `.lg-help`.
4. Right buffer: `.lg-kv` rows saying what the customer gets, one on the active line, then a quote and a status tag.
5. End with only the status line, in `INSERT` mode.

## Don'ts

- Don't center the buffer or add a second column of content on the landing page; the empty right side is part of the look.
- Don't put a block outside a `.lg-ln`, and don't reset the counter mid-page (one buffer per page or pane).
- Don't use more than one active line per screen.
- Don't round corners, add shadows, glows or gradients, or use photos.
- Don't add a second font family, and don't set long paragraphs in bold.
- Don't use green or blue outside code-like content, or orange for errors.
- Don't write fake code that is hard to read: commands should be short and obvious, sentences should be real sentences.
