# Test Card

A volunteer-run project that still looks like late-night TV. Deep indigo pages are cut by pale diagonal shards, headlines are chunky and centered in Rubik, and the main actions are square electric-blue buttons that sit side by side like channel keys. The seven stripes of a broadcast test card are the one decorative device: a full card drawn in CSS for big moments, a thin stripe above the footer and on notices, and the colors of every bar chart. Supporters and features sit in dark tiles arranged in tiers. It feels honest, functional and a little nostalgic: the site says what the thing does, who pays for it and where the money goes.

Use it for: open-source and community software, nonprofits and charities, co-ops, public and civic tools, community radio and media projects, anything run by volunteers that wants to look sturdy and plain-spoken. Avoid it for: luxury and fashion brands, wellness and beauty, photo-led storytelling, anything that needs to feel quiet or soft.

## 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 Test Card 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 free stock tracker for community food banks called Pantry Board.

## 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=JetBrains+Mono:wght@500&family=Rubik:wght@500;700;800&display=swap" rel="stylesheet">
```

| Role | Font | Use |
|---|---|---|
| Headlines, nav, buttons | Rubik 500, 700, 800 | 800 for the hero and page titles, 700 for section heads, tiers and buttons, 500 for nav links |
| Body | Atkinson Hyperlegible 400, 700, italic 400 | Everything people read. Its slashed zero is part of the look. Italic only for pull quotes |
| Labels and numbers | JetBrains Mono 500 | Small uppercase labels, counts in meters, timestamps, inline code |

Never set body copy in Rubik, and never use the mono for more than a line.

## Color

| Token | Hex | Role |
|---|---|---|
| `--tc-night` | #151B42 | The page at the top |
| `--tc-deep` | #0E1331 | Sections further down (the page darkens as you scroll) |
| `--tc-shard` | #1D2662 | Diagonal shards, the CTA band |
| `--tc-tile` | #0A0E27 | Tiles, app windows, inputs, the footer |
| `--tc-panel` | #1A2152 | Callouts, the keyed plan, meter tracks |
| `--tc-text` | #F2F3FB | Headings and body |
| `--tc-dim` | #B3B8DD | Secondary text |
| `--tc-blue` | #2B63F6 | Buttons, the heading rule, the current nav item |
| `--tc-go` | #1FAE4B | Donate and "it's working" states only |
| `--tc-link` | #86A8FF | Inline links |
| `--tc-bar-1` to `--tc-bar-7` | #C6C8D3, #E8C23A, #2BB7DA, #3CC35B, #DF4392, #C93A4E, #3B4BCB | The test card stripes, in that order |

Rules:
- Indigo, never black. The darkest surface is `--tc-tile`, and it is still blue.
- Blue is for things you press. Green is for giving money or a healthy status. Don't swap them.
- The stripe colors only appear together (the card, the stripe) or one per bar in a chart. Never use one as a button or a text color.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--tc-text-hero` | clamp(44px, 7vw, 84px) | The product name on the landing page |
| `--tc-text-h1` | clamp(34px, 4.6vw, 52px) | Page titles, CTA headings |
| `--tc-text-h2` | clamp(26px, 3vw, 34px) | Section headings, ruled headings |
| `--tc-text-h3` | 20px | Card and tile titles |
| `--tc-text-lead` | 19px | The hero lines under a title |
| `--tc-text-body` | 17px | Body |
| `--tc-text-small` | 15px | Lists, tables, bylines |
| `--tc-text-micro` | 13px | Labels, captions, legal |

Line height 1.6 for body. Headlines are tight (1 to 1.15) with slight negative tracking. Copy is plain and specific: say what the thing does, with real numbers ("1,840 pantries counting"), and say who pays for it.

## Shape and space

- Radius: 0 for buttons and inputs, 4px for tiles and plans, 3px for small chips.
- Shadows: none. Depth comes from surface color: tiles are darker than the page.
- Shards: `.tc-shards` draws two flat diagonal planes behind a hero with `clip-path`. Use it once per page, behind the top section.
- Stripe: `.tc-stripe` is an 8px test card rule. Put one above the footer, one on top of a form box, and let `.tc-callout` carry its own. No more than three per page.
- Ruled heading: `.tc-heading` centers a section title over a 3px blue line that runs wider than the text.
- Sections: 56px vertical padding, 88px at the top of a hero. Container 1160px with 24px gutters.
- Motion: 120ms color changes on hover. Nothing moves.

## Components (in components.css)

| Class | What it is |
|---|---|
| `.tc` | Put on `<body>`: indigo page, Atkinson body |
| `.tc-container`, `.tc-narrow`, `.tc-center` | Layout wrappers |
| `.tc-section`, `--deep`, `--tile` | Sections that get darker down the page |
| `.tc-shards` | Diagonal planes behind a hero |
| `.tc-stripe`, `--thick` | The test card as a rule |
| `.tc-nav`, `__end`, `__links`, `__chips`, `.tc-logo`, `.tc-mark` | Nav: round mark and two-line wordmark left, links with a blue underline on the current page, a row of small square chips under them |
| `.tc-chip`, `--go`, `--ink` | Small square icon chips (forum, code, mail, Donate) |
| `.tc-btn`, `--go`, `--ghost`, `--sm`, `--block` | Square buttons |
| `.tc-keys`, `--2` | A row of equal-width buttons, centered, stacked on phones |
| `.tc-hero`, `__meta`, `__lead` | Centered hero with a "latest release" line |
| `.tc-h1`, `.tc-h2`, `.tc-h3`, `.tc-tier`, `.tc-heading`, `.tc-label` | Headings, uppercase tier titles, the ruled heading, mono labels with a stripe swatch |
| `.tc-screen`, `__bar`, `__body`, `__side`, `__main` | An app window drawn in the page |
| `.tc-card`, `__badge` | The full test card with a round badge in the middle |
| `.tc-tiles`, `.tc-tile`, `--sm` | Dark tiles in centered tiers (sponsors, stats) |
| `.tc-feature`, `--flip` | Alternating picture and text rows |
| `.tc-meter`, `__row`, `__track`, `__fill` | Horizontal bars; set `--v` (width) and `--c` (a `--tc-bar-*` color) per bar |
| `.tc-badge`, `--blue`, `--go`, `.tc-dot` | Small mono badges |
| `.tc-callout` | Panel notice with a stripe on top |
| `.tc-form`, `.tc-field`, `.tc-fieldset`, `.tc-input`, `.tc-select`, `.tc-check`, `.tc-choices`, `.tc-choice` | Forms with square inputs and segmented choices |
| `.tc-plans`, `.tc-plan`, `--key`, `__name`, `__price` | Pricing tiles; the keyed plan gets a blue top edge |
| `.tc-table`, `.tc-table-wrap` | Comparison table |
| `.tc-faq` | Questions with a blue plus |
| `.tc-article`, `__head`, `.tc-byline`, `.tc-avatar`, `.tc-prose`, `.tc-figure` | Article layout |
| `.tc-cta` | Shard-colored call to action band |
| `.tc-footer`, `__grid`, `__base`, `--solo` | Footer on the darkest tile color |

## Pages in this kit

- `demo.html`: landing page. Shards hero with the product name, three channel-key buttons and an app window, supporter tiers, a ruled Features section with alternating rows (including the full test card), stat tiles and a CTA.
- `pricing.html`: three plan tiles with the middle one keyed, a comparison table, a "where the money goes" meter and questions.
- `blog.html`: release notes article with a test card figure, a three-step status row, an ordered list, a quote and related posts.
- `signup.html`: steps on the left, a form box with a stripe on top on the right.

## Page recipe

1. `<body class="tc">`, nav in a `.tc-container`.
2. A `.tc-shards` hero: centered title, one meta line, a `.tc-keys` row of two or three buttons, one or two lead lines, then a `.tc-screen` showing the product.
3. A `--deep` section for proof: who uses it, who pays for it, in `.tc-tier` headings over `.tc-tiles`.
4. A `.tc-heading` "Features" section of `.tc-feature` rows, alternating with `--flip`.
5. A `--tile` stat row, a `.tc-cta` band, then `.tc-stripe` and the footer.

Pricing recipe: shards hero with a plain-spoken title, `.tc-plans` in a `--deep` section with one `--key` plan, a `.tc-table`, then a meter that shows where money goes and a `.tc-faq`.

Article recipe: `.tc-article` with a centered head (label, h1, byline), a `.tc-figure` (the test card works as a hero image), `.tc-prose` body, one `.tc-callout` near the end and three related tiles.

Sign-up recipe: `.tc-shards` behind a two-column grid: numbered steps in stripe colors on the left, a tile-colored form box with a `.tc-stripe` on top on the right. One blue submit button, full width.

## Don'ts

- Don't round the buttons, and don't add shadows or glows.
- Don't use black or gray backgrounds. Every surface is indigo.
- Don't use more than one `.tc-shards` per page, or angle anything else.
- Don't use the stripe colors on their own as accents, and don't add new accent colors.
- Don't left-align the hero or the ruled headings; this style is centered at the top of every section.
- Don't write hype. Say what it does and who pays.
