# Main Street

A friendly, hand-drawn neighborhood style. The page is warm white, crossed by one wide pale street band on a diagonal, and along that street stand isometric shopfronts drawn in thick ink with dusty pastel facades: rose, butter, lilac and white, with little green awnings and lollipop trees. Type is plain and light, a geometric sans set at regular weight even at hero size, so the drawings do the talking. Anything that would be painted or hung in real life (a crooked sign on a string, a stamp card, kickers and step numbers) is hand lettered. There are no drop shadows: drawn things sit on a soft ground ellipse, UI sits on hairlines.

Use it for: local shops and high streets, markets and traders' groups, neighborhood apps, co-ops, community projects, city guides, small booking services, local delivery, libraries of things, cafes and bakeries with an online side. Avoid it for: luxury brands, finance and security, dense dashboards, developer tools that need to feel serious, nightlife, anything that should feel sleek or futuristic.

## 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 Main Street 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.

Every page uses `<body class="ms">`, links `tokens.css` then `components.css`, and loads the fonts below.

## Fonts

All free on Google Fonts:

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

| Role | Font | Weight | Use |
|---|---|---|---|
| Headlines, text and UI | Figtree | 400 to 700 | Headlines at 400 (never bold), card titles at 600, nav and buttons at 600, body at 400 |
| Hand lettering | Gaegu | 700 | Kickers above headlines, hanging signs, stamp card text, step numbers, shop names painted on drawn facades, FAQ plus signs |

Gaegu is a signwriter, not a writer: use it for short labels of one to five words. Never set a paragraph, a button or a form label in it.

## Color

| Token | Hex | Use |
|---|---|---|
| `--ms-page` | #FEFDFB | The page |
| `--ms-paper` | #FFFFFF | Cards, plans, fields, the white facade |
| `--ms-street` | #F4EFEA | The diagonal street band, quiet sections, table heads |
| `--ms-street-2` | #E9E1D8 | Hover on street, focus rings, side faces of white buildings |
| `--ms-line` | #E5DED6 | Every UI border and divider |
| `--ms-ink` | #1B1917 | Text, drawn outlines, primary buttons, featured plan border |
| `--ms-soft`, `--ms-faint` | #5D5751, #968F87 | Leads and secondary text; meta and placeholders |
| `--ms-link` | #1E5688 | Inline links (underlined) and note text |
| `--ms-rose`, `--ms-rose-deep` | #DDB6AA, #B88678 | A facade and its side face; the default sign; card tops |
| `--ms-butter`, `--ms-butter-deep` | #F1DE9E, #CDB466 | A facade and its side; the stamp card |
| `--ms-lilac`, `--ms-lilac-deep` | #ABA2D8, #7D73B6 | A facade and its side; badges |
| `--ms-sage` | #9FB97C | Tree canopies, avatars, the green sign |
| `--ms-awning`, `--ms-awning-deep` | #5D8A3E, #44692A | The one saturated accent: awnings, ticks, kickers, "open" badges, the green CTA |
| `--ms-roof` | #D9D1C8 | Roofs in drawings |
| `--ms-sky`, `--ms-sky-line` | #E3EFF9, #A5C8E6 | The pinned note callout |

Ink is the primary button color. Green is rare: kickers, ticks and one "go" button per page at most. Pastels live on drawings, card tops, badges and signs, never as page backgrounds.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--ms-text-hero` | 40 to 76px, line height 1.06, tracking -0.025em | Page titles (`.ms-hero-title`) |
| `--ms-text-h2` | 30 to 46px | Section titles (`.ms-h2`) |
| `--ms-text-h3` | 22px, 600 | Card and plan titles |
| `--ms-text-lead` | 18 to 21px, soft | Intros under titles |
| `--ms-text-body` | 17px, line height 1.6 | Body; articles use 18px at 1.75 |
| `--ms-text-small`, `--ms-text-micro` | 15px, 13px | Nav, meta, captions, badges |
| `--ms-text-sign` | 34 to 54px | Hand-lettered hanging signs |

## Shape and space

- Radii: 6px for buttons and fields, 10px for cards and notes, 18px for plans, the CTA box and the stamp card. Pills only for badges.
- Borders: UI uses a 1px `--ms-line` hairline. Drawn and "physical" things (signs, stamp card, the featured plan, the CTA box) use a 2.5px ink stroke (`--ms-stroke`).
- No box shadows anywhere. Drawings get `.ms-ground`, a soft ellipse under them.
- Hung things tilt: signs at -4deg (`--ms-tilt`), the stamp card at 1.5deg, stamps at -8deg. Everything else is straight.
- Container 1180px, narrow column 700px, gutter 24px, sections 64 to 112px tall.

## Components (in components.css)

- `.ms-nav`: thin bar with a hairline; lowercase wordmark with a little awning mark, bold small links (current one underlined in green), Log in plus a small ink button.
- `.ms-btn` with `--primary` (ink), `--outline` (white, ink border), `--awning` (green, once per page), `--sm`, `--block`.
- `.ms-street`: the diagonal street band. Put it on the hero only (or on `.ms-split__art`).
- `.ms-hero` with `.ms-hero__art`: words left, drawing right; the drawing goes on top on phones.
- `.ms-draw` and `.ms-svg-sign`: inline SVG drawings (see the recipe below); `.ms-ground` adds the ground shadow.
- `.ms-sign` with `--butter`, `--lilac`, `--sage`: a crooked hand-lettered board on a string with a nail. One per page.
- `.ms-note`: the pale blue pinned note for news, small print and "by the way".
- `.ms-kicker`: green hand-lettered line above a title.
- `.ms-badge` with `--open` (green dot), `--rose`, `--lilac`, `--butter`.
- `.ms-card` and `.ms-card--facade` (an 8px pastel top, like a shop front) with `--butter`, `--lilac`, `--sage`; `.ms-icon` holds a 24px line icon in an ink-outlined tile.
- `.ms-stampcard`, `.ms-stamps`, `.ms-stamp`, `.ms-stamp--on`: the loyalty card drawn in ink.
- `.ms-steps` / `.ms-step`: steps with big green hand-lettered numbers.
- `.ms-logos`, `.ms-quote`, `.ms-cta` (ink-stroked box), `.ms-divider`.
- Pricing: `.ms-toggle`, `.ms-plans`, `.ms-plan`, `.ms-plan--featured`, `.ms-plan__art`, `.ms-plan__flag`, `.ms-ticks`, `.ms-table`, `.ms-faq`.
- Article: `.ms-article-head`, `.ms-meta`, `.ms-avatar`, `.ms-prose`, `.ms-figure`.
- Forms: `.ms-form`, `.ms-field`, `.ms-label`, `.ms-input`, `.ms-select`, `.ms-hint`, `.ms-check`, `.ms-choices` / `.ms-choice`, `.ms-or`, and the `.ms-split` sign-up layout.
- `.ms-footer` with `__grid` and `__base`.

### Drawing recipe (isometric shopfronts)

Draw in inline SVG with `fill="none" stroke="var(--ms-ink)" stroke-width="2.2" stroke-linejoin="round"`. Use a 30 degree isometric grid: a point (x, y, z) lands at `((x - y) * 0.866, (x + y) * 0.5 - z)`. Each building is a box: the street-facing face in a pastel, the side face in its `-deep` partner, the roof in `--ms-roof` with an inset parapet. Add small white windows in rows, a pale blue shop window, a door in the side color, a striped awning (green, rose or lilac) and the shop name in `.ms-svg-sign`, skewed onto the facade with `skewY(30)`. Line buildings up along one axis at different heights, then stand lollipop trees (sage ellipse on a stick, with a faint ground ellipse) on the pavement in front. Nudge points by half a pixel so lines feel hand drawn. Size it by the viewBox and let CSS set the width.

## Pages in this kit

- `demo.html`: landing page for Stoop, a made-up app for the independent shops on a street.
- `pricing.html`: three plans for shopkeepers, each with a drawing that grows from one shop to a parade.
- `blog.html`: a journal post with a drawn corner shop in the header and the street as a figure.
- `signup.html`: split sign-up, form on the left, the street, a hanging sign and a quote on the right.

## Page recipe

1. `.ms-nav`.
2. A hero inside `.ms-street`: kicker, a two-line `.ms-hero-title`, lead, an ink button and an outline button, a `.ms-note`, and a street drawing on `.ms-ground`.
3. A quiet row of `.ms-logos` (words, not logos), then a `.ms-divider`.
4. Three `.ms-card--facade` cards in three pastels.
5. One `.ms-section--street` band with a signature object (the stamp card or a list with open badges).
6. `.ms-steps`, then a centered `.ms-quote` on street.
7. An ink-stroked `.ms-cta` with the one green button and a hanging `.ms-sign`.
8. `.ms-footer`.

Pricing: centered hero on `.ms-street` with kicker, title, `.ms-toggle` and a note; `.ms-plans` with a small drawing on each plan and the middle one `--featured`; a comparison `.ms-table` on street; `.ms-faq`.

Article: an `.ms-street` header with a badge, title, lead, `.ms-meta` and one drawn building on the right; `.ms-narrow .ms-prose` body with a green-ruled blockquote and one `.ms-figure`; a closing `.ms-note`; three related `.ms-card`s.

Sign up: `.ms-split`. Left: kicker, title, lead, a short form, `.ms-or`, a social button and a log in link. Right: `.ms-split__art` with a hanging sign, the street drawing and a one-line quote.

## Don'ts

- Don't bold headlines. Regular weight is the look.
- Don't use more than one hanging sign per page, or Gaegu for anything longer than a label.
- Don't add drop shadows, gradients on buttons or glassy effects.
- Don't paint whole sections in pastels; pastels belong to drawings, card tops, badges and signs.
- Don't use photos where a drawing would do, and don't mix in flat, outline-free illustration.
- Don't use the green button more than once per page.
- Don't draw the street band on every section. One diagonal per page.
