# Red Pen

A tidy, friendly style for apps people keep for years. A white page, a rounded sans set dark and centered, and only two notes of color: a warm tomato red for the things that matter (the logo, the open item, the caret, a "New" mark, the one loud button) and a soft teal for the hand-drawn curve under one word of every headline. The signature is the desk: a layered app window with a charcoal sidebar, a light note list with a red marker on the open item, and a clean editor holding #tag pills, a checklist and a warm callout. Pill controls, hairline borders and a single soft shadow under the window.

Use it for: personal and family apps, note-taking and writing tools, recipe and hobby apps, journaling, habit and list apps, small subscriptions, indie software with a native app to show. Avoid it for: luxury and fashion, loud promotions, dense enterprise dashboards, dark or moody brands, anything that needs many accent colors.

## 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 Red Pen 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 family recipe box called Potluck.

## Fonts

All free on Google Fonts:

```html
<link href="https://fonts.googleapis.com/css2?family=Nunito:wght@600;700;800&family=Nunito+Sans:opsz,wght@6..12,400;6..12,600;6..12,700&family=IBM+Plex+Mono:wght@400;500&display=swap" rel="stylesheet">
```

| Role | Font | Weight | Use |
|---|---|---|---|
| Display | Nunito | 700 to 800 | Logo, hero and section titles, card titles, plan names, prices, FAQ questions, the editor heading in the window |
| Body and UI | Nunito Sans | 400 to 700 | Body copy, nav, buttons, labels, tabs, captions |
| Tags and code | IBM Plex Mono | 400 to 500 | Only inside `rp-tag` pills and inline `code` |

Headlines sit dark (`--rp-ink`) and slightly tight (-0.015em). Never color a whole headline red or teal: color comes from the underline.

## Color

| Token | Hex | Use |
|---|---|---|
| `--rp-page` | #FFFFFF | The page, cards, the editor |
| `--rp-paper` | #FAF9F7 | Quiet sections, the note list, figures, the sign-up side panel |
| `--rp-sand` | #F3F1ED | Tag pills, the open note, hover fills, the billing switch |
| `--rp-ink` | #2E2D31 | Text, outlined button borders, the featured plan border |
| `--rp-soft` | #6B6A72 | Secondary text and meta |
| `--rp-faint` | #A3A1A8 | Placeholders, done checklist items, footer base |
| `--rp-red` | #D9483A | The logo, the red marker on the open item, the caret, "New", ticks, the one red button |
| `--rp-teal` | #79C4C8 | The headline underline, active tab marks, link underlines, done checkboxes |
| `--rp-amber` | #EE8A3C | The left rule of the warm callout, one card icon |
| `--rp-charcoal` | #2A2B2F | The app window sidebar and the dark section |
| `--rp-line`, `--rp-line-strong` | #E7E4DF, #CFCBC4 | Hairlines and field borders |

Soft tints (`--rp-red-soft`, `--rp-teal-soft`, `--rp-amber-soft`) are for badges, icon tiles and callouts only. One red button per screen.

## Type scale

| Class | Size | Notes |
|---|---|---|
| `rp-hero-title` | clamp(36px, 4.6vw, 60px) | Nunito 800, centered, line-height 1.12, one word wrapped in `rp-mark` |
| `rp-h2` | clamp(28px, 3vw, 40px) | Nunito 800 |
| `rp-h3` | 21px | Nunito 700 |
| `rp-lead` | clamp(18px, 1.6vw, 22px) | Nunito Sans, max 600px |
| Body | 16px | Nunito Sans 400, line-height 1.6 |
| `rp-prose` | 18px | Line-height 1.75, red list markers, teal link underlines |
| `rp-eyebrow` | 12px | 700, uppercase, tracking 0.12em, `--rp-soft` |

## Shape and space

- Controls are pills (`--rp-radius-pill`): buttons, tags, badges, the billing switch. Cards and plans use 18px (`--rp-radius-lg`), fields and choices 12px.
- Outlined buttons have a 1.5px ink border on white. Fill is saved for the one red action.
- Hairlines (`--rp-hairline`) separate everything. The only real shadow is `--rp-shadow`, under the app window and the featured plan. `--rp-shadow-sm` lifts small floating cards.
- Layouts are centered and calm: 1120px container, 680px for reading, 64 to 120px between sections.

## Components (in components.css)

- **Nav** `rp-nav`: `rp-logo` (a red circle mark plus the name) on the left, `rp-nav__links` in the middle (hidden under 820px, current page gets a teal underline via `aria-current`), `rp-nav__end` with a small outlined button.
- **Underline** `rp-mark`: wrap one word of a headline. Draws a soft teal curve under it. `rp-mark--red` for a second variant, at most once per page.
- **Hero** `rp-hero`: centered `rp-hero-title`, `rp-lead`, `rp-tabs`, one action, then the window.
- **Tabs** `rp-tabs` with `rp-tab` buttons (icon plus word). The selected tab gets three teal ticks above and a curve below. Add `rp-new` for a small red "New".
- **Buttons** `rp-btn` (outlined pill) plus `--red`, `--dark`, `--ghost`, `--sm`, `--block`. **Store button** `rp-store`: a rounded outlined box with an icon, a small line and a bold line.
- **Window** `rp-window`: `rp-window__side` (charcoal, `rp-dots`, `rp-side-item`, `--on`, `--sub`), `rp-window__list` (`rp-list-head`, `rp-note`, `rp-note--on` with the red marker) and `rp-window__editor` (h3, h4, `rp-tag`, `rp-caret`, `rp-callout`, `rp-checks`). Under 900px only the editor shows, with the window dots drawn on top.
- **Tags and badges** `rp-tag` (mono pill with a faint #), `rp-badge` (red tint), `--teal`, `--dark`.
- **Callout** `rp-callout`: warm amber left rule on a cream fill, `--teal` variant. Use `<em>` inside for a red italic phrase.
- **Lists** `rp-checks` (checkboxes, `is-done` items are struck through with a teal box) and `rp-ticks` (red check marks).
- **Cards** `rp-card` with `rp-card__icon` (`--teal`, `--amber`). `rp-grid` lays them out. `rp-mini` is a small floating card.
- **Section head** `rp-head`; **Quote** `rp-quote` with `rp-avatar` (initials in a teal circle).
- **Pricing** `rp-switch` (pill toggle with `aria-pressed`), `rp-plans`, `rp-plan`, `rp-plan--featured`, `rp-plan__name`, `rp-price`. **Table** `rp-table-wrap` and `rp-table` with `rp-yes` and `rp-no`. **FAQ** `rp-faq` of `details`, red plus and minus.
- **Article** `rp-article-head`, `rp-meta`, `rp-prose`, `rp-pull` (red left rule), `rp-figure`, `rp-author`.
- **Forms** `rp-form`, `rp-field`, `rp-label`, `rp-hint`, `rp-input`, `rp-select`, `rp-textarea`, `rp-check`, `rp-choices` of `rp-choice`, `rp-divider`, `rp-fieldset`. Focus gives an ink border and a teal ring.
- **Sign-up split** `rp-split`, `rp-split__form` with `rp-form-box`, `rp-split__aside`.
- **Footer** `rp-footer`, `rp-footer__grid`, `rp-footer__base`.
- Helpers: `rp-container`, `rp-narrow`, `rp-center`, `rp-section` (`--paper`, `--dark`), `rp-stack`, `rp-muted`, `rp-small`, `rp-mt-sm`, `rp-mt`.

## Pages in this kit

- `demo.html`: landing page with the hero, tabs, the window, feature cards, a split shopping-list section, a quote and a closing call to action.
- `pricing.html`: centered intro, billing switch, three plans, a comparison table and an FAQ.
- `blog.html`: a centered article head, prose with a callout, a planner figure, a pull quote, the author box and more posts.
- `signup.html`: a split screen with the form on the left and small tilted note cards on the right.

## Page recipe

1. `rp-nav`.
2. `rp-hero`: a short title with one `rp-mark` word, one line of `rp-lead`, optional `rp-tabs`, one action.
3. The `rp-window` showing the product with real-looking content: one open item with the red marker, a few tags, one callout, a checklist.
4. A `rp-section` with `rp-head` and three `rp-card`s.
5. A `rp-section--paper` split: copy with `rp-ticks` on one side, `rp-mini` cards on the other.
6. A centered `rp-quote`, then a closing section with one red button and one outlined button.
7. `rp-footer`.

**Pricing:** centered title with a marked word, `rp-switch`, `rp-plans` with the middle plan featured (ink border, shadow, a badge sitting on its top edge), then a table and the FAQ.

**Article:** `rp-article-head` (badge, title with one marked word, meta with an avatar), `rp-narrow rp-prose`, one `rp-callout` and one `rp-pull` per article, an `rp-figure` built from kit parts, `rp-author` at the end.

**Sign up:** `rp-split`. The form side has the logo, a title with one marked word, a magic-link outlined button, `rp-divider`, fields, `rp-choices` and the red submit. The aside on `--rp-paper` shows two slightly tilted `rp-mini` cards.

## Don'ts

- Don't underline more than one word per headline, and never underline body text with `rp-mark`.
- Don't use more than one red filled button on a screen.
- Don't add gradients, glows, or extra accent colors.
- Don't put shadows on ordinary cards; hairlines do that job.
- Don't use square corners on controls, or pills on cards.
- Don't set headlines in the mono font, or tags in the display font.
