# Ribbon Mono

A project page that reads like a well kept manual. The page is near black, every word is set in one wide monospace face, and the content runs down a single narrow column. Small uppercase cyan labels ("SYNOPSIS", "GET STARTED", "HOW IT WORKS") hang in the left margin like the sections of a man page. Buttons are square and flat: a solid magenta one, a solid periwinkle one, and dashed magenta outline ones. A periwinkle ribbon cuts across the top right corner, a pixel mascot drawn in SVG rects sits by the logo, and diagrams are made of nothing but nested bordered boxes. It feels nerdy, retro and honest, with a small wink.

Use it for: open source and indie software, co-ops and collectives, local-first tools, hobby clubs, zines and small presses, documentation-heavy products, anything whose best pitch is a plain explanation. Avoid it for: luxury, fashion, food photography, wellness, anything that needs big imagery or soft warmth.

## 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 Ribbon Mono 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 one made-up product, Quire (a local-first zine press for small collectives), built only with the kit.

## Fonts

All free on Google Fonts:

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

| Role | Font | Use |
|---|---|---|
| Everything | Martian Mono 300, 400 and 600 | Intro line, headings, body, buttons, forms, tables. Body is 300, headings 600, the intro line 300 at a larger size. |
| Pixel | Silkscreen 400 | Only the wordmark, the corner ribbon and badges. Never for sentences. |

## Color

| Token | Hex | Role |
|---|---|---|
| `--rb-void` | #09090B | Page background |
| `--rb-panel` | #121217 | App windows, code blocks, cards, inputs |
| `--rb-raise` | #1B1B22 | Bars and blocks inside panels |
| `--rb-line` | #2F2F3B | Borders and dividers |
| `--rb-line-strong` | #4A4A5C | Nested box borders, input borders |
| `--rb-text` | #DAD9E5 | Body text |
| `--rb-muted` | #86859B | Braces, hashes, dates, captions |
| `--rb-magenta` | #F26AD6 | Product name, primary button, dashed buttons, hover |
| `--rb-peri` | #9B95FF | Secondary button, ribbon, mascot, links |
| `--rb-cyan` | #79D4EE | Margin labels, feature headings, table heads, form labels |
| `--rb-amber` | #F6C55D | Pixel markers, notes, default badges |
| `--rb-mint` | #8FDFA9 | Success, included ticks, online dots |
| `--rb-coral` | #F58A7A | Errors |

Magenta and periwinkle are the pair. Use each for at most one solid button per view. Cyan is only for labels. Amber, mint and coral stay small: markers, ticks and states.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--rb-size-hero` | 20 to 26px | The intro line and article titles |
| `--rb-size-price` | 28 to 36px | Prices |
| `--rb-size-h2` | 17px | Section headings in the body |
| `--rb-size-h3` | 15px | Feature and card headings |
| `--rb-size-body` | 14px | Body |
| `--rb-size-small` | 13px | Buttons, tables, lists in cards |
| `--rb-size-label` | 12px | Margin labels, meta lines (uppercase, tracked 0.08em) |
| `--rb-size-micro` | 11px | Captions, chips, window bars |

The mono face is wide, so sizes stay small and line height is generous (1.75 for body, 1.35 for headings).

## Shape and space

- No radius anywhere (`--rb-radius: 0`). No shadows, no gradients.
- Borders are 1px. Solid `--rb-line` for panels and dividers, `--rb-line-strong` for nested boxes and inputs, and 1px dashed magenta for outline buttons and the picked plan.
- The reading column is 760px with a 9rem hanging label margin on the left. Under 900px the label moves above its section.
- Sections are spaced by 2rem top and bottom. The first section gets 4.5rem.
- One "pixel" is 4px (`--rb-pixel`): the marker after feature headings is two of them, offset like a drop of ink.

## Components (in components.css)

- **Page and sections** `.rb-page`, `.rb-sec` with `.rb-label` (the hanging cyan label) and `.rb-body` (the column). `.rb-sec--first` for the opening block.
- **Top bar** `.rb-top`, `.rb-logo` with the drawn `.rb-mascot` (an inline SVG of 1x1 rects filled with currentColor). `.rb-mascot--big` for a sign-up page.
- **Corner ribbon** `.rb-ribbon-wrap` and `.rb-ribbon`: a diagonal periwinkle strip in the top right corner, one short call to action in the pixel face.
- **Intro** `.rb-intro` with `.rb-name` (the product name in magenta) and `.rb-brace` (a term wrapped in muted braces, like `{zine press}`). `.rb-actions` holds the buttons and a row of plain underlined links.
- **Buttons** `.rb-btn--magenta`, `.rb-btn--peri`, `.rb-btn--dashed`, plus `.rb-btn--block`. Arrows (&rarr; &darr;) end the label.
- **App window** `.rb-window` with `__bar`, `__rail` and `__main`: a drawn screenshot of the product in flat boxes, with `.rb-chip` tags and a `.rb-caption` underneath.
- **Release line and command** `.rb-release` (version link plus a muted hash and date) and `.rb-cmd` (a bordered one-line command with a `[copy]` button).
- **Feature list** `.rb-features`: cyan headings each followed by the amber and magenta pixel marker.
- **Box diagram** `.rb-boxes`, `.rb-boxes__row`, `.rb-box`, `.rb-box--group`, `.rb-box--hot`: explain the parts of a product with nested bordered boxes only.
- **Cards and tables** `.rb-card`, `.rb-grid-2`, `.rb-grid-3`, `.rb-table` with `.rb-yes` and `.rb-no`.
- **Badges** `.rb-badge` (amber), `--peri`, `--mint`; `.rb-dot` for an online square.
- **Pricing** `.rb-plans`, `.rb-plan`, `.rb-plan--pick` (dashed border), `.rb-plan__name`, `.rb-price`, `.rb-ticks` with `+` and `-` marks.
- **FAQ** `.rb-faq` with `details`: `[+]` and `[-]` in magenta.
- **Article** `.rb-article`, `.rb-meta`, `.rb-pre` (with `.c`, `.k`, `.s`, `.n` spans), `.rb-quote` (dashed periwinkle rule), `.rb-note` (amber box).
- **Forms** `.rb-form`, `.rb-field`, `.rb-input`, `.rb-select`, `.rb-textarea`, `.rb-hint`, `.rb-check`, `.rb-radio-row` and `.rb-radio` (square toggles that fill periwinkle).
- **Footer** `.rb-foot`: a dashed top rule, one plain sentence and muted links.

## Pages in this kit

- `demo.html`: landing page with the intro line, synopsis and app window, get started, how it works with the box diagram, and FAQ.
- `pricing.html`: free plan plus two paid plans, a compare table and FAQ.
- `blog.html`: a release note with code, a quote and a note box.
- `signup.html`: a short form under the big mascot.

## Page recipe

1. Top bar with the mascot and wordmark, and the corner ribbon.
2. One intro sentence: product name in magenta, one key term in braces. Under it, one magenta button, one periwinkle button and three or four plain links.
3. Sections, each with a one or two word margin label. Lead with SYNOPSIS: one paragraph and a drawn app window.
4. A GET STARTED section with the release line, the command box and a dashed button.
5. A HOW IT WORKS section with four feature headings and a box diagram.
6. FAQ, then the footer.

Pricing recipe: an intro sentence with a brace term, a billing toggle under a PLANS label, three plans in a row (the picked one dashed), then COMPARE and FAQ sections.

Article recipe: the NOTES label in the margin, a title at hero size, a meta line with one badge, then body with small cyan uppercase subheads, `*` bullets, a code block, one quote and one note.

Sign-up recipe: the big mascot, an intro sentence, then a SIGN UP label beside a single 460px form with one full-width magenta button.

## Don'ts

- Don't use a second typeface for sentences. Silkscreen is only for the logo, ribbon and badges.
- Don't round corners, add shadows or use gradients.
- Don't widen the column past 760px or center body text.
- Don't use photos. Draw the product with flat boxes and the mascot with SVG rects.
- Don't use more than one solid magenta and one solid periwinkle button per view.
- Don't write labels longer than three words, and keep them uppercase.
