# Harbor Index

A quiet, well-kept index on a deep harbour-blue night. Every page is split in two. The left column stays put: the name in a heavy grotesk, a one-line promise, a short intro and a nav of thin hairlines that grow when you point at them. The right column scrolls through tidy entries, each with a small mono gutter (a date, a price, a drawn thumbnail), a bright title with a little arrow, a slate paragraph and seafoam pill tags. Entries are flat until you hover one: then it lifts into a soft card and the rest of the list dims, so the one you are reading stands alone. A gentle blue spotlight follows the pointer across the page. Seafoam does the work; brass appears once or twice per page as a warm mark. It feels personal, careful and calm, like a craftsperson's own site rather than a company's.

Use it for: one or two person businesses, workshops and repair services, portfolios, teachers and tutors, studios, small booking services, anything with a list of work or offers to browse. Avoid it for: busy shops with many products, loud launches, kids, anything that needs big imagery or a full-width hero.

## 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 Harbor Index 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 piano tuning and restoration workshop called Ostinato.

## Fonts

All free on Google Fonts:

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

| Role | Font | Use |
|---|---|---|
| Name and titles | Hanken Grotesk 700 | The big name in the left column and page titles. Tight tracking (-0.025em). |
| Headings and entry titles | Hanken Grotesk 500 to 600 | The role line, h2 and entry titles. |
| Body | Hanken Grotesk 400 | Slate body copy at 16px, 1.65 line height. |
| Labels and buttons | IBM Plex Mono 400 to 500 | Entry gutters, prices notes, form labels, buttons, bylines. 12px, often uppercase. |

The nav and the phone section labels are Hanken Grotesk 600 at 12px, uppercase, tracked at 0.14em.

## Color

| Token | Hex | Role |
|---|---|---|
| `--hx-night` | #0B1426 | The page |
| `--hx-deep` | #0F1B33 | Inputs and drawn thumbnails |
| `--hx-card` | rgba(32, 52, 92, .32) | The hover card behind an entry, figures |
| `--hx-line` | #1C2A46 | Rules and table lines |
| `--hx-line-bright` | #2C3D61 | Input borders, thumbnail frames, quiet buttons |
| `--hx-text` | #E3E9F5 | Name, titles, links inside body copy, strong |
| `--hx-slate` | #94A2BE | Body copy |
| `--hx-dim` | #5E6C89 | Gutters, nav at rest, captions |
| `--hx-sea` | #6FDCC3 | The working accent: buttons, chips, hover titles, focus |
| `--hx-brass` | #E2B97F | The warm mark: status dot, quote rule, one featured chip |

Soft fills: `--hx-sea-soft`, `--hx-sea-line`, `--hx-brass-soft`. The spotlight is `--hx-spot-color` at `--hx-spot-size`, and `.hx` draws it.

Rules:
- Body copy is slate, never white. White is for names, titles and links inside a paragraph.
- Seafoam is for things you can act on and for tags. Brass appears at most twice on a page.
- No gradients on text, no bright fills behind sections. The only light is the pointer spotlight.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--hx-text-name` | clamp(40px, 5vw, 56px) | The name on the landing page |
| `--hx-text-h1` | clamp(34px, 4.2vw, 48px) | Page titles in the left column |
| `--hx-text-price` | clamp(30px, 3vw, 38px) | Prices in an entry gutter |
| `--hx-text-h2` | clamp(22px, 2.2vw, 26px) | Section headings, article h2 |
| `--hx-text-role` | 20px | The one-line promise under the name |
| `--hx-text-h3` | 17px | Entry titles |
| `--hx-text-body` | 16px | Body |
| `--hx-text-small` | 14px | Entry text, table cells |
| `--hx-text-micro` | 12px | Gutters, labels, chips, nav |

Sentence case everywhere except the 12px caps labels. No exclamation marks.

## Shape and space

- Radius: 6px for buttons and inputs, 8px for entry cards and figures, 4px for thumbnails, 999px for chips and the billing switch.
- Borders: hairlines in `--hx-line`. Entries have no border at rest; on hover they get `--hx-card` plus `--hx-card-edge` (a 1px top highlight) and `--hx-shadow-card`.
- Layout: `.hx-split` gives a 5 to 6 column split. The left `.hx-aside` is sticky and full height; the right `.hx-main` scrolls. Page max width 1200px.
- Entries: an 8.5rem gutter column for the meta, price or thumbnail, then the body. Entries bleed 24px past the column edge so the hover card lines up with the text.
- Motion: the nav line grows from 32px to 64px, entry arrows nudge up and right, `.hx-rise` fades the left column in. Everything is 0.18s with a soft ease.
- Below 1024px the split becomes one column, the nav hides and sticky `.hx-label` headers appear above each section. Below 640px entries stack, hover cards switch off and a lit entry gets a brass left rule instead.

## Components (in components.css)

| Class | What it is |
|---|---|
| `.hx` | Put on `<body>`: night page, Hanken Grotesk, slate text, the pointer spotlight |
| `.hx-page`, `.hx-split`, `.hx-aside`, `.hx-main`, `.hx-block` | The split layout |
| `.hx-name`, `.hx-title`, `.hx-role`, `.hx-intro`, `.hx-status` | The left column: name or page title, promise, intro, brass status dot |
| `.hx-nav`, `.hx-nav-num` | The hairline nav. Add `.is-active` to the current link |
| `.hx-socials`, `.hx-actions` | Icon row at the foot of the left column, button row |
| `.hx-btn`, `--solid`, `--quiet`, `--block` | Mono buttons: seafoam outline, seafoam fill, slate outline |
| `.hx-more` | Bold text link with a sliding arrow |
| `.hx-label`, `.hx-kicker`, `.hx-h2`, `.hx-mark` | Phone section labels, mono kicker, section heading, brass text |
| `.hx-entries`, `.hx-entry`, `.is-lit`, `.hx-entry-meta`, `.hx-entry-title`, `.hx-entry-sub`, `.hx-entry-text`, `.hx-arrow` | The hover-card list, the heart of the style |
| `.hx-chips`, `.hx-chip`, `--brass` | Pill tags |
| `.hx-thumb`, `--keys`, `--strings`, `--wood` | Drawn CSS thumbnails for the entry gutter. Make your own in the same way: 2px frame, deep fill, one motif |
| `.hx-quote` | Quote with a brass rule |
| `.hx-stats`, `.hx-stat` | Three numbers under a hairline |
| `.hx-price`, `.hx-price-note`, `.hx-ticks`, `.hx-switch` | Pricing entries and the billing switch |
| `.hx-table-wrap`, `.hx-table`, `.hx-yes`, `.hx-no` | Comparison table |
| `.hx-faq` | Questions as `<details>` |
| `.hx-article`, `.hx-lede`, `.hx-figure`, `.hx-note`, `.hx-byline`, `.hx-back` | Blog post parts |
| `.hx-form`, `.hx-row`, `.hx-field`, `.hx-field-label`, `.hx-input`, `.hx-select`, `.hx-textarea`, `.hx-hint`, `.hx-options`, `.hx-option`, `.hx-check`, `.hx-steps` | Forms |
| `.hx-foot` | Small dim footer at the end of the right column |
| `.hx-rise`, `--2`, `--3` | Entrance motion |

Add this small script to every page so the spotlight follows the pointer:

```html
<script>
document.addEventListener('pointermove', function (e) {
  document.body.style.setProperty('--hx-x', e.clientX + 'px');
  document.body.style.setProperty('--hx-y', e.clientY + 'px');
});
</script>
```

## Pages in this kit

| File | Page |
|---|---|
| `demo.html` | Landing: name and nav on the left; about, services, restorations and visit on the right |
| `pricing.html` | Pricing: plans as entries with the price in the gutter, a comparison table and questions |
| `blog.html` | Blog post: title, byline and contents nav on the left, the article on the right |
| `signup.html` | Booking form: title and steps on the left, a three-part form on the right |

## Page recipe

1. `<body class="hx">`, then `.hx-page > .hx-split`.
2. Left: `<header class="hx-aside">` with a top `<div>` (name or `.hx-back` plus title, `.hx-role`, `.hx-intro`, optional `.hx-status`, `.hx-actions`, `.hx-nav`) and a bottom item (`.hx-socials`, chips or a quote).
3. Right: `<main class="hx-main">` with one `<section class="hx-block" id="...">` per nav item. Start each with `<h2 class="hx-label">` so phones get a sticky header.
4. Use `.hx-entries` for anything that is a list of things: services, work, posts, plans, events.
5. End with `.hx-foot`, then the spotlight script.

Pricing recipe: plans are `.hx-entry` items. Put `.hx-price` and `.hx-price-note` in the gutter, the plan name as `.hx-entry-title`, `.hx-ticks` for what is included and a button. Mark the recommended plan with `.is-lit` and one brass chip. Follow with a `.hx-table` and a `.hx-faq`.

Article recipe: the left column holds `.hx-back`, `.hx-kicker`, the title as `.hx-title`, `.hx-byline` and a `.hx-nav` of headings with `.hx-nav-num`. The right column is `.hx-article` with a `.hx-lede`, h2s with ids, a `.hx-figure`, a `.hx-quote` and a `.hx-note`, then one "next" entry.

Sign-up recipe: the left column holds the title, a promise and `.hx-steps`, with a short quote at the foot. The right column is one `.hx-form` split by `.hx-label` headings, with `.hx-options` tiles for the main choice and one solid button.

## Don'ts

- Don't put the content in a single centred column. The split is the style.
- Don't give entries borders or backgrounds at rest. They only become cards on hover or when lit.
- Don't use white for body text or seafoam for paragraphs.
- Don't add photos or big illustrations. Use small drawn thumbnails in the gutter.
- Don't use more than two brass marks per page.
- Don't round anything past 8px, except pills.
- Don't use em dashes in copy.
