# Patch Bay

A dark modular-rack style. The page is an empty near-black rack, framed by rails dotted with screw holes, and the content lives on pale aluminum module panels that sit edge to edge with a hairline gap between them. Each module has a wide uppercase name with a rule under it, two corner screws, jacks, knobs and a tiny amber screen. The signature move is the patch cable: thick, sagging lines in red, yellow, teal and violet that loop between jacks and tell you how things connect. Headlines are wide and heavy, labels are small and tracked, body text is plain and friendly. It feels nerdy, playful and hands-on, like a synth rack you are allowed to rewire.

Use it for: tools that connect things (automations, integrations, pipelines, workflows), maker and hobby products, creative software, workshops and classes built around kit, small business tools that want to feel fun rather than corporate. Avoid it for: luxury and fashion, wellness and calm-first brands, long publications without a product, anything that needs a soft or quiet tone.

## 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 Patch Bay 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 shop automation tool called Switchyard.

## Fonts

All free on Google Fonts:

```html
<link href="https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@62..125,400..900&family=Figtree:wght@400;500;600;700&family=Martian+Mono:wght@400;600&display=swap" rel="stylesheet">
```

| Role | Font | Use |
|---|---|---|
| Headlines | Archivo 800 to 900, width 125% | Hero, page, section and card titles. Always uppercase, line height 1. Set `font-stretch: var(--pb-stretch-head)`. |
| Labels | Archivo 600 to 700, width 125% | Module names, jack and knob labels, buttons, nav, tags. Uppercase, tracked 0.14em, small. |
| Body | Figtree 400 to 600 | Paragraphs, form text, table cells. Sentence case. |
| Screens | Martian Mono 400 to 600 | Only inside `.pb-screen` windows, prices, step numbers and the footer base line. |

## Color

| Token | Hex | Use |
|---|---|---|
| `--pb-rack` | #131416 | Page background, the empty rack |
| `--pb-rail` | #24262a | Rails, nav, footer, FAQ rows |
| `--pb-panel` | #e5e3dd | Light module faces, the article panel |
| `--pb-panel-dark` | #1d1e21 | Black module variant, one per row at most |
| `--pb-ink` | #1a1b1e | Text on light panels, output jack boxes |
| `--pb-chalk` | #f0eee8 | Text on the rack |
| `--pb-steel` | #8b8e94 | Secondary text on the rack, jack rims |
| `--pb-red` | #e84a3c | Primary buttons, headline underline, the first cable |
| `--pb-yellow` | #f3b634 | Screen text, CTA band, the second cable |
| `--pb-teal` | #1ea89c | Feature dots, success, the third cable |
| `--pb-violet` | #7c5ff0 | Links on panels, focus ring, the fourth cable |

The four cable colors are the only bright colors. Use them for cables, small dots, left-edge module stripes and one underline per headline, never as big section backgrounds (the yellow CTA band is the one exception per page).

## Type scale

| Token | Size | Use |
|---|---|---|
| `--pb-size-hero` | 2.3 to 4.6rem | Landing hero title |
| `--pb-size-h1` | 2 to 3.4rem | Page titles |
| `--pb-size-h2` | 1.6 to 2.35rem | Section titles |
| `--pb-size-h3` | 1.15rem | Card titles |
| `--pb-size-body` | 1.0625rem | Body |
| `--pb-size-label` | 0.68rem | Labels, kickers, tags |
| `--pb-size-screen` | 0.8rem | Screen text |

Mark one phrase per headline with `<em>`: it stays upright and gets a thick red underline, like a cable laid under the word.

## Shape and space

- Everything hardware is square: 2px radius on modules, buttons, inputs and tags. Screens get 3px.
- Round shapes are only for jacks, knobs, LEDs, plugs, screws and avatars.
- Modules sit in a `.pb-rack-row` with a 5px gap (`--pb-gap-rack`), so the dark rack shows through like the space between panels.
- Modules carry two screws (top left, bottom right), a bevel on the top and bottom edge and a deep drop shadow.
- Rails (`.pb-rail`) separate big sections instead of borders or background changes.
- Cables are 7px strokes with round caps and a soft drop shadow. They always start and end on a jack, with a colored plug and a dark center ring.
- Space steps from `--pb-space-1` (0.25rem) to `--pb-space-7` (6rem). Sections use `--pb-space-7` top and bottom on desktop.

## Components (in components.css)

- `.pb-nav`, `.pb-nav-inner`, `.pb-logo` with `.pb-logo-jack`, `.pb-nav-links` (add `.pb-hide-sm` to links that hide on phones; the current page gets a yellow underline via `aria-current="page"`).
- `.pb-rail`: the screw-hole rail between sections.
- `.pb-hero`, `.pb-hero-grid`, `.pb-hero-copy`, `.pb-hero-title`, `.pb-lead`, `.pb-hero-actions`, `.pb-kicker` (with a glowing red LED).
- `.pb-rack-row` (set `--cols`), `.pb-module`, `.pb-module--dark`, `.pb-module--red|yellow|teal|violet` (left cable stripe), `.pb-module-name` (with a `<small>` for HP width or a count), `.pb-module-foot`.
- `.pb-jack`, `.pb-jack--out` (black output box), `.pb-jack--red|yellow|teal|violet` (plugged), `.pb-knob` with `.pb-knob-cap` (set `--turn`), `.pb-knob--small`, `.pb-led`, `.pb-led--on`, `.pb-led--teal`.
- `.pb-screen`, `.pb-screen--big`, `.pb-screen-dim`: small amber displays.
- Drawn racks: inline SVG with `.pb-cables`, `.pb-cable` plus `.pb-cable--red|yellow|teal|violet`, plugs `.pb-plug--*` with `.pb-plug-ring`, and paint classes `.pb-s-*` (`rack`, `rail`, `hole`, `panel`, `panel-lo`, `dark`, `ink`, `steel`, `screen`, `chalk`, `yellow`, `red`, `teal`, `label`, `mono`).
- `.pb-btn` with `--primary` (red), `--ghost` (outline on the rack), `--panel` (aluminum key), `--ink` (black), `--small`, `--block`.
- `.pb-tag` with `--yellow|teal|violet` dots, `.pb-flow` (numbered steps on tiny screens).
- Pricing: `.pb-price-row` (columns sized like module widths: 8, 12 and 9 HP), `.pb-price`, `.pb-price-per`, `.pb-feature-list` (`li.pb-off` for missing features), `.pb-table-wrap`, `.pb-table`, `.pb-faq`.
- Article: `.pb-article-head`, `.pb-byline`, `.pb-avatar`, `.pb-article` (one big light module that holds the text).
- Forms: `.pb-form`, `.pb-field`, `.pb-input`, `.pb-select`, `.pb-hint`, `.pb-check`, `.pb-choice` (radio tiles with a red bottom edge when picked).
- `.pb-quote`, `.pb-cta` (the yellow band), `.pb-footer`, `.pb-footer-grid`, `.pb-footer-base`.

## Pages in this kit

| File | Page |
|---|---|
| `demo.html` | Landing: hero with a drawn four-module rack and cables, a row of module cards, a "how a patch runs" split with a live log, quotes, yellow CTA band |
| `pricing.html` | Pricing: three plans as modules of different widths, a compare table and FAQ |
| `blog.html` | Blog post: title on the rack, the text on one big aluminum panel, a drawn two-module figure |
| `signup.html` | Sign up: copy and next steps on the left, the form inside a light module on the right |

## Page recipe

1. Rail-colored nav with the jack logo, three or four tracked links and one small red button.
2. Hero on the bare rack: kicker with LED, wide uppercase title with one underlined phrase, a grey lead, a red and a ghost button, then a drawn rack (SVG) with at least three cables.
3. A `.pb-rail`, then a section head and a `.pb-rack-row` of modules. Each module ends with jacks so it reads as hardware.
4. Alternate plain rack sections and module rows, always split by rails. Use one dark module per row for contrast.
5. Close with the yellow `.pb-cta` band, a rail and the footer.

Pricing recipe: title on the rack, then a rail, a `.pb-price-row` of modules with prices in `.pb-screen--big`, a rail, a table on the rack and a FAQ. Make the featured plan the dark module with a red stripe and a red tag.

Article recipe: kicker tags and title on the rack inside `.pb-wrap--read`, byline with avatar, then the whole text inside one `.pb-article` panel. Use one drawn figure with a cable, one yellow-ruled blockquote and violet links.

Sign-up recipe: two columns. Left: kicker, title, lead and a dark module with `.pb-flow` steps. Right: a light module with a cable stripe holding the form, a `.pb-choice` row and one red block button.

## Don'ts

- Don't round the panels or buttons. Only jacks, knobs and LEDs are round.
- Don't fill whole sections with a cable color, except the one yellow CTA band.
- Don't draw a cable that ends in mid air: every cable starts and ends on a jack with a plug.
- Don't put body text on the rack in white for long reading; long text goes on a light panel.
- Don't use more than one dark module in a row of light ones, or the rack loses its contrast.
- Don't use Martian Mono for paragraphs. It is for screens only.
- Don't add gradients or glass effects. The only glows are LEDs.
