# Red Pencil

A friendly, tidy notebook. White paper, a soft charcoal ink instead of black, rounded humanist sans headlines in heavy weights and quiet body text. One coral-red accent marks the logo, the selected item and small "New" tags, and a hand-drawn teal underline sits under a single word in a headline. The product is shown as a calm app window: a dark sidebar, a list of notes with a red marker on the open one, and a roomy editor. It feels personal, careful and warm without getting cute.

Use it for: personal apps, note and journal tools, hobby and craft products, small consumer subscriptions, anything that should feel like a well-kept notebook. Avoid it for: enterprise dashboards, loud launches, luxury brands, anything that needs drama or dark moods.

## 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 Pencil 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 sewing notebook app called Stitchbook.

## 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=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
```

| Role | Font | Use |
|---|---|---|
| Headlines | Nunito 700 to 800 | Hero, section headings, buttons, labels, prices, pull quotes. Heavy and rounded. |
| Body | Nunito Sans 400 to 700 | Paragraphs, nav links, cards, form inputs, product UI. |
| Mono | JetBrains Mono 400 | Measurements, file names, inline code. Use rarely. |

## Color

| Token | Hex | Role |
|---|---|---|
| `--rp-paper` | #FFFFFF | The main background, cards, panels |
| `--rp-mist` | #F4F5F6 | Quiet sections, the selected list row, toggles |
| `--rp-mist-2` | #ECEEF0 | Tag chips, swatch fills |
| `--rp-line` | #E3E5E8 | Every border and divider |
| `--rp-ink` | #36383D | Headlines, body text and outlined buttons. Never use pure black |
| `--rp-soft` | #7D8188 | Secondary text, meta, previews |
| `--rp-faint` | #AEB2B8 | Inactive tabs, timestamps |
| `--rp-night` | #2C2E33 | The app sidebar, the only dark surface |
| `--rp-red` | #DF4F45 | The accent: logo disc, primary button, selected marker, eyebrows, "New" |
| `--rp-teal` | #7FC8D2 | The hand-drawn underline, sketch ticks, bullet dots, checked boxes |
| `--rp-amber` | #EF9333 | The left border of callouts only |

Rules:
- White is the default. Mist fills every second or third section, never the whole page.
- Red shows up a few times per screen: the logo, one primary button, an eyebrow, a marker. It is never a background for a whole section.
- Teal is for drawn marks only (underline, ticks, dots, checks). Never put text in teal.
- No gradients. No colored section bands.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--rp-text-hero` | clamp(40px, 5.6vw, 68px) | Hero headline, Nunito 800, centered, line-height 1.08 |
| `--rp-text-h2` | clamp(30px, 3.6vw, 44px) | Section headings, Nunito 800 |
| `--rp-text-h3` | 22px | Card and plan titles, Nunito 700 |
| `--rp-text-lead` | clamp(19px, 2vw, 24px) | The line under the hero, ink color, light and plain |
| `--rp-text-body` | 17px | Body, line-height 1.6 |

Headlines are short and warm ("Sewing notes you'll keep"), in sentence case with no period. Put `.rp-mark` on exactly one word per headline, and only in the hero and one or two section headings per page.

## Shape and space

- Borders: 1px `--rp-line`. Buttons and the featured plan use a 1.5px ink outline.
- Radius: 18px on windows, cards and panels; 10px on buttons and inputs; 6px on tags. Buttons are rounded rectangles, never pills. Only small status pills and avatars are round.
- Shadows: soft and gray. `--rp-shadow-lg` only on the app window; `--rp-shadow` on panels and the featured plan.
- Sections: 72px to 120px vertical padding. Container 1080px, the app window up to 1180px, text 700px.
- Motion: a slow 10px fade on the hero. Nothing bounces.

## Components (in components.css)

| Class | What it is |
|---|---|
| `.rp` | Put on `<body>`: paper background, ink text, Nunito Sans |
| `.rp-nav`, `.rp-nav__links`, `.rp-logo`, `.rp-logo__mark` | Logo (red disc with a white line icon) left, plain text links right |
| `.rp-hero-title`, `.rp-h2`, `.rp-h3`, `.rp-lead`, `.rp-sub`, `.rp-eyebrow` | Headlines, the lead line, soft text and a small red uppercase label |
| `.rp-mark` | The signature: a hand-drawn teal underline under one word |
| `.rp-ticks` | Three little teal strokes above the active tab |
| `.rp-tabs`, `.rp-tab` | Device or category tabs: plain words with a thin icon, active one in ink with a teal line |
| `.rp-btn`, `--primary`, `--ghost`, `--sm`, `--block` | Outlined ink buttons by default, red primary for the one main action |
| `.rp-badge-btn` | A two-line outlined download button, like a store badge |
| `.rp-tag`, `.rp-new`, `.rp-pill` | Hashtag chips, the red "New" mark, a small red status pill |
| `.rp-window` and parts | The app window: lights, dark sidebar nav, note list (`.rp-note.is-on` has a red left marker), editor |
| `.rp-check`, `.is-done` | Checklist lines inside the editor; done ones get a teal box and a strike |
| `.rp-callout` | Amber-edged note box for tips and fitting notes |
| `.rp-grid`, `.rp-card`, `.rp-card__icon` | Feature cards with a soft red icon tile |
| `.rp-quote`, `.rp-quote-by`, `.rp-avatar` | Big rounded pull quote and its author |
| `.rp-toggle`, `.rp-plans`, `.rp-plan`, `--featured`, `.rp-plan__price` | Pricing toggle and plan cards |
| `.rp-faq` | Bordered details list with a red plus |
| `.rp-article`, `.rp-meta` | Long-form reading: teal-underlined links, teal blockquote bar |
| `.rp-field`, `.rp-label`, `.rp-input`, `.rp-hint`, `.rp-checkline`, `.rp-divider`, `.rp-panel` | Forms |
| `.rp-footer` and parts | Four-column footer with a base row |

## Pages in this kit

| File | Page |
|---|---|
| `demo.html` | Landing: hero with device tabs, badge button and app window, features, a split section, a quote, a closing CTA |
| `pricing.html` | Three plans with a monthly and yearly toggle, a comparison table and an FAQ |
| `blog.html` | A Journal article with a drawn cover card, callout, blockquote and related posts |
| `signup.html` | Two columns: promise and checks on the left, a form panel on the right |

## Page recipe

1. Nav: logo left, 4 or 5 text links right. No buttons in the nav except a ghost "Sign in" on bare pages.
2. Hero, centered: headline with one `.rp-mark` word, a single lead line, optional `.rp-tabs`, one button.
3. The product window on a mist panel that starts behind its lower half.
4. Three feature cards, then a mist split section with copy left and a drawn visual right.
5. One pull quote, then a mist closing section with a red primary button next to an outlined one.
6. Footer.

Pricing recipe: a centered headline with a mark, `.rp-toggle`, three `.rp-plan` cards with the middle one `--featured` and its button red, then a mist comparison table and an FAQ.

Article recipe: 700px column, eyebrow, big headline with a mark, a soft lead, `.rp-meta` with an avatar, a drawn cover card on mist, then `.rp-article` body with one callout and one blockquote. End with tags and one red button.

Sign-up recipe: two columns that stack below 860px. Left: eyebrow, headline with a mark, lead, three teal-checked promises. Right: `.rp-panel` form, red submit, an `.rp-divider`, an outlined alternative button.

## Don'ts

- Don't use pure black, or put the red on large areas.
- Don't put `.rp-mark` on more than one word in a headline, or on body text.
- Don't make buttons into pills, and don't add hard or colored shadows.
- Don't use serif fonts or thin headline weights.
- Don't add gradients, glows or photos as backgrounds. Draw small visuals with CSS and SVG.
- Don't use em dashes in copy.
