# Dot Lattice

Dark, calm and quietly futuristic, like a control room at night with the grow lights on. The page is a green-tinted black. Headlines are a clean grotesque set large and plain, with one phrase lit in leaf green. The signature move is the drawing: isometric blocks, slabs and towers made entirely of glowing dots, as if an LED matrix were floating in the dark. Everything around them stays quiet: pale pill buttons, hairline cards, mono labels and a faint dot field behind the hero. It feels precise and fresh, technical without being cold.

Use it for: indoor farming, food tech, climate and energy products, labs and science tools, infrastructure, smart home devices, anything that wants to look advanced but still alive. Avoid it for: kids, weddings, warm hospitality, fashion, anything that needs photography or soft pastel energy.

## 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 Dot Lattice 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 city vertical farm called Stackleaf.

## Fonts

All free on Google Fonts:

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

| Role | Font | Use |
|---|---|---|
| Headlines and body | Hanken Grotesk 400 to 600 | Headlines at 500 with tight tracking (-0.025em), body at 400, buttons at 500, the wordmark at 600. |
| Labels | Geist Mono 400 to 500 | Eyebrows, badges, table heads, panel bars, meter labels and figure captions at 11 to 14px. Eyebrows are uppercase with wide tracking; badges are lowercase. |

## Color

| Token | Hex | Role |
|---|---|---|
| `--dl-night` | #060907 | The page |
| `--dl-soil` | #0C110D | Cards, plans, panels, the CTA box |
| `--dl-moss` | #131A14 | Raised spots inside panels |
| `--dl-line` | #1F2820 | Every hairline border and rule |
| `--dl-line-bright` | #33402F | Button and input borders, the empty dots in meters |
| `--dl-frost` | #EAEFE6 | Main text and the light button |
| `--dl-sage` | #9BA699 | Leads and body copy in cards and articles |
| `--dl-dim` | #646E63 | Captions, meta, logo wordmarks |
| `--dl-leaf` | #7FE065 | The one accent: lit headline words, eyebrows, badges, the leaf button, focus rings, dots |
| `--dl-leaf-deep` | #2E9B43 | The glow under blocks and the halo behind scenes |
| `--dl-pollen` | #E3D36B | A second, rare dot colour for one block in a group |
| `--dl-clay` | #E59A6E | Warning or "different" badges only |

The dot matrix has its own steps: `--dl-dot-top`, `--dl-dot-left`, `--dl-dot-right` (dot colours, brightest on top) and `--dl-face-top`, `--dl-face-left`, `--dl-face-right` (the faint fill behind each face). `--dl-glow` is the drop-shadow that makes blocks shine, `--dl-halo` is the green radial glow behind scenes and card art.

Rules:
- The page is black and grey with one green. Pollen appears at most once per group of blocks, as the odd one out.
- Green fills only the leaf button (one per page, usually the featured plan) and the chip's tag. The main action is the light frost button.
- Never draw blocks with solid fills or outlines. They are always dots.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--dl-text-display` | clamp(42px, 6.6vw, 84px) | The landing hero, one short line |
| `--dl-text-h1` | clamp(38px, 5.2vw, 64px) | Page titles and CTA titles |
| `--dl-text-h2` | clamp(30px, 3.8vw, 46px) | Section headings |
| `--dl-text-h3` | 20px | Card and plan names |
| `--dl-text-lead` | 19px | Sage lead, max 620px |
| `--dl-text-body` | 16px | Body |
| `--dl-text-micro` | 12px | Mono labels |

Headlines are short and plain, in sentence case. Wrap the key phrase in `.dl-glow-text` to light it green ("Greens grown upstairs"). Use it once per heading at most.

## Shape and space

- Radius: 999px for buttons, chips and toggles, 16px for cards, plans and panels, 12px for inputs, 8px for badges.
- Borders: 1px `--dl-line` everywhere. The featured plan gets a green border, a soft green glow and a bright hairline along its top edge.
- Shadows: only `--dl-shadow` under panels. Glow belongs to dots and green text, never to cards.
- Blocks: `.dl-block` holds three empty `<i>` faces. Size it with `--w`; the height follows. The top face has the biggest, brightest dots, the right face the smallest and dimmest. Faces twinkle slowly out of step.
- Sections: 64 to 112px vertical padding. Container 1180px with 24px gutters; articles 680px.
- Motion: slow twinkle on dots, a short rise on hero content, nothing else. Both stop under reduced motion.

## Components (in components.css)

| Class | What it is |
|---|---|
| `.dl` | Put on `<body>`: night page, Hanken Grotesk, frost text, clipped overflow |
| `.dl-container`, `.dl-narrow`, `.dl-section`, `--tight`, `--flush`, `.dl-rule`, `.dl-center` | Layout |
| `.dl-display`, `.dl-h1`, `.dl-h2`, `.dl-h3`, `.dl-glow-text`, `.dl-lead`, `.dl-eyebrow`, `.dl-muted`, `.dl-dim`, `.dl-mono` | Type |
| `.dl-btn`, `--light`, `--leaf`, `--sm`, `--block`, `.dl-link` | Pill buttons: glass by default, `--light` for the main action, `--leaf` for one highlighted action |
| `.dl-nav`, `__inner`, `__links`, `__end`, `.dl-wordmark`, `.dl-mark`, `.dl-hide-sm` | Sticky blurred top bar with a dotted cube mark |
| `.dl-chip`, `.dl-badge`, `--leaf`, `--pollen`, `--clay`, `.dl-dot` | Announcement pill and mono status badges |
| `.dl-block`, `--slab`, `--tall`, `--sm`, `--xs`, `--pollen`, `--dim` | The dot-matrix isometric block |
| `.dl-stack`, `.dl-cluster`, `.dl-scene`, `.dl-dotfield` | Stacked slabs, a staggered cluster, a row of compositions on a halo, and the faint dot field behind a hero |
| `.dl-hero`, `--center`, `.dl-actions` | Hero spacing and button rows |
| `.dl-logos`, `__label`, `__row` | Ruled logo strip, alternating sans and mono caps |
| `.dl-section-head`, `--center`, `.dl-grid`, `--2`, `--4`, `.dl-card`, `__art` | Card grids with a dark art well for blocks |
| `.dl-split`, `.dl-panel`, `__bar`, `__body`, `.dl-rows`, `__meta`, `.dl-meter` | A product panel with list rows and dotted meters |
| `.dl-steps`, `.dl-stats`, `.dl-stat`, `.dl-quote`, `.dl-cta` | Numbered steps, ruled stats, a centred quote and a halo CTA box |
| `.dl-toggle`, `.dl-plans`, `.dl-plan`, `--featured`, `__top`, `__price`, `.dl-checks`, `.dl-table-wrap`, `.dl-table`, `.dl-yes`, `.dl-faq` | Pricing parts; checks are tiny dot squares |
| `.dl-meta`, `.dl-author`, `.dl-avatar`, `--pollen`, `--clay`, `.dl-article`, `.dl-figure`, `__frame`, `.dl-callout` | Article parts |
| `.dl-form`, `.dl-row`, `.dl-field`, `.dl-label`, `.dl-input`, `.dl-select`, `.dl-hint`, `.dl-check`, `.dl-or`, `.dl-choices`, `.dl-choice` | Forms, including pill-free segmented choices |
| `.dl-footer`, `--slim`, `__cols`, `__about`, `__base` | Footer |
| `.dl-rise`, `--2`, `--3` | Entrance animation |

## Pages in this kit

- `demo.html`: landing page. Centred hero on a dot field with a chip, a display title with one lit word, two buttons and a wide scene of four block compositions (a tower, stacked slabs, a cluster, a pair). Then a logo strip, three cards with block art, steps beside a live farm panel with meters, a stats row, a quote and a halo CTA box.
- `pricing.html`: three small blocks over a centred title, a weekly or seasonal toggle, three plans (the middle one featured with the leaf button), a compare table and an FAQ beside a heading.
- `blog.html`: a 680px article with a chip, author meta, a block figure (cube, slab and tower showing floors), a list, a green-ruled quote, a callout and two related cards.
- `signup.html`: a stacked-slab drawing and perks on the left, a form panel on the right with segmented box choices, one light button and a passkey alternative.

## Page recipe

1. Nav: dotted mark and wordmark left, sage links centre, a glass "Log in" and a light button right.
2. Hero on `.dl-dotfield`: chip, display title with one `.dl-glow-text` phrase, lead, light button and glass button.
3. A `.dl-scene` of three or four block compositions directly under the hero. Mix sizes: one tall, one stacked, one cluster.
4. A ruled logo strip.
5. A section head and three cards, each with a small block composition in its art well.
6. A split: steps on one side, a `.dl-panel` with rows and dotted meters on the other.
7. Stats, a quote, a halo CTA box with three small blocks above the title. Footer with four columns.

Pricing recipe: small block row, eyebrow, h1 with a lit phrase, toggle, three plans with block art growing from one block to three, the featured plan in the middle with the leaf button. Then a compare table and an FAQ.

Article recipe: chip, h1, lead, meta row with an avatar and a leaf badge, then the article. One block figure, one quote, one callout, then related cards.

Sign-up recipe: a split with a drawing and three perks (each with an `--xs` block as the bullet) beside a form panel. One light submit, an "or" divider, one glass alternative.

## Don'ts

- Don't use photos or illustrations in other styles. The only pictures are dot blocks, dotted meters and the dotted mark.
- Don't add a second accent colour or gradients on text. One green, one rare pollen.
- Don't make blocks with solid faces, outlines or hard shadows.
- Don't fill sections with green. Green lives in small things and in light.
- Don't set headlines in bold or all caps. Weight 500, sentence case.
- Don't crowd the scene: leave space and let the halo breathe.
