# Hex Halo

A precise tool after midnight. Graphite-black pages hold left-aligned Hanken Grotesk headlines in tight white, soft gray leads, and squared buttons. Beside the hero floats the signature: a halo of outline polygons stacked inside each other, each one a little smaller, turned a few degrees and nudged off centre, glowing like bent neon tube. The only colour on the page is an iridescent rim of pink, sky and gold around the main button and the featured card. It feels calm, exact and quietly expensive, the look of a team that measures things and doesn't need to shout.

Use it for: data and measurement products, labs and testing services, developer and B2B tools, research platforms, premium services that sell accuracy. Avoid it for: playful consumer brands, kids and family, food and lifestyle sites that live on photography, anything that should feel warm or handmade.

## 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 Hex Halo 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. Draw every illustration as a halo of stacked outline polygons.

`demo.html` (a landing page), `pricing.html`, `blog.html` and `signup.html` are complete example pages built only with the kit, for an invented soil-testing lab called Tilth.

## Fonts

All free on Google Fonts:

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

| Role | Font | Use |
|---|---|---|
| Headlines and body | Hanken Grotesk 400 to 600 | Headlines at 500 with -0.035em tracking. Buttons at 600. Body and leads at 400. |
| Labels and readouts | JetBrains Mono 400 to 500 | Eyebrows (uppercase, wide tracking), badges, table heads, terminal readouts, dates. 11 to 13px. |

## Color

| Token | Hex | Role |
|---|---|---|
| `--hx-void` | #09090A | The page |
| `--hx-panel` | #111113 | Cards, plans, terminals, the CTA |
| `--hx-raised` | #1B1B1E | The dark button, inline code, meter tracks |
| `--hx-line` | #26262A | Every 1px hairline |
| `--hx-text` | #F3F3F4 | Headlines, body emphasis, halo lines |
| `--hx-dim` | #9B9BA1 | Leads, article body, nav links, second half of headings |
| `--hx-pale` | #ECECEE | The pale main button |
| `--hx-iris-pink` | #F4A6C8 | Iridescent rim, one third |
| `--hx-iris-sky` | #9CC8FF | Iridescent rim, one third; quote rules and focus rings |
| `--hx-iris-gold` | #F3D58C | Iridescent rim, one third; warning values in readouts |

Rules:
- The page is a neutral graphite black, never blue-black or green-black.
- Light is white: halo lines, the dot on a badge, diamond list markers. Their glow is soft and white.
- The iris colours appear only as a thin rim and a soft coloured haze around the pale `--accent` button and the `--featured` plan, and as small details (a quote rule, a focus ring). Never as fills or text.
- One `--accent` button per screen. The rest are `--outline` (dark) or `--pale`.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--hx-text-hero` | clamp(40px, 5.6vw, 68px) | Left-aligned page titles, two short lines ending in a full stop |
| `--hx-text-h2` | clamp(28px, 3.4vw, 44px) | Section titles: a white claim, then a `.hx-dimmed` phrase |
| `--hx-text-h3` | 18px | Card and plan names |
| `--hx-text-lead` | 18px | Gray lead under a title |
| `--hx-text-body` | 15px | Body and UI |
| `--hx-text-micro` | 12px | Mono labels and dates |

Headlines are plain statements with a full stop: "Know what is under every field." Section titles go two-tone: "Push a probe. We do the rest." with the second part in `.hx-dimmed`.

## Shape and space

- Radius: 8px buttons and inputs (squared, not pills). 14px cards, plans, terminals and the CTA. Pill only for badges and tabs.
- Borders: 1px `--hx-line` hairlines under the nav, around cards and between sections (`.hx-section--line`). Hover brightens a border, it never lifts a card.
- Shadows: deep and soft on panels (`--hx-shadow-card`). The iris haze (`--hx-shadow-iris`) only on the accent button and the featured plan.
- The halo: 5 to 8 `<polygon class="hx-ring-line">` in one SVG, sharing a side count (3, 4, 6 or 8). Each ring is about 5% smaller, turned 5 to 10 degrees more, and shifted a few units up and right, with stroke opacity falling from 0.95 to 0.35. Strokes are thick with round joins. `--hx-ring-glow` adds the neon bloom. The hero halo turns once every 40 seconds.
- Markers: small outline diamonds (a 1.5px square turned 45 degrees). The eyebrow mark is a short iris hairline.
- Sections: 112px vertical padding. Container 1140px with 24px gutters. Text column 660px.

## Components (in components.css)

| Class | What it is |
|---|---|
| `.hx` | Put on `<body>`: graphite page, Hanken Grotesk, light text |
| `.hx-nav`, `__inner`, `__links`, `__end`, `.hx-logo`, `.hx-logo__mark` | Flat sticky bar with a hairline; the logo is a tiny three-ring halo |
| `.hx-hero-title`, `.hx-h2`, `.hx-h3`, `.hx-dimmed`, `.hx-lit`, `.hx-lead`, `.hx-eyebrow`, `.hx-micro` | Type |
| `.hx-btn`, `--accent`, `--pale`, `--outline`, `--ghost`, `--lg`, `--block` | Squared buttons; `--accent` is pale with the iris rim |
| `.hx-badge`, `--accent`, `--gold`, `.hx-dot` | Mono pill badges |
| `.hx-hero`, `--center`, `__actions`, `__note` | Hero: text left, halo right (or centred) |
| `.hx-halo`, `--spin`, `.hx-ring-line`, `.hx-halo-stage` | The halo art and a soft white glow behind it |
| `.hx-strip`, `__label`, `__names` | "Trusted by" row |
| `.hx-grid--2/3/4`, `.hx-card`, `__art` | Cards, optionally with a small halo on a dot grid |
| `.hx-stats`, `.hx-stat`, `__value`, `__label` | Ruled row of big numbers |
| `.hx-split`, `.hx-list` | Text beside a visual; list with diamond markers |
| `.hx-terminal`, `__bar`, `__body`, `.hx-meter` | Mono readout; `<b>` labels, `<i>` white values, `<u>` gold warnings |
| `.hx-quote`, `.hx-avatar` | Testimonial with mono initials |
| `.hx-tabs` | Pill tabs (`aria-selected="true"` is the raised one) |
| `.hx-plans`, `.hx-plan`, `--featured`, `__head`, `__price`, `__amount`, `__per` | Pricing |
| `.hx-table-wrap`, `.hx-table`, `.hx-yes`, `.hx-no` | Comparison table |
| `.hx-faq` | `<details>` FAQ with a mono plus |
| `.hx-auth`, `.hx-form`, `.hx-field`, `.hx-label`, `.hx-input`, `.hx-select`, `.hx-hint`, `.hx-check`, `.hx-or`, `.hx-choice` | Forms, including a segmented radio choice |
| `.hx-article`, `.hx-byline`, `.hx-figure` | Long-form post and a figure on the dot grid |
| `.hx-cta` | Panel with a faint sky haze rising from the bottom |
| `.hx-footer`, `__grid`, `__base` | Footer |

## Pages in this kit

- `demo.html`: landing page. Nav, a split hero with the turning hexagon halo, a customer strip, a split with a terminal readout, four cards with small halos (hexagon, square, triangle, octagon), stats, two quotes, a CTA and the footer.
- `pricing.html`: centred title, tabs that switch prices, three plans with the middle one rimmed in iris, a comparison table, FAQ and CTA.
- `blog.html`: badge, title, byline, a figure of three small halos on the dot grid, an article with code, a quote and a list, related posts.
- `signup.html`: a split screen, the pitch and a halo on the left, the form card on the right.

## Page recipe

1. `.hx-nav` with the logo, centred links and one button: `--accent` on the landing page, `--pale` on pages that have their own accent action.
2. A `.hx-hero`: a badge, a two-line title with a full stop, a gray lead, an `--accent` and an `--outline` button, a small note. The halo sits on the right in a `.hx-halo-stage`.
3. A `.hx-strip` of customers, then sections separated by hairlines: a `.hx-split` with a `.hx-terminal`, a card grid with `__art` halos, a `.hx-stats` row, quotes.
4. Finish with a `.hx-cta` and the footer.

Pricing: an eyebrow and title, `.hx-tabs` for the billing period, three `.hx-plan`s with the middle one `--featured` and its button `--accent`. A table and FAQ below.

Article: a badge, a title with a dimmed word, a `.hx-byline`, then a `.hx-figure` of small halos with a mono caption. Body in `.hx-article`: gray text, white bold, sky-ruled quotes and links.

Sign up: a two-column layout. The pitch, a `.hx-halo-stage` and a `.hx-list` on the left; a `.hx-auth` card with the form and an `--accent` submit on the right. On phones the pitch stacks above and the halo hides.

## Don'ts

- Don't use photos, gradients as backgrounds, or filled illustrations. The only art is outline halos and mono readouts.
- Don't colour text or fills with the iris colours, and don't add another accent.
- Don't round buttons into pills.
- Don't centre the landing hero; keep text left and the halo right.
- Don't fill the halo polygons or vary their side counts within one halo.
- Don't use em dashes in copy.
