# Footnote Gray

A scholar's notebook printed on the web. Pure grayscale, with no accent hue at all: white paper, near-black ink and a short ladder of grays. Book typography carries everything. A justified, hyphenated serif column; small caps headings sitting on dotted rules; links with dotted underlines; numbered sidenotes in a wide right margin; diamond fleuron bullets; nav tabs boxed in double rules; and a single blackletter monogram. It feels patient, exact and a little obsessive, like a site written by someone who checks their sources.

Use it for: reference sites, research tools, data products that need to show their working, almanacs, newsletters and long-form notes, hobby databases, any product whose selling point is care and accuracy. Avoid it for: playful consumer brands, kids, fashion, anything that needs a loud color or photography to sell.

## 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 Footnote Gray 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 tide almanac called Lowwater.

## Fonts

All free on Google Fonts:

```html
<link href="https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;0,8..60,700;1,8..60,400;1,8..60,600&family=Source+Sans+3:wght@400;600&family=IBM+Plex+Mono:wght@400;500&family=UnifrakturMaguntia&display=swap" rel="stylesheet">
```

| Role | Font | Use |
|---|---|---|
| Everything | Source Serif 4, 400 to 700 | Headlines (700), body (400), italics for emphasis and asides, small caps for labels, buttons and h2s |
| Meta | Source Sans 3, 400 to 600 | Only tiny things: note numbers, dates, the plan label, error messages |
| Mono | IBM Plex Mono 400 | Tables of numbers, timestamps, station IDs, code |
| Monogram | UnifrakturMaguntia | The one-letter logo, author marks and the drop cap that opens an article. Never for words. |

## Color

| Token | Hex | Role |
|---|---|---|
| `--fg-paper` | #FFFFFF | The page |
| `--fg-page` | #FBFBFA | Boxes, abstracts, sidebars, the sign-up side panel |
| `--fg-wash` | #F1F1F0 | Inline code, chart bands, hover on buttons |
| `--fg-wash-2` | #E4E4E2 | The offset under popups, pressed states |
| `--fg-rule` | #B9B9B6 | Dotted rules and link underlines |
| `--fg-rule-strong` | #4A4A48 | Double borders on buttons and tabs |
| `--fg-soft` | #4B4B49 | Leads, sidenotes, captions |
| `--fg-faint` | #8A8A87 | Timestamps, metadata, placeholders |
| `--fg-ink` | #111111 | Text, headings, the primary button, the selected tab |
| `--fg-error` | #8B1E1E | Form errors only |

Rules:
- The page has no accent color. Emphasis comes from weight, italics, small caps, a filled black box or a double rule.
- The primary action is the one solid black button on a screen. Everything else is white with a double border.
- The selected nav tab is the only other solid black shape at the top of a page.
- Error red never appears outside a form.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--fg-text-hero` | clamp(38px, 5.4vw, 64px) | Page title, bold, tight leading, can end in a regular italic phrase |
| `--fg-text-h2` | clamp(26px, 3vw, 34px) | Section headings, bold small caps over a dotted rule |
| `--fg-text-h3` | 21px | Sub-headings; italic inside articles |
| `--fg-text-lead` | 21px | The sentence under a title, soft gray |
| `--fg-text-body` | 19px | Body, line-height 1.62, justified with hyphens |
| `--fg-text-side` | 15px | Sidenotes and popups |

Paragraphs that follow paragraphs are indented 2.4em with no gap between them, like a book. Open a paragraph with a run-in label in small caps ("Navigation:", "Features:", "Abstract:") instead of a heading when the section is short.

## Shape and space

- Corners are square. No radius anywhere except 2px on tiny things.
- Borders: 1px gray hairlines for boxes, 3px double rules for buttons, tabs and the featured plan, 1px dotted ink under every h2.
- Shadows: none, except the link preview popup, which gets a thin ink frame and a flat gray offset.
- Layout: a 720px reading column with a 230px sidenote margin to its right (container 1040px). Pricing and wide tables use `.fg-page--wide` without the margin.
- Space: 64px between sections, 24px inside boxes. Dense, but never cramped.
- Motion: one slow fade on the hero. Nothing slides or bounces.

## Components (in components.css)

| Class | What it is |
|---|---|
| `.fg-page`, `--wide` | The reading column with its sidenote margin; the wide version drops the margin |
| `.fg-masthead`, `.fg-monogram`, `.fg-tabs` | Blackletter monogram on the left, a row of boxed small caps tabs; `aria-current="page"` fills the tab black |
| `.fg-toolbar` | A column of square icon buttons fixed to the right edge (contrast, reader mode, popups, search); hidden below 960px |
| `.fg-hero-title`, `.fg-h2`, `.fg-h3`, `.fg-lead`, `.fg-eyebrow` | Bold serif title; small caps h2 on a dotted rule; soft lead; spaced small caps label |
| `.fg-justify`, `.fg-indent`, `.fg-runin` | Justified, hyphenated text; book indent; small caps run-in label |
| `.fg-note-ref`, `.fg-sidenote[data-n]`, `--box` | Superscript number in the text and the matching note floated into the right margin; on small screens notes drop inline as gray boxes |
| `.fg-list`, `--new`, `--num` | Diamond fleuron bullets; filled diamonds for new items; old-style numbered list |
| `.fg-btn`, `--primary`, `--sm`, `--block`, `--social`, `__letter` | Double-ruled small caps buttons; the primary is solid ink with an inner white rule; social buttons get a boxed letter, no brand logos |
| `.fg-box`, `--double` | Off-white boxed panel; double-ruled version for a quote or a key message |
| `.fg-popup`, `__bar`, `__title` | The link preview card: a small data bar, a bold title, a few lines of detail |
| `.fg-toc` | Boxed numbered table of contents |
| `.fg-callout` | Note with a double rule on its left edge |
| `.fg-stats`, `.fg-stat` | Three numbers between dotted rules, old-style figures, small caps labels |
| `.fg-table-wrap`, `.fg-table`, `__yes`, `__no` | Book table: heavy top and bottom rules, dotted row lines, filled and hollow diamonds for yes and no |
| `.fg-toggle` | Two boxed options for Monthly / Yearly |
| `.fg-plans`, `.fg-plan`, `--featured`, `__label/__name/__desc/__price/__list` | Three plan cards; the featured one has a 4px double ink border and the only primary button |
| `.fg-faq` | `<details>` list with dotted dividers and a plus that turns into a minus |
| `.fg-prose`, `.fg-dropcap`, `.fg-asterism` | Article body: indented justified paragraphs, small caps h2, italic h3, double-ruled quotes and code, blackletter drop cap, three-star section break |
| `.fg-author`, `__mark`, `__name`, `--card`, `.fg-meta` | Author line with a boxed blackletter initial and dot-separated meta |
| `.fg-post`, `__title` | Related reading item: dotted top rule, label, bold title, one line |
| `.fg-form`, `.fg-field`, `.fg-label`, `.fg-input`, `.fg-select` | Square ink-bordered inputs with small caps labels and italic placeholders; focus adds a second outer rule |
| `.fg-input-wrap`, `.fg-input-toggle` | Input with a small dotted-underlined "Show" inside |
| `.fg-help`, `.fg-error`, `.fg-field--error` | Italic gray hint; dark red border and sans message |
| `.fg-check` | Square checkbox that fills with a black diamond |
| `.fg-divider-text` | Dotted line with "or" in small caps |
| `.fg-footer`, `__cols`, `__bottom` | Double rule on top, four small columns, a dotted legal line |

## Pages in this kit

- `demo.html`: the landing page (masthead, title, run-in paragraphs with sidenotes, a drawn tide chart, Newest and Popular lists, a popup preview, a numbered method, stats, a quote and a call to action).
- `pricing.html`: plans with a monthly or yearly toggle, a comparison table, an FAQ and a final call to action.
- `blog.html`: a long-form note with a drop cap, abstract box, table of contents, sidenotes, code, a drawn figure and related reading.
- `signup.html`: a split sign-up page, the form on white and an off-white panel with a sample tide card, a quote and three promises.

## Page recipe

1. Masthead: monogram left, 5 or 6 boxed tabs, the current one filled black. The icon toolbar sits fixed at the right edge.
2. Spaced small caps eyebrow, then the bold title over 2 lines, optionally ending in a regular italic phrase ("and why").
3. Two or three justified paragraphs instead of a hero lead. Start the later ones with a small caps run-in ("Navigation:", "Features:"). Put a sidenote next to any claim that needs a source or a caveat.
4. One solid primary button and one double-ruled secondary.
5. A drawn figure (a chart or diagram in inline SVG: ink lines, dotted grid, gray bands, diamond markers) with an italic caption.
6. Two columns of `.fg-list` links under small caps h2s ("Newest", "Popular").
7. A numbered method or how-it-works list with sidenotes, then `.fg-stats`.
8. A `.fg-box--double` quote, a centered call to action, then `.fg-footer`.

## Pricing page recipe

1. Masthead in `.fg-page--wide`, with the Pricing tab filled.
2. Eyebrow, title, lead, then `.fg-toggle`. Keep both prices in `data-monthly` and `data-yearly` and swap them in a few lines of JS.
3. `.fg-plans` with 3 cards. Feature the middle one with `.fg-plan--featured` and the only primary button.
4. One line of small print, then a `.fg-table` comparison under an h2.
5. `.fg-faq` in the reading width, first item open, then a centered call to action and the footer.

## Article page recipe

1. Masthead with the Notes tab filled. Eyebrow with a series number, the title at a smaller clamp, `.fg-author` with `.fg-meta` (date, read time, how certain the author is).
2. An `.fg-box` abstract opening with a run-in "Abstract:", then a narrow `.fg-toc`.
3. `.fg-prose` body: first paragraph with `.fg-dropcap`, h2 sections, one italic h3, a `<pre>` table, one drawn `<figure>`, a blockquote, a `.fg-callout` and an `<hr>` before the end.
4. Sidenotes throughout, three or four per article.
5. `.fg-author--card`, then a three-column "Further reading" of `.fg-post` items and the footer.

## Sign-up page recipe

1. Two equal columns, full height. Left on white: monogram and a small "Back" button, eyebrow, an h2-size title, a lead.
2. `.fg-form`: name, email (show the error state), password with `.fg-input-wrap` and a show toggle, a select with a hint, an `.fg-check`, then a block primary button.
3. `.fg-divider-text`, two `.fg-btn--social` buttons with letter tiles, and a "Log in" link.
4. Right column in `--fg-page` behind a double rule: an `.fg-popup` showing what the product sends, a short quote and a three-item `.fg-list`. Hide it below 860px.

## Don'ts

- Don't add a color. Not for links, not for buttons, not for charts.
- Don't round corners or add soft shadows.
- Don't use the blackletter for anything longer than one letter.
- Don't put headings where a run-in label will do, and don't leave gaps between book paragraphs.
- Don't use photos. Draw charts and diagrams in ink.
- Don't use em dashes in copy.
