# Code Loom

A dark, late-night style with two moods that take turns. Most of the page is quiet: near-black surfaces, a thin coal top bar, typewritten labels and walls of short codes ("KX-14") glowing faintly amber behind scanlines, with one code lit up bright as if a lamp just found it. Then, once per page, a loud woven band breaks in: tiled rings, petals and dots in cobalt, teal, ochre and plum, with a headline in heavy capitals where each chunk takes a band color. It feels cinematic, a bit nostalgic and hand-made.

Use it for: anything built around codes, tickets, bookings or places (lockers, travel, venues, escape rooms, archives, events), story-led products, games and late-night brands. Avoid it for: health, banking dashboards, children's products and anything that must feel bright, clinical or neutral.

## 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 Code Loom 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 an invented station locker service, built only with the kit. Put `class="cl"` on `<body>`.

## Fonts

All free on Google Fonts:

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

| Role | Font | Use |
|---|---|---|
| Headlines | Archivo Black 400 | Hero, section headings, plan names, the woven title. Always uppercase. |
| Typewriter | Courier Prime 400 and 700 | Code walls, labels, tags, datelines, board rows, prices, quotes. |
| Body | Figtree 400 to 700 | Paragraphs, nav, buttons, form inputs. |

## Color

| Token | Hex | Role |
|---|---|---|
| `--cl-night` | #0B0A09 | Page background |
| `--cl-coal` | #1A1918 | Top bar, cards, panels, inputs, every second section |
| `--cl-coal-2` | #24221F | Hover on coal |
| `--cl-ash` | #3B3733 | Every border and divider |
| `--cl-paper` | #EFE8DC | Headlines and body text |
| `--cl-dust` | #A39C91 | Leads and secondary text |
| `--cl-faint` | #6B655D | Captions, step numbers, fine print |
| `--cl-amber` | #FFA43D | Lit codes, labels, links, focus rings, list markers |
| `--cl-rust` | #B9461F | The button color |
| `--cl-cobalt` | #1E8FE3 | Weave only |
| `--cl-teal` | #13A194 | Weave only |
| `--cl-ochre` | #D8953A | Weave only |
| `--cl-plum` | #7B2D55 | Weave only (`--cl-plum-lit` #B24C80 for plum letters) |

Rules:
- The page is night. Coal is for bars, cards and one section in three.
- Amber glows, rust acts. Amber is never a button fill; rust is never text.
- The four weave colors appear only inside `.cl-weave`, `.cl-weave-thread` and the multicolor title. Nowhere else.
- Only one code is lit at a time. Everything else in a code wall stays dim (`--cl-amber-dim`).

## Type scale

| Token | Size | Use |
|---|---|---|
| `--cl-text-code` | clamp(56px, 10vw, 140px) | Code wall rows |
| `--cl-text-hero` | clamp(40px, 6.4vw, 84px) | Hero headline, uppercase, line-height .98 |
| `--cl-text-h2` | clamp(30px, 4vw, 52px) | Section headings |
| `--cl-text-h3` | 22px | Card and step titles |
| `--cl-text-lead` | 19px | Lead under a headline, dust color, max 600px |
| `--cl-text-body` | 16px | Body (18px inside articles) |
| `--cl-text-small` / `--cl-text-micro` | 14px / 12px | Labels, tags, captions |

Headlines are short and plain, often two short sentences ("Drop the bag. Keep the code."). Labels above them are typewritten, uppercase and amber.

## Shape and space

- Square corners on cards, panels, plans and steps (`--cl-radius-0`).
- 4px on buttons (`--cl-radius-sm`); pills only on inputs, tags and the toggle.
- Borders are 1px `--cl-ash`. The featured plan gets an amber border and a soft amber halo, the only glow on a box.
- Glow (`--cl-amber-glow`) is a text shadow for lit codes, drop caps and card letters. No other shadows on the page except `--cl-shadow` on floating things.
- Scanlines (`--cl-scanlines`) sit only over code walls.
- Sections: 72px to 128px vertical padding. Container 1160px, text 720px, gutters 20px.

## Components (in components.css)

| Class | What it is |
|---|---|
| `.cl-bar`, `.cl-bar__inner`, `.cl-bar__left`, `.cl-bar__links`, `.cl-bar__hide` | Sticky coal top bar: links left, wordmark center, links and a small rust button right. Side links hide on phones. |
| `.cl-wordmark` | Typewriter wordmark; wrap the second half in `<b>` to light it amber |
| `.cl-strip` | One-line sign-up strip under the bar: label, pill input, small rust button |
| `.cl-codes`, `.cl-codes__row`, `.is-lit`, `.cl-codes--short` | The code wall: rows of dim typewritten codes, one lit, under scanlines and a vignette |
| `.cl-weave`, `.cl-weave__title`, `.cl-weave__kicker`, `.cl-weave__big` | The woven band with a two-line title. One per page. |
| `.cl-ink-cobalt/teal/ochre/plum` | Color chunks of the big woven word |
| `.cl-weave-thread` | A 12px dotted thread of the four colors, used as a divider |
| `.cl-hero-title`, `.cl-h2`, `.cl-h3`, `.cl-lead`, `.cl-label`, `.cl-glow`, `.cl-type`, `.cl-muted` | Type |
| `.cl-btn--rust/line/paper`, `--sm`, `--block`, `.cl-actions` | Buttons |
| `.cl-card`, `.cl-card__code`, `.cl-card--link`, `.cl-grid` | Square coal cards with a big glowing letter or code |
| `.cl-tag`, `.cl-tag--lit` | Typewritten pill tags; lit has a glowing dot |
| `.cl-board`, `.cl-board__row/code/place` | Departure-board list: code, place, status tag |
| `.cl-steps`, `.cl-step`, `.cl-step__n` | Numbered steps in one bordered strip |
| `.cl-quote` | Typewritten pull quote |
| `.cl-toggle` | Pill toggle for pricing modes |
| `.cl-plans`, `.cl-plan`, `.cl-plan--lit`, `__name/__price/__note` | Pricing columns |
| `.cl-faq` | `<details>` list with amber plus signs |
| `.cl-article`, `.cl-dateline`, `.cl-figure`, `.cl-panel` | Long reading, with a glowing drop cap |
| `.cl-form`, `.cl-field`, `.cl-input`, `.cl-check` | Forms |
| `.cl-footer`, `.cl-footer__grid`, `.cl-footer__base` | Footer |

## Pages in this kit

| File | Shows |
|---|---|
| `demo.html` | Landing: bar, strip, code wall hero, woven band, steps, live board, size cards, thread, quote and call to action, footer |
| `pricing.html` | Short code wall, centered headline, toggle, three plans, FAQ, woven band |
| `blog.html` | Article head, one-row code wall, article with drop cap, quote, figure, more posts |
| `signup.html` | Two columns: form panel and a live code preview |

## Page recipe

1. `.cl-bar`, then optionally `.cl-strip`.
2. A `.cl-codes` wall with your product's own codes (seat numbers, booking refs, room codes). Light one.
3. The headline overlapping the bottom of the wall, centered, with a lead and a rust plus a line button.
4. The `.cl-weave` band with a two-line title.
5. Quiet sections: steps, a board or cards, alternating night and coal.
6. A `.cl-weave-thread`, a closing call to action, then the footer.

Pricing: short wall, headline, toggle, `.cl-plans` with the middle one `--lit`, FAQ, then the weave as the final push.

Article: label, headline, lead, dateline, then a one-row wall, then `.cl-article` at 720px. Use a typewritten blockquote and one `.cl-figure` in a panel.

Sign up: two columns, form in a `.cl-panel` on the left, a small code wall preview on the right that reacts to the form. On phones the preview moves above.

## Don'ts

- Don't use the weave colors outside the weave, and don't use the weave more than once per page.
- Don't light more than one code at a time, and don't make codes longer than about ten characters.
- Don't round cards or add drop shadows to them.
- Don't set headlines in sentence case or in the typewriter face.
- Don't put amber on buttons or rust on text.
- Don't use a light background anywhere, including forms.
