# Blue Hour

A pro tool at night. Ink-black pages hold tight, left-aligned Onest headlines, small white buttons with a soft corner, and dim grey leads. The star of every page is a big rounded frame with a deep electric blue haze rising from its bottom edge, and inside it a frosted glass card whose edge glows like a neon tube: a prompt with a blinking caret, a few readout rows and small mono chips. Everything else stays quiet so that one light reads like the screen of a device in a dark room. It feels confident, technical and a little cinematic.

Use it for: AI products and assistants, forecasting and data tools, outdoor and weather apps, pro creative tools, launch pages that want to feel futuristic. Avoid it for: food, kids and family brands, long editorial reading sites, anything that needs warm photography or daylight cheer.

## 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 Blue Hour 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 marine forecast app called Tidewatch.

## Fonts

All free on Google Fonts:

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

| Role | Font | Use |
|---|---|---|
| Headlines and body | Onest 400 to 600 | Headlines at 600 with -0.04em tracking and 1.04 line height. Buttons, nav and the prompt at 500. Body at 400. |
| Labels and data | Martian Mono 400 | Eyebrows, chips, badges, readout values, table heads, footer headings. 11 to 12px only. |

## Color

| Token | Hex | Role |
|---|---|---|
| `--bh-ink` | #050507 | The page |
| `--bh-panel` | #0C0D13 | Frames, cards, plans, table heads |
| `--bh-raised` | #14161F | Icon tiles, line buttons, inline code |
| `--bh-line` | #1E2030 | Every 1px border |
| `--bh-line-bright` | #2C3048 | Inputs, line buttons, hover borders |
| `--bh-text` | #F4F5FA | Headlines and key text |
| `--bh-soft` | #C9CBD8 | Article body text |
| `--bh-dim` | #8C8FA3 | Leads, nav links, card copy |
| `--bh-faint` | #5A5D70 | Logo strip, hints, footer base |
| `--bh-volt` | #3A57FF | The one light: the haze, the glowing edge, the volt button, list ticks |
| `--bh-ice` | #A9BBFF | The bright rim of the glow, eyebrows, chips, links |
| `--bh-cyan` | #3FD2DF | Data: chart lines, status dots, "yes" cells |
| `--bh-flare` | #FF8A5B | Warnings only: one dot or value per view |

Rules:
- The page is ink. Colour arrives as light: the blue haze inside a frame and the glowing edge of one glass card.
- The small white button (`.bh-btn--white`) is the default main action. Use `.bh-btn--volt` once per page, in the CTA, the featured plan or the sign-up submit.
- Cyan is for data and status, flare is for a single warning. Never fill large areas with either.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--bh-text-hero` | clamp(38px, 5.4vw, 64px) | Page titles, two or three lines, left-aligned, max 18ch |
| `--bh-text-h2` | clamp(28px, 3.4vw, 44px) | Section titles, max 20ch |
| `--bh-text-h3` | 19px | Card and plan names |
| `--bh-text-lead` | clamp(17px, 1.6vw, 20px) | Dim lead under a title |
| `--bh-text-body` | 15px | Body and UI |
| `--bh-text-small` | 13px | Hero note, captions |
| `--bh-text-micro` | 11px | Mono labels |

Headlines are plain claims in sentence case ("Ask the sea anything before you leave the dock"). Leads are one sentence that says how.

## Shape and space

- Radius: 10px buttons, 12px inputs and readouts, 18px cards, 22px glass cards and plans, 28px frames, pill for tabs, chips and badges.
- Borders: 1px `--bh-line` on frames, cards, tables and plans. The lit glass card drops its border and uses `--bh-edge-glow` instead.
- The light: `.bh-frame::before` paints `--bh-haze`, a blue radial rising from the bottom. `.bh-frame--soft` and `.bh-card--haze` use the weaker `--bh-haze-soft`. One full haze and one glowing edge per screen.
- The glass: `--bh-glass` is a translucent navy with an 18px backdrop blur, so the haze shows through.
- Sections: 72px to 112px vertical padding. Container 1200px with 24px gutters. Article measure 680px.
- Motion: content rises 14px on load (`.bh-rise`, `--2`, `--3`), the caret blinks, buttons sink 1px on press and the volt glow brightens on hover.

## Components (in components.css)

| Class | What it is |
|---|---|
| `.bh` | Put on `<body>`: ink page, Onest, light text |
| `.bh-container`, `.bh-section`, `.bh-section--tight` | Layout wrappers |
| `.bh-nav`, `__inner`, `__links`, `__end`, `.bh-logo`, `__mark` | Sticky blurred top bar, links left, white button right |
| `.bh-hero-title`, `.bh-h2`, `.bh-h3`, `.bh-lead`, `.bh-muted`, `.bh-strong`, `.bh-micro`, `.bh-eyebrow` | Type |
| `.bh-btn`, `--white`, `--volt`, `--line`, `--ghost`, `--lg`, `--block` | Buttons |
| `.bh-hero`, `__row`, `__note` | Left-aligned hero with a "New:" note pushed right |
| `.bh-frame`, `--soft`, `--pad` | Big rounded panel with the blue haze |
| `.bh-select-bar`, `__field`, `__plus` | The glass dropdown bar above the prompt |
| `.bh-glass`, `--lit`, `--bottom` | Frosted card; `--lit` adds the neon edge, `--bottom` lets it run off the frame |
| `.bh-prompt`, `.bh-caret`, `.bh-prompt-bar`, `.bh-chips`, `.bh-chip`, `.bh-send` | The prompt inside the glass |
| `.bh-readout`, `--flush`, `__row`, `__label`, `__value`, `--cyan`, `--flare` | Data rows |
| `.bh-chart`, `__grid`, `__line`, `__area`, `__stop`, `__dot` | Inline SVG chart styles |
| `.bh-badge`, `--volt`, `.bh-dot`, `--flare` | Badges and glowing status dots |
| `.bh-logos` | Dim wordmark strip |
| `.bh-head` | Section head: title left, lead right |
| `.bh-grid--2/3/4`, `.bh-card`, `--haze`, `--wide`, `__icon`, `.bh-stat` | Bento cards |
| `.bh-split`, `.bh-list` | Text and visual side by side, glowing square ticks |
| `.bh-quote`, `.bh-avatar` | Large testimonial |
| `.bh-tabs` | Pill tabs (`aria-selected="true"` is white) |
| `.bh-plans`, `.bh-plan`, `--lit`, `__price`, `__amount`, `__per` | Pricing |
| `.bh-table-wrap`, `.bh-table`, `.bh-yes` | Comparison table |
| `.bh-faq` | `<details>` FAQ |
| `.bh-auth`, `.bh-form`, `.bh-field`, `.bh-label`, `.bh-input`, `.bh-select`, `.bh-hint`, `.bh-check`, `.bh-or`, `.bh-social` | Forms |
| `.bh-article`, `.bh-byline` | Long-form post |
| `.bh-cta` | A frame used as the closing call to action |
| `.bh-footer`, `__grid`, `__base` | Footer |

## Pages in this kit

- `demo.html`: landing page. Nav, left hero with a "New:" note, a frame with a select bar and a lit prompt card running off its bottom edge, a logo strip, a bento grid with a tide chart, a split with an alert card, a big quote, a CTA frame, footer.
- `pricing.html`: left title with billing tabs beside it, three plans with the middle one lit, comparison table, FAQ, CTA frame.
- `blog.html`: badge, title, byline, a frame with a lit glass card and chart as the figure, article with code, list and quote, related cards.
- `signup.html`: a frame with the title and a lit glass sign-up form.

## Page recipe

1. `.bh-nav`: logo, five dim links, a ghost "Log in" and one white button.
2. `.bh-hero`: a left-aligned title of two or three lines, a dim lead, then a row with a white `--lg` button, a mono micro note and a right-aligned "New:" note.
3. A `.bh-frame` that shows the product: a `.bh-select-bar`, then a `.bh-glass--lit --bottom` card with a prompt, caret, readout rows and chips, bleeding off the frame's bottom.
4. A `.bh-logos` strip, then sections with a `.bh-head` and a bento of `.bh-card`s, one of them `--haze --wide` with a chart.
5. A `.bh-split`, a large `.bh-quote`, then a `.bh-frame--pad .bh-cta` with a volt button, and the footer.

Pricing: title left and `.bh-tabs` right in one row, three `.bh-plan`s with the middle one `--lit` and its button `--volt`. Then a table and FAQ.

Article: a `--volt` badge, a title, a `.bh-byline`, a figure that is a `.bh-frame--pad` with one lit glass card, then `.bh-article` body and three related cards.

Sign up: one `.bh-frame--pad` holding a left-aligned title and a `.bh-glass--lit` card with social buttons, `.bh-or`, the fields and a `--volt` submit.

## Don'ts

- Don't centre the hero. Titles sit on the left edge, like a product screen.
- Don't add photos or stock illustration. The glowing glass card is the picture.
- Don't use a second glow colour, or more than one lit card per screen.
- Don't use big radii on buttons; they stay at 10px, never full pills.
- Don't fill panels with blue. The blue is light, it fades into ink.
- Don't use pure white for body text; only headlines and the white button go that bright.
- Don't use em dashes in copy.
