# Pixel Moss

A muddy moss-brown night that feels like a lab notebook left out in the garden. Heavy, tightly tracked grotesque headlines sit in soft sage, leads are set in a small book serif, and every piece of chrome (logo, nav, sign-up card, featured plan) is a flat paper plate with square corners. Stippled pixel swarms (lime dots on cyan with a lime outline) drift at the edges, loose square pixels scatter like confetti, one lilac stroke crosses the page at an angle, and a thin red, cream and lilac rail runs down the left edge. It feels raw, a bit odd and very made by hand.

Use it for: creative tools, co-ops and community projects, urban farming and gardening, maker products, indie launches, anything that wants to feel experimental but friendly. Avoid it for: banks, healthcare, luxury brands, anything that needs to look polished and quiet.

## 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 Moss 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 rooftop beehive co-op called Hivelot.

## Fonts

All free on Google Fonts:

```html
<link href="https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:wght@400;500;600;700;800&family=Source+Serif+4:opsz,wght@8..60,400;8..60,500&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
```

| Role | Font | Use |
|---|---|---|
| Headlines | Schibsted Grotesk 700 to 800 | Hero, section headings, plan names, big numbers. Tracking -0.04em, line-height under 1. |
| Body | Schibsted Grotesk 400 to 600 | Nav, buttons, cards, tables, form text. |
| Serif | Source Serif 4 400 | Leads under headlines, article body, quotes, FAQ answers. Small and soft, never bold. |
| Mono | JetBrains Mono 400 to 500 | Uppercase labels, tags, readouts, meta lines, code. |

## Color

| Token | Hex | Role |
|---|---|---|
| `--pm-moss` | #37300A | The page background |
| `--pm-moss-deep` | #28230A | Deep bands, dark panels, footer, code |
| `--pm-moss-raise` | #453D12 | Cards and the CTA box on the ground |
| `--pm-moss-line` | #5C5322 | Borders on the ground |
| `--pm-sage` | #93B8A6 | Headlines on moss |
| `--pm-cream` | #F0EEDF | Body text, card titles |
| `--pm-muted` | #B4AD86 | Leads and secondary text |
| `--pm-paper` | #F3F1E7 | Paper plates: nav, logo, sign-up card, featured plan, paper sections |
| `--pm-ink` | #17150A | Text and the main button on paper |
| `--pm-lime` | #B8F23E | The action color: primary button, pixel stipple, bullets, readout values |
| `--pm-cyan` | #4DB6EE | Swarm fill, the tab dot, the callout edge |
| `--pm-pink` | #EE7BC0 | A second swarm, quote bars, open FAQ marker |
| `--pm-lilac` | #CBB4F5 | The angled stroke, avatars, the bottom of the rail |
| `--pm-red` | #D92B45 | The top of the rail and form errors only |

Rules:
- Moss is the default ground. One paper section per page breaks it up; paper plates do the rest.
- Lime is the only button color on moss. On paper, buttons are ink.
- Cyan, pink and lilac belong to drawings (swarms, strokes, tags), never to body text.
- No gradients, no glows, no blur. Everything is flat.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--pm-text-hero` | clamp(46px, 7.4vw, 104px) | Hero headline, left aligned, 2 lines, tracking -0.045em, line-height 0.94 |
| `--pm-text-h2` | clamp(34px, 4.6vw, 60px) | Section headings, tracking -0.04em |
| `--pm-text-h3` | 22px | Card titles and sub-headings |
| `--pm-text-lead` | 18px | The serif sentence under a headline, max 460px wide |
| `--pm-text-body` | 16px | Body |
| `--pm-text-label` | 12px | Mono uppercase labels with a lime pixel in front |

Headlines are short and plain ("A beehive on your roof, tended for you"), sentence case. Leads are small on purpose: big heavy headline, quiet small serif under it.

## Shape and space

- Corners: 3px on plates, cards, buttons and inputs. 0 on pixels and checkboxes. The only round thing is the lilac stroke.
- Borders: 1px `--pm-moss-line` on the ground, 1px `--pm-paper-2` on paper.
- Shadows: plates get a 2px drop (`--pm-shadow-plate`). The lime button gets a hard 6px offset (`--pm-shadow-pop`) on hover. Nothing soft.
- Pixels: one cell is `--pm-px` (10px). Bullets, check marks and list markers are small squares, never dots or ticks.
- Sections: 112px vertical padding (72px on phones). Container 1200px, prose 680px.
- Motion: the ticker scrolls, a status can blink in steps. Nothing eases or floats.

## Components (in components.css)

| Class | What it is |
|---|---|
| `.pm-rail` | Thin red, cream and lilac line down the left edge of the hero |
| `.pm-nav`, `__left`, `__links`, `__actions` | Three separate paper plates: logo, links (with optional dots), actions |
| `.pm-plate`, `.pm-logo`, `__mark` | Flat paper surface; the logo plate with a pixel mark |
| `.pm-btn--lime/ink/paper/line/social`, `--sm`, `--block`, `__px` | Square buttons; `__px` adds a small square in front of the label |
| `.pm-hero`, `__icons`, `__actions` | Tall hero with the headline low on the page |
| `.pm-hero-title`, `.pm-h2`, `.pm-h3`, `.pm-hl`, `.pm-lead`, `.pm-label` | Type; `.pm-hl` turns one word lime |
| `.pm-swarm`, `--b`, `--pink` | Stippled pixel blob in two outlines and two colors; size and place it in the page's style block |
| `.pm-scatter` | Twelve loose square pixels near the bottom of a block |
| `.pm-stroke`, `--pink` | The angled rounded stroke |
| `.pm-picon`, `--b`, `--c` | A 3 by 3 pixel sprite used as a card icon |
| `.pm-section--deep/paper`, `__head` | Section surfaces |
| `.pm-logos`, `.pm-trust` | Wordmark row on paper with a one-line count under it |
| `.pm-tab`, `.pm-panel` | A small tab with a cyan dot sitting on a dark panel, like a window label |
| `.pm-grid`, `--2`, `.pm-card`, `--paper`, `__title/__text` | Cards with the icon top left and the title pushed to the bottom |
| `.pm-tag`, `--lime/pink/cyan/paper` | Mono uppercase tags |
| `.pm-readout` | Mono key and value rows, values in lime |
| `.pm-stats`, `.pm-stat__num/__label` | Big numbers with a lime pixel at the top right |
| `.pm-ticker`, `__row` | A mono status line that scrolls, clipped so it never overflows |
| `.pm-quote`, `.pm-avatar` | Serif quote and a square initials avatar |
| `.pm-cta` | Raised box for the closing call to action |
| `.pm-toggle` | Square segmented billing switch |
| `.pm-plans`, `.pm-plan`, `--featured`, `__name/__desc/__price/__list` | Pricing; the featured plan is a paper plate with a lime top edge and an ink button |
| `.pm-table-wrap`, `.pm-table`, `.pm-yes`, `.pm-no` | Comparison table with a paper header; yes is a lime square, no is a short dash |
| `.pm-faq` | `<details>` list; the lime square turns into a pink diamond when open |
| `.pm-meta`, `.pm-author`, `--card`, `__name` | Article meta line and author blocks |
| `.pm-cover` | Dark article cover with swarms, a stroke and scattered pixels |
| `.pm-prose`, `.pm-callout` | Serif article text, sage grotesque h2, lime square bullets, pink quote bar, deep code blocks; a paper callout with a cyan edge |
| `.pm-post`, `__thumb/__title/__text` | Related post card |
| `.pm-form`, `.pm-field`, `.pm-field-label`, `.pm-input`, `.pm-select`, `.pm-input-wrap`, `.pm-input-toggle`, `.pm-help`, `.pm-error`, `.pm-field--error`, `.pm-check`, `.pm-divider-text` | Forms on a paper plate: white inputs, a lime focus ring, square checkboxes |
| `.pm-footer`, `__cols`, `__word`, `__bottom` | Deep footer with four columns and a huge faded wordmark |

## Pages in this kit

- `demo.html`: landing page (paper plate nav, tall hero with swarms and pixels, ticker, paper section with a tab and panel, cards, stats and quote, CTA).
- `pricing.html`: plans with a monthly or yearly switch, a comparison table, an FAQ and a CTA.
- `blog.html`: a long article with a pixel cover, a contents list, prose, an author card and related posts.
- `signup.html`: split page, moss story side with swarms and a quote, the form on a paper plate.

## Page recipe

1. Rail on the left edge, then the nav as three paper plates: logo top left, links next to it, actions top right.
2. Hero on moss, tall, with the headline low and left: two small outline icons, a sage headline over 2 lines, a small serif lead, a lime button and a line button. One swarm top right touching the nav, a smaller one at the right edge, a lilac stroke and scattered pixels at the bottom.
3. A mono ticker strip.
4. One paper section: wordmarks, a trust line, an ink h2, then a tab and dark panel with real product detail (readout rows, tags).
5. Moss section with a label, an h2 with one lime word and three cards.
6. Deep band with stats and a serif quote.
7. CTA box with a pink swarm in the corner, then the deep footer with the giant faded wordmark.

### Pricing recipe

Label, big headline and lead on the left, the billing switch on the right. Three plans: the middle one is the paper plate with the lime top edge. A deep band with the comparison table, then an FAQ in two columns (title left, questions right) and a short CTA box.

### Article recipe

Mono meta line, a hero-size headline (smaller scale, up to 76px), a serif lead and a byline with a share button. A dark cover drawn with swarms and pixels. Then a sticky contents list beside 680px serif prose, an author card and three related posts with swarm thumbnails.

### Sign-up recipe

Two halves. Left on moss: logo plate, swarms and the stroke at the top, a label, headline and lead low down, then a quote. Right on deep moss: a paper plate card with two social buttons, an "or" divider and the fields. Show one field in its error state in examples.

## Don'ts

- Don't round things. No pill buttons, no rounded cards, no circular avatars.
- Don't use pure black or pure white for the ground. It is always moss, deep moss or paper.
- Don't put swarms behind text. They live at the edges and corners.
- Don't add soft shadows, gradients or glows.
- Don't make the lead big. The contrast between the heavy headline and the small serif is the point.
- Don't use more than two swarms in one view, or more than one stroke.
