# Scribble Pill

A bright, friendly consumer app on warm paper. Headlines are heavy and tightly tracked, almost squeezed, and set big and centered. One word per page gets a violet hand-drawn scribble under it. The one main action is a glossy red-orange pill that looks pressable. The product itself, a crisp three-pane app window in soft gray, is the hero image. Below it, numbered feature rows ("01 / Missed a lesson?") alternate text and a pastel tile. It feels cheerful and capable: a tool for busy people that never takes itself too seriously.

Use it for: consumer apps, booking and planning tools, family and kids services, classes and clubs, anything that should feel warm, quick and a little cheeky. Avoid it for: luxury brands, serious finance or legal, dark moody products, long dense documentation.

## 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 Scribble Pill 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 swim-school booking app called Lapline.

## Fonts

All free on Google Fonts:

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

| Role | Font | Use |
|---|---|---|
| Headlines | Bricolage Grotesque 800 | Hero, section headings, prices, pull quotes. Tracking -0.045em, line-height about 1. |
| UI headings | Bricolage Grotesque 600 to 700 | Nav links, buttons, card titles, FAQ questions |
| Body | Figtree 400 to 700 | Paragraphs, leads, forms, product UI, eyebrows |
| Mono | JetBrains Mono 500 | Inline code only |

## Color

| Token | Hex | Role |
|---|---|---|
| `--sb-paper` | #FAF8F3 | The page background, warm off-white |
| `--sb-card` | #FFFFFF | Cards, panes, inputs, the alternate section |
| `--sb-mist` | #F2F0EA | App window frame, toggles, table header, quiet tiles |
| `--sb-line` | #E6E2D8 | Borders and dividers |
| `--sb-ink` | #1D1B26 | Headlines and main text |
| `--sb-soft` | #6C6977 | Leads and secondary text |
| `--sb-flare` | #F0441F | The action color: primary pill, logo, check marks, numbered eyebrows |
| `--sb-flare-soft` | #FDE6DF | Soft chips, icon tiles, feature tiles |
| `--sb-violet` | #7A6AF2 | The scribble, focus rings, link underlines |
| `--sb-violet-soft` | #ECE9FD | Feature tiles, the sign-up side panel, covers |

Rules:
- Paper is the default. Use a white section (`.sb-section--card`) once or twice per page to break things up.
- Flare is for doing: the primary button and small markers. Never a flare background section.
- Violet is for marking: the scribble and underlines. One scribble per screen, under one word.
- Sky and mint (`--sb-sky`, `--sb-mint`) live only inside product UI as status colors.
- The only gradient is the glossy vertical one on the flare pill and logo mark.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--sb-text-hero` | clamp(46px, 7.4vw, 92px) | Hero headline, centered, 2 lines |
| `--sb-text-h2` | clamp(34px, 4.6vw, 56px) | Section headings, often 2 short lines with a `<br>` |
| `--sb-text-h3` | 26px | Sub-headings |
| `--sb-text-lead` | clamp(17px, 1.6vw, 20px) | The sentence under a headline, soft gray, max 680px |
| `--sb-text-body` | 16px | Body |
| `--sb-text-eyebrow` | 12px | Uppercase eyebrow, tracking 0.18em |

Headlines are short, plain and a bit playful, often two parallel lines ("Less chasing parents. More lengths swum."). They end with a period. Eyebrows sit above them in small spaced capitals; numbered ones read `01 / Missed a lesson?` with the number in flare.

## Shape and space

- Radius: 22px on feature tiles, covers and pricing cards, 16px on cards and the app window, 12px on panes and inputs, pills on every button, chip and toggle.
- Borders: 1px `--sb-line`. Cards also get a tiny shadow.
- Shadows: soft. The app window gets a long, low shadow (`--sb-shadow-window`). The flare pill gets an inner highlight and a warm glow (`--sb-shadow-pill`). No hard offsets.
- Sections: 112px vertical padding, feature rows 72px. Container 1120px.
- Motion: a short rise on hero items (12px, 0.7s). Buttons lift 1px on hover.

## Components (in components.css)

| Class | What it is |
|---|---|
| `.sb-nav`, `__inner`, `__links`, `__actions`, `__signin` | Logo left, 5 links center, "Sign in" text and a small flare pill right |
| `.sb-logo`, `__mark` | Wordmark with a glossy flare tile |
| `.sb-eyebrow`, `__num` | Spaced uppercase label above a heading; the number is flare |
| `.sb-hero`, `.sb-hero-title`, `.sb-h2`, `.sb-h3`, `.sb-lead` | Centered hero and heavy headings |
| `.sb-scribble`, `--circle` | The signature: a violet hand-drawn line under one word, or a flare loop around it |
| `.sb-btn--primary/text/quiet/light/social`, `--sm`, `--block` | Glossy flare pill, plain text link button, white outlined pill |
| `.sb-actions` | Button row; centered inside `.sb-hero` and `.sb-center` |
| `.sb-window`, `__side`, `__dots`, `__pane`, `--tint` | Three-pane app window: sidebar, list, detail; collapses to one pane on phones |
| `.sb-side-item`, `--on`, `.sb-side-label`, `.sb-ico` | Sidebar rows; the active one has a flare edge |
| `.sb-pane-title`, `.sb-task`, `__box`, `__title`, `__meta`, `.sb-slot` | Product UI: list rows with round check boxes and small meta lines |
| `.sb-chip`, `--flare`, `--violet`, `.sb-dot` | Small pills for tags and status |
| `.sb-trust` | One quiet line of facts under the hero |
| `.sb-feature`, `--flip`, `__text`, `__art`, `__link` | Numbered alternating feature row with a pastel tile |
| `.sb-phone`, `__screen` | Dark phone frame for a mobile screen inside a tile |
| `.sb-cards`, `.sb-card`, `__icon`, `__title`, `__text` | Row of three white cards with a soft icon tile |
| `.sb-quote`, `.sb-avatar`, `--flare` | Big centered quote with an initials avatar |
| `.sb-cta` | White rounded panel with a headline and two buttons |
| `.sb-toggle` | Pill toggle for monthly or yearly |
| `.sb-plans`, `.sb-plan`, `--featured`, `__name/__desc/__price/__list` | Pricing cards; the featured one has a flare ring and the flare pill |
| `.sb-table-wrap`, `.sb-table`, `__yes/__no` | Comparison table that scrolls sideways on phones |
| `.sb-faq` | `<details>` FAQ with a flare plus that turns into a cross |
| `.sb-article-head`, `.sb-meta`, `.sb-cover`, `.sb-prose`, `.sb-callout` | Article header, cover tile, long-form text with flare ring bullets and a scribble-topped pull quote |
| `.sb-author`, `--card`, `.sb-posts`, `.sb-post`, `__thumb`, `__title` | Byline, author card, related posts |
| `.sb-form`, `.sb-field`, `--error`, `.sb-label`, `.sb-input`, `.sb-select`, `.sb-help`, `.sb-error` | Stacked form with a violet focus ring and a flare error state |
| `.sb-input-wrap`, `.sb-input-toggle`, `.sb-check`, `.sb-divider-text`, `.sb-btn__letter` | Password show toggle, checkbox, "or" divider, letter tile on social buttons |
| `.sb-footer`, `__cols`, `__bottom` | Four-column footer |
| `.sb-rise`, `--2`, `--3` | Staggered entrance, respects reduced motion |

## Pages in this kit

- `demo.html`: landing page (hero with scribble, app window, trust line, three numbered feature rows, cards, quote, call to action).
- `pricing.html`: three plans with a monthly or yearly toggle, a comparison table, an FAQ and a call to action.
- `blog.html`: a guide with a centered header, a violet cover tile, prose, an author card and related posts.
- `signup.html`: a split page, the form on paper and a violet panel with a product pane and a quote.

## Page recipe

1. Nav on paper: logo, 5 links, "Sign in" and a small flare pill.
2. Centered hero: eyebrow sentence, heavy 2-line headline with one scribbled word, soft lead, flare pill plus a text button.
3. The app window right under it, wide, with a long soft shadow. Then a single trust line.
4. A centered statement section: eyebrow, 2-line h2, lead.
5. Three numbered feature rows, alternating text left and tile left. Tiles are flare-soft, violet-soft or mist and hold a phone, floating cards or chips.
6. A white section with three cards.
7. A big centered quote, then a white CTA panel. Footer.

Pricing recipe: centered heading with one scribbled word, the toggle, three plans (middle one featured), comparison table, FAQ on a white section, CTA panel.

Article recipe: centered eyebrow, big headline with one scribbled word, byline meta row, a pastel cover tile drawn with chips and a wave, 680px prose, author card, three related posts.

Sign-up recipe: two columns. Left: logo, eyebrow, h2 with a scribble, social buttons, "or with email", the form, a flare block button. Right: violet-soft panel with one app pane and a short quote.

## Don'ts

- Don't scribble more than one word per screen, and never a whole line.
- Don't use flare for big areas or text paragraphs.
- Don't set headlines in a light weight or with normal tracking; they should feel squeezed.
- Don't use square corners on buttons or chips.
- Don't add photos of people to the hero; the product window is the hero.
- Don't use dark sections; this style lives on paper and white.
