# Sun Crank

A toy-box gadget style. The hero sits on a flat pewter gray with a soft spotlight, and the product (a chunky yolk-yellow object drawn in CSS) floats in the middle like it's on a shop shelf. Below it, the page turns into full-bleed egg-yolk yellow with heavy, rounded grotesque headlines that end in a period ("The Dial."). One glossy grape-purple pill does all the selling. Tilted black stickers, a 1-bit gray screen with pixel type, and a giant stacked wordmark in a yellow-to-amber fade give it a cheeky, retro, handmade feel. It's confident and funny without being childish.

Use it for: a single hardware product or gadget, toys, hobby and craft tools, small consumer subscriptions, launches with a "season" or "drop", anything with one object at its heart. Avoid it for: serious B2B software, finance, healthcare, legal, or anything that needs to feel quiet and corporate.

## 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 Sun Crank 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: Bobbin, a pocket row counter for knitters with a dial on the side.

## Fonts

All free on Google Fonts:

```html
<link href="https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,700;12..96,800&family=Figtree:wght@400;500;700;800&family=Silkscreen:wght@400;700&display=swap" rel="stylesheet">
```

| Role | Font | Use |
|---|---|---|
| Display | Bricolage Grotesque 800 | Every heading, buttons, prices, stats, the giant wordmark. Always heavy, tight tracking. |
| Body | Figtree 400 to 800 | Paragraphs, nav, labels, form fields. Bold (800) for the punchline phrase inside a paragraph. |
| Pixel | Silkscreen 400 to 700 | Only for things that feel "on the device": the screen, eyebrows, badges, table headers, the ticker, code. |

## Color

| Token | Hex | Role |
|---|---|---|
| `--sc-yolk` | #FFC61C | The main body color. Full-bleed sections, device body |
| `--sc-yolk-2` | #FFD659 | Cards and plans sitting on yolk |
| `--sc-yolk-deep` | #F4A30C | Bottom of the wordmark fade, device shading, list bullets |
| `--sc-pewter` | #787E86 | The hero and the closing band |
| `--sc-pewter-2` | #9AA0A7 | The spotlight glow behind the device |
| `--sc-paper` | #FFFBEF | Reading sections, fields, the featured plan |
| `--sc-ink` | #221D17 | All text on yolk and paper, borders, stickers, footer |
| `--sc-grape` | #6B1DF2 | The primary button, error states |
| `--sc-screen` | #2B2A27 | The bezel and code blocks |
| `--sc-lcd` | #B4B5AD | The reflective 1-bit screen |

Rules:
- Pewter on top, yolk in the middle, pewter or ink at the bottom. Paper breaks up long yolk stretches.
- Grape is only for the main action, at most once per screen, plus the Shop pill in the nav.
- Text on pewter is white. Text on yolk and paper is ink. Never yellow text on paper.
- Gradients only on the device, the grape pill's gloss, the pewter spotlight and the giant wordmark.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--sc-text-giant` | clamp(96px, 20vw, 260px) | One stacked wordmark per page at most, line-height .78, yolk fade |
| `--sc-text-hero` | clamp(34px, 4.6vw, 56px) | Hero sentence, centered, white on pewter |
| `--sc-text-h2` | clamp(34px, 4.4vw, 54px) | Section headings, tracking -0.03em |
| `--sc-text-h3` | 24px | Card and plan titles |
| `--sc-text-lead` | 20px | The sentence under a heading |
| `--sc-text-body` | 17px | Body |

Headlines are short, chatty and end with a period: "The Counter.", "Join the club." Body copy is conversational, asks itself questions ("Is it a gimmick? Nope.") and bolds one key phrase per paragraph.

## Shape and space

- Radius: 34px on the device, 24px on cards and plans, 16px on callouts, 10px on fields, pills on every button.
- Borders: 3px solid ink on cards, plans, fields and tables. Thick and friendly, never 1px.
- Shadows: a big soft drop under objects (`--sc-shadow-object`), a glossy inner bevel on buttons. The featured plan alone gets a hard 8px ink offset.
- Tilt: stickers sit at -9deg; cards and buttons tilt 1 to 2 degrees on hover with a springy ease.
- Sections: 72px to 128px vertical padding. Container 1120px, text 720px.

## Components (in components.css)

| Class | What it is |
|---|---|
| `.sc`, `.sc-container`, `.sc-narrow`, `.sc-center` | Body class and containers |
| `.sc-section--pewter/yolk/paper/ink` | Section surfaces; pewter has the spotlight built in |
| `.sc-nav`, `.sc-nav__links`, `.sc-logo`, `__mark` | Wordmark left, small bold links with tiny icons, a grape Shop pill last |
| `.sc-hero-title`, `.sc-h2`, `.sc-h3`, `.sc-lead`, `.sc-eyebrow` | Heavy display headings; pixel eyebrow |
| `.sc-giant` | The giant stacked wordmark with the yolk fade |
| `.sc-btn--grape/yolk/paper/ghost/social`, `--sm/--lg/--block` | Glossy pill buttons |
| `.sc-sticker`, `.sc-badge`, `--paper` | Tilted black sticker with a big yolk number; small pixel badge |
| `.sc-device`, `__screen/__keys/__key/__pad/__dial`, `--sm` | The CSS-drawn yolk handheld with a side dial |
| `.sc-lcd`, `__big/__small`, `--card` | The gray 1-bit screen with pixel text that scales to its box |
| `.sc-feature`, `--flip` | Copy beside an object, no boxes, alternating sides |
| `.sc-cards`, `.sc-card`, `__icon/__title/__text` | Lighter-yolk cards with a 3px ink edge and a pixel number tile |
| `.sc-quote`, `.sc-avatar`, `.sc-stats`, `.sc-stat` | Big heavy pull quote and chunky numbers |
| `.sc-ticker`, `__track` | Ink strip of scrolling pixel text, clipped |
| `.sc-segment` | Ink pill toggle with a yolk active state |
| `.sc-plans`, `.sc-plan`, `--featured`, `__name/__desc/__price/__list`, `.sc-small-print` | Pricing cards; the featured one is paper with a sticker and a hard offset |
| `.sc-table-wrap`, `.sc-table`, `__yes/__no` | Comparison table with an ink pixel header |
| `.sc-faq` | `<details>` FAQ with a round ink plus that turns into a cross |
| `.sc-prose`, `.sc-callout`, `.sc-meta`, `.sc-author`, `--card` | Article text, square bullets, yolk-edge quote, screen-style code |
| `.sc-posts`, `.sc-post`, `__thumb/__title` | Related posts on mini pewter stages |
| `.sc-form`, `.sc-field`, `.sc-row`, `.sc-label`, `.sc-input`, `.sc-select` | Paper fields with a 3px ink edge and a yolk focus ring |
| `.sc-input-wrap`, `.sc-input-toggle`, `.sc-help`, `.sc-error`, `.sc-field--error`, `.sc-check` | Field extras; errors use grape |
| `.sc-divider-text`, `.sc-btn__letter` | "Or" divider, letter tile for social buttons (no brand logos) |
| `.sc-footer`, `__cols/__bottom` | Ink footer with pixel yolk headings |
| `.sc-pop`, `.sc-wobble` | Springy entrance and a slow sticker wobble; both respect reduced motion |

## Pages in this kit

- `demo.html`: landing page (pewter hero with device and sticker, giant wordmark, ticker, feature rows, cards, quote and stats, pewter close).
- `pricing.html`: pewter header with a toggle, three plans on yolk, a comparison table on paper, FAQ, pewter close.
- `blog.html`: pewter article header, the device as cover, prose on paper, related posts on yolk.
- `signup.html`: split page, the form on yolk and a pewter panel with sticker, device and quote.

## Page recipe

1. Pewter hero: nav with white wordmark and a grape Shop pill.
2. The product object centered under the nav, with a tilted sticker overlapping its top-left corner.
3. A 2 to 3 line white hero sentence, then the giant stacked wordmark, then one big grape pill.
4. An ink ticker strip.
5. Yolk section with 2 or 3 `.sc-feature` rows, headings like "The Counter.", alternating sides.
6. A paper section with an eyebrow, an h2 and three cards.
7. Yolk quote and stats.
8. Pewter close: a small device, an h2, a grape pill and a ghost button. Ink footer.

## Pricing page recipe

1. Pewter header with nav, eyebrow, h2, lead and an `.sc-segment` (Monthly / Yearly). Keep both prices in `data-monthly` / `data-yearly` and swap them with a few lines of JS.
2. `.sc-plans` on yolk, pulled up slightly. Feature the middle plan: paper, a sticker, the only grape button. The others get paper buttons.
3. Small print, then a paper section with the comparison table.
4. A yolk FAQ, first item open, then a pewter close.

## Article page recipe

1. Pewter header: nav, pixel eyebrow, hero title, lead and an author line with meta.
2. A paper band with the device as the cover image. No photos needed.
3. `.sc-narrow .sc-prose` on paper: short paragraphs, h2 and h3, a square-bullet list, one blockquote, one `.sc-callout`, code in `<pre>`, a figure using `.sc-lcd--card`.
4. `.sc-author--card`, then three `.sc-post` cards on yolk and the footer.

## Sign-up page recipe

1. Two columns. Left on yolk: logo, eyebrow, an h2 that ends with a period, a short lead.
2. `.sc-form`: name row, email, password with a show toggle, a select, an `.sc-check`, one grape block button.
3. `.sc-divider-text`, two social buttons with letter tiles, a log-in link.
4. Right column in pewter: a wobbling sticker, a small device and a quote in white. Hide it below 860px.

## Don'ts

- Don't use thin weights or a serif. Headings are always heavy display.
- Don't put grape on more than one button per screen, or use it as a background.
- Don't use photos where a drawn object would do; the CSS device is the hero.
- Don't use pixel type for paragraphs. It's for the screen and small labels only.
- Don't add a second bright accent (no reds, greens or blues).
- Don't use em dashes in copy.
