# Moss Board

A warm charcoal clubhouse for games of skill and patient hobbies. The page sits on a brown-black charcoal with a darker icon rail fixed down the left side, like an app you settle into rather than a page you scroll past. Headlines are heavy, rounded Rubik; body text is plain, friendly Nunito Sans; small labels and times are in DM Mono. The signature is the board: a checkerboard drawn in cream and moss green with coordinates in the corners, round "pieces" holding small icons, amber highlights on the squares that matter and a drawn amber arrow for the suggested move. Buttons are chunky and green, sitting on a solid darker edge that they press down into. It feels friendly, a little competitive and very clear, like a club where everyone wants you to get better.

Use it for: hobby clubs, community gardens and allotments, games and puzzles, coaching and lessons, sports leagues, learning apps with progress, booking tools where people pick a slot on a grid. Avoid it for: luxury brands, quiet editorial magazines, medical or legal sites, anything that must feel light and airy.

## 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 Moss Board 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 an invented community garden booking app called Allotly.

## Fonts

All free on Google Fonts:

```html
<link href="https://fonts.googleapis.com/css2?family=Rubik:wght@600;700;800&family=Nunito+Sans:opsz,wght@6..12,400;6..12,600;6..12,700;6..12,800&family=DM+Mono:wght@400;500&display=swap" rel="stylesheet">
```

| Role | Font | Use |
|---|---|---|
| Headlines and buttons | Rubik 800 (700 for buttons) | Hero, section titles, card titles, prices, stats. -0.02em tracking, 1.06 line height. |
| Body and UI | Nunito Sans 400 to 800 | Body at 400, nav and labels at 700 to 800. |
| Labels and data | DM Mono 400 to 500 | Eyebrows, badges, board coordinates, clocks, times in the move list. Never for paragraphs. |

## Color

| Token | Hex | Role |
|---|---|---|
| `--mb-page` | #2C2925 | The page |
| `--mb-rail` | #211F1C | The left rail, banded sections, footer, table heads, inputs |
| `--mb-panel` | #383530 | Cards, plans, form card, move list |
| `--mb-raised` / `--mb-line` | #45413B / #4D4943 | Hover fills, input borders, dividers |
| `--mb-stripe` | #33302B | Every other row in move lists and tables |
| `--mb-text` / `--mb-dim` / `--mb-faint` | #F3F0E8 / #B9B2A6 / #8C857A | Headlines, body copy, meta |
| `--mb-cream` / `--mb-moss` | #E9E6C9 / #6E9A4C | The board squares, and nothing else large |
| `--mb-sprout` / `--mb-sprout-deep` | #84BA4E / #4C7A31 | Main button and its pressed edge, active rail icon, ticks |
| `--mb-amber` | #EAA53A | Highlighted squares, the move arrow, "best move" text, the most picked badge |
| `--mb-berry` / `--mb-berry-deep` | #D8574D / #9C3530 | One warning or third icon tile per page |
| `--mb-slate-btn` / `--mb-slate-deep` | #4A4640 / #302D29 | Secondary button and its edge |

Rules:
- The page is warm charcoal, never blue-black or pure black.
- Green means "do this". Only the main action and things that are done or active are green.
- Amber means "look here". Use it for at most two highlighted squares, one arrow and one badge per screen.
- Cream and moss appear only inside boards and the logo mark.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--mb-size-hero` | clamp(2.5rem, 5.4vw, 4.25rem) | Hero and pricing headline |
| `--mb-size-h2` | clamp(1.9rem, 3.4vw, 2.75rem) | Section titles, CTA |
| `--mb-size-h3` | 1.3rem | Card titles |
| `--mb-size-lead` | 1.2rem | Hero lead, article dek |
| `--mb-size-body` | 1rem | Body |
| `--mb-size-small` / `--mb-size-tiny` | 0.875rem / 0.75rem | Meta, badges, hints |

## Shape and space

- Radius: 4px for squares, badges and avatars (`--mb-radius-sm`), 8px for buttons and cards (`--mb-radius`), 12px for plans, the form card and the CTA (`--mb-radius-lg`). No pills except the dot.
- The pressed edge: buttons and icon tiles carry `box-shadow: var(--mb-press) <deep colour>` (a solid 5px edge, 3px on small ones). On `:active` they move down 4px and the edge shrinks to 1px. No blurred shadows on buttons.
- Cards get only a 2px solid dark edge (`--mb-shadow-card`). The board alone gets a deep drop (`--mb-shadow-board`).
- No borders on cards. Separation comes from the three surface tones (rail, page, panel) and stripes.
- Space runs 4, 8, 12, 16, 24, 32, 48, 72, 104px. Sections are 72px apart.

## Components (in components.css)

- **Shell**: `.mb-app` (grid), `.mb-rail` with `.mb-logo` (+ `.mb-logo-mark`), `.mb-rail-nav` of `.mb-rail-link` (`.is-active`), `.mb-rail-foot`; `.mb-main` and `.mb-wrap`. Under 860px the rail becomes a sticky top bar with the logo and the sign-up button.
- **Buttons**: `.mb-btn` with `--sprout`, `--slate` or `--berry`; sizes `--xl`, `--sm`, `--block`.
- **Board**: `.mb-board` (8x8) or `.mb-board--4` (4x4). Children: `.mb-square-hi` and `.mb-piece` (with `--light` or `--amber`, an icon inside a `span`), placed with `.mb-r1` to `.mb-r8` and `.mb-c1` to `.mb-c8`. Add `.mb-ranks` and `.mb-files` for coordinates and an `svg.mb-board-arrow` (viewBox 0 0 8 8, `currentColor`) for the move arrow. Wrap in `.mb-board-frame` with `.mb-board-player` rows, `.mb-avatar` and `.mb-clock` (`.is-live`).
- **Labels**: `.mb-eyebrow`, `.mb-badge` (`--sprout`, `--amber`, `--berry`), `.mb-dot`.
- **Hero**: `.mb-hero`, `.mb-hero-lead`, `.mb-hero-actions`, `.mb-hero-meta`.
- **Sections and cards**: `.mb-section` (`--band`), `.mb-section-head`, `.mb-grid-2`, `.mb-grid-3`, `.mb-card`, `.mb-card-link`, `.mb-tile-icon` (`--amber`, `--berry`), `.mb-stats` / `.mb-stat`, `.mb-cta`.
- **Move list**: `.mb-moves`, `.mb-moves-head`, `.mb-move` (`.is-best`) with `.mb-move-num`, `.mb-move-text`, `.mb-move-meta`.
- **Pricing**: `.mb-toggle`, `.mb-plans`, `.mb-plan` (`.is-picked`), `.mb-plan-price`, `.mb-plan-note`, `.mb-checks` (`li.is-off`), `.mb-table-wrap` / `.mb-table` with `.mb-yes` / `.mb-no`, `.mb-faq`.
- **Article**: `.mb-article`, `.mb-article-meta`, `.mb-article-dek`, `.mb-prose`, `.mb-callout`, `.mb-figure`, `.mb-author`.
- **Forms**: `.mb-form-card`, `.mb-field`, `.mb-label`, `.mb-hint`, `.mb-input`, `.mb-select`, `.mb-choice-grid` / `.mb-choice`, `.mb-check`, `.mb-divider`.
- **Footer**: `.mb-footer`, `.mb-footer-cols`, `.mb-footer-note`, `.mb-footer-base`.

## Pages in this kit

| File | Page |
|---|---|
| `demo.html` | Landing: rail, hero with a board and a suggested move, stats band, three steps, move list, CTA, footer |
| `pricing.html` | Three plans with a season or year toggle, comparison table, FAQ |
| `blog.html` | A grow guide with a callout, a board figure, an author box and related cards |
| `signup.html` | A short pitch with ticks and a 4x4 board beside the sign-up form |

## Page recipe

1. Wrap everything in `.mb-app` with the rail first. Mark the current page with `.is-active`.
2. Open with `.mb-hero`: eyebrow in mono, an 800 weight headline in 6 to 10 words, a lead, one `--sprout --xl` button and one `--slate --xl` button.
3. Put a board on the right of the hero. Show the product as squares: a few pieces, one or two amber squares and one arrow.
4. Follow with a `--band` section of four stats, then three `.mb-card`s with icon tiles in sprout, amber and berry.
5. Add a move list for anything that happens in order: history, steps, a log, a leaderboard.
6. Close with `.mb-cta` and the footer.

Pricing recipe: centred head with the toggle, three `.mb-plan`s with the middle one `.is-picked` and an amber badge, then a striped table and a FAQ.

Article recipe: `.mb-article` at 720px, badge and meta, headline, dek, then `.mb-prose`. Use one `.mb-callout` titled "Best move" and one board figure to explain something spatial.

Sign-up recipe: two columns, pitch and ticks on the left, `.mb-form-card` on the right. Use `.mb-choice` cards for the one important choice and end on a full width `--sprout --xl` button.

## Don'ts

- Don't use blurred drop shadows on buttons. The solid pressed edge is the style.
- Don't use cream or moss as page or card backgrounds.
- Don't put more than one green button in a view's main action area.
- Don't round anything into a pill, and don't add borders to cards.
- Don't use the board as decoration with nothing on it. Every board shows a state: pieces, highlights or a move.
- Don't use em dashes in copy.
