# Yolk Pocket

A cheerful little gadget of a website. The hero sits on a slate-grey stage with a soft spotlight, and the rest of the page is a big field of egg-yolk yellow. Headlines are chunky, heavy and rounded, and they end with a period ("The Kit."). A grape-purple pill button with a pressed-in bottom edge is the only call to action. Tilted black stickers, a drawn yolk device with a 1-bit screen, and dithered "screen" panels give it a toy-hardware, slightly retro charm. It feels playful and confident without being childish.

Use it for: clubs and memberships, subscription boxes, hobby products, small consumer apps, gadgets, indie launches, anything that should feel friendly, fun and a bit nostalgic. Avoid it for: banking, healthcare, legal, luxury, or anything that needs to feel quiet and serious.

## 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 Yolk Pocket 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 an invented pen pal club, built only with the kit.

## Fonts

All free on Google Fonts:

```html
<link href="https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,400;0,500;0,700;0,800;0,900;1,800&family=Silkscreen:wght@400;700&display=swap" rel="stylesheet">
```

| Role | Font | Use |
|---|---|---|
| Headlines | Rubik 800 to 900 | Section headings, the mega wordmark, prices, big numbers. Tight letter-spacing, and end headings with a period. |
| Body | Rubik 400 to 700 | Paragraphs, nav, buttons, forms. Use 800 for inline highlights. |
| Pixel | Silkscreen 400 | Only inside screens and panels, labels, timestamps and the footer base line. Always uppercase and small. |

## Color

| Token | Hex | Role |
|---|---|---|
| `--yp-slate` | #7A7E86 | The hero stage and the middle of its spotlight |
| `--yp-slate-deep` | #5C6068 | Stage edges, footer |
| `--yp-slate-glow` | #A9ADB4 | The spotlight center |
| `--yp-yolk` | #FFC417 | The main page background, the mega wordmark, the device body |
| `--yp-yolk-deep` | #F4A60C | Second word of the wordmark, pressed edges on yolk objects |
| `--yp-yolk-soft` | #FFE27F | Device buttons and d-pad |
| `--yp-cream` | #FFF7DE | Quiet sections, cards, pricing tiers |
| `--yp-ink` | #2A251F | All text on yellow and cream, borders, ink buttons |
| `--yp-ink-soft` | #5A4F3F | Secondary text |
| `--yp-grape` | #7A1FF0 | The call to action and the featured price ring. One per view. |
| `--yp-grape-deep` | #5510B8 | The pressed bottom edge of grape buttons |
| `--yp-screen` | #B8B6AB | The 1-bit screen surface |
| `--yp-pixel` | #1D1C1A | Screen bezels, pixels, stickers, dark sections |

Text on slate is white. Text on yellow and cream is ink. Grape is never a background for sections.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--yp-size-mega` | clamp(5rem, 17vw, 13rem) | The stacked two-word wordmark, once per page at most |
| `--yp-size-h1` | clamp(2rem, 4.6vw, 3.4rem) | Page titles and the centered hero sentence |
| `--yp-size-h2` | clamp(1.9rem, 3.6vw, 2.8rem) | Section headings |
| `--yp-size-h3` | 1.4rem | Card titles |
| `--yp-size-lead` | clamp(1.15rem, 1.8vw, 1.4rem) | Intros |
| `--yp-size-body` | 1.0625rem | Body copy |
| `--yp-size-pixel` | 0.75rem | Pixel labels |

## Shape and space

- Radii are generous and soft: 10px for small things, 18px for inputs and screens, 30px for cards and panels, 40px for the device, pills for buttons, badges and toggles.
- Borders are 3px solid ink on cards, inputs, pricing and the FAQ.
- Buttons have a 5px inset bottom edge so they look pressable, plus a soft colored drop shadow.
- Stickers are black with a white outline, tilted about 8 degrees.
- The dither (`--yp-dither`) is a 4px checker of pixel ink, used to shade screens and stamps.
- Sections breathe: `--yp-space-6` (6.5rem) top and bottom, content in a 1120px wrap.

## Components (in components.css)

- `.yp-nav`, `.yp-logo`, `.yp-nav-links` (add `.yp-nav--ink` on yellow backgrounds)
- `.yp-btn` with `--grape`, `--ink`, `--ghost`, sizes `--sm`, `--lg`, and `--block`. Put a trailing `<em>!!</em>` inside grape buttons for the signature excitement.
- `.yp-stage` (slate spotlight hero), `.yp-stage-line` (the big centered hero sentence), `.yp-mega` (two `<span>` words), `.yp-stage-cta`
- `.yp-device` with `.yp-screen`, `.yp-screen-inner`, `.yp-device-controls`, `.yp-dpad`, `.yp-keys`, `.yp-key`, `.yp-dial`
- `.yp-sticker` (with a `<b>` second line), `.yp-badge` (`--grape`, `--cream`)
- `.yp-section` (`--cream`, `--ink`, `--slate`), `.yp-split` (`--flip`), `.yp-grid`, `.yp-card`, `.yp-card-icon`
- `.yp-panel` and `.yp-panel-inner` (a framed 1-bit screen), `.yp-panel-bar`, `.yp-dither`
- `.yp-marquee` and `.yp-marquee-track`
- `.yp-price-grid`, `.yp-price` (`--hot`), `.yp-price-amount`, `.yp-toggle`
- `.yp-faq`, `.yp-article`, `.yp-article-meta`, `.yp-avatar`
- `.yp-form`, `.yp-field`, `.yp-fieldset`, `.yp-label`, `.yp-input`, `.yp-hint`, `.yp-choice`, `.yp-chips`, `.yp-chip`
- `.yp-footer`, `.yp-footer-grid`, `.yp-footer-base`

## Pages in this kit

| File | Page |
|---|---|
| `demo.html` | Landing page: spotlight stage with device and sticker, mega wordmark, marquee, split features with pixel panels, cards, big number, CTA |
| `pricing.html` | Three tiers with a featured grape ring and sticker, monthly and yearly toggle, FAQ |
| `blog.html` | Member story with a pixel illustration panel, dark pull quote and inline highlights |
| `signup.html` | Split page: spotlight side with the device, form side with chips and a grape button |

## Page recipe

1. Start with `.yp-stage`: white nav, the hero object (a drawn device or a pixel panel), a centered one to three line sentence at h1 size, then the `.yp-mega` wordmark and one grape button.
2. Drop straight into yellow. Optionally run a `.yp-marquee` between stage and yellow.
3. Alternate `.yp-split` rows: short heading with a period, two paragraphs with one bold phrase each, and a `.yp-panel` drawing.
4. A `.yp-section--cream` with three `.yp-card`s.
5. A `.yp-section--ink` with a giant number and a funny line.
6. A centered closing CTA on yellow, then the slate footer.

Pricing recipe: stage with a big h1 ("Pick a pace.") and a `.yp-toggle`, then `.yp-price-grid` on yellow with the middle tier as `.yp-price--hot` plus a sticker, then a cream FAQ.

Article recipe: stage with a badge, a big h1 with a period, a lead and an author row; then a cream section with `.yp-article`, one `.yp-panel` illustration, h2s with periods, and one dark `blockquote`.

Sign-up recipe: two columns. Left is the spotlight stage with logo, device and a short promise. Right is a form on plain yellow with 3px ink inputs, interest chips, a consent checkbox and a block grape button.

## Don'ts

- Don't use more than one grape element per view, and never make grape a section background.
- Don't use the pixel font for body text or headings.
- Don't use thin or light weights for headings; they are 800 or heavier.
- Don't add gradients other than the slate spotlight.
- Don't use photos as the hero; draw the object with CSS and SVG.
- Don't square off corners or use hairline borders.
