# Card Pile

Nostalgic and gallery-quiet. Pages are pure black with small, tight off-white grotesk type and a mono for labels, so the screen feels like a dark table. Then one loud move: a loose pile of tilted, rounded cards in candy colors (pink, cobalt, mint, butter, clay and a pale print white) tipped into the middle of the hero, with a rounded square badge sitting on top. Some cards are drawn photos with a white border and a typed caption, some are slide mounts, some are cassettes, some are plain color. Everything else stays flat and calm so the pile can be the memory.

Use it for: photo and archive services, retro hardware, collectibles, record labels, film labs, nostalgic consumer products, anniversary or "years of" campaigns, portfolios of physical things. Avoid it for: dense dashboards, B2B software that needs to look sober, anything where a playful pile of cards would feel unserious (health, legal, finance).

## 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 Card Pile 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 for Shoebox, an invented photo and tape scanning service, built only with the kit.

## Fonts

All free on Google Fonts:

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

| Role | Font | Use |
|---|---|---|
| Headlines and body | Familjen Grotesk 400 to 600 | Everything: hero, headings, nav, buttons, body. Headlines at 500, tight tracking. |
| Labels | IBM Plex Mono 400 | Uppercase eyebrows, chips, captions on prints, form labels, table headers, meta lines. |

One sans family only. Never add a serif.

## Color

| Token | Hex | Role |
|---|---|---|
| `--cp-black` | #050505 | The page. Almost every section. |
| `--cp-coal` | #121212 | Quiet sections, cards, inputs, plans |
| `--cp-line` | #2A2A2A | Every border and divider |
| `--cp-paper` | #F4F1EA | Text, outlined buttons, the badge tile, one paper section per page |
| `--cp-soft` | #A3A09A | Leads and secondary text |
| `--cp-candy` | #F39AC0 | The main accent: primary button, featured plan border, active chip, focus |
| `--cp-cobalt` | #2F3FE0 | Card color |
| `--cp-mint` | #9FE3C4 | Card color |
| `--cp-butter` | #F2D675 | Card color |
| `--cp-clay` | #C9774F | Card color |
| `--cp-fog` | #D8D6D0 | The white border of a print |

Rules:
- Black is the default. One coal section and at most one paper section per page.
- Candy is the only color in the interface itself: one primary button per screen, the featured plan, chips. Cobalt, mint, butter and clay appear only on cards in a pile, a strip or a swatch.
- Drawn photos inside prints can use their own sky, sea and grass gradients (see `.cp-scene`). That's the only place gradients appear.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--cp-text-hero` | clamp(40px, 5.6vw, 76px) | Hero headline, weight 500, tracking -0.035em, line-height 1 |
| `--cp-text-h2` | clamp(30px, 3.6vw, 48px) | Section headings, also article titles |
| `--cp-text-h3` | 22px | Card and plan titles |
| `--cp-text-lead` | 19px | Soft gray sentence under a headline, max 560px |
| `--cp-text-body` | 16px | Body |
| `--cp-text-micro` | 12px | Mono labels, uppercase, tracking 0.08em |

Headlines are plain and warm ("Every family photo, scanned and safe"). Sentence case, no period.

## Shape and space

- Cards and prints: 16px radius. The badge tile: 22px. Buttons and inputs: 2px, nearly square, with a 1px outline.
- Tilts: only cards in a pile or strip rotate, using `--cp-tilt-1` to `--cp-tilt-5` (between -18 and 14 degrees). Set them through `--r`. Text, buttons and sections never tilt. Small swatches in feature cards may tilt a little.
- Shadow: `--cp-drop` sits under tilted cards only. Flat cards have a hairline border and no shadow.
- Sections: 80px to 140px vertical padding. Container 1200px, text 720px.
- Motion: on hover a pile leans 15% further. Nothing bounces.

## Components (in components.css)

- `.cp` on `body`: base font, black background.
- `.cp-nav`: logo mark, then three `.cp-nav__col` columns of two stacked links, then `.cp-nav__count`, a square outlined counter. Columns hide under 760px.
- `.cp-btn`, `--candy`, `--dark` (for paper sections), `--block`: outlined square buttons.
- `.cp-pile`: the signature. Holds absolutely placed `.cp-print` cards and one `.cp-badge` (a `.cp-badge__tile` plus two short lines of text).
- `.cp-print` with `--candy`, `--cobalt`, `--mint`, `--butter`, `--clay`, `--coal`, `--bordered` (white border plus `.cp-print__cap`). Inside: `.cp-scene` (plus `--dusk`, `--sea`, `--snow`), `.cp-slide`, or `.cp-tape` with `.cp-tape__label` and `.cp-tape__reels`.
- `.cp-strip`: a centered row of small tilted prints. `.cp-figure` with `.cp-figure__pile` for a pile inside an article.
- `.cp-card` with `.cp-card__swatch`, `.cp-grid`, `.cp-stats`, `.cp-chip` (`--candy`), `.cp-quote`, `.cp-faq`.
- `.cp-pricing`, `.cp-plan` (`--featured`), `.cp-table`.
- `.cp-form`, `.cp-field`, `.cp-input`, `.cp-select`, `.cp-row`, `.cp-options` with `.cp-option` radio tiles, `.cp-check`.
- `.cp-article`, `.cp-meta`, `.cp-footer`.

## Pages in this kit

- `demo.html`: landing page with the big pile, intro split, feature cards, steps, stats, a paper quote section and a small pile CTA.
- `pricing.html`: strip of prints, three plans, comparison table, FAQ.
- `blog.html`: care guide article with a pile figure and related posts.
- `signup.html`: order form with radio tiles beside a small pile.

## Page recipe

1. `.cp-nav` in a `.cp-container`.
2. Hero: a `.cp-pile` of 6 to 8 prints with a `.cp-badge` in the middle, then `.cp-hero__intro` with the headline on the left and lead plus buttons on the right.
3. A `.cp-rule`, then black and coal sections that alternate. One `.cp-section--paper` for a quote.
4. End with a two-card pile next to the closing call to action, then `.cp-footer`.

Pricing recipe: centered heading, a `.cp-strip` of five prints, `.cp-pricing` with the middle plan featured, a `.cp-table`, then a coal FAQ.

Article recipe: `.cp-narrow` header with a candy chip, title at h2 size, lead and `.cp-meta`; a `.cp-figure` pile; `.cp-article` body with one blockquote; related posts as small prints above titles.

Sign-up recipe: two columns. Left: label, title, lead and a three-card pile. Right: a coal `.cp-form` box with `.cp-options` first and one candy button.

## Don'ts

- Don't tilt anything that isn't a card. Don't tilt text.
- Don't use more than one pile per screen, or more than 8 cards in a pile.
- Don't color buttons or headings cobalt, mint, butter or clay.
- Don't round buttons into pills.
- Don't add glows, gradients on surfaces or shadows on flat cards.
- Don't use a light page background except one paper section.
- No em dashes in copy.
