# Room Tag

A calm, light product page with a little game tucked inside it. The page is warm paper gray, headlines are tight and heavy in deep navy, and there is one confident iris button. The signature is a top-down pixel floor plan shown in a rounded white window: wooden plank floors, periwinkle carpet, checkered kitchen tiles, bunks, plants, sofas and tiny two-pixel-wide people. Every person wears a floating name tag pill in a pixel font with a green "here" dot, and every room has a small white label in its corner. Under the main window sits a white segmented tab bar that overlaps its bottom edge. Outside the map everything stays clean, roomy and quiet, so the map is the one place that plays.

Use it for: booking and space products (hostels, coworking, studios, campuses), community and presence apps, events with venues, classes, team tools, anything where "who is where" matters and the product wants to feel friendly and a little nostalgic. Avoid it for: luxury, legal, healthcare records, finance dashboards, serious news and anything that must feel formal or photographic.

## 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 Room Tag 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 a made-up hostel booking app called Bunkroll. Each page carries the same small `rtMap()` script that draws the pixel floor plans; copy it as is.

## Fonts

All free on Google Fonts:

```html
<link href="https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;800&family=Silkscreen:wght@400;700&display=swap" rel="stylesheet">
```

| Role | Font | Use |
|---|---|---|
| Headlines | Hanken Grotesk 800, letter-spacing -0.035em | Hero, section headings, prices, the wordmark |
| Body and UI | Hanken Grotesk 400 to 600 | Paragraphs, buttons (600), labels (600), nav (500), tables |
| Pixel labels | Silkscreen 400 | Name tags, room labels, eyebrows, the quote credit, tiny footer sign-off. Always short and always small (10 to 12px) |

Silkscreen is a seasoning: never use it for a heading, a paragraph or a button.

## Color

| Token | Hex | Role |
|---|---|---|
| `--rt-paper` | #F5F4F1 | The page |
| `--rt-white` | #FFFFFF | Cards, windows, tabs, inputs |
| `--rt-mist`, `--rt-line`, `--rt-line-strong` | #ECEBF2, #E0DFE7, #C9C8D6 | Quiet fills (table heads, toggles, badges); hairlines; input borders |
| `--rt-ink` | #252947 | Headlines, text, the dark nav button, the CTA band |
| `--rt-soft`, `--rt-faint` | #676B85, #9A9DB2 | Secondary text; placeholders and logo strip |
| `--rt-iris` / `--rt-iris-deep` / `--rt-iris-tint` | #3A3EDB / #2A2DB0 / #E7E7FC | The one accent: primary button, links, eyebrows, the "you" tag, selected tab, focus ring |
| `--rt-live` / `--rt-live-tint` | #2FB36B / #DDF3E6 | Presence dots, "live" badges, tick bullets |
| `--rt-away` | #F0A43A | The away dot only |
| `--rt-coral` | #EF7354 | Map blankets and rugs, avatar stacks |
| `--rt-alert` | #CF3F3F | Form errors only |
| Map tokens (`--rt-floor`, `--rt-carpet`, `--rt-tile`, `--rt-wall`, `--rt-oak`, `--rt-leaf`, `--rt-pot`, `--rt-skin`, `--rt-hair`, `--rt-steel`, `--rt-felt` and their `-2`/`-deep` pairs) | | Inside the pixel map and pixel icons only, never on UI |

Rules:
- Iris is the only UI accent. One primary button per view.
- Green means "someone is here". Don't use it for success messages or decoration.
- Map colors stay inside maps and the small pixel icons. UI never borrows them.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--rt-text-hero` | clamp(40px, 5.6vw, 72px) | Page headline, 2 to 3 lines |
| `--rt-text-h2` | clamp(30px, 3.6vw, 46px) | Section headings |
| `--rt-text-h3` | 21px | Card titles, plan names |
| `--rt-text-lead` | 20px | The sentence under a headline, max 560px |
| `--rt-text-body` | 17px | Body; article prose is 18px at 1.7 |
| `--rt-text-small` | 14px | Meta, captions, help text |
| `--rt-text-tag` | 10px | Name tags and room labels (8px on phones) |

Headlines are always 800 with tight tracking and a 1.04 line height. Never set a headline in a lighter weight.

## Shape and space

- Radii: 6px for small buttons and badges, 10px for buttons, inputs and the map inside a window, 16px for cards, windows and the tab bar, full pills for name tags.
- Borders: 1px `--rt-line` on every white surface. Shadows are soft and cool (`--rt-shadow`), only on windows, the tab bar and the featured plan. Plain cards get `--rt-shadow-sm`.
- The primary button has a faint inner top highlight and an iris glow (`--rt-shadow-btn`).
- Space on an 8px rhythm (`--rt-space-1` to `--rt-space-9`). Sections are 112px apart on desktop, 72px on phones. Content max width 1200px.
- Square bullets: lists use 8px squares (iris in prose, green in plan ticks), never round dots.

## The pixel map

The map is the signature. It is an inline SVG drawn on a cell grid with `shape-rendering: crispEdges`, inside `.rt-window > .rt-map`.

- `rtMap(host, width, height, draw, people, labels)` fills a grid, merges each row into rects with a class per material (`.k-f` floor, `.k-c` carpet, `.k-t` tile, `.k-W` wall, `.k-w` wall face, `.k-o` oak, `.k-g` leaf and so on) and colors them from the tokens.
- Helpers inside `draw`: `m.r(x, y, w, h, key)` paints a block, `m.planks`, `m.carpet` and `m.tiles` paint textured floors, `m.bunk(x, y, blanketKey)` and `m.plant(x, y)` drop furniture.
- Build a building like this: fill everything with wall `W`, paint each room's floor leaving one cell of wall between rooms, add a `w` wall face row under every top wall for a three-quarter look, then cut doorways by painting floor through the walls.
- People are 2 by 3 cells: hair, face, shirt. Each entry is `[x, y, shirtKey, name, hairKey, skinKey, extraClass]`. A name makes a `.rt-tag` pill; `rt-tag--you` makes it iris, `rt-tag--away` turns the dot amber, `rt-tag--minor` hides it on phones.
- Rooms get a `.rt-room-label` in the bottom-left corner.
- Keep it readable: about 40 to 56 cells wide for a hero, 24 wide for a card. No more than 8 tags per map.

## Components (in components.css)

- Layout: `.rt-wrap`, `.rt-section`, `.rt-section--tight`, `.rt-grid-2`, `.rt-grid-3`, `.rt-head` (+ `--center`)
- Type: `.rt-hero-title`, `.rt-h2`, `.rt-h3`, `.rt-lead`, `.rt-eyebrow`, `.rt-small`, `.rt-muted`, `.rt-pixel`
- Buttons: `.rt-btn` + `--primary`, `--dark`, `--ghost`, `--sm`, `--block`
- Nav: `.rt-nav`, `.rt-logo`, `.rt-logo-mark` (a pixel bed), `.rt-nav-links`, `.rt-nav-actions`, `.rt-new`
- Hero: `.rt-hero`, `.rt-hero-grid`, `.rt-hero-actions`, `.rt-proof`, `.rt-stack`
- Map: `.rt-window`, `.rt-map`, `.rt-tag` (+ `--you`, `--away`, `--minor`), `.rt-room-label`, `.rt-tabs`, `.rt-tabs-row`
- Content: `.rt-card`, `.rt-card-icon` (holds a small pixel SVG), `.rt-logos`, `.rt-badge` (+ `--live`, `--iris`), `.rt-roster`, `.rt-avatar`
- Forms: `.rt-field`, `.rt-label`, `.rt-input`, `.rt-select`, `.rt-help`, `.rt-error`, `.rt-check`, `.rt-divider`, `.rt-pick`
- Pricing: `.rt-toggle`, `.rt-plans`, `.rt-plan` (+ `--featured`), `.rt-plan-body`, `.rt-plan-name`, `.rt-price`, `.rt-ticks`, `.rt-table-wrap`, `.rt-table`, `.rt-yes`, `.rt-no`, `.rt-faq`
- Article: `.rt-article`, `.rt-article-meta`, `.rt-author`, `.rt-prose`, `.rt-quote`, `.rt-figure`, `.rt-callout`
- Closing: `.rt-cta`, `.rt-footer`, `.rt-footer-grid`, `.rt-footer-base`

## Pages in this kit

| File | What it shows |
|---|---|
| `demo.html` | Landing: nav, split hero with a big floor plan and the overlapping tab bar, logo strip, three pixel-icon cards, a roster card, a dark CTA band, footer |
| `pricing.html` | Three plans, each topped with a tiny floor plan, a comparison table and an FAQ |
| `blog.html` | Article with a wide floor plan figure, callout, square-bullet list and quote card |
| `signup.html` | Two columns: the form on the left, a live map preview on the right where your tag updates as you type |

## Page recipe

1. `.rt-nav`: logo with the pixel mark and an optional `.rt-new` chip, quiet links, a ghost and a dark small button.
2. `.rt-hero`: headline (two short sentences work well), lead, primary plus ghost button, a proof line with an avatar stack. The right column is a `.rt-window` with the map, and a `.rt-tabs` bar tucked under it with `.rt-tabs-row`.
3. A logo strip in faint 800-weight wordmarks.
4. A centered `.rt-head` and three `.rt-card`s, each with a pixel icon.
5. A `.rt-grid-2` split: copy on one side, a roster or a second map on the other.
6. A dark `.rt-cta` band, then `.rt-footer`.

Pricing recipe: centered head with a `.rt-toggle`, then `.rt-plans` where every `.rt-plan` starts with a small map that grows from plan to plan, the middle one `--featured` with a live badge. Then a comparison table and `.rt-faq`.

Article recipe: narrow `.rt-article` head (eyebrow, title, meta with a pixel avatar), a wide `.rt-figure` map, then `.rt-prose` with one callout and one quote. Close with two `.rt-card` links.

Sign-up recipe: two columns, form at most 440px wide, map preview on the right with the visitor's own `rt-tag--you`. Use `.rt-pick` for one choice, show one inline `.rt-error` example, a `.rt-divider` and a ghost alternative.

## Don'ts

- Don't add a second accent color to the UI, and don't use map colors for buttons or text.
- Don't draw people or furniture with rounded shapes or gradients. Maps are square cells only.
- Don't put Silkscreen in headings, paragraphs or buttons.
- Don't crowd the map with tags: hide extras on phones with `rt-tag--minor`.
- Don't use photos. The map and pixel icons are the imagery.
- Don't drop the tight tracking on headlines or set them lighter than 800.
- No em dashes in copy.
