# Soft Swell

A friendly, fresh page that feels like a cheerful helper. It opens on a warm cream hero with one big flat mascot drawn in a thick ink outline and tilted a little, next to a headline where only the key words are bold. Then the page rolls into deep navy through two layered swells (a fog-grey wave behind a navy one). On navy, plain paragraphs sit beside monospace "log" panels in butter, mint, sky and pink that read like a kind machine talking. A flat bubblegum band breaks things up. Plum pill buttons, rounded geometric type, no shadows, no gradients.

Use it for: community and sharing services, local services, co-ops, friendly developer or hobby tools, nonprofits, kids and family products, anything that wants to feel kind, honest and a bit cheeky. Avoid it for: luxury, finance dashboards, serious legal or medical pages, dark moody brands, image-heavy shops.

## 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 Soft Swell 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` (landing page), `pricing.html`, `blog.html` and `signup.html` are complete example pages built only with the kit, for an invented product called Borrowbox (a library of things for your street).

## Fonts

All free on Google Fonts:

```html
<link href="https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;700&family=DM+Mono:wght@400;500&display=swap" rel="stylesheet">
```

| Role | Font | Use |
|---|---|---|
| Headlines | Lexend 400 with 700 for key words | Hero, section headings. Bold only 2 or 3 words per headline ("**Borrowbox** is a **friendly** library"). |
| Body | Lexend 300 | Paragraphs and leads. Light and airy, 18px. |
| UI | Lexend 400 to 500 | Nav, buttons, labels, plan names. |
| Logs and code | DM Mono 400 to 500 | Log panels, inline code, the footer base line. |

## Color

| Token | Hex | Role |
|---|---|---|
| `--ss-cream` | #FFFAE8 | Hero and light sections, the page background |
| `--ss-cream-2` | #F6EFD6 | Inline code on cream |
| `--ss-navy` | #262A3D | Night bands, footer, log boxes on cream |
| `--ss-navy-2` | #30354B | Cards on navy |
| `--ss-pink` | #FFADF0 | The mascot, the supporter band, featured plan, selected choices, focus rings |
| `--ss-pink-soft` | #FFD9F6 | Badges and ghost button hover |
| `--ss-fog` | #C6C3B3 | The back layer of every wave |
| `--ss-ink` | #17151C | Text on cream, every outline |
| `--ss-muted` | #6C665C | Leads and secondary text on cream |
| `--ss-moon` | #ECEAF3 | Text on navy |
| `--ss-moon-dim` | #A7A8BD | Secondary text on navy, log comments |
| `--ss-plum` | #574657 | The one action color: primary buttons, links on cream |
| `--ss-butter` | #FFE58A | Log keywords, plan flag, avatars |
| `--ss-mint` | #9EE6C8 | Log strings and success lines |
| `--ss-sky` | #9FD3F5 | Log function names |
| `--ss-coral` | #FF7A85 | Log errors and form error marks |

Rules:
- Cream and navy alternate, always joined by a wave. Pink is a flat band with straight edges.
- Plum is for actions. Pink fills shapes and highlights; on navy, links turn pink.
- Butter, mint, sky and coral live only inside log panels and tiny details.
- Drawings are flat fills with ink outlines. No gradients, no shadows anywhere.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--ss-text-hero` | clamp(34px, 4.2vw, 54px) | Hero headline, 3 to 4 lines next to the mascot |
| `--ss-text-h2` | clamp(28px, 3vw, 40px) | Section headings, short ("Ready when you are") |
| `--ss-text-h3` | 22px | Card titles, weight 500 |
| `--ss-text-lead` | clamp(18px, 1.6vw, 21px) | Leads and the first paragraph on navy |
| `--ss-text-body` | 18px | Body, weight 300 |
| `--ss-text-mono` | 15px | Log panels |

Copy is warm and plain. Headlines end with an exclamation mark at most once per page. Log panels use lowercase verbs (`borrow`, `returned`, `Found`) and end on a happy line (`1 borrow, 0 fines`).

## Shape and space

- Radius: 8px small, 16px inputs and log boxes, 26px cards and covers, pills for buttons, toggles, badges and choices.
- Borders: 3px ink on cards, inputs, ghost buttons and choices. Cards on navy use a 3px `--ss-line-dark` border.
- Shadows: none. Focus is a 4px pink ring.
- The mascot is tilted -8deg and may bob gently (`.ss-mascot--bob`).
- Space: sections are 72px tall padding; split rows sit 104px apart. Max content width 960px, articles 680px.

## Components (in components.css)

- `.ss-nav`, `.ss-logo` (mini mascot plus wordmark), `.ss-nav__links` (hide extras on phones with `.ss-hide-sm`).
- `.ss-btn` with `--primary` (plum), `--pink`, `--ghost`, `--sm`, `--block`.
- `.ss-hero` with `.ss-hero__grid`, `__title`, `__lead`, `__cta`.
- `.ss-mascot` (with `--sm`, `--bob`): an inline SVG using `.ss-fill`, `.ss-line` and `.ss-dot` parts.
- `.ss-wave`: the layered swell from cream into navy. `.ss-wave--up` flips it to go from navy back to cream. Set `--ss-wave-bg` and `--ss-wave-fill` to join other colors.
- `.ss-night` (navy section), `.ss-band` (pink band), `.ss-section`, `.ss-split` (two columns, `--flip` swaps sides), `.ss-wrap` and `--narrow`.
- `.ss-log` (with `--boxed` on cream) and spans `.k` keyword, `.s` string, `.f` function, `.p` pink verb, `.c` comment, `.e` error.
- `.ss-marks` and `.ss-mark` (`--mono`, `--wide`) for supporter wordmarks in the band.
- `.ss-cards`, `.ss-card` (`--pink`, `--night`), `.ss-card__icon`.
- `.ss-badge` (`--butter`, `--night`), `.ss-stats`.
- Forms: `.ss-field`, `.ss-label`, `.ss-input`, `.ss-select`, `.ss-hint`, `.ss-error`, `.ss-check`, `.ss-choices` with `.ss-choice`.
- Pricing: `.ss-toggle`, `.ss-plan` with `__name`, `__price`, `__list`.
- `.ss-faq` (details on navy), `.ss-article`, `.ss-meta`, `.ss-avatar`, `.ss-quote`, `.ss-mark-pink` highlight.
- `.ss-footer` with `__grid` and `__base`. Always put a `.ss-wave` right before it.

## Pages in this kit

- `demo.html`: hero with mascot, wave into navy, intro beside a log, pink supporter band, alternating split rows with logs, category cards, stats, wave back to cream, closing call to action, footer.
- `pricing.html`: centered small mascot and headline, billing toggle, three plans (featured one pink), wave into a navy FAQ, footer.
- `blog.html`: badge, headline with bold key words, meta row, navy cover with mascot, article with a boxed log and a pink-bar quote.
- `signup.html`: split screen, cream form on the left, navy panel with mascot and a welcome log on the right.

## Page recipe

1. Nav on cream.
2. Hero: mascot left, headline right with 2 or 3 bold words, a lead and one plum button.
3. `.ss-wave`, then a `.ss-night` section: one lead paragraph beside a short log.
4. A `.ss-band` with something social (supporters, a quote, a count).
5. Back to `.ss-night`: two or three `.ss-split` rows, each a heading plus copy beside a log. Flip every other row.
6. `.ss-wave--up`, a short centered call to action on cream, then `.ss-wave` and the footer.

Pricing recipe: centered small mascot, headline of two short sentences, `.ss-toggle`, `.ss-cards` of `.ss-plan` with the middle one `.ss-card--pink`, then a wave into a navy FAQ.

Article recipe: narrow wrap, `.ss-badge`, headline, `.ss-meta`, a navy cover with the mascot, then `.ss-article`. One boxed log and one quote per article is enough.

Sign-up recipe: `.ss-split`-like two column screen, form on cream at max 440px, navy art panel with the mascot and a three-line log. Stack on phones with the form first.

## Don'ts

- Don't add shadows, gradients or glass. The style is flat.
- Don't put pink on buttons that matter; the main action is plum.
- Don't join cream and navy with a straight edge. Always a wave.
- Don't bold whole headlines. Two or three words only.
- Don't put the log colors (butter, mint, sky, coral) on large areas.
- Don't draw more than one mascot per screen, and keep its outline thick.
- Don't use em dashes in copy.
