# Quiet Brackets

A plain text page left open late at night. The page is warm charcoal and everything on it is words in one monospace family, Victor Mono, whose italics turn into a loose handwriting. There are no cards, no borders and no pictures. Every link is a word in square brackets, and its color tells you what it does: green to act, blue to go somewhere, violet for the odd or optional, amber for numbers and notes. Rules are typed dashes, lists line up with dot leaders, charts are drawn with characters, and the only solid shapes are flat color bars. Headlines arrive as scrambled glyphs that settle into words. It feels raw, nerdy and a bit nostalgic, like a homepage from before the web got busy.

Use it for: small subscriptions and newsletters, tools for hobbyists and clubs, outdoor and weather services, indie software, radio and audio projects, data that people check every day, anything that should feel honest, quiet and handmade. Avoid it for: shops that need product photos, children's products, luxury or fashion brands, busy dashboards, anyone who needs a bright daytime feel.

## 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 Quiet Brackets 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 a made-up tide and sea temperature service for cold-water swimmers called Tidewatch.

## Fonts

One family, free on Google Fonts:

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

| Role | Font | Use |
|---|---|---|
| Headlines | Victor Mono 400, italic 400 for the key word | Display lines are regular weight, lowercase-friendly sentences. One or two key words are `<em>`, which renders as the cursive italic in green. |
| Body and UI | Victor Mono 400 and 500 | Paragraphs, nav, links, buttons (500), forms, tables. |
| Labels and captions | Victor Mono italic 400 | `// labels`, chart captions, table heads, quotes and the footer `eof`. |

Never add a second family. The whole style depends on everything being on the same character grid.

## Color

| Token | Hex | Role |
|---|---|---|
| `--qb-bg` | #1D1C1A | The page, everywhere. Warm charcoal, never pure black |
| `--qb-deep` | #161513 | The footer band and inline code |
| `--qb-raise` | #272622 | Inputs, hover rows, the pressed toggle |
| `--qb-line`, `--qb-line-soft` | #3B3934, #2E2C28 | Dim typed rules, dot leaders, input underlines |
| `--qb-bright` | #F1EDE4 | Headlines and strong words |
| `--qb-text` | #CFCAC0 | Body copy |
| `--qb-dim`, `--qb-faint` | #8D887E, #5E5A53 | Brackets, meta and captions; placeholders, "no" cells and chart fill |
| `--qb-green`, `--qb-green-ink` | #3CC795, #10261D | Act: buttons, the bar, typed rules, "yes", the `<em>` in headlines; ink is the text on a green bar |
| `--qb-blue` | #52AADB | Go: nav, links to other pages, the logo, the water in charts |
| `--qb-violet` | #AE82E3 | Optional: "random", extras, tags, the second series in a chart |
| `--qb-amber` | #E69B4E | Numbers: prices, times, values, the live badge, notes |
| `--qb-red` | #E2675D | Form errors only |

Rules:
- Each accent has one job. Don't make a nav link green or a price blue.
- Accents are for text and flat bars only. No accent backgrounds bigger than a button or a bar.
- The page has no gradients and no glow.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--qb-text-display` | clamp(24px, 3.4vw, 36px) | The display line. Modest on purpose: this style speaks quietly |
| `--qb-text-h2` | clamp(18px, 2.2vw, 21px) | Section headings, plan names |
| `--qb-text-h3` | 16px | Feature headings |
| `--qb-text-lead` | 16px | The sentence under a headline, max 54ch |
| `--qb-text-body` | 14.5px | Body (article prose is 15px with 1.8 line height) |
| `--qb-text-small` | 13px | Meta, help, tables, footer |
| `--qb-text-label` | 12px | `// labels`, badges, captions |
| `--qb-text-ascii` | clamp(10.5px, 1.5vw, 13px) | ASCII charts, so a 54 character chart fits a phone |

Headlines end with a full stop and read like plain sentences ("Know the water before you get in."). Button text is lowercase and short ("start at dawn"). Labels are lowercase.

## Shape and space

- Radius 0 everywhere. No shadows. No borders, except a dashed underline on inputs and a dashed line under table heads.
- Dividers are typed: `.qb-rule` prints a row of hyphens in green (or `--dim` in `--qb-line`). Use a short green rule above a headline and a full rule between sections.
- The only filled shapes: the green `.qb-bar` in the nav, the bar above the featured plan, the green button, the square badge dot and the violet avatar square.
- One left-aligned column: 680px for most pages, 480px for forms. The column hugs the left gutter and leaves the right side of wide screens empty, like a text file.
- Section rhythm: 48px top and bottom, with a rule between sections.
- Motion: headlines scramble in once on load, the button cursor `_` and the badge dot blink. Both stop for reduced motion.

## Components (in components.css)

| Class | What it is |
|---|---|
| `.qb`, `.qb-page`, `--form`, `.qb-section`, `--tight`, `.qb-stack` | Body class, the left-aligned column and section spacing |
| `.qb-nav`, `__inner`, `__end`, `.qb-logo` | Italic `//name` logo, bracket links and a green bar on the right |
| `.qb-display`, `.qb-h2`, `.qb-h3`, `.qb-lead`, `.qb-small`, `.qb-label`, `.qb-text` | Type. `.qb-label` prints `// ` before itself |
| `.qb-scramble` | Add to a headline to scramble it in (needs the small inline script from any example page) |
| `.qb-link`, `--go`, `--alt`, `--meta`, `--plain`, `.qb-links` | Bracketed links in blue, green, violet, amber or dim; `aria-current="page"` gets green brackets |
| `.qb-btn`, `--lg`, `--block`, `--ghost`, `.qb-actions` | A flat green bar with a blinking `_`, or a bracketed green word |
| `.qb-bar`, `--amber`, `--violet`, `--blue`, `--thin` | Flat color bars |
| `.qb-rule`, `--dim`, `--short` | Typed hyphen rules |
| `.qb-hero` | Top section |
| `.qb-badge`, `__dot`, `--violet`, `--green` | `( text )` badges; the amber one has a blinking square dot |
| `.qb-ascii`, `__caption`, spans `.w .g .a .v .f` | A `<pre>` for character charts, with color spans for water, green, amber, violet and faint |
| `.qb-meter`, `__fill`, `__empty` | A typed progress bar: `[#######---] 7/10` |
| `.qb-leaders`, `__key`, `__dots`, `__val`, `--yes`, `--no` | Key, dot leader, value rows |
| `.qb-features`, `.qb-feature`, `__key` | Two columns of numbered heading and paragraph pairs |
| `.qb-tracks`, `__time` | A numbered list with `01` counters and an amber value |
| `.qb-list`, `--alt` | `+` bullets in green, `~` bullets in violet |
| `.qb-quote` | `> ` quote in cursive italic, `-- name` |
| `.qb-faq` | `? question` and answer pairs |
| `.qb-toggle` | `[monthly] / [yearly]`, the pressed one in green |
| `.qb-plans`, `.qb-plan`, `--featured`, `__head`, `__name`, `__desc`, `__side`, `__price`, `__per` | Plans as text blocks: `== name ==`, leaders, an amber price; the featured one sits under a green bar |
| `.qb-table-wrap`, `.qb-table`, `.qb-yes`, `.qb-no` | Plain comparison table |
| `.qb-meta`, `.qb-author`, `.qb-avatar`, `.qb-prose`, `.qb-figure`, `.qb-note`, `.qb-posts` | Article parts. Prose h2s print `## `, prose links print brackets, notes print `!` |
| `.qb-form`, `.qb-row-2`, `.qb-field`, `.qb-field-label`, `.qb-input`, `.qb-select`, `.qb-textarea`, `.qb-help`, `.qb-error`, `.qb-field--error`, `.qb-choices`, `.qb-choice`, `.qb-check`, `.qb-or` | Forms. Labels end in `:`, checkboxes render as `[ ]` and `[x]` |
| `.qb-footer`, `__inner`, `__row`, `__eof` | A darker band with a rule, a line of links and an italic `eof` |

## Drawing with characters

Charts are the only pictures. Build them as a `<pre class="qb-ascii">` on a fixed grid, at most 54 characters wide so they fit a phone:

1. A left axis of 4 character labels in amber (`4.6m`, `20°`), then ` |`.
2. The line itself in `.w` (blue) using `~` for slopes and `-` for peaks and troughs. A second series uses `*` in `.v` (violet).
3. Fill under a line with `.` in `.f` (faint) when it helps the shape read.
4. A `+----` baseline in faint, then time or month labels in amber, with past values in faint.
5. A `.qb-ascii__caption` in italic below.

Generate the rows with a few lines of code (a cosine is enough for tides, seasons or traffic) rather than typing them by hand, so the columns line up. Always give the `<pre>` an `aria-label` that says what the chart shows.

## Pages in this kit

- `demo.html`: nav, a live badge, a short rule, the scrambled display line, the lead, a tide chart, a green button with a violet bracket link, six numbered features, a sample message as dot leaders beside a meter, a numbered list beside two typed lists, a quote, a FAQ, the footer.
- `pricing.html`: a label, the display line, the lead and the toggle, three plans as text blocks (the middle one under a bar), small print, a comparison table and money questions.
- `blog.html`: meta with a badge, the display title, lead and author, prose with `##` headings, a two-series character chart, a quote, inline code, a bracket link, a note and a list of more posts.
- `signup.html`: a 480px column with a step label, display line, lead and a typed meter, then the form with an error example, `[x]` choices, a block green button, "or" and a block ghost button.

## Page recipe

1. `.qb-nav` with the logo, three or four `.qb-link`s (the sign-up one `--go`) and a `.qb-bar`.
2. `.qb-hero`: a `.qb-badge`, a short `.qb-rule`, a `.qb-display.qb-scramble` with one `<em>`, a `.qb-lead`, a `.qb-ascii` chart, then `.qb-actions` with one `.qb-btn--lg` and one bracket link.
3. A rule, then a `.qb-label`, `.qb-h2` and `.qb-features`.
4. Dim rules between the rest: `.qb-leaders` beside copy and a `.qb-meter`, `.qb-tracks` beside `.qb-list`s, a `.qb-quote`, a `.qb-faq`.
5. `.qb-footer` with an `eof`.

## Pricing page recipe

1. `.qb-label`, `.qb-display`, `.qb-lead`, `.qb-toggle` with a violet badge. Keep prices in `data-monthly` and `data-yearly` and swap them with a few lines of JS.
2. `.qb-plans` with three `.qb-plan`s. Each lists its features as `.qb-leaders`. Only the featured one gets the solid `.qb-btn`; the others use `--ghost`.
3. Small print, a dim rule, the `.qb-table`, a dim rule and a `.qb-faq`.

## Article page recipe

1. `.qb-meta` with a `--violet` badge, date and read time. Then the scrambled display title, lead and `.qb-author`.
2. `.qb-prose`: short paragraphs, `h2`s, inline `code`, one `.qb-figure` with a `.qb-ascii` chart, one `.qb-quote`, one `.qb-note`.
3. A dim rule and `.qb-posts` with amber dates.

## Sign-up page recipe

1. `.qb-page--form`: a `.qb-label` step counter, display line, lead and a `.qb-meter` showing progress.
2. A rule, then `.qb-form`: two-up names, email with an error, password with help, a select, two `.qb-choices` groups, a `.qb-check`, a block green button, `.qb-or` and a block ghost button.

## Don'ts

- Don't add cards, boxes, borders or shadows. Typed rules and space do the dividing.
- Don't add photos, icons or illustrations. Draw with characters or use a flat bar.
- Don't use a second font, or a sans for body copy.
- Don't use an accent outside its job (green acts, blue goes, violet is optional, amber is numbers).
- Don't round anything.
- Don't center the page or fill the right side of wide screens.
- Don't scramble body copy or more than one headline per screen.
- Don't use em dashes in copy.
