# Pocket Sun

A toy-gadget style for products that want to feel like a present. A cool slate hero opens onto long slabs of sunshine yellow, with heavy rounded headlines that end in a full stop, short cheerful copy and exactly one loud color: an electric violet pill button. The signature is the gadget: a chunky yellow device drawn in CSS, with a 1-bit screen in a pixel font, a d-pad, two round keys, four screws and a little crank on the side. A tilted black sticker gets slapped next to it, and a giant stacked lowercase wordmark sits underneath like a toy box lid. Soft round corners, pressed-in button edges, springy motion, no thin lines.

Use it for: hardware and gadgets, consumer apps with a sense of humor, kitchen and home products, toys and games, hobby kits, creative tools, product launches, subscription boxes, anything you want people to want to hold. Avoid it for: banks, healthcare, legal, enterprise dashboards, luxury, serious news, anything that must look quiet or neutral.

## 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 Pocket Sun 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 a made-up countertop cooking computer called Ladle. Put `class="ps"` on `<body>`.

## Fonts

All free on Google Fonts:

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

| Role | Font | Weight | Use |
|---|---|---|---|
| Display | Lexend | 700 to 800 | Headlines, the logo, the mega wordmark, buttons, nav, prices, stats, quotes, FAQ questions |
| Body | Figtree | 400 to 700 | Body copy, leads, labels' helper text, inputs |
| Pixel | Silkscreen | 400 | Only for things that live on a screen or a label: device screens, eyebrows, badges, meta lines, captions, step pills |

Silkscreen is small and loud. Keep it at 11 to 15px and uppercase, and never use it for a sentence longer than one line.

## Color

| Token | Hex | Use |
|---|---|---|
| `--ps-sun` | #FFC61F | The main page color, the gadget body, the mega wordmark on slate |
| `--ps-sun-deep` | #F2A50C | Pressed-in bottom edges on the gadget, keys, checks and chosen options |
| `--ps-slate` | #7B8189 | The hero, the library band, the footer, the sign-up panel |
| `--ps-ink` | #22211E | Text, the sticker, the featured plan, the subscribe band |
| `--ps-violet` | #6B1DF2 | Primary buttons only. One per screen |
| `--ps-cream` | #FFFAF0 | The quote section and notes |
| `--ps-screen-light`, `--ps-screen-dark` | #B4B2A3, #2A2926 | The 1-bit screen. Only these two, plus `--ps-dither` made from them |
| `--ps-white` | #FFFFFF | Cards, plans, inputs, FAQ rows |

The metal tokens (`--ps-metal`, `--ps-metal-deep`, `--ps-screw`) only color the drawn hardware. Sections alternate slate and sun; cream and ink are seasoning.

## Type scale

| Class | Size | Notes |
|---|---|---|
| `ps-mega` | clamp(96px, 21vw, 300px) | Lexend 800, lowercase, sun on slate, line-height .78, tracking -.06em. Split the word into two `<span>` lines |
| `ps-hero-title` | clamp(30px, 3.6vw, 48px) | Lexend 700, centered, a full friendly sentence |
| `ps-h2` | clamp(32px, 4vw, 54px) | Lexend 800, ends with an automatic full stop. "The Crank." |
| `ps-h3` | 24px | Lexend 800 (add `--dot` for the full stop) |
| `ps-lead` | clamp(18px, 1.6vw, 21px) | Figtree, soft ink, max 600px |
| Body | 17px | Figtree 400, line-height 1.55, with **bold** phrases for the punchline |
| `ps-eyebrow`, `ps-badge`, `ps-meta` | 11 to 12px | Silkscreen, uppercase |

## Shape and space

- Round and chunky: 10px for small things, 20px for fields and FAQ rows, 32px for cards and plans, 44px for the gadget, pills for buttons, badges and toggles.
- Buttons and keys have a pressed-in bottom edge (`--ps-shadow-button`), not an outline. On hover they lift and tip 1 degree.
- Cards float with one soft shadow (`--ps-shadow`). Fields have a fat 3px ink border instead.
- The sticker and the featured plan are the only things that sit at an angle.
- Sections are 64 to 128px tall in padding. The hero is centered; feature rows alternate text and drawing.

## Components (in components.css)

- **Nav** `ps-nav` (`--slate` on slate pages): `ps-logo` lowercase, `ps-nav__links` with small inline icons (hidden under 820px), `ps-nav__end` with a small violet button. Mark the current page with `aria-current`.
- **Hero** `ps-hero`: a slate stage with a spotlight glow, `ps-hero__stage` holding a `ps-sticker` and the `ps-gadget`, then `ps-hero-title`, `ps-mega` and one large primary button.
- **Gadget** `ps-gadget` with four `ps-gadget__screw`, `ps-gadget__screen` > `ps-gadget__lcd` (put a `<b>` word and a `<small>` pixel line in it), `ps-gadget__controls` with `ps-dpad` and `ps-keys` > `ps-key`, and `ps-gadget__crank`. Variants `--sm` and `--tilt`; set `--ps-gadget-w` to size it.
- **Screen** `ps-screen` > `ps-screen__lcd`, and the `ps-dither` fill, for figures and plan tops.
- **Sticker** `ps-sticker` with `ps-sticker__big` (a `<b>` word turns sun) and an optional `ps-sticker__tab`. Variants `--sun` and `--right`.
- **Buttons** `ps-btn` plus `--primary` (violet, end it with `<em>!!</em>` for the big call), `--ink`, `--light`, `--ghost`, `--sm`, `--lg`, `--block`.
- **Badge** `ps-badge`, `--violet`, `--light`.
- **Ticker** `ps-ticker` > `ps-ticker__track`: pixel words on ink, clipped so it never scrolls sideways. Repeat the words twice.
- **Feature rows** `ps-feature` (`--flip`) with `ps-feature__text` and `ps-feature__art`.
- **Library** `ps-carts` of `ps-cart` (a little screen, `ps-cart__title`, `ps-cart__meta`), like a games shelf.
- **Cards** `ps-grid` of `ps-card` (`--sun`, `--slate`), with an optional `ps-card__screen`.
- **Stats** `ps-stats` of `ps-stat`. **Quote** `ps-quote` with violet marks, `ps-byline`, `ps-avatar` (pixel initials).
- **Toggle** `ps-toggle` with `aria-pressed` buttons.
- **Pricing** `ps-plans` of `ps-plan` (`--featured` is ink and tilted), `ps-plan__tag`, `ps-plan__name`, `ps-plan__note`, `ps-plan__price`, `ps-checks`.
- **FAQ** `ps-faq` of `<details>` with a sun plus that turns into a cross.
- **Article** `ps-article-head`, `ps-meta`, `ps-figure`, `ps-prose` (square bullets, an ink blockquote at an angle), `ps-note`, `ps-author`.
- **Forms** `ps-form`, `ps-field`, `ps-label`, `ps-input`, `ps-select`, `ps-hint`, `ps-check`, `ps-choices` of `ps-choice` (turns sun when picked), `ps-steps`, `ps-subscribe`.
- **Sections** `ps-section` with `--slate`, `--sun`, `--cream`, `--ink`; `ps-container`, `ps-narrow`, `ps-center`, `ps-stack`.
- **Footer** `ps-footer` with `ps-footer__grid`, `ps-footer__title`, a giant sun `ps-footer__mark` and `ps-footer__base`.

## Pages in this kit

- `demo.html`: landing page (slate hero with the gadget, sticker and mega wordmark, a pixel ticker, two feature rows, the recipe library, stats, a quote, a subscribe band, footer)
- `pricing.html`: three plans with a season or year toggle, what's in the box, FAQ
- `blog.html`: a Kitchen Notes article about the crank
- `signup.html`: a split sign-up form with the gadget on the slate side

## Page recipe

1. `ps-nav ps-nav--slate`.
2. `ps-hero`: sticker and gadget on the stage, a one-sentence `ps-hero-title`, the two-line `ps-mega` wordmark, one `ps-btn--primary ps-btn--lg`.
3. A `ps-ticker` of short pixel words.
4. A sun section with two `ps-feature` rows: "The Box." and "The Crank.", one with a drawing, one with a small tilted gadget.
5. A slate section with `ps-carts`.
6. `ps-stats` on sun, a `ps-quote` on cream, a `ps-subscribe` on ink.
7. `ps-footer` with the giant wordmark.

## Pricing page recipe

Slate nav and a short slate hero: a light badge, an `ps-h2`, a centered lead and a `ps-toggle`. The `ps-plans` start right where the slate ends, on sun. Three plans, each topped with a small `ps-screen`; the middle one is `--featured` (ink, tilted, with a `--sun` sticker as its tag and the only violet button). Then a slate "what's in the box" row with a tilted gadget, and a `ps-faq` on sun.

## Article page recipe

A plain nav on sun, a centered `ps-article-head` (badge, `ps-h2`, lead, `ps-meta`), a wide `ps-figure` drawn as a 1-bit screen, then `ps-prose` in `ps-narrow` with square bullets, one angled ink blockquote and a `ps-note`. End with a `ps-author` card and a slate call to action.

## Sign-up page recipe

Two columns. The left is slate with the logo, a sticker, a large gadget saying hello and a `ps-hero-title`. The right is sun: `ps-steps`, an `ps-h2`, fat-bordered fields, `ps-choices`, a checkbox and one violet block button. Under 860px the gadget panel shrinks to a slate header.

## Don'ts

- Don't use violet for anything but the primary button, and don't put two violet buttons on one screen.
- Don't add colors to the screen. It is 1-bit: two tones and a dither.
- Don't set body text or long sentences in Silkscreen.
- Don't use thin 1px borders or square corners.
- Don't tilt more than two things per screen.
- Don't write long, serious copy. Short sentences, one joke per section, bold the punchline.
- Don't use em dashes in copy.
