# Scan Desk

A hobby computer's built-in manual, open on a slate blue screen. Pages are a muted slate, never black, and the nav is a powder blue tab bar where the current tab sinks down into the page. Headlines are chunky pixel type with a hard dark shadow, while everything people read sits in a calm, very legible sans. Each page has one big CRT screen with a thick dark bezel: striped like a test card, dark with a terminal readout, or a little pixel scene drawn in SVG. Corners are square, borders step out in two pixels, and dithered checker strips stand in for divider lines. Accents come from a small sixteen-color kit: tomato for the one thing to press, mustard for the one thing to notice. It feels retro, nostalgic, a bit cheeky and properly nerdy, but readable enough for real instructions.

Use it for: indie and hobby software, outdoor and hobby apps, tools for clubs and classes, consumer apps with a sense of humour, anything with numbers people check on a small screen. Avoid it for: luxury brands, healthcare and legal, enterprise sales, anything that has to feel hushed 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 Scan Desk 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 tide and wind planner for kayaks and small boats called Tidebit.

## Fonts

Free on Google Fonts:

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

| Role | Font | Use |
|---|---|---|
| Headlines, logo, tabs, buttons, prices | Jersey 15 | Every heading, every button and tab. Hero and h1 get a hard 3 to 4px bezel shadow down and right |
| Body | Atkinson Hyperlegible 400, 700, italic 400 | Everything people read, 15 to 19px |
| Terminal and labels | VT323 | Eyebrows, form labels, badges, keys, table heads, meta lines, terminal blocks. Uppercase for labels, 18 to 24px |

Never set paragraphs in Jersey 15 or VT323. VT323 runs small, so never set it under 16px.

## Color

| Token | Hex | Role |
|---|---|---|
| `--sd-page` | #343D59 | The page |
| `--sd-sunk` | #2A3149 | Alternate sections, sunk cards, notes |
| `--sd-deep` | #1E2336 | Footer, inputs, terminal blocks |
| `--sd-panel` | #3E4868 | Cards, plans, forms, FAQ rows |
| `--sd-line` | #56628A | Borders, table rules, the dither |
| `--sd-bezel` | #181C2B | Screen bezels, stepped shadows, text shadows |
| `--sd-bar` | #A3B6CF | The tab bar, plan heads, the CTA band, keys |
| `--sd-bar-ink` | #2A3149 | Text on the bar |
| `--sd-text` | #EEF1F7 | Headings and body |
| `--sd-soft` | #C2CADB | Secondary text |
| `--sd-tomato` | #E4593F | The one button to press, the hot plan head |
| `--sd-mustard` | #F4C552 | Highlighted words, eyebrows, stats, focus rings |
| `--sd-aqua` | #52C7CF | Links, notes, water in sprites |
| `--sd-leaf` | #6CBF5C | Terminal text, ticks, "yes" |

Plus `--sd-sky`, `--sd-plum`, `--sd-sand` for sprites and the palette strip only.

Rules:
- Slate, never black, for pages. Only bezels are near black.
- Tomato is for the one thing to press. Mustard is for the one word to notice. Never put them on the same element.
- Sprite and palette colors (sky, plum, sand) never show up as text or section backgrounds.
- Inline SVG uses the `.sd-f-*` fill classes, never hex values.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--sd-text-hero` | clamp(48px, 7vw, 88px) | The landing headline |
| `--sd-text-h1` | clamp(40px, 5vw, 64px) | Page titles |
| `--sd-text-h2` | clamp(32px, 3.6vw, 44px) | Section headings |
| `--sd-text-h3` | 28px | Card titles |
| `--sd-text-lead` | 19px | The line under a title |
| `--sd-text-body` | 17px | Body |
| `--sd-text-small` | 15px | Card bodies, lists, tables |
| `--sd-text-term` | 22px | Terminal blocks |
| `--sd-text-micro` | 18px | VT323 labels |

Line height 1.65 for body, 1 for pixel headings. Copy is plain and specific with a wink: real numbers ("3,214 tide stations"), short sentences, and the odd game phrase (press start, player one, insert boat) in headings and buttons, never in instructions. Hero titles may carry a version tag in powder blue (`.sd-ver`), like a program name.

## Shape and space

- Radius: 0 everywhere.
- Stepped borders, not soft shadows: cards and plans use `--sd-step` (a 2px bezel outline plus a hard 4px offset), buttons and small parts use `--sd-step-sm`. Inputs and sunk boxes use `--sd-inset`.
- Buttons carry `--sd-bevel` (a light top line, a dark bottom line) and press down 2px.
- CRT screen: `.sd-screen` (bezel, label, green LED) around `.sd-screen__glass`, which is striped by default (`--sd-scan`), `--dark` for a readout or chart, or `--sea` for a scene. Scan lines sit on top. One screen per page.
- Dither: `.sd-rule` is an 8px checker strip under section headings. `--sd-dither-bar` is the powder blue version.
- Sprites: tiny pixel drawings in inline SVG with `shape-rendering="crispEdges"` on an 8 or 16 unit grid. One sprite per card, one in the logo, one above the hero title.
- Palette strip: `.sd-palette`, ten colors, once at the top of the footer.
- Sections: 72px vertical padding (48px on phones). Container 1120px, narrow 720px, 24px gutters.
- Motion: stepped (`--sd-tick`). The terminal caret blinks. Nothing glides or fades.

## Components (in components.css)

- `.sd-tabs`, `.sd-tabs__inner`, `.sd-tabs__list`, `.sd-tab`, `.sd-tab--on`, `.sd-tab--end`, `.sd-logo`: the powder blue tab bar. The list scrolls sideways on phones instead of wrapping.
- `.sd-btn`, `--bar`, `--ghost`, `--sm`, `--block`, `.sd-btn-row`
- `.sd-hero`, `.sd-hero__sprite`, `.sd-hero-title`, `.sd-h1`, `.sd-h2`, `.sd-h3`, `.sd-lead`, `.sd-eyebrow` (VT323, with a `>` prompt), `.sd-mark`, `.sd-ver`
- `.sd-screen`, `.sd-screen__glass` (`--dark`, `--sea`), `.sd-screen__readout`, `.sd-screen__label`, `.sd-screen__led`
- `.sd-rule`, `.sd-rule--bar`, `.sd-palette`
- `.sd-grid`, `.sd-card`, `.sd-card--sunk`, `.sd-card__icon`
- `.sd-badge` (`--hot`, `--ok`), `.sd-key` (keyboard caps)
- `.sd-stats`, `.sd-stat`, `.sd-stat__num`, `.sd-stat__label`
- `.sd-term`, `.sd-caret`, with `.sd-dim` and `.sd-y` spans
- `.sd-plans`, `.sd-plan` (`--hot`), `.sd-plan__head`, `.sd-plan__price`, `.sd-plan__per`, `.sd-plan__list` (`li.sd-no`), `.sd-table`, `.sd-table-wrap`, `.sd-faq`
- `.sd-article`, `.sd-meta`, `.sd-note`, `.sd-quote`, `.sd-figure`
- `.sd-form`, `.sd-form__head`, `.sd-form__body`, `.sd-field`, `.sd-label`, `.sd-input`, `.sd-select`, `.sd-hint`, `.sd-check`, `.sd-choice`
- `.sd-cta`, `.sd-footer`, `.sd-footer__cols`, `.sd-footer__base`
- `.sd-f-*`: SVG fill classes for sprites

## Pages in this kit

- `demo.html`: landing page. Tab bar, sprite and versioned hero title, a dark CRT screen with a stepped tide chart, three sprite cards, a terminal block beside copy, stats, a powder blue CTA band, footer.
- `pricing.html`: three plans with bar-colored heads (the hot one in tomato), a comparison table, FAQ rows, CTA.
- `blog.html`: narrow article with a pixel sea scene on a CRT screen as the lead figure, a note, a pull quote in mustard, a terminal block.
- `signup.html`: copy and a striped test-card screen on the left, a form panel with a bar head on the right.

## Page recipe

1. `body.sd`, then the `.sd-tabs` bar with the logo sprite and tabs; mark the current tab `.sd-tab--on`.
2. A centered `.sd-hero`: sprite, pixel title with a `.sd-ver` tag, a lead, one tomato button and one ghost button.
3. One `.sd-screen` right under the hero, showing the product's main number or chart.
4. Sections alternate `--sd-page` and `.sd-section--sunk`. Each heading gets an eyebrow above and a `.sd-rule` below.
5. Close with a `.sd-cta` band in powder blue and the `.sd-footer` with the palette strip.

Pricing recipe: an h1 with one `.sd-mark` word, then `.sd-plans` with three plans, the middle one `--hot`, then a table in `.sd-table-wrap`, `.sd-faq`, and a CTA.

Article recipe: `.sd-wrap--narrow`, eyebrow, h1, `.sd-meta`, a `.sd-figure` with a screen, then `.sd-article` with h2s, one `.sd-note`, one `.sd-quote` and at most one `.sd-term`.

Sign-up recipe: two columns that stack under 860px. Left: eyebrow, h1, lead, a striped screen with a short test-card message, and three perks with `.sd-key` numbers. Right: `.sd-form` with a bar head, fields, a `.sd-choice` row and one tomato button.

## Don'ts

- Don't round anything, and don't use blurred shadows.
- Don't use pure black or pure white surfaces.
- Don't set body copy in a pixel or terminal face.
- Don't put more than one CRT screen on a page, or more than one tomato button in a view.
- Don't use photos. Draw with pixel sprites, stepped bars and stripes.
- Don't animate smoothly: steps or nothing.
