# Night Shift

A quiet, precise dark look for serious software. The page is near-black, built from three stacked surface steps and hairline borders at low white opacity. A faint light falls from above the hero. Headlines are tight, medium-weight grotesque type, never bold. Body text is gray, and only headlines and the product itself are near-white. One warm amber accent marks status, focus and the one thing that needs a human now. The product is the hero: a layered app window with a sidebar, mono IDs, status circles and keyboard hints does the selling, not illustrations.

Use it for: operations software, B2B tools, developer and admin products, dashboards, anything used by people at work who want calm and speed. Avoid it for: children's products, food and lifestyle brands that need warmth and photos, charities, anything playful or loud.

## 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 Night Shift 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` is a complete example page built only with the kit.

## Fonts

All free on Google Fonts:

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

| Role | Font | Use |
|---|---|---|
| Headlines | Inter Tight 500 (600 for h3) | Every headline. Tracking -0.035em, line-height about 1.02. Balanced wrapping. |
| Body | Inter 400 to 600 | Paragraphs, nav, buttons, labels. 15px base, gray. |
| Mono | JetBrains Mono 400 to 500 | IDs (`T-2184`), timers, counts, keyboard keys, code. |

## Color

| Token | Hex | Role |
|---|---|---|
| `--ns-void` | #070709 | Page background |
| `--ns-base` | #0E0F12 | Alternate sections, app windows, cards |
| `--ns-raised` | #16171B | Inputs, list headers, cards inside sections, selected rows |
| `--ns-lift` | #1E1F24 | Keys, active sidebar item, menus |
| `--ns-line` | white at 8% | Every border and divider |
| `--ns-line-strong` | white at 14% | Inputs, ghost buttons, icon tiles |
| `--ns-text` | #F1F1EE | Headlines, primary text, the primary button fill |
| `--ns-text-2` | #A2A4AB | Body text and leads |
| `--ns-text-3` | #6B6E76 | Metadata, labels, placeholders, dimmed half of a headline |
| `--ns-amber` | #F5B240 | In progress, focus rings, the featured plan, the one highlight |
| `--ns-mint` | #5CCF98 | Ready, done, included |
| `--ns-coral` | #F0745C | Late, error, warnings |
| `--ns-periwinkle` | #8B92F2 | Links inside long-form text only |

Rules:
- The page is almost all gray. Amber, mint and coral are status colors; each appears at small sizes (badges, dots, a 2px bar), with a 12% tinted background, never as a large fill.
- The primary button is near-white on black, not amber. Amber fills only a single special button, if any.
- No gradients except the top glow (`--ns-glow`), the fading divider (`--ns-fade-line`) and the faint amber wash on the featured plan.
- Two-tone headlines are part of the voice: a white first sentence, then a `.ns-dim` second sentence in gray.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--ns-text-hero` | clamp(44px, 6.6vw, 84px) | Hero headline, left aligned, 2 or 3 lines |
| `--ns-text-h1` | clamp(38px, 5vw, 64px) | Page titles and final call to action |
| `--ns-text-h2` | clamp(30px, 3.6vw, 46px) | Section headings |
| `--ns-text-h3` | 20px | Card and feature titles |
| `--ns-text-lead` | 18px | Paragraph under a headline, gray, max 36em |
| `--ns-text-body` | 15px | Body |
| `--ns-text-small` / `--ns-text-micro` | 13px / 12px | UI labels, metadata, badges |

## Shape and space

- Borders are 1px hairlines in white at 8%. Never use a solid gray border color.
- Radius: 4px on keys, 6px on badges, inputs and sidebar items, 10px on small cards and notes, 14px on windows, cards and plans, pill on buttons and toggles.
- Shadows: almost none. Windows get `--ns-shadow-window` (a hairline ring plus a deep black drop). Raised controls get `--ns-inset-top`, a 1px light edge on top.
- Space: dense inside the product (30 to 42px rows), roomy between sections (80 to 140px). Container 1200px, article measure 680px.
- Motion: short fades that rise 10px and unblur. Nothing bounces.

## Components (in components.css)

| Class | What it is |
|---|---|
| `.ns` | Body class: background, font, gray text, clips sideways overflow |
| `.ns-container`, `.ns-narrow`, `.ns-center` | Layout helpers |
| `.ns-section`, `.ns-section--base`, `.ns-glow`, `.ns-rule` | Section spacing, a lifted section with hairlines top and bottom, the top light, a fading divider |
| `.ns-hero-title`, `.ns-h1`, `.ns-h2`, `.ns-h3`, `.ns-dim`, `.ns-lead`, `.ns-eyebrow`, `.ns-mono` | Type; `.ns-dim` grays out part of a headline; the eyebrow has a small amber square |
| `.ns-announce` | Pill link above the hero: "New" tag plus one line |
| `.ns-btn--primary/ghost/amber/text`, `--lg`, `--block` | Pill buttons; primary is near-white |
| `.ns-kbd` | Keyboard key, next to actions and inside buttons |
| `.ns-nav`, `__inner`, `__links`, `__sep`, `.ns-logo` | Sticky blurred nav with a hairline under it |
| `.ns-badge`, `--amber/mint/coral` | Small square-ish labels; tinted when they mean status |
| `.ns-status`, `--progress/ready/late` | 12px status circle: empty, half filled, filled, dashed |
| `.ns-window`, `__bar`, `__body`, `__fade` | The app window with a title bar, sidebar grid and a fade into the page |
| `.ns-sidebar`, `__group`, `__item`, `__count` | App sidebar with icons, groups and mono counts |
| `.ns-list`, `.ns-list__head`, `.ns-row`, `__id/__title/__meta`, `.is-selected` | Dense list rows; the selected row has a 2px amber edge |
| `.ns-grid`, `.ns-feature`, `__icon` | Feature grid with shared hairline borders, no gaps |
| `.ns-card`, `.ns-card--link` | Bordered card on base |
| `.ns-stats`, `.ns-stat__num/__label` | Four big numbers in a row |
| `.ns-logos` | Text wordmarks in gray |
| `.ns-quote` | Large centered testimonial |
| `.ns-toggle` | Segmented pill switch using `aria-pressed` |
| `.ns-plans`, `.ns-plan`, `--featured`, `__name/__price/__text/__list` | Pricing cards; featured has an amber hairline and wash |
| `.ns-table-wrap`, `.ns-table`, `__group`, `__yes/__no` | Comparison table with group rows; scrolls sideways on phones |
| `.ns-faq` | `<details>` list with a mono plus that turns into an x |
| `.ns-meta`, `.ns-author`, `.ns-avatar`, `--lg` | Article metadata and letter avatars |
| `.ns-media` | Bordered 16:8 block with the glow, for drawn covers |
| `.ns-prose` | Article body: headings, lists, links, quote with amber rule, code |
| `.ns-note`, `__icon` | Callout box with an amber icon |
| `.ns-form`, `.ns-field`, `.ns-label`, `.ns-input`, `.ns-select`, `.ns-input-wrap`, `__btn` | Form fields with an amber focus ring |
| `.ns-help`, `.ns-error`, `.ns-field--error` | Helper and error text, error state |
| `.ns-check`, `.ns-divider-text`, `.ns-btn__letter` | Checkbox, "or" divider, letter icon for sign-in buttons |
| `.ns-footer`, `__grid`, `__base` | Footer with link columns |
| `.ns-rise`, `--2`, `--3` | Staggered entrance, respects reduced motion |

## Pages in this kit

- `demo.html`: landing page for Pass, a kitchen ticket system, with the app window, feature grid, ticket board, stats and quote.
- `pricing.html`: billing toggle, three plans with Line featured, comparison table, FAQ and a closing call to action.
- `blog.html`: one Journal article with a drawn cover, prose, note, code, author card and related posts.
- `signup.html`: split screen, brand panel with stacked windows on the left, form on the right.

## Page recipe

1. Sticky nav: logo left, gray links, a hairline separator, "Log in", then a primary pill button.
2. Hero on `.ns-glow`, left aligned: `.ns-announce`, a 2 or 3 line hero title, then a row with the lead on the left and two buttons on the right (primary with a `.ns-kbd`).
3. Directly under it, the full-width `.ns-window` showing the real product: sidebar, list with one selected row, detail panel. It fades into the page at the bottom.
4. A gray line of text and `.ns-logos`.
5. `.ns-section--base`: a two-tone h2 on the left, a lead on the right, then `.ns-grid` of six features.
6. A section that shows the product another way (a board, a timeline, a command menu), with keyboard hints in the copy.
7. `.ns-section--base` with `.ns-stats`, an `.ns-rule`, then `.ns-quote`.
8. Final call to action on `.ns-glow`, centered h1, two buttons. Footer.

## Pricing page recipe

1. Centered hero on `.ns-glow`: eyebrow, h1, lead, `.ns-toggle`.
2. `.ns-plans` with three plans; the middle one is `--featured` with an amber badge and the only primary button.
3. `.ns-section--base` with a heading row and `.ns-table` grouped by `.ns-table__group` rows.
4. FAQ in two columns: heading left, `.ns-faq` right.
5. Closing two-tone h1 and two buttons.

## Article page recipe

1. Header on `.ns-glow`, narrow: eyebrow with the category, h1, `.ns-meta` with author, date and read time.
2. A wide `.ns-media` cover with a drawn product moment (tickets, windows), not a photo.
3. `.ns-prose` at 680px: at most one blockquote and one `.ns-note`; one code block is fine.
4. An `.ns-card` author bio, then three `.ns-card--link` related posts, then the footer.

## Sign-up page recipe

1. Two columns, full height. Left: `.ns-section--base` style panel with the glow, logo, h1, lead, two stacked windows and a short quote.
2. Right: form at most 400px wide, h2, one-line promise, two ghost sign-in buttons with letter icons, `.ns-divider-text`, then fields.
3. Helper text under the password, errors in coral under the field, `.ns-check` for terms, a full-width primary button with a return key hint.
4. Below 860px the columns stack and the windows and quote hide.

## Don'ts

- Don't use bold (700+) headlines or all-caps headings. Weight 500 and tight tracking do the work.
- Don't fill large areas with amber or any accent. Status colors stay small.
- Don't use solid gray borders, drop shadows on cards, or more than one glow per screen.
- Don't use stock photos or 3D illustrations; show the product in a window instead.
- Don't make body text white. Body is gray; white is for headlines and data.
- Don't use em dashes in copy.
