# String Wave

Clean, precise and quietly fresh. White paper with hairline borders, a bookish serif for headlines over a crisp geometric sans, and small mono chips for numbers and labels. The signature move is a fan of fine lime and teal lines, like string art, sweeping diagonally behind a product window. Buttons are square-cornered and black, the accent is a clinical mint green, and tinted graph-paper tiles hold icons. It feels careful and modern without feeling cold.

Use it for: health and care services, clinics and booking tools, documentation and knowledge products, B2B software that needs to feel precise but human. Avoid it for: loud consumer launches, nightlife, kids' games, anything that should feel warm and handmade.

## 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 String Wave 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 Hushwell, an invented hearing care service, built only with the kit.

## Fonts

All free on Google Fonts:

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

| Role | Font | Use |
|---|---|---|
| Headlines | Literata 400 (500 for h3) | Hero, section headings, plan prices, big numbers, pull quotes. Regular weight, slightly tight tracking. |
| Body | Figtree 400 to 600 | Paragraphs, nav, buttons, forms, product UI. |
| Mono | Martian Mono 400 | Eyebrows (uppercase, tracked), chip values, badges, step numbers, dates and times. Always small. |

## Color

| Token | Hex | Role |
|---|---|---|
| `--sw-paper` | #FFFFFF | The main background, cards, windows |
| `--sw-mist` | #F3F7F4 | Quiet sections, tile wash, table headers, the sign-up side panel |
| `--sw-mist-2` | #E8F0EA | The graph-paper lines inside tiles |
| `--sw-line` | #E2E8E4 | Every border and divider |
| `--sw-line-strong` | #C9D3CD | Input and secondary button borders |
| `--sw-ink` | #0F1512 | Headlines, body text, primary buttons |
| `--sw-soft` | #5D6963 | Leads and secondary text |
| `--sw-faint` | #8E9993 | Captions, hints, logo row |
| `--sw-mint` | #0C8F63 | The accent: eyebrows, active tabs, chip values, links in prose, checkmarks |
| `--sw-mint-soft` | #E3F4EB | Chip value boxes, badges, active nav items, focus rings |
| `--sw-lime` | #B5E234 | String-art lines, the pull-quote rule, the CTA button on the dark band |
| `--sw-teal` | #2FBFAE | String-art lines and a second data series |
| `--sw-night` | #0E1714 | The dark CTA band |

Rules:
- White is the default. Use mist for every second or third section, never for the whole page.
- Mint is for small things: text, ticks, tabs, chips. Never a mint button or a mint section.
- Lime and teal only appear as thin lines (the wave, a rule, a chart series), plus the one lime button on the dark band.
- No gradients except the stroke gradient on the wave.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--sw-text-hero` | clamp(42px, 6vw, 72px) | Hero headline, line-height 1.06, tracking -0.02em |
| `--sw-text-h2` | clamp(30px, 3.6vw, 44px) | Section headings |
| `--sw-text-h3` | 21px | Card and step titles, Literata 500 |
| `--sw-text-lead` | 19px | The sentence under a headline, soft gray, key words in ink |
| `--sw-text-body` | 16px | Body (18px in articles) |
| `--sw-text-mono` | 12px | Eyebrows, chips, dates |

Headlines are plain, calm statements in sentence case ("Hearing care that keeps up with you"). No period. In leads, pick two or three nouns and set them in ink with `<strong>`.

## Shape and space

- Borders: 1px `--sw-line` everywhere. The steps list gets one 1px ink rule on top, the only dark line.
- Radius: 4px on chips and badges, 6px on buttons and inputs, 12px on cards, windows and tiles, 18px on the dark band. Never pills.
- Shadows: almost none. `--sw-shadow-lg` (a soft mint-tinted drop) only on the product window and the featured plan.
- Sections: 112px vertical padding (72px on phones). Container 1120px, text 680px.
- Motion: none needed. Hover changes border or background color only.

## Components (in components.css)

- `.sw-nav`, `.sw-logo`, `.sw-nav__links`, `.sw-nav__actions`: a white bar with a bottom hairline.
- `.sw-btn` with `--primary` (black), `--secondary` (white, gray border), `--ghost`, `--block`.
- `.sw-chip` with `.sw-chip__value`: a bordered label plus a tinted mono value ("Tests booked this week 12,408 ›"). Put one above every hero headline.
- `.sw-badge` (`--ink` variant), `.sw-eyebrow`, `.sw-mono`, `.sw-lead`, `.sw-muted`.
- `.sw-hero`, `.sw-hero__grid`, `.sw-hero__stage`: text left, product right.
- `.sw-wave` with `--hero`, `--band`: the string-art SVG. Needs the `swWaveGrad` gradient defined once per page (see any example page).
- `.sw-window` with `__side`, `__main`, `__tabs`, `__tiles`: a product window with a sidebar.
- `.sw-tile`: a mint graph-paper tile holding a 1.5px line icon.
- `.sw-card`, `.sw-card__body`, `.sw-grid-2`, `.sw-grid-3`.
- `.sw-steps`: numbered steps under an ink rule.
- `.sw-stats`, `.sw-stat`, `.sw-big-number`, `.sw-quote`, `.sw-person`, `.sw-avatar`.
- `.sw-band`: the one dark CTA block, with a wave in the corner and a lime button.
- `.sw-form`, `.sw-field`, `.sw-label`, `.sw-input`, `.sw-select`, `.sw-hint`, `.sw-check`, `.sw-divider`.
- `.sw-toggle`, `.sw-plans`, `.sw-plan` (`--featured`), `.sw-table`, `.sw-faq`.
- `.sw-article`, `.sw-prose`, `.sw-figure`, `.sw-callout`.
- `.sw-footer` with `__grid` and `__base`.

## Pages in this kit

- `demo.html`: landing page. Nav, hero with chip and product window over the wave, a clinic name row between hairlines, numbered steps, three tile cards on mist, quote with stats, dark CTA band, footer.
- `pricing.html`: centered head with a faint wave, monthly or yearly toggle, three plans (middle one featured), compare table, FAQ on mist.
- `blog.html`: article with mono meta line, an inline SVG chart in a figure, a lime-ruled pull quote, a mint callout and related cards.
- `signup.html`: split screen. Form on white, mist panel on the right with the wave and a floating card of booking slots.

## Page recipe

1. Nav with logo, three or four links, a secondary and a primary button.
2. Hero: chip, headline, lead with two or three ink nouns, primary and secondary button. Product window on the right with the wave behind it.
3. A row of customer or partner names between two hairlines.
4. Steps or features in white, then one mist section with tile cards.
5. Proof: a serif quote next to a stat strip.
6. One dark band with a wave and a lime button.
7. Footer with four columns and a mono status line.

Pricing: centered head, a segmented toggle, three plans with the middle one featured with an ink border and the soft shadow, then a plain table and an FAQ.

Article: a 680px column, mono eyebrow as a breadcrumb, the meta line (avatar, author, mono date, badge), 18px prose, serif h2s, one figure drawn with SVG in mint and teal, one callout.

Sign up: split screen on desktop, stacked on phones. One alternative sign-in button, a divider, a short form, a black full-width submit. The side panel holds a real preview of what happens next.

## Don'ts

- Don't round buttons into pills or use mint as a button fill.
- Don't use thick strokes in the wave or put it behind body text; it sits behind product shots and in corners.
- Don't add more than one dark band per page.
- Don't bold the serif headlines or set them in all caps.
- Don't use photos or stock illustrations; draw with lines, tiles and SVG charts.
- Don't use heavy shadows or offset shadows.
