# Dither Corner

A blue-black terminal night where every word is set in monospace. Headlines are wide and soft in a periwinkle mist, body copy is a quieter blue-grey, and the only loud color is a flat lime used for the main button, checks and live dots. The signature is the dither: loose olive pixels on a strict grid gather thickly in the corners of a section and thin out toward the middle, like an image dissolving at its edges. A small pixel-art emblem sits above the headline, boxes are hairline and nearly square, and a little status dock floats in the bottom left. It feels raw, a bit retro and quietly nerdy, but friendly rather than cold.

Use it for: co-ops and member workshops, repair services, maker spaces, hobby clubs, indie software and tools, local services with a tinkering side, anything that wants to feel hands-on and a little hacker-ish. Avoid it for: luxury and fashion, children's products, healthcare, anything that needs photography, bright daytime color or a polished corporate 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 Dither Corner 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 members' bike repair co-op called Spokehold. Each page ends with the same small inline script that draws the dither; copy it as is.

## Fonts

Both free on Google Fonts:

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

| Role | Font | Use |
|---|---|---|
| Headlines | Martian Mono 400 | Display, h1, h2, prices and pull quotes. Wide and even, tracking -0.02em, sentence case. Stats and prices drop to 300. |
| Body and UI | Spline Sans Mono 400 to 500 | Body, leads, buttons, nav, forms. Buttons, h3 and names at 500. |
| Labels | Spline Sans Mono 400 | Eyebrows, badges, table heads, form labels. Uppercase, 0.08em tracking, 11px. |

Everything is monospace. Never bring in a sans or serif.

## Color

| Token | Hex | Role |
|---|---|---|
| `--dc-night` | #0E0E15 | The page |
| `--dc-deep` | #14141E | Panels, cards, plan boxes, terminal windows |
| `--dc-raise` | #1B1B28 | Ghost buttons, inline code, avatar tiles |
| `--dc-line` | #262636 | Hairlines and grid lines |
| `--dc-line-bright` | #3A3B52 | Input borders, outline buttons, badge outlines |
| `--dc-mist` | #B3B7E6 | Headlines and strong text |
| `--dc-haze` | #7C80A8 | Body, leads, nav links |
| `--dc-dim` | #4C4F6B | Meta, labels, placeholders, muted halves of headlines |
| `--dc-lime` | #A9DC6C | Main button, checks, step numbers, live dots, focus ring |
| `--dc-on-lime` | #11160B | Text on lime |
| `--dc-moss` | #2F3B26 | Most dither pixels, chart tracks |
| `--dc-moss-bright` | #4F6838 | Brighter dither pixels, the emblem, chart bars |
| `--dc-amber`, `--dc-sky`, `--dc-rose` | #E2B862, #7FB8E0, #E08394 | Swatch strips and one-off tags only. Rose is also errors. |

Rules:
- The page is blue-black, periwinkle and grey. Lime is the only accent with weight, and it appears as flat fills on small things: one solid button per view, checks, a dot, one chart bar.
- Amber, sky and rose live in the little swatch strips, a single badge or an error. Never use them for buttons or headings.
- The dither is always moss green, with roughly one in five pixels brighter and a rare single lime pixel.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--dc-text-display` | clamp(30px, 4.4vw, 56px) | Landing hero, centered, two lines at most |
| `--dc-text-h1` | clamp(28px, 3.6vw, 44px) | Page titles, CTA titles |
| `--dc-text-h2` | clamp(22px, 2.6vw, 32px) | Section headings |
| `--dc-text-h3` | 17px | Card, plan and form titles, weight 500 |
| `--dc-text-lead` | 17px | Leads, max 560px |
| `--dc-text-body` | 15px | Body, line-height 1.7 |
| `--dc-text-small` | 13px | Buttons, nav, cards, tables |
| `--dc-text-micro` | 11px | Uppercase labels |

Headlines are short, plain sentences. A second clause can drop to `.dc-muted` ("Pay for bench time, not for tools"). Never bold or uppercase a headline. Monospace is wide, so keep display lines under about 30 characters.

## Shape and space

- Radius: 2px on buttons, boxes, inputs and badges (`--dc-radius`). Checkboxes, avatars, swatches and pixels are fully square.
- Borders: 1px `--dc-line` for structure, `--dc-line-bright` for inputs and outline buttons, and a lime hairline (`--dc-lime-line`) for the announcement chip and the featured plan. Grids share borders so they read as one sheet.
- Depth: no drop shadows, no blur, no gradients. The only inset is the 3px lime bar on top of the featured plan.
- The dither: give a section `.dc-dithered`, put an empty `<div class="dc-dither" data-corners="tl tr bl br">` as its first child, and include the page script. `data-corners` takes any of `tl tr bl br t b`, `data-reach` (0.3 to 0.5) sets how far the pixels spread, `data-sprinkle` (0 to 0.006) sets the few stray pixels in the middle, and `data-seed` changes the pattern. Pixels snap to a grid set by `--dc-pixel` and `--dc-pixel-step`.
- Icons and drawings are made of squares: inline SVG `<rect>`s on an 8px grid, filled with `currentColor`.
- Layout: 1120px container with 32px gutters (16px on phones), 680px for articles. Sections 72 to 112px apart. Heroes are centered; inner sections use a two-column head (title left, lead right).

## Components (in components.css)

| Class | What it is |
|---|---|
| `.dc` | Put on `<body>`: night page, Spline Sans Mono, clipped sideways overflow |
| `.dc-container`, `.dc-narrow`, `.dc-section`, `--tight`, `.dc-rule`, `.dc-center` | Layout |
| `.dc-display`, `.dc-h1`, `.dc-h2`, `.dc-h3`, `.dc-lead`, `.dc-eyebrow`, `.dc-muted`, `.dc-lime`, `.dc-mist`, `.dc-prompt`, `.dc-caret` | Type. `.dc-eyebrow` has a lime square; `.dc-caret` adds a blinking block cursor |
| `.dc-btn`, `--lime`, `--line`, `--lg`, `--sm`, `--block`, `.dc-link`, `.dc-actions` | Ghost button on raised fill, solid lime button, outline button, sizes, an underlined link and a button row |
| `.dc-nav`, `__inner`, `__links`, `__end`, `__icon`, `.dc-wordmark`, `__mark` | Nav with a 3 by 3 pixel mark, mono links, square icons and a small lime Join |
| `.dc-dithered`, `.dc-dither` | The signature corner pixels |
| `.dc-hero`, `.dc-chip`, `.dc-emblem` | Centered hero, lime-outlined announcement chip, pixel-art emblem |
| `.dc-head` | Two-column section head |
| `.dc-box`, `.dc-grid`, `--2`, `--4`, `.dc-cell`, `__num`, `__icon` | Hairline box and a shared-border feature grid with `01 / LABEL` numbers |
| `.dc-term`, `__bar`, `__body` | Terminal window: square traffic lights, `b` is mist, `em` is lime, `u` is amber |
| `.dc-split`, `.dc-steps` | Two-column split and numbered hairline steps |
| `.dc-stats`, `.dc-stat__num`, `__label` | Light-weight numbers with a lime unit |
| `.dc-themes`, `.dc-theme`, `.dc-swatches` | Small cards with a row of four swatch squares |
| `.dc-badge`, `--lime`, `--amber`, `.dc-dot` | Square mono badges and a blinking live dot |
| `.dc-dock`, `__art` | Floating status card, bottom left. It sits in the flow on phones |
| `.dc-toggle`, `.dc-plans`, `.dc-plan`, `--featured`, `__top`, `__price`, `__note`, `__list`, `.dc-no` | Billing toggle and plans with `+` and `-` list marks |
| `.dc-table-wrap`, `.dc-table`, `.dc-yes` | Comparison table; ticks are `[x]` in lime |
| `.dc-faq` | Details list with `[+]` and `[-]` |
| `.dc-article__head`, `.dc-meta`, `.dc-author`, `.dc-avatar`, `.dc-prose`, `.dc-quote`, `.dc-figure`, `__frame`, `.dc-bars` | Article parts. Prose h2s get a dim `## ` and lists a lime `*`. `.dc-bars` draws a bar chart from pixel squares |
| `.dc-card`, `.dc-form`, `.dc-field`, `.dc-field-row`, `.dc-label`, `.dc-input`, `--error`, `.dc-select`, `.dc-hint`, `--error`, `.dc-check`, `.dc-picks`, `.dc-pick`, `.dc-divider` | Forms, with square checkboxes and pick tiles |
| `.dc-cta` | Centered closing call to action, usually dithered at the bottom corners |
| `.dc-footer`, `__grid`, `__base` | Footer |

## Pages in this kit

- `demo.html`: dithered full-height hero with chip, pixel wheel emblem, display headline and two buttons; a six-cell feature grid; steps beside a terminal status window; a stats row; themed nights with swatch strips; a dithered CTA; the floating bench dock.
- `pricing.html`: dithered header with a billing toggle, three plans with the middle one featured, a comparison table, an FAQ and a CTA.
- `blog.html`: a plain field-notes article with a pixel bar chart, a list, inline code and a lime-ruled pull quote.
- `signup.html`: dithered page, emblem and numbered perks on the left, a form card on the right with pick tiles, an error state and an outline alternative.

## Page recipe

1. A `.dc-dithered` wrapper with `.dc-dither` (all four corners), the `.dc-nav` and a centered `.dc-hero`: `.dc-chip`, `.dc-emblem`, `.dc-display`, `.dc-lead`, then a lime and a ghost button.
2. Sections opened by `.dc-head` with one idea each: a `.dc-grid`, a `.dc-split` with `.dc-steps` and a `.dc-term`, a `.dc-stats` row.
3. A `.dc-cta` dithered at the bottom corners, then `.dc-footer`. Optionally a `.dc-dock` showing something live.

Pricing recipe: dithered header (top corners only), centered eyebrow, h1 with a muted clause, lead and `.dc-toggle`; then `.dc-plans` with the middle plan `--featured` holding the only lime button; then a table and an FAQ in a 1 to 2 split.

Article recipe: no dither until the closing CTA. `.dc-narrow` column, `.dc-article__head` with a lime badge in `.dc-meta`, h1, lead and `.dc-author`; `.dc-prose` with h2s every few paragraphs, one `.dc-figure` and one `.dc-quote`.

Sign-up recipe: a `.dc-dithered` main (`bl tr`, low sprinkle), copy and `.dc-steps` perks on the left, a `.dc-card` form on the right with a lime submit and an outline alternative under a `.dc-divider`.

## Don'ts

- Don't use any font that isn't monospace.
- Don't put more than one lime button in view, and never fill a section with lime.
- Don't let the dither crowd the copy: keep pixels in the corners and the sprinkle low behind text.
- Don't round corners past 2px, and don't add shadows, blur or gradients.
- Don't use photos or soft illustrations. Draw with squares.
- Don't set headlines bold or uppercase. Only labels are uppercase.
- Don't use em dashes in copy.
