# Word Mill

Friendly, clever and calm, like a dictionary that also runs a small factory. Pages are off-white paper that fades into a soft grey haze. Headlines are bold, lowercase serifs that read like a confident sentence, and everything else is a clean, warm sans. There is one hot orange: it colors links, the main button, and the signature dictionary entry, a phonetic spelling of a word in orange serif with a tiny ink part-of-speech tag and a short definition. Heroes show a drawn isometric conveyor belt carrying orange and white parcels through an orange machine. Data sits on graphite chart panels with a white paper card laid over the corner. Small labels and file names are monospaced, and the main text links are uppercase with an arrow.

Use it for: services and subscriptions that want to sound smart but approachable, developer and open source projects, logistics, delivery and repair services, operations tools, education, and product sites that explain how something works. Avoid it for: luxury fashion, nightlife, children's products, and anything that should feel soft, romantic or loud.

## 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 Word Mill 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 company called Foldwell that picks up laundry, presses it by hand and mends small things for free.

## Fonts

All free on Google Fonts:

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

| Role | Font | Use |
|---|---|---|
| Headlines | Literata 700 | Hero, section headings, plan names, prices, stats, post titles. Lowercase in the hero (`.wm-display` lowercases for you), sentence case elsewhere. Tracking -0.02em, line-height about 1.05. |
| Dictionary word and quotes | Literata 400 and 400 italic | The orange phonetic word in `.wm-entry`, testimonials and pull quotes. |
| Body and UI | Figtree 400 to 700 | Paragraphs, nav, buttons (600), uppercase text links (600), cards and forms. |
| Labels and data | JetBrains Mono 400 and 600 | Section labels, part-of-speech tags, file names on chart panels, meta lines, table heads, kbd hints. Small sizes only. |

## Color

| Token | Hex | Role |
|---|---|---|
| `--wm-paper` | #F7F6F3 | The page background |
| `--wm-card` | #FFFFFF | Cards, plans, inputs, the nav, white sections, the paper sheet |
| `--wm-haze` | #ECEBE7 | The bottom of the hero gradient, the search pill, chips, toggles |
| `--wm-line`, `--wm-line-strong` | #E1DED8, #C9C5BE | Borders and dividers; strong lines for inputs and outline buttons |
| `--wm-haze-gradient` | white to paper to haze | Heroes, covers and post art only |
| `--wm-ink` | #22201E | Headlines, part-of-speech tags, the featured plan border, step rules |
| `--wm-ink-soft` | #3B3835 | Body text |
| `--wm-soft` | #67625C | Leads and secondary text |
| `--wm-faint` | #98938C | Placeholders and small meta |
| `--wm-orange` | #EC5A24 | The one accent: text links, the dictionary word, the main button, list diamonds, chart highlights, parcels |
| `--wm-orange-deep`, `--wm-orange-light` | #BE4012, #F3845A | Button hover, the shaded and lit faces of the machine and parcels |
| `--wm-orange-soft` | #FCE6DB | Orange badges, icon tiles, selected chips |
| `--wm-steel-light`, `--wm-steel`, `--wm-steel-dark` | #D2D4D8, #A3A7AE, #6E737B | The conveyor belt top, side and legs, and plain chart bars |
| `--wm-graphite` | #2A2C31 | Chart panels and the machine's mouth. The only dark surface |
| `--wm-graphite-line`, `--wm-graphite-soft` | #42454C, #8D9098 | Grid lines and labels inside chart panels |
| `--wm-alert` | #B3261E | Form errors only |

Rules:
- Orange is for one job per element: a link, a word, a button, a highlight. Never an orange background bigger than a button or a badge.
- One orange button per view. Other actions are uppercase `.wm-go` links or outline buttons.
- The only dark things are chart panels, the part-of-speech tags and initials avatars. No dark sections.
- Alternate paper and white sections. White sections get a hairline top and bottom.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--wm-text-hero` | clamp(42px, 5.6vw, 76px) | Hero headline, two lines, lowercase |
| `--wm-text-word` | clamp(44px, 6vw, 84px) | The dictionary word |
| `--wm-text-h2` | clamp(32px, 3.8vw, 50px) | Section headings, sentence case or lowercase, no full stop |
| `--wm-text-h3` | 22px | Sans sub-headings |
| `--wm-text-lead` | 19px | The sentence under a headline, max 560px |
| `--wm-text-body` | 17px | Body (article prose is 18px) |
| `--wm-text-label` | 13px | Mono labels, uppercase, tracking 0.06em, in orange |

Headlines are plain and a little dry ("clean shirts without the errand", "pay per bag, not per sock").

## Shape and space

- Radius: 14px on cards, plans, panels and covers, 10px on the paper sheet and icon tiles, 6px on buttons, inputs and toggles, 3px on tags and kbd hints. Pills only for badges, chips and the search field.
- Borders do most of the work: 1px warm hairlines on cards and sections. The featured plan gets a 2px ink border.
- Shadows: `--wm-shadow-card` on lifted cards and hovered posts, `--wm-shadow-lift` on graphite panels, paper sheets and the featured plan. Nothing else.
- List bullets are small orange diamonds (a rotated square), never dots.
- Sections: 72px to 112px vertical padding. Container 1160px, text column 700px.
- Motion: parcels ride the belt, the machine light blinks, hero text rises in. All stop for reduced motion.

## Components (in components.css)

| Class | What it is |
|---|---|
| `.wm`, `.wm-container`, `.wm-narrow`, `.wm-center`, `.wm-split`, `--wide-left` | Body class and layout wrappers |
| `.wm-nav`, `__inner`, `__links`, `__end`, `.wm-logo`, `__mark`, `.wm-search`, `.wm-kbd`, `.wm-icon-btn` | Sticky white nav with a hairline, spaced-out uppercase wordmark, search pill with a kbd hint |
| `.wm-display`, `.wm-h2`, `.wm-h3`, `.wm-h3-serif`, `.wm-lead`, `.wm-label`, `.wm-small`, `.wm-mono`, `.wm-orange` | Type |
| `.wm-entry`, `__word`, `__pos`, `__gloss`, `--sm` | The dictionary entry: orange phonetic word, ink part-of-speech tag, definition |
| `.wm-btn--orange/ink/outline`, `--sm/--block`, `.wm-go`, `--ink`, `.wm-actions` | Buttons and uppercase arrow links |
| `.wm-hero`, `__body`, `__belt`, `--side` | Haze gradient hero with the conveyor under (or beside) the copy |
| `.wm-belt-top/side/slat/leg`, `.wm-machine-front/side/top/mouth/text`, `.wm-parcel`, `--plain`, `.wm-parcel-top/front/side`, `.wm-light` | Fills for the inline SVG conveyor, machine and riding parcels |
| `.wm-section`, `--tight/--white/--haze`, `.wm-head`, `.wm-rule`, `.wm-grid-2/3/4` | Sections and grids |
| `.wm-card`, `__icon/__title/__text`, `--lift` | Hairline white card with an orange icon tile |
| `.wm-stack`, `.wm-panel`, `__top`, `__tabs`, `.wm-chart-*`, `.wm-sheet`, `__title`, `__row` | Graphite chart panel with a white paper sheet over its corner |
| `.wm-badge`, `--orange/--ink`, `__dot` | Small pills |
| `.wm-steps` | Three numbered steps under a thick ink rule |
| `.wm-stats`, `.wm-stat__num`, `__label` | Big serif numbers; wrap a unit in `<em>` to make it orange |
| `.wm-quote`, `.wm-quote-by`, `.wm-avatar`, `--ink` | Italic serif quote and initials avatar |
| `.wm-segment` | Billing toggle; the pressed option turns white |
| `.wm-plans`, `.wm-plan`, `--featured`, `__top/__name/__pos/__price/__desc/__list` | Pricing cards with a mono pronunciation line under each name |
| `.wm-table-wrap`, `.wm-table`, `.wm-yes`, `.wm-no` | Comparison table with mono heads |
| `.wm-faq` | `<details>` FAQ with an orange mono plus |
| `.wm-meta`, `.wm-author`, `--card`, `.wm-cover`, `.wm-prose`, `.wm-callout`, `.wm-figure`, `.wm-post`, `__art/__body/__title` | Article parts; the callout holds a small dictionary entry |
| `.wm-form`, `.wm-row-2`, `.wm-field`, `.wm-field-label`, `.wm-input`, `.wm-select`, `.wm-input-wrap`, `.wm-input-toggle` | Form fields with an orange focus ring |
| `.wm-help`, `.wm-error`, `.wm-field--error`, `.wm-chips`, `.wm-chip`, `.wm-check`, `.wm-divider-text` | Form helpers |
| `.wm-footer`, `__cols`, `__bottom` | White footer with mono column heads |
| `.wm-fill-orange/ink/steel/card/faded`, `.wm-stroke-ink/steel` | SVG fills and strokes from the tokens |
| `.wm-rise` | Entrance animation |

## Drawing the conveyor

Draw it as inline SVG on a slope of -0.25 (it rises 1px for every 4px across). The belt is two polygons: a light top face and a thin darker side face under it, with a few slat lines across the top and steel legs below. The machine is an isometric box sitting across the belt: a deep orange end face with a graphite mouth where the belt goes in, a bright orange front face with the product name in spaced capitals (skew the text with `matrix(1 -0.25 0 1 x y)`), and a light orange top with two antenna lines and a blinking `.wm-light`. Parcels are three-face cubes in `.wm-parcel` groups; give each a negative `animation-delay` so they're spread out, and draw the machine after the parcels so it hides them as they pass through. Mix orange and `--plain` white parcels.

## Pages in this kit

- `demo.html`: landing page (white nav, haze hero with a lowercase headline, lead and two uppercase links, the conveyor running across the bottom; a white split with the dictionary entry, two short paragraphs and stats beside a graphite chart panel with a paper sheet; three cards; three steps; a quote with a lifted card; a centered call to action; the footer).
- `pricing.html`: a centered hero with a small dictionary entry and the billing toggle, three plans pulled up over the hero edge (featured with an ink border and the only orange button), a comparison table, a FAQ and a call to action.
- `blog.html`: meta with an orange badge, a lowercase display title, lead and byline, a haze cover with the belt and machine, prose with diamond bullets, an orange-ruled quote, a graphite bar chart figure, a dictionary callout, an author card and three related posts.
- `signup.html`: a split page with the form on paper (dictionary entry, display headline, fields, chips, a block orange button, "or" and two outline buttons) and a haze side panel with a belt and a lifted quote card.

## Page recipe

1. `.wm-nav` with the wordmark, four links, the search pill and one small orange button.
2. `.wm-hero`: a lowercase `.wm-display` in two lines, a lead, then two `.wm-go` links (orange first, ink second). The conveyor SVG runs edge to edge under it.
3. A white section: `.wm-entry` naming the product like a dictionary word, two short paragraphs and `.wm-stats`, beside a `.wm-stack` chart.
4. A section head with a mono `.wm-label` and three `.wm-card`s.
5. `.wm-steps`, then a quote beside a lifted card.
6. A centered call to action with the one orange button, then the footer.

## Pricing page recipe

1. A centered hero: a small `.wm-entry` ("/prīs/ noun"), the display headline, a lead and `.wm-segment`. Keep prices in `data-monthly` and `data-yearly` and swap them with a few lines of JS.
2. Three plans pulled up 48px over the hero's bottom edge. The middle one is `--featured` with an orange badge and the only orange button; the others get outline buttons.
3. A small print line, the comparison table in a white section, a FAQ on paper and a call to action.

## Article page recipe

1. Meta line with an orange badge, a smaller lowercase display title, lead and byline.
2. A `.wm-cover` with a short piece of belt, the machine and a couple of parcels. No photos.
3. `.wm-prose`: short paragraphs, serif h2s, diamond bullets, one blockquote, one `.wm-figure` chart panel, one `.wm-callout` that defines a word.
4. `.wm-author--card`, then three `.wm-post` cards with small isometric drawings, and the footer.

## Sign-up page recipe

1. Two columns. Left on paper: logo and a mono step counter over a hairline, a small `.wm-entry`, the display headline and a lead.
2. Two-up name fields, email, password with a show toggle, a select, chips, a checkbox, a block orange button, "or" and two outline buttons.
3. Errors use `.wm-field--error` and `.wm-error`; hints use `.wm-help`.
4. Right column: a haze panel with a short belt and riding parcels above a lifted quote card with stats. Hide it below 900px.

## Don'ts

- Don't use more than one orange button per view, or orange as a section background.
- Don't add dark sections; graphite is only for chart panels.
- Don't title-case headlines or end them with a full stop.
- Don't use round dot bullets, big radii or soft blurry gradients beyond the haze.
- Don't use photos; draw the machine, belt and parcels.
- Don't use more than one dictionary entry per section.
- Don't use em dashes in copy.
