# Key Chord

A friendly terminal workspace, built as a website. The page is a warm near-black, tiled into panes: plain 1px boxes with their name cut into the top border like a fieldset legend, so every block reads as a labelled window. Tabs and choices are arrow-shaped "powerline" chips that butt into each other, buttons wear square brackets, and a status bar is pinned to the bottom of the screen with keyboard hints. Headlines are a chunky, tightly tracked mono in chartreuse; everything you read at length is a plain, open sans. Coral marks keys, amber marks numbers and warnings. It feels nerdy and crafted, a bit retro, and fresh rather than grim: a tool made by people who like their tools.

Use it for: maker and hobby tools, booking boards, co-ops and community projects, indie software, developer tools that want warmth, classes and workshops, anything with a schedule or a queue. Avoid it for: luxury and fashion, wellness and calm brands, children's products, long editorial magazines, anything that should feel soft 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 Key Chord 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 in a `.kc-pane` with a `.kc-pane__tag`, and end the page with the `.kc-status` bar.

`demo.html` (a landing page), `pricing.html`, `blog.html` and `signup.html` are complete example pages built only with the kit, for an invented makerspace bench booking app called Benchtime.

## Fonts

All free on Google Fonts:

```html
<link href="https://fonts.googleapis.com/css2?family=Martian+Mono:wght@400;500;700;800&family=Red+Hat+Text:wght@400;500;700&display=swap" rel="stylesheet">
```

| Role | Font | Use |
|---|---|---|
| Headlines and UI | Martian Mono 500 to 800 | Display, h1, h2 at 800 with -0.03em tracking. Pane tags, chips, buttons, labels, prices, stats and code at 500 to 700, 11 to 13px. |
| Body | Red Hat Text 400 to 700 | Leads, body, card titles (700), list items and form inputs. |

Never set long paragraphs in the mono. Never set headlines in the sans.

## Color

| Token | Hex | Role |
|---|---|---|
| `--kc-bg` | #17191C | The page, and the cut-out behind pane tags |
| `--kc-pane` | #1D2024 | Filled panes (`--fill`) |
| `--kc-sunk` | #111316 | Screens, inputs and code |
| `--kc-bar` | #0E1012 | The status bar |
| `--kc-line` | #3A3F46 | Every pane border and divider |
| `--kc-line-hi` | #5A616B | Button and input borders |
| `--kc-text` | #E6E2D8 | Main text, chalky off-white |
| `--kc-soft` | #A3B3C4 | Leads and body copy, a steel blue grey |
| `--kc-dim` | #737B86 | Pane tags, labels, meta |
| `--kc-lime` | #B6DC70 | Display headline, active pane border, active chip, main button |
| `--kc-coral` | #EE8A8F | Key names in hints, FAQ toggles, the one sign-up button in the nav |
| `--kc-amber` | #EBC46F | Inline links, stat numbers, warnings, quote rule |
| `--kc-chip` | #3A3F47 | Inactive chips |

Also `--kc-sky` for a rare fourth data color and `--kc-lime-soft` for focus rings and the copy button tint.

Rules:
- Chartreuse means "active" or "go". One active pane per screen, one lime button per pane.
- Coral is for keys and the nav sign-up button only. Amber is for numbers, warnings and links.
- No gradients, no glow, no photos. Visuals are screens drawn with mono text and blocks.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--kc-text-display` | clamp(34px, 4.6vw, 60px) | Landing hero, in chartreuse, 3 to 4 short lines |
| `--kc-text-h1` | clamp(32px, 4.4vw, 54px) | Page titles, in chalk |
| `--kc-text-h2` | clamp(24px, 3vw, 36px) | Section headings |
| `--kc-text-h3` | 17px | Card and plan names, Red Hat Text 700 |
| `--kc-text-lead` | 20px | Steel lead, max 560px |
| `--kc-text-body` | 16px | Body (articles 18px) |
| `--kc-text-micro` | 12px | Tags, chips, labels, hints |

Headlines are short, declarative and end with a full stop ("Book the bench. Bring the project."). Pane tags and labels are lowercase ("about", "board", "fig 1").

## Shape and space

- Radius: 0 everywhere. Chips get a 9px arrow notch (`--kc-notch`) on the right and a matching cut on the left, and overlap by 4px.
- Panes: 1px `--kc-line` border, 20 to 32px padding, the tag sits on the top border at 14px from the left with an 8px page-colored gap. An optional `.kc-pane__end` tag sits top right in brackets.
- Active pane: lime border and lime tag. Use it for the hero and for the main call to action.
- Screens: a sunk `.kc-screen` inside a pane, with a head row (title plus chips), a mono body and a foot row of key hints.
- Buttons: 44px, bracketed with dim `[` `]`, mono 700 at 13px.
- No shadows on the page. `--kc-shadow` exists only for a floating menu.
- Layout: panes tile in grids with a 20px gap (24px between rows, to leave room for tags). Container 1140px with 24px gutters; articles 720px. Sections are 40 to 72px apart.
- The page always ends with a fixed `.kc-status` bar (38px). The body has matching bottom padding.

## Components (in components.css)

| Class | What it is |
|---|---|
| `.kc` | Body class: background, font, bottom padding for the status bar |
| `.kc-container`, `.kc-narrow`, `.kc-section`, `.kc-stack` | Layout |
| `.kc-display`, `.kc-h1`, `.kc-h2`, `.kc-h3`, `.kc-lead` | Type |
| `.kc-label`, `.kc-mono`, `.kc-key`, `.kc-link`, `.kc-hl` | Small mono label, mono text, coral key name, amber arrow link, lime highlight |
| `.kc-pane` (+ `--fill`, `--active`), `.kc-pane__tag`, `.kc-pane__end` | The labelled box |
| `.kc-tiles` (+ `--2`, `--3`, `--split`), `.kc-cols` | Pane grids and the three-column text row |
| `.kc-screen`, `__head`, `__body`, `__foot`, `.kc-ok`, `.kc-warn`, `.kc-err` | Drawn terminal-style screen with status colors |
| `.kc-chips`, `.kc-chip` (+ `--on`, `--coral`, `--amber`), `.kc-chip-label` | Powerline chips for nav tabs, filters and choices |
| `.kc-hint` | A key name followed by chips, for shortcut rows |
| `.kc-btn` (+ `--lime`, `--coral`, `--ghost`, `--sm`, `--block`), `.kc-actions` | Bracketed buttons |
| `.kc-copy` | A command line with a copy button |
| `.kc-nav`, `.kc-wordmark`, `.kc-version` | Top bar |
| `.kc-stat`, `.kc-badge` (+ `--coral`, `--amber`, `--dim`), `.kc-list` | Stats, outlined badges, check lists |
| `.kc-plan`, `.kc-price`, `.kc-table`, `.kc-faq` | Pricing |
| `.kc-form`, `.kc-field`, `.kc-input`, `.kc-help`, `.kc-check`, `.kc-or`, `.kc-legend` | Forms |
| `.kc-article`, `.kc-meta`, `.kc-avatar` | Blog post (h2 gets a `## ` prefix) |
| `.kc-footer`, `.kc-status` | Footer and the fixed status bar |

## Pages in this kit

- `demo.html`: nav with chip tabs, split hero (active pane with the display headline, chip choices, a copy line and buttons, next to a booking board screen), an about pane in three columns, a stats pane, three feature panes, setup steps next to a quote, an active CTA pane, footer and status bar.
- `pricing.html`: active title pane with a billing chip toggle, three plan panes (the middle one active and filled), a comparison table pane and a FAQ pane.
- `blog.html`: an active header pane with topic chips and meta, the article, a figure pane with a bar chart, and a "more from the journal" pane.
- `signup.html`: an active filled form pane (inputs, chip multi-select, select, checkbox) next to a benefits pane and a preview screen.

## Page recipe

1. `.kc-nav` with the wordmark, a version tag and chip tabs (`aria-current` on the current page), and one coral button on the right.
2. A hero in `.kc-tiles--split`: the active pane holds the display headline, lead, chips and actions; the other pane holds a `.kc-screen` showing the product.
3. Then panes, one idea each, each with a lowercase tag: about, numbers, features, steps, proof.
4. An active CTA pane with a short headline and the lime button.
5. `.kc-footer`, then `.kc-status` with the site name and 3 to 5 key hints.

Pricing recipe: an active title pane, then plans in `.kc-tiles--3` with the recommended plan as `--active --fill` and an end tag, then a compare table pane and a FAQ pane.

Article recipe: `.kc-narrow`, an active header pane (chips, h1, lead, meta), then `.kc-article` loose on the page, with figures in their own small panes.

Sign-up recipe: `.kc-tiles--split` with the form in an active filled pane (end tag shows the step), and a plain pane of benefits plus a preview screen beside it.

## Don'ts

- Don't round corners or add shadows, glows or gradients.
- Don't leave a block without a pane tag, and don't put more than one active pane on a screen.
- Don't use chips as body links, or brackets on anything that is not a button.
- Don't set paragraphs in the mono or headlines in the sans.
- Don't use coral or amber for main buttons on light actions; the main action is lime.
- Don't skip the status bar; it is the signature.
