# Sun Dapple

Warm afternoon light through leaves. The hero is a full-bleed field of honey sunlight with soft, blurred leaf shadows drifting across it. A huge white swash serif wordmark sits in the light, a frosted cream app window floats over its lower half, and a white dome rises from the bottom of the hero to hold one black pill button. Below the fold the page turns quiet: warm paper, ink text, a calm sans for reading and honey only as a highlight. It feels like the first warm day of the year, slow and a little cinematic.

Use it for: hospitality and small hotels, retreats and wellness, travel and experiences, booking services, gentle consumer apps, memberships and anything that wants to feel unhurried and golden. Avoid it for: developer tools, dense dashboards, finance or security products, nightlife and anything that needs to feel cold, technical or urgent.

## 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 Sun Dapple 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 a made-up lakeside retreat called Halcyon House.

## Fonts

All free on Google Fonts:

```html
<link href="https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,SOFT,WONK@0,9..144,300..600,0..100,0..1;1,9..144,300..600,0..100,0..1&family=Figtree:wght@400;500;600;700&display=swap" rel="stylesheet">
```

| Role | Font | Use |
|---|---|---|
| Wordmark and headlines | Fraunces 300 to 450, with `SOFT 100` and `WONK 1` | The giant italic wordmark, hero lines, section headings, prices, times, quotes. Sentence case. Italic for one or two words per headline. |
| Body and UI | Figtree 400 to 600 | Paragraphs, nav, buttons, labels, forms, tables. |

Always apply `font-variation-settings: var(--sd-serif-feel)` to Fraunces. The soft, wonky axes are what give the serif its rounded, swashy warmth. Never set the serif in bold or in all caps.

## Color

| Token | Hex | Role |
|---|---|---|
| `--sd-paper` | #FFFCF4 | The main page background, the dome, cards on cream |
| `--sd-cream` | #FBF4E0 | Alternate sections, the footer, quiet cards, table heads |
| `--sd-linen` | #F4EAD0 | A deeper quiet panel when you need a third surface |
| `--sd-line` | #E9DDBC | Borders and dividers |
| `--sd-sun` | #F3BB2E | The sunlight: sun fields, dots, open FAQ, chips, highlights |
| `--sd-sun-light` | #F9D467 | Bright spots in the sun field, stats on ink |
| `--sd-sun-pale` | #FCEBB4 | Badges, the `.sd-glow` highlighter, callouts, focus halo |
| `--sd-amber` | #D8901C | The deep end of the sun gradient, the sun disc, focus ring |
| `--sd-amber-deep` | #A86512 | Labels, times, "yes" cells. The only honey that may be text on paper |
| `--sd-ink` | #231C10 | Text, the one black pill button, the ink section |
| `--sd-soft` | #75694F | Leads and secondary text |
| `--sd-sage`, `--sd-clay` | #8AA071, #D3784F | Window dots only |
| `--sd-alert` | #B5401F | Form errors only |

Rules:
- One sun field at the top of the page (the hero) and at most one more as a band near the end. Cards and covers may hold a small sun field as their "photo".
- On the sun, text is paper white and buttons are ink. Never put honey text on the sun or on paper (use `--sd-amber-deep` for small labels).
- The main action is always the black ink pill. Honey is light, not a button color; `.sd-btn--sun` exists for rare secondary use on ink.
- Gradients live only inside `.sd-sun`, the sun disc, the featured plan and chart bars.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--sd-text-mark` | clamp(84px, 22vw, 330px) | The italic wordmark in the hero, one word only |
| `--sd-text-hero` | clamp(40px, 5.6vw, 80px) | Page headlines |
| `--sd-text-h2` | clamp(34px, 4.2vw, 58px) | Section headings |
| `--sd-text-h3` | 24px | Card and window titles |
| `--sd-text-lead` | 20px | The sentence under a headline, max 560px |
| `--sd-text-body` | 17px | Body; article prose is 18px |
| `--sd-text-label` | 13px | Labels with a small sun dot |

Headlines are calm, in sentence case, with one italic word: "Every room faces the *morning* light". Use `.sd-glow` (a pale honey highlighter) on at most one phrase per page.

## Shape and space

- Radius: 32px on plans and covers, 20px on cards and windows, 14px on the nav pill, inputs' parents and callouts, 10px on inputs, pills on buttons, badges, chips and toggles.
- Glass: windows, the nav pill on the sun and the featured plan's inner card use `--sd-glass` with `backdrop-filter: blur()` and a 1px white edge.
- Shadows: `--sd-shadow-window` (big, warm, soft) on floating windows and the featured plan; `--sd-shadow-soft` on the nav pill, the ask bar and the pressed toggle. Everything else is flat.
- The dome: a white half-ellipse (`border-radius: 50% 50% 0 0 / 90px 90px 0 0`) that overlaps the bottom of the hero window by 90px.
- Sections: 72px to 128px vertical padding. Container 1200px, text column 720px.
- Motion: the leaf shadows drift slowly, the hero lines rise in. Both stop for reduced motion.

## Components (in components.css)

| Class | What it is |
|---|---|
| `.sd`, `.sd-container`, `.sd-narrow`, `.sd-center` | Body class and layout wrappers |
| `.sd-section`, `--cream/linen/ink` | Section surfaces |
| `.sd-display`, `.sd-h2`, `.sd-h3`, `.sd-lead`, `.sd-label`, `.sd-glow`, `.sd-note` | Type |
| `.sd-nav`, `--on-paper`, `__pill`, `__hide`, `.sd-logo` | A small centered frosted pill nav; solid cream on paper pages |
| `.sd-btn--ink/sun/glass/outline`, `--sm/--lg/--block`, `.sd-link`, `.sd-actions` | Pill buttons and an underlined honey link |
| `.sd-sun`, `__leaves`, `__leaves--b`, `--band` | The honey sunlight field with drifting leaf shadows. Use two leaves layers for depth |
| `.sd-hero`, `__tagline`, `__stage`, `.sd-wordmark` | The hero: serif tagline, giant italic wordmark, the stage that pulls the window up over it |
| `.sd-dome`, `--wide` | The white dome rising from the bottom of the hero |
| `.sd-window`, `__bar/__dot/__title/__body/__side/__item/__item--on/__swatch/__main` | A frosted app window with three soft dots and a sidebar |
| `.sd-ask` | An ask or search bar for inside a window |
| `.sd-disc`, `--sm` | A small glowing sun, the kit's one drawn mark |
| `.sd-grid-2/3/4`, `.sd-head` | Grids and a section head |
| `.sd-card`, `--cream`, `__art/__title/__text/__meta` | Cards with a small sun field as their picture |
| `.sd-badge`, `--ink/glass/line` | Small pills |
| `.sd-day` | A timeline of the day with italic serif times |
| `.sd-stats`, `.sd-stat` | Big light serif numbers on ink |
| `.sd-quote`, `.sd-avatar` | Italic serif quote and a sun-gradient initials avatar |
| `.sd-segment` | Pill toggle on cream |
| `.sd-plans`, `.sd-plan`, `--featured`, `__inner/__top/__name/__price/__desc/__list` | Pricing cards; the featured one is a glass card set in a frame of sunlight |
| `.sd-table-wrap`, `.sd-table`, `__yes/__no` | Comparison table |
| `.sd-faq` | `<details>` FAQ; the plus turns honey when open |
| `.sd-meta`, `.sd-author`, `--card`, `.sd-cover`, `.sd-prose`, `.sd-callout`, `.sd-figure`, `.sd-bars`, `.sd-bar` | Article parts |
| `.sd-form`, `.sd-row-2`, `.sd-field`, `.sd-field-label`, `.sd-input`, `.sd-select`, `.sd-input-wrap`, `.sd-input-toggle` | Form fields with a honey focus halo |
| `.sd-help`, `.sd-error`, `.sd-field--error`, `.sd-chips`, `.sd-chip`, `.sd-check`, `.sd-divider-text` | Form helpers |
| `.sd-footer`, `__cols/__bottom/__mark`, `.sd-subscribe` | Cream footer with a pale italic wordmark sinking off the bottom |
| `.sd-rise`, `--2/--3` | Entrance animation |

## Pages in this kit

- `demo.html`: landing page (sun hero with frosted nav, tagline, wordmark, booking window and dome, room cards, a day timeline, ink section with a quote and stats, a sun band call to action, footer).
- `pricing.html`: three stays with a season toggle, a comparison table, FAQ and a sun band.
- `blog.html`: a journal article with a sun cover, prose, a quote, a bar chart, a callout, an author card and related posts.
- `signup.html`: a split booking form on paper beside a sun panel with a guest-book window and the wordmark.

## Page recipe

1. A `.sd-sun.sd-hero` with two `__leaves` layers, the frosted `.sd-nav`, a one-line serif `__tagline`, the italic `.sd-wordmark` (the product name, one word).
2. `.sd-hero__stage` holding one `.sd-window`: a sidebar of items and a main area with a `.sd-disc`, a question in `.sd-h3` and an `.sd-ask`.
3. `.sd-dome--wide` with one large ink pill and an `.sd-note`.
4. A centered head and three `.sd-card--cream` cards with sun art.
5. A cream split section: h2 with `.sd-glow`, lead, outline button and link, next to `.sd-day`.
6. An ink section with a quote and two stats.
7. A `.sd-sun--band` with a display headline, ink and glass buttons, then the footer.

## Pricing page recipe

1. `.sd-nav--on-paper`, then a centered label, display headline with an italic phrase, lead and `.sd-segment`. Keep prices in `data-*` attributes and swap them with a few lines of JS.
2. Three plans: paper, featured (`.sd-plan--featured` with a `.sd-plan__inner` glass card and the only ink button), paper with outline buttons.
3. A cream section with the comparison table, a paper section with the FAQ beside a heading, and a sun band.

## Article page recipe

1. Meta line with a badge, display title at a smaller clamp, lead and byline over a hairline.
2. A wide `.sd-cover.sd-sun` with a glass badge and a simple drawn scene in inline SVG (circle sun, water lines, one object).
3. `.sd-prose`: short paragraphs, serif h2s, sun-dot bullets, one italic blockquote with a honey rule, one `.sd-figure` chart, one `.sd-callout`.
4. `.sd-author--card`, then three linked cards on cream and the footer.

## Sign-up page recipe

1. Two columns. Left on paper: logo and a step badge, display headline, lead, then the form.
2. Two-up names, email, password with a show toggle, a select, chips for a quick choice, a checkbox, a block ink button, "or" and an outline button.
3. Errors use `.sd-field--error` and `.sd-error`; hints use `.sd-help`.
4. Right column: a rounded `.sd-sun` panel inset 16px with a floating window holding a quote, and the wordmark at the bottom. Hide it below 900px.

## Don'ts

- Don't use honey as a button color or as text on paper; the action is always the ink pill.
- Don't put more than two sun fields on a page (cards and covers excepted), and never a dark hero.
- Don't set the serif in bold, all caps or without the soft axes.
- Don't add hard shadows, sharp corners or thick borders. Light is soft here.
- Don't use photos; the sun field and a drawn disc stand in for them.
- Don't use em dashes in copy.
