# Pixel Bloom

Light, airy and quietly futuristic. The page is a pale mint-to-sky wash. Headlines are a thin, light-weight grotesk at big sizes, and every small label is uppercase mono with wide tracking. Navigation and buttons are separate rectangles with thin ink outlines, sitting side by side like keys. The signature visual is a soft cloud of white and mint spheres inside a field of square teal pixels, crossed by one magenta ribbon. It feels scientific and calm, with a little wonder.

Use it for: health and wellness apps, science and research products, biotech, climate and weather tools, data products that should feel gentle rather than technical. Avoid it for: loud consumer launches, food and hospitality, kids, anything that wants warmth or texture.

## 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 Pixel Bloom 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 product called Airloom (street-level pollen and air forecasts).

## Fonts

All free on Google Fonts:

```html
<link href="https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@300;400;500&family=Martian+Mono:wght@400;500&display=swap" rel="stylesheet">
```

| Role | Font | Use |
|---|---|---|
| Headlines | Hanken Grotesk 300 | Hero, section headings, big numbers, pull quotes. Always light. Never bold. |
| Body | Hanken Grotesk 400 to 500 | Paragraphs, card titles, table cells, form text. |
| Labels | Martian Mono 400 | Nav links, buttons, eyebrows, badges, table heads, metadata. Always uppercase, 11 to 12px, tracking 0.14em. |

## Color

| Token | Hex | Role |
|---|---|---|
| `--pb-mint` | #E5F7E6 | Top-left of the page wash |
| `--pb-sky` | #E2F1FB | Bottom-right of the page wash |
| `--pb-paper` | #F6FBF8 | Quiet sections and table heads |
| `--pb-white` | #FFFFFF | Cards, inputs, readouts, the light side of every sphere |
| `--pb-ink` | #121815 | Text, every outline, the solid button, the one dark band |
| `--pb-soft` | #55625C | Leads and secondary text |
| `--pb-line` | #CFDCD5 | Quiet dividers inside cards, tables and forms |
| `--pb-teal` | #1CC3C7 | The pixel field, list bullets, meters, live dots, focus ring |
| `--pb-teal-deep` | #0F8F95 | Teal labels and badge text that must pass contrast |
| `--pb-magenta` | #D23A95 | The ribbon, one highlighted word, one badge, error states |
| `--pb-lime` | #D3EB5E | One small tilted ring near the cloud. Never text, never a surface |

Rules:
- The wash is the page background on every page. Do not put flat white behind whole sections; use `--pb-paper` for a quiet band instead.
- Teal is a texture, not a paint: it appears as squares (pixels, bullets, meters), never as a filled button or big block.
- Magenta appears once or twice per screen: the ribbon plus at most one word or badge.
- No drop shadows on buttons. Outlines do the work.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--pb-text-hero` | clamp(44px, 6.2vw, 84px) | Hero headline, weight 300, tracking -0.03em, line-height 1.04, two short lines |
| `--pb-text-h2` | clamp(32px, 4vw, 54px) | Section headings, weight 300 |
| `--pb-text-h3` | 22px | Card and row titles, weight 400 |
| `--pb-text-lead` | 19px | The paragraph under a headline, soft gray, max 560px |
| `--pb-text-body` | 16px | Body |
| `--pb-text-label` | 11px | Mono uppercase labels |

Headlines are calm and plain ("Breathe easier tomorrow"), sentence case, no full stop. Big numbers (prices, times) use the light headline weight with tight tracking.

## Shape and space

- Outlines: 1px `--pb-ink` on nav links, buttons, cards, inputs, tables and panels. Dividers inside them use `--pb-line`.
- Radius: 6px on almost everything, 3px on badges and checkboxes, 14px on big panels. No pills, no circles except the spheres.
- Joined boxes: nav links, toggles and the button arrow overlap by 1px so their borders merge into one ruled row.
- Glass: cards and nav boxes are white at 62% with a light blur, so the wash shows through.
- Shadows: only `--pb-shadow` under readouts and the featured plan, and the soft teal shading on spheres.
- Sections: 72px to 128px vertical padding. Container 1240px, text 720px.
- Motion: a slow 14px rise on load. Nothing spins or bounces.

## Components (in components.css)

| Class | What it is |
|---|---|
| `.pb` | Put on `<body>`: the wash, fonts and base text |
| `.pb-logo`, `__mark` | A mark box and a word box, joined |
| `.pb-nav`, `.pb-nav__links`, `.pb-nav__keep` | Logo left, links as a row of joined outline boxes; under 960px only `.pb-nav__keep` links stay |
| `.pb-hero-title`, `.pb-h2`, `.pb-h3`, `.pb-accent` | Light headlines; `.pb-accent` makes one word magenta |
| `.pb-lead`, `.pb-label`, `--teal`, `.pb-dot` | Soft lead; mono uppercase label; a small square dot |
| `.pb-btn`, `__text`, `__arrow`, `--solid`, `--light`, `--sm`, `--block` | Outline box button with an attached arrow box; solid ink for the main action |
| `.pb-toggle` | Joined boxes, the chosen one filled ink |
| `.pb-badge`, `--magenta`, `--teal` | Tiny mono outline tag |
| `.pb-stage`, `--panel` | A positioned box that holds the bloom; the panel version has an outline and the wash |
| `.pb-pixels`, `--fine` | The square teal pixel field, fading out in uneven blocks toward its edges |
| `.pb-cloud`, `.pb-ball`, `--mint`, `--ring` | Spheres placed with `--x`, `--y` and `--s` custom properties; `--ring` is the small lime ring |
| `.pb-ribbon` | Positions an inline SVG ribbon (a thick rounded path with a magenta gradient) |
| `.pb-card`, `__num`, `__title`, `__text` | Glass card with a mono label high above the title |
| `.pb-readout`, `__head`, `__row`, `__big` | A white product panel of label and value rows |
| `.pb-meter` | A row of small squares; `.on` is teal, `.hot` is magenta |
| `.pb-index` | Numbered rows split by ink rules: number, title, text |
| `.pb-stats`, `.pb-stat`, `__num` | Big light numbers in joined outline cells |
| `.pb-quote`, `.pb-avatar` | Large light pull quote with a square initials avatar |
| `.pb-plans`, `.pb-plan`, `--featured`, `__top/__name/__desc/__price/__list` | Pricing cards; the featured one is white with a magenta-to-pink top edge |
| `.pb-table-wrap`, `.pb-table`, `__yes`, `__no` | Comparison table; a teal square means yes |
| `.pb-faq` | `<details>` list with a square plus that fills ink when open |
| `.pb-meta`, `.pb-prose`, `.pb-callout`, `.pb-author`, `--card` | Article parts: square teal bullets, a magenta rule on quotes, a white callout with a teal edge |
| `.pb-post`, `__thumb`, `__title`, `__text` | Related post card whose thumbnail is a small bloom |
| `.pb-form`, `.pb-field`, `.pb-field-row`, `.pb-input`, `.pb-select` | Outline inputs with a teal focus ring |
| `.pb-input-wrap`, `.pb-input-toggle`, `.pb-help`, `.pb-error`, `.pb-field--error` | Show-password button, helper text and a magenta error state |
| `.pb-check`, `.pb-divider-text`, `.pb-btn--social`, `.pb-btn__letter` | Square checkbox, "or" divider, a social button with a letter tile (no brand logos) |
| `.pb-section`, `--paper`, `--ink`, `.pb-rule` | Section surfaces and a 1px ink rule |
| `.pb-grid`, `--2/--3/--4`, `.pb-container`, `.pb-narrow`, `.pb-center` | Layout helpers |
| `.pb-footer`, `__cols`, `__bottom` | Footer with mono column labels |
| `.pb-fade`, `--2`, `--3` | Slow rise on load, off for reduced motion |

## Pages in this kit

- `demo.html`: landing page. Hero copy on the left, a big bloom on the right with a product readout overlapping it, numbered how-it-works rows, a coverage panel, three glass cards, a quote and a call to action on a pixel field.
- `pricing.html`: a pixel field behind the heading, a billing toggle, three plans, a comparison table, an FAQ and one ink band.
- `blog.html`: an article with a bloom cover panel, a bar chart drawn in teal and magenta squares, prose, a callout, an author card and related posts.
- `signup.html`: split screen. The form on the wash on the left, a tall bloom with a product readout on the right.

## Page recipe

1. Nav: the joined logo boxes on the left, the row of outline link boxes on the right.
2. Hero: a mono label with a square dot, a light two-line headline, a soft lead, a solid button with an arrow box next to an outline button.
3. The bloom beside or behind the hero: a pixel field, five to eight spheres of mixed sizes clustered together, one lime ring, one magenta ribbon. Let a white readout panel overlap its edge.
4. Numbered rows (`.pb-index`) for how it works.
5. A paper band with copy on one side and a bloom panel on the other.
6. Glass cards, a quote, and a centered call to action over a pixel field.

Pricing recipe: heading with a pixel field to its right, a toggle, three plans (featured in the middle), the table on a paper band, the FAQ in two columns, and one ink band to close.

Article recipe: narrow header with a teal badge and mono meta, a bloom cover panel at container width, then 720px prose. Charts are drawn as square bars. End with an author card and three related posts.

Sign-up recipe: split screen, form left and bloom right. Social button first, then the "or" divider, then fields. On phones the bloom panel moves under the form.

## Don'ts

- Don't make headlines bold or use a serif.
- Don't round buttons into pills or give them shadows.
- Don't fill large areas with teal or magenta. Teal is squares, magenta is a line.
- Don't use circles for dots, bullets or meters. Everything small is square.
- Don't put photos in the hero. The bloom is the image.
- Don't write labels in sentence case: mono labels are always uppercase.
