# Frame Shift

Dark, crafted and a little cinematic, like a design canvas at night. Graphite surfaces, tight sans headlines in two tones (a bright first clause, a gray second one), and one italic serif word that slowly cross-fades between options. Thin ornamental line frames with diamond corners hold the important moments, and violet selection boxes with mono dimension labels mark what matters, as if someone just clicked on it. Cream is the only filled button.

Use it for: made-to-measure and craft services, fashion and tailoring, creative tools, studios, booking flows for premium services, anything where precision and handwork are the selling point. Avoid it for: kids, bright consumer apps, finance dashboards that need lots of status color, anything that should feel loud or cheerful.

## 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 Frame 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` (a landing page), `pricing.html`, `blog.html` and `signup.html` are complete example pages built only with the kit, for an invented tailoring service called Hemway.

## Fonts

All free on Google Fonts:

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

| Role | Font | Use |
|---|---|---|
| Headlines and body | Instrument Sans 400 to 600 | Headlines at 500 with tight tracking, body at 400, logo at 600. |
| Accent | Instrument Serif italic 400 | One word or short phrase per screen: the morphing hero word, a pull quote, one phrase in a CTA. Never a whole headline. |
| Mono | JetBrains Mono 400 | Eyebrows, dimension labels, table heads, badges, captions, times. Small and often uppercase with wide tracking. |

## Color

| Token | Hex | Role |
|---|---|---|
| `--fs-night` | #121214 | The page background. Graphite, never pure black |
| `--fs-panel` | #19191C | Cards, windows, quiet sections |
| `--fs-panel-2` | #212125 | Window bars, dark buttons, icon tiles |
| `--fs-line` | #2D2D32 | Every border and divider |
| `--fs-text` | #EEECE6 | Headlines and body text, a warm off-white |
| `--fs-dim` | #8C8B92 | The second tone of every headline, leads, secondary text |
| `--fs-cream` | #F3EEE0 | The one filled button, with a soft top-to-bottom sheen |
| `--fs-violet` | #7B6CF2 | Selection boxes and handles, active tab, focus rings, bullets |
| `--fs-ornament` | #6A6456 | Ornament frames and rules, always 1px |

Rules:
- Graphite is the default. Use `--fs-panel` for every second or third section, with hairline borders top and bottom.
- Violet means "selected". Use it for selection boxes, the active tab, focus and small diamond bullets. Never as a background fill bigger than a chip.
- Cream appears once per screen at most: the main button.
- The only gradients are the cream button sheen and the faint violet glow at the top of a hero or CTA panel.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--fs-text-hero` | clamp(44px, 7.2vw, 92px) | Hero headline, centered, tracking -0.045em, line-height 1 |
| `--fs-text-h2` | clamp(32px, 4.4vw, 54px) | Section headings, tracking -0.035em |
| `--fs-text-h3` | 22px | Card and step titles |
| `--fs-text-lead` | 19px | The sentence under a headline, dim, max 580px |
| `--fs-text-body` | 16px | Body |
| `--fs-text-micro` | 11px | Mono labels and eyebrows |

Headlines come in two tones: say the plain fact in `--fs-text`, then add the turn in `.fs-dim` ("Pay for the cloth. Keep the pattern."). Sentence case, short, no exclamation marks.

## Shape and space

- Borders: 1px everywhere. Ornament frames are a double hairline: outer in `--fs-ornament`, inner in `--fs-line-2`.
- Radius: small. 6px on buttons and inputs, 10px on cards and windows, 3px on badges and labels. Never pills.
- Shadows: almost none. Only windows get `--fs-shadow`, a deep soft drop. No hard offsets, no glows on cards.
- The canvas: product shots sit on a dot grid (`.fs-canvas`), with violet selection boxes on the parts worth noticing.
- Sections: 72px to 136px vertical padding. Container 1120px, text blocks 720px.
- Motion: one slow thing per page, the morphing word (9s loop, blur cross-fade). Respect reduced motion.

## Components (in components.css)

- `.fs` on `<body>`: base font, colors and box sizing.
- `.fs-strip`: thin promo strip above the nav.
- `.fs-nav`, `.fs-logo` (with `.fs-logo__mark`, a diamond), `.fs-nav__links`, `.fs-nav__actions`.
- `.fs-btn` with `--primary` (cream sheen), `--dark`, `--ghost`, `--sm`, `--block`. `.fs-actions` for a row.
- `.fs-hero-title`, `.fs-h2`, `.fs-h3`, `.fs-dim`, `.fs-italic`, `.fs-lead`, `.fs-eyebrow` (mono with a violet diamond), `.fs-note`.
- `.fs-morph`: put three `<span>` words inside; they cross-fade in turn.
- `.fs-frame` with `.fs-frame__inner` and `<i class="fs-frame__c fs-frame__c--tl">` corners (`tl tr bl br t b`): the ornament frame.
- `.fs-rule` with two `<i>`: a hairline with diamonds at the ends and the middle.
- `.fs-select` with `<b></b>` and `.fs-select__label`: an absolutely placed violet selection box with four handles and a dimension label.
- `.fs-window`, `.fs-window__bar`, `.fs-window__tabs`, `.fs-side`, `.fs-side__item`, `.fs-canvas`: the canvas app chrome.
- `.fs-grid--2`, `.fs-grid--3`, `.fs-card`, `.fs-card__icon`, `.fs-badge` (`--violet`, `--live`), `.fs-logos`, `.fs-steps`.
- Forms: `.fs-field`, `.fs-label`, `.fs-input`, `.fs-select-input`, `.fs-hint`, `.fs-check`, `.fs-or`, `.fs-segment`.
- Pricing: `.fs-price` (`--featured` gets a violet outline), `.fs-price__amount`, `.fs-table`, `.fs-faq`.
- Article: `.fs-article`, `.fs-meta`, `.fs-avatar`, `.fs-figure`.
- `.fs-footer` with `.fs-footer__grid` and `.fs-footer__base`.

## Pages in this kit

- `demo.html`: landing page. Promo strip, nav, centered hero with a morphing word, an ornament rule, the fitting-board window with selection boxes, a two-tone section head over three cards, a panel section with numbered steps, and a framed CTA.
- `pricing.html`: two-tone hero, a segmented toggle, three plans (the middle one featured), a comparison table and an FAQ.
- `blog.html`: a journal post with a framed diagram of selection boxes, a serif pull quote and related cards.
- `signup.html`: split screen. A glowing panel with a framed time-slot picker on the left, the booking form on the right.

## Page recipe

1. Optional `.fs-strip`, then `.fs-nav`.
2. Hero: mono eyebrow, a hero title with a `.fs-morph` word or a `.fs-dim` second clause, a dim lead, a cream button plus a dark button.
3. An `.fs-rule`, then the product on a `.fs-canvas` inside a `.fs-window`, with one or two `.fs-select` boxes.
4. Two-tone section head, then three `.fs-card`s.
5. A `.fs-section--panel` with steps or a split layout.
6. A `.fs-frame` CTA with all six corners, the glow inside.
7. `.fs-footer`.

Pricing recipe: centered two-tone title, `.fs-segment` toggle, three `.fs-price` cards with the middle `--featured` and a violet badge above it, then a rule, an `.fs-table` and an `.fs-faq` in a panel section.

Article recipe: `.fs-narrow` header with eyebrow, two-tone title and `.fs-meta`; `.fs-article` body at 18px; one `.fs-figure` in a frame; one serif `blockquote`; end with a rule and two related cards.

Sign-up recipe: two columns. The left one is a `.fs-panel` with the glow, a two-tone headline and a framed preview of what you get. The right one is a form of at most six fields, a dark alternate button, an `.fs-or` divider and one cream submit.

## Don'ts

- Don't use pure black or pure white surfaces.
- Don't make whole headlines italic or serif. One phrase at most.
- Don't use violet as decoration. If it isn't selected, focused or a bullet, it isn't violet.
- Don't round buttons into pills or add colored shadows to cards.
- Don't put more than one ornament frame per screen. It's a frame for the moment that matters.
- Don't animate more than the morphing word.
- No em dashes in copy.
