# Margin Notes

A quiet notebook on the web. Pages are almost all white paper and one narrow reading column, set in a plain grotesk at modest sizes. Lists are lettered (a., b., c.) with the letters hanging out in the left margin, and the last item can be an empty "+" that invites you to add your own. Buttons are small gray chips, with one deep navy button for the single action that matters. Collections show as a grid of square "blocks": a note in serif italic, a drawing, a color swatch, a link. App windows are the only things that float. It reads as thoughtful, unhurried and a little bookish, a place for people who collect and keep things.

Use it for: note-taking and research tools, archives and libraries, education, science and nature apps, member-supported products, anything about collecting, reading or paying attention. Avoid it for: loud launches, sales-heavy e-commerce, games, fitness, anything that needs big color or drama.

## 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 Margin Notes 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 for Fieldbook, a fictional field-notes app for amateur naturalists, built only with the kit.

## Fonts

All free on Google Fonts:

```html
<link href="https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700&family=Newsreader:ital,opsz,wght@1,6..72,400;1,6..72,500&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
```

| Role | Font | Use |
|---|---|---|
| Everything | Hanken Grotesk 400 to 700 | Headlines (500 to 600, never heavier), body, nav, buttons, forms. Bold 700 only for an inline number like "6 years and 41 days". |
| Voice | Newsreader italic 400 | Quotes, pull quotes and the text inside note blocks. Never for headings or UI. |
| Labels | JetBrains Mono 400 | Category labels ("Journal / Schools"), table headers, chart axes. Small and gray. |

## Color

| Token | Hex | Role |
|---|---|---|
| `--mn-paper` | #FDFDFC | Page background |
| `--mn-white` | #FFFFFF | Windows, blocks, inputs |
| `--mn-wash` | #F2F2EF | Chip buttons, tags, quiet sections, notes, the sign-up side panel |
| `--mn-wash-2` | #E9E9E5 | Chip hover, avatars |
| `--mn-line` | #E6E6E2 | Every border and divider |
| `--mn-ink` | #262624 | Text, the active step, selected choices, the rule above plans |
| `--mn-mute` | #84847F | List letters, secondary text, breadcrumbs, labels |
| `--mn-faint` | #B7B7B1 | Inactive steps, placeholders, the add "+" |
| `--mn-navy` | #1F2270 | The one primary button per view, the featured tag, chart lines |
| `--mn-moss` | #3C7A4F | Swatch blocks and a "public" status dot only |
| `--mn-clay` | #B8643E | Swatch blocks only |
| `--mn-error` | #B3362F | Form errors |

Rules:
- One navy button per view. Everything else is a chip, a ghost or a line button.
- Moss and clay live inside blocks (swatches) and tiny status dots. Never on text, buttons or backgrounds.
- No gradients, no tinted sections beyond wash.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--mn-text-display` | clamp(30px, 4.2vw, 44px) | Page titles, weight 500, tracking -0.025em |
| `--mn-text-h2` | clamp(22px, 2.6vw, 28px) | Section headings, weight 600 |
| `--mn-text-h3` | 17px | Small section labels like "How it works", weight 600 |
| `--mn-text-lead` | 19px | The hero sentence and lettered lists |
| `--mn-text-body` | 16px | Body; articles use 17px |
| `--mn-text-small` | 14px | UI, captions, tables |
| `--mn-text-tiny` | 12px | Block titles, help text, mono labels |

Type stays small on purpose. The hero is not a big headline: it is a short intro ("Fieldbook is"), a lettered list and one paragraph with a bold number in it. Sentence case everywhere, no exclamation marks.

## Shape and space

- Borders: 1px `--mn-line`. The plans and table get a 1px ink rule on top instead of boxes.
- Radius: 3px on blocks and tags, 4px on buttons and inputs, 6px on toggles and code, 10px on app windows and the sign-up panel. Nothing is pill shaped except avatars.
- Shadows: only `--mn-shadow-window` on app windows. Blocks, cards and buttons are flat.
- The column: text lives in a 600px column with a 34px left margin (26px on phones). List letters and small marks hang in that margin, so the text edge stays straight.
- Wide content (windows, plans, block grids) uses a 1040px container. Sections are 72px tall padding, 48px on phones; separate them with a full-width `.mn-rule` or a wash section.
- Motion: a 6px fade-up on load, staggered with `.mn-fade--2` and `--3`. Nothing else moves.

## Components (in components.css)

| Class | What it is |
|---|---|
| `.mn-nav`, `__links`, `__actions` | Thin top bar: mark left, gray links center, a small chip "Log in" right |
| `.mn-mark`, `__glyph` | Small wordmark with an outline SVG glyph |
| `.mn-col`, `.mn-wide`, `.mn-page` | The narrow reading column with a hanging margin, the 1040px container and the 1200px page |
| `.mn-section`, `--wash`, `.mn-rule` | Section spacing, the wash surface and a hairline |
| `.mn-display`, `.mn-h2`, `.mn-h3`, `.mn-lead`, `.mn-label`, `.mn-serif`, `.mn-count`, `.mn-muted`, `.mn-small` | Type helpers |
| `.mn-letters`, `--numbers`, `__add` | Lettered list with letters in the margin; `__add` is the gray "+" chip for an open last item |
| `.mn-hang`, `__mark` | Put any small mark (a date, a number) in the margin next to a paragraph |
| `.mn-btn--primary/chip/ghost/line`, `--sm`, `--block`, `__letter` | Navy action, gray chip, text-only, white outlined; letter tiles for social sign-in (no brand logos) |
| `.mn-window`, `__bar`, `__search`, `__body` | Floating app window with a thin bar |
| `.mn-crumbs`, `.mn-meta-row` | Gray breadcrumb title with the last part in ink; a four-column info row under a hairline |
| `.mn-blocks`, `.mn-block`, `__face--text/link/swatch/add`, `__title` | The square collection grid: note, link, color, drawing or "+" |
| `.mn-steps`, `.is-active` | Vertical step list on a thin line; the active step is ink with a short description, others are faint |
| `.mn-tag`, `--navy`, `--moss` | Small rectangular tags; moss adds a status dot |
| `.mn-note` | Wash box with an ink left edge for asides |
| `.mn-quote` | Serif italic quote with a gray attribution |
| `.mn-facts` | Two-column label and value list for numbers |
| `.mn-toggle` | Wash segmented control with a white active option |
| `.mn-plans`, `.mn-plan`, `__name/__price/__list` | Three plans side by side, split by hairlines under one ink rule |
| `.mn-table-wrap`, `.mn-table`, `__no` | Plain comparison table with mono headers; scrolls sideways on phones |
| `.mn-faq` | `<details>` list with a gray plus and minus |
| `.mn-byline`, `.mn-avatar` | Initials avatar with name and meta |
| `.mn-prose`, `.mn-footnote` | Article text: serif italic pull quotes, wash inline code, white bordered code blocks |
| `.mn-related` | Three text-only related links with mono labels |
| `.mn-form`, `.mn-field`, `__label`, `.mn-input`, `.mn-select`, `.mn-help`, `.mn-error`, `.mn-field--error` | Stacked fields with a navy focus ring |
| `.mn-choices` | Chip checkboxes that turn ink when picked |
| `.mn-check`, `.mn-or` | Checkbox row and an "or" divider |
| `.mn-footer`, `__cols`, `__bottom` | Four-column footer in gray |
| `.mn-fade`, `--2`, `--3` | Entrance, respects reduced motion |

## Pages in this kit

- `demo.html`: landing page (lettered hero, app window with blocks next to clickable steps, a wash section of public blocks, a quote with facts, a quiet closing call to action).
- `pricing.html`: lettered intro, a monthly or yearly toggle, three plans under an ink rule, a comparison table, FAQ.
- `blog.html`: an article with a chart in an app window as the cover, prose with a serif pull quote, a note, code, a figure, an author sign-off and related links.
- `signup.html`: a split page, the form in a margin column on the left and a wash panel with a first trail and a quote on the right.

## Page recipe

1. `.mn-nav`.
2. Hero in `.mn-col`: the glyph, a short intro line ("Fieldbook is"), an `.mn-letters` list of two definitions plus an `__add` item, one paragraph with a `.mn-count`, then a navy button and a chip.
3. `.mn-rule`, then a `.mn-h3` label and a `.mn-window` showing `.mn-crumbs`, `.mn-meta-row` and `.mn-blocks`, with `.mn-steps` beside it.
4. Wash section with a row of public `.mn-block`s, the last one an add block.
5. `.mn-quote` and `.mn-facts` in the column.
6. `.mn-rule`, a closing h2, one muted lead line and the same two buttons.
7. `.mn-footer`.

## Pricing page recipe

1. Nav, then in `.mn-col`: a display title, one lead sentence ending in a colon and an `.mn-letters` list that says the pricing in three lines.
2. `.mn-toggle` for Monthly and Yearly. Keep prices in `data-monthly` and `data-yearly`.
3. `.mn-plans` in `.mn-wide`; the middle plan gets a `.mn-tag--navy` and the only navy button.
4. One `.mn-footnote` line, a wash section with the `.mn-table`, then the FAQ with its heading on the left.

## Article page recipe

1. In `.mn-col`: an `.mn-label` category path, the display title, a muted lead and `.mn-byline`.
2. A wide `.mn-window` as the cover, holding an SVG chart drawn with ink, navy and faint lines. No photos needed.
3. `.mn-prose` in the column: short paragraphs, h2 and h3, one serif blockquote, one `.mn-note`, code, a figure.
4. A sign-off with an ink rule above it, then a wash section with `.mn-related`.

## Sign-up page recipe

1. Two columns. Left: the mark, then a column with a hanging margin holding an h2, one muted line and a small `.mn-letters` list of three steps.
2. `.mn-form`: name, email, password with `.mn-help`, `.mn-choices` for interests, a select, `.mn-check`, a navy block button, `.mn-or` and two `.mn-btn--line` social buttons with letter tiles.
3. Right: a wash panel, inset 12px with a 10px radius, holding a small `.mn-window` with blocks and a `.mn-quote`. Hide it below 860px.

## Don'ts

- Don't make headlines big or heavy. If it looks like a poster, it's wrong.
- Don't use more than one navy button in view, or color any text navy.
- Don't put shadows on blocks, cards or buttons, or round them past 4px.
- Don't use photos as decoration. Draw with thin SVG lines or use a swatch block.
- Don't drop the hanging margin: list letters sit outside the text edge.
- Don't use em dashes in copy.
