# Hairline Index

A quiet printed catalogue on a screen. The whole page sits inside a heavy ink frame, on warm paper, with one hairline rule splitting the masthead from the results. A tall, thin, widely spaced condensed wordmark sits next to tiny grotesk labels and small serif index lists, the way a magazine archive files its back issues. Imagery is flat tonal plates in paper, moss and clay, each holding a single fine ink line drawing. There is almost no color, no radius and no shadow. It feels calm, collected and expensive in the way good paper is.

Use it for: archives and collections, libraries, catalogues, small publishers, studios, slow subscriptions, galleries, anything with a lot of items worth browsing. Avoid it for: dashboards, loud launches, kids, games, anything that needs urgency or bright calls to action.

## 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 Hairline Index 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 Fallow, an invented heirloom seed library.

## Fonts

All free on Google Fonts:

```html
<link href="https://fonts.googleapis.com/css2?family=Oswald:wght@200;300&family=Hanken+Grotesk:wght@400;500&family=Spectral:ital,wght@0,300;0,400;1,300&display=swap" rel="stylesheet">
```

| Role | Font | Use |
|---|---|---|
| Display | Oswald 200 to 300 | The wordmark (300, tracking .42em), hero and section headings (200, uppercase), plan names. Never bold. |
| Labels | Hanken Grotesk 400 to 500 | Tiny labels, nav links, buttons, table headers, form labels, metadata. Mostly 12 to 13px. |
| Serif | Spectral 300 to 400, italic 300 | Index lists, leads, article body, prices, numbers, entry titles, pull quotes. |

The pairing is the point: a small grotesk label ("Region") sits directly above a serif list ("Highland, Coastal, Valley").

## Color

| Token | Hex | Role |
|---|---|---|
| `--hx-paper` | #F6F4EC | The page, everywhere |
| `--hx-paper-2` | #EBE7DA | Plates, the marked pricing column, quiet panels |
| `--hx-paper-3` | #DDD7C5 | Deeper plates only |
| `--hx-ink` | #1B1A17 | The frame, every rule, all text, the solid button |
| `--hx-soft` | #5F5C54 | Leads, serif lists, metadata |
| `--hx-moss` | #626A45 | The one accent: link underlines on hover and selection, checkbox, a small dot, the "Most borrowed" badge |
| `--hx-moss-soft` | #DFE0CC | Plate tint |
| `--hx-clay-soft` | #EADCCD | Plate tint |

Rules:
- Paper and ink do nearly all the work. Moss shows up as a thin line, never a fill bigger than a checkbox.
- Plate tints rotate (paper-2, moss-soft, clay-soft, paper-3) so a grid reads as a set of prints.
- No gradients, no photos with color grading, no colored sections other than `paper-2`.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--hx-text-hero` | clamp(44px, 7.4vw, 104px) | Hero, Oswald 200 uppercase, line-height .98, two or three short lines |
| `--hx-text-h2` | clamp(30px, 3.6vw, 46px) | Section headings, Oswald 200 uppercase, tracking .04em |
| `--hx-text-h3` | 22px | Spectral 400 sub-headings |
| `--hx-text-lead` | 19px | Spectral 300 lead in soft ink, max 560px |
| `--hx-text-body` | 16px | Grotesk body |
| `--hx-text-small` | 13px | Labels, nav, serif index lists |
| `--hx-text-micro` | 12px | Metadata, captions, form labels |

Headlines are short statements broken into lines on purpose ("Borrow seed. Grow it out. Bring some back."). Everything else is small. The contrast between one huge thin headline and a page of 13px text is the style.

## Shape and space

- The frame: `--hx-frame` (6px, 4px on phones) solid ink around the whole page via `.hx-frame`.
- Rules: 1px ink (`--hx-hair`) between major regions, 1px pale (`--hx-hair-faint`) between table rows. Dotted leaders between a label and its value.
- Radius: 0 everywhere. Shadows: none.
- Gutter: 30px (18px on phones). Content runs edge to edge inside the frame; only articles and forms narrow down.
- Sections: 64px to 120px vertical padding.
- Motion: color fades on hover, nothing slides or scales.

## Components (in components.css)

- `.hx` on `body`, then `.hx-frame` wrapping everything.
- `.hx-mast`: wordmark (`.hx-logo`), two text links (`.hx-mast__links`) and the three index columns (`.hx-mast__index`, each a `.hx-label` over a `.hx-serif-list`). Follow it with `<hr class="hx-rule">`.
- `.hx-bar`: the results line ("Results: 412", "Sort by: Unhurried"), sort control in underlined serif.
- `.hx-hero-title`, `.hx-h2`, `.hx-h3`, `.hx-lead`, `.hx-label` (`--soft`), `.hx-serif-list`, `.hx-num`, `.hx-link`, `.hx-dot`.
- `.hx-btn` (hairline, uppercase grotesk), `--solid` (ink fill, moss on hover), `--block`; `.hx-actions` to group them.
- `.hx-plate` (`--moss`, `--clay`, `--deep`, `--wide`, `--square`) with an inline SVG line drawing and an optional `.hx-plate__tag` caption.
- `.hx-grid` (4 columns, `--3` for 3) of `.hx-entry`: plate, `.hx-entry__meta` (number and filing), `.hx-entry__title`.
- `.hx-split`: a 220px label column and a content column.
- `.hx-leaders`: label, dotted leader, serif value.
- `.hx-badge` (`--moss`).
- Forms: `.hx-field`, `.hx-input`, `.hx-select` (underline only, serif 20px), `.hx-check`, `.hx-choice` (a segmented radio group in a hairline box).
- `.hx-pricing` of `.hx-plan` (`--marked`): columns split by hairlines, `.hx-plan__name`, `.hx-plan__price`.
- `.hx-table`, `.hx-article` (serif body with uppercase Oswald h2, ruled blockquote, figures), `.hx-byline`.
- `.hx-foot` and `.hx-foot__base`.

## Pages in this kit

- `demo.html`: masthead with index, hero with two offset plates, results bar, catalogue grid, a how-it-works split on paper-2, closing line.
- `pricing.html`: hero with a serif Yearly / Per season toggle, three hairline plan columns, comparison table, questions list.
- `blog.html`: label column and huge title, wide cover plate, sticky "You will need" leader list beside the serif article, more notes grid.
- `signup.html`: split screen. Paper-2 side with the headline and a live library card preview, form side with underline fields and a segmented plan choice.

## Page recipe

1. `body.hx` > `.hx-frame`.
2. `.hx-mast` with the index columns relevant to your catalogue (what people filter by), then `hr.hx-rule`.
3. A hero: small soft label, `.hx-hero-title` in two or three lines, `.hx-lead`, one solid and one hairline button. Pair it with two plates offset vertically.
4. `hr.hx-rule`, `.hx-bar`, then a `.hx-grid` of entries. Every entry has a number.
5. One `.hx-section--plate` explaining how it works in a `.hx-split`.
6. A one-line closing heading and button, then `.hx-foot`.

Pricing recipe: hero plus a text toggle, `.hx-pricing` with the middle plan `--marked`, then a `.hx-split` holding a `.hx-table`, then questions as a `dl`.

Article recipe: `.hx-split`-style header (label left, title and lead right, `.hx-byline` under), a `--wide` plate, then a 220px rail (leaders or contents) beside `.hx-article` at 680px.

Sign-up recipe: two halves split by a hairline. Left on paper-2 with the title and something the form fills in live; right with `.hx-field`s, a `.hx-choice` and one solid block button.

## Don'ts

- Don't round corners or add shadows. Ever.
- Don't make headings bold or mixed case. Oswald stays thin and uppercase.
- Don't use moss as a background or for large text.
- Don't box entries in cards; let plates and whitespace separate them.
- Don't use photos with saturated color; if you must use photos, tint them toward the plate colors.
- Don't drop the ink frame or the hairline under the masthead; they are the signature.
