# Build Prompt: Half Light Coffee

## Brief

Implement the following product as a runnable front-end experience:

- **Project**: Half Light Coffee
- **Summary**: A seven-route specialty coffee site: a packing-table roastery overview, a filterable six-lot shelf, a full Kinglet dossier, an interactive brew guide, a process-and-transparency page, an editorial journal, and a local-only subscription comparison. Demo only, no payment.
- **User request**: 做一个精品咖啡烘焙品牌网站，能浏览咖啡豆、看单支豆子的风味与冲煮建议、加入订阅购物袋，并有一页真正可用的冲煮指南。
- **Interface language**: en
- **Primary job**: Browse coffee lots, understand a lot, build a subscription bag, and follow a brew recipe
- **Audience**: Home brewers and curious coffee drinkers

Implement only the complete experience implied by the request. Clearly label demo data as demo data; when no real backend exists, keep submissions in the local session only and never fake a server success.

## Confidence and Direction

- **Confidence**: level `high`, score `0.93`; dimensions: subject: explicit; product_form: explicit; audience: inferred; primary_job: explicit; core_objects: explicit; state_model: assumed; constraints: explicit.
- **Reversible assumptions**: Bag and brew timer are local demos; no payment or order is sent.
- **Selected direction**: Product Pedestal × Warm Editorial
- **Design thesis**: Use the “asymmetric pedestal with spec fragments orbiting the object” silhouette to carry Menu Ledger, with the primary content set as the operable main object, then unify type, material, and state feedback through Warm Editorial.
- **Tradeoff**: Limit decorative treatments so the structural pattern serves the visitor's task.
- **Negative-pattern risk**: None recorded.

If implementation reveals a conflict between assumptions and content, preserve the information architecture and accessibility, fix the local composition first, and do not replace it with a generic marketing template.

## Information Architecture

### Roastery story

- Purpose: Introduce the brand through current lots, the roast room, and a brew-bar preview.
- Content objects: coffee lot, roast curve, brew method
- Available actions: browse, read, choose
- Priority: primary

### Coffee catalog

- Purpose: Compare six lots by roast level and brew method and add bags without a generic product grid.
- Content objects: coffee lot, roast level, price, stock
- Available actions: filter, compare, add
- Priority: primary

### Lot dossier

- Purpose: Explain one coffee through farm facts, flavor, roast curve, recipes, producer notes, and a journal path.
- Content objects: producer, tasting note, roast phase, brew recipe
- Available actions: read, switch recipe, add
- Priority: primary

### Brew guide

- Purpose: Provide a working method chooser, timer, ratio calculator, and troubleshooting path.
- Content objects: method, recipe, step, timer, ratio
- Available actions: choose, start timer, calculate
- Priority: primary

### Process and transparency

- Purpose: Explain roast-day decisions, green buying, traceability, cupping, and the demo boundary.
- Content objects: roast batch, producer, traceability record, cupping score
- Available actions: follow process, compare records, read boundary
- Priority: primary

### Field journal

- Purpose: Keep a filterable editorial record of producer stories, roast logs, and tasting language into the cup.
- Content objects: field note, roast log, producer, tasting note
- Available actions: filter, read, open lot
- Priority: primary

### Subscription comparison

- Purpose: Compare local-only cadence plans, select or pause one, and see an honest browser state without checkout.
- Content objects: plan, cadence, pause rule, local state
- Available actions: compare, select, pause
- Priority: primary

### Bag and subscription state

- Purpose: Keep added lots, quantities, and subscription cadence consistent across routes.
- Content objects: bag line, quantity, subscription, subtotal
- Available actions: add, change, remove, reset
- Priority: support

## Layout and Composition

### Spatial Composition

- **Fingerprints**: tf-218, tf-275, tf-076
- **Composition family**: product-pedestal
- **Composition signature**: product-pedestal / roastery packing table / floating label fragments / one oversized coffee bag
- **Silhouette**: an asymmetric warm pedestal holds one oversized coffee bag while three smaller bags stack behind it and die-cut label fragments orbit the group
- **Anchor object**: the oversized Kinglet bag and its die-cut tasting label
- **Spatial system**: one continuous packing table from current lot to subscription ticket; the catalog turns the table into a shelf and the product page turns it into a vertical dossier
- **Overlap strategy**: the subscription ticket overlaps the pedestal; a tasting label crosses the bag edge; the roast curve cuts through the product fact column
- **Depth strategy**: shallow paper layers, one lifted bag, stamped labels, and no glossy product-card shadow
- **Shape grammar**: die-cut bag gussets, circular stamps, torn label edges, recipe-ticket perforation, and one thick diagonal shelf
- **Material transitions**: toasted paper to kraft bag to espresso ink to vermilion stamp to butter label
- **Visual motifs**: coffee bag, die-cut label, roast curve, recipe ticket, stamp, shelf line
- **Motion composition**: a short label settle on add-to-bag; the brew timer updates text without ambient motion; reduced motion removes settles, transforms, and transitions

### Structural Breaks

- the subscription ticket overlaps the pedestal and clips the page edge
- a tasting label crosses the bag silhouette rather than sitting under it
- the roast curve cuts through the product page fact column

### Layout Rules

- **Opening**: The home page opens on a warm packing table: one bag of Kinglet sits on an asymmetric pedestal, three smaller bags stack behind it, and die-cut label fragments orbit the group with live price and tasting notes.
- **Primary reading axis**: A diagonal packing table runs from the current lot through the shelf and dossier, then forks into a brew counter, a vertical roast ledger, an editorial column, and a cadence comparison.
- **Navigation**: Every route shares a seven-link masthead and footer. Home is a packing table, coffee is a working shelf, Kinglet is a lot dossier, brew is an interactive recipe card, roastery is a process ledger, journal is a field-note index, and subscriptions is a cadence comparison; no page is a renamed copy.
- **Rhythm**: One oversized bag, a burst of label type, a dense fact strip, then a quiet brew note; no repeated equal product cards.
- **Counterpoint**: The subscription ticket overlaps the pedestal and clips the right edge; the roast curve cuts through the dossier; the production ledger breaks into a full-bleed roast-day strip; the journal uses a narrow editorial spine against wide producer evidence.
- **Regions**:
- `region`: brand, seven routes, bag count; priority —.
- `region`: current lot, bag stack, live notes; priority —.
- `region`: six lots, filters, add actions; priority —.
- `region`: facts, flavor, roast curve, recipes; priority —.
- `region`: method, timer, ratio, troubleshooting; priority —.
- `region`: phases, buying rules, traceability, cupping; priority —.
- `region`: topics, producer story, roast log, tasting vocabulary; priority —.
- `region`: plans, local selection, skip rules, honest state; priority —.

The visual fingerprint must enter the DOM structure and geometry, not just the color scheme:

1. Implement the silhouette and anchor object first, then place the title, filters, and actions; do not build a generic grid and decorate it afterward.
2. Let at least one real content object span columns, break its container, clip, or overlap; that behavior must carry information or interaction, not serve as background decoration.
3. The primary task must not be carried entirely by an equal-width card grid or a conventional table; list and catalog structures must use a reading pattern consistent with the composition signature (tracks, folded sheets, specimen racks, routes, floating islands, and so on).
4. Uniform radii, uniform shadows, recoloring, or gradients do not achieve a non-rectangular composition. If the main structure is still a rectangular sidebar + table + card form, the contract is not met.
5. Mobile must recompose the spatial relationships, not simply stack the desktop columns into one rectangular column.

Do not implement the layout as a generic header + hero + three feature cards. Regions must have real content and task relationships.

## Visual Direction

- **Visual concept**: A roastery packing table where every coffee is a stamped paper bag with a die-cut label, and every recipe is a ticket pinned to the same table.
- **Shape language**: Die-cut bag gussets, circular stamps, torn label edges, recipe-ticket perforation, one thick diagonal shelf, and a clipped subscription ticket.
- **Imagery strategy**: No stock coffee photography. Original CSS gradients and inline SVG only: bag silhouettes, label shapes, roast curves, steam marks, and recipe tickets.
- **Motion strategy**: A 160ms label settle on add, a 120ms method change, and a text-only brew timer; reduced motion removes settles, transforms, and transitions.
- **Color constraints**: cream: #F2E7D3 — page field, paper labels, and quiet reading space; espresso: #2A1A12 — primary ink, bag silhouettes, and dark surfaces; vermilion: #CE4A2B — stamps, active filters, and add-to-bag emphasis; butter: #F0C24F — current-lot labels and highlight bands; sage: #87977A — origin notes and secondary metadata; kraft: #B98A5D — bag gussets, rules, and shelf shadows
- **Typography constraints**: display: Fraunces / Georgia, 52–126px, soft chunky serif for lot names and roastery statements; body: Avenir Next / system sans, 16–18px, clear recipe and story reading; meta: SFMono-Regular / Menlo, 10–12px, uppercase for origin, process, dose, and timer labels

The visual direction must hold through type, material, scale, and one thematic metaphor; do not place every item in the same rounded glass card, and do not use color as the only state signal.

## Content Model

- **Voice**: Warm, specific, and a little dry. Name the farm, the process, the brew variable, and the taste; never use generic craft-brand poetry or fake scarcity.
- **Demo-data note**: All coffees, farms, prices, reviews, and roast dates are fictional demonstrations. The bag and subscription are stored in this browser only; no payment, order, or delivery is created.
- **Content objects**:
- `lot-kinglet` (coffee lot) — name: Kinglet; origin: Huila, Colombia; producer: Finca La Paloma; process: Washed; altitude: 1,780 m; roast level: Light; tasting notes: Apricot, brown sugar, black tea; price: £16.50 / 250 g; stock: Roasted 26 Nov 2026
- `lot-moth` (coffee lot) — name: Moth; origin: Yirgacheffe, Ethiopia; producer: Aricha washing station; process: Natural; altitude: 2,050 m; roast level: Light; tasting notes: Blueberry, jasmine, cane sugar; price: £18.00 / 250 g; stock: Roasted 26 Nov 2026
- `recipe-v60` (brew recipe) — method: V60; dose: 15 g; water: 250 g; temperature: 94°C; grind: Medium-fine; total time: 2:45
- `subscription-fortnightly` (subscription cadence) — cadence: Every two weeks; bean choice: Roaster's choice; price: £15.50 / bag; pause rule: Pause or skip any delivery before the roast date

### Content Inventory

These counts are build minimums, not decoration suggestions. Catalog, detail, and task pages must reuse the same content entities instead of inventing unrelated token samples on each page.

| Entity | Type | Minimum examples | Required fields |
|---|---|---:|---|
| `lots` | coffee lot | 6 | name / origin / producer / process / altitude / roast level / tasting notes / price / stock |
| `recipes` | brew recipe | 8 | method / coffee / dose / water / temperature / grind / total time / steps |
| `brew-steps` | brew step | 16 | method / order / target time / instruction |
| `reviews` | drinker note | 6 | name / method / note / rating |
| `subscriptions` | subscription cadence | 4 | cadence / bean choice / price / pause rule / local state |
| `journal` | roastery journal note | 6 | title / date / topic / body / related lot |
| `roast-logs` | roast log | 5 | batch / charge / first crack / development / drop / next adjustment |
| `producers` | producer record | 4 | name / farm / region / relationship / harvest note |
| `traceability` | traceability record | 6 | lot / producer / process / altitude / roast date / rest window |

All user-facing copy, data, images, graphics, and illustrations must be original or explicitly licensed. Do not copy any template's source copy, brand, distinctive layout, palette, or assets.

## Stack and Variables

- **Stack**: Static HTML5, CSS, and vanilla JavaScript; no external runtime, fonts, or image assets
- **Suggested files**: site/index.html, site/coffee/index.html, site/coffee/kinglet/index.html, site/brew/index.html, site/roastery/index.html, site/journal/index.html, site/subscriptions/index.html, site/styles.css, site/app.js
- **Build/run**: No build step. Serve the site/ directory over HTTP with python3 -m http.server.
- **Replaceable variables**:
- `[ROASTERY_NAME]`: Displayed coffee brand; default: Half Light Coffee
- `[BAG_KEY]`: localStorage key for the local bag; default: halflight.bag.v1
- `[BREW_KEY]`: localStorage key for the selected brew method; default: halflight.brew.v1

Manage color, type, spacing, radii, and motion duration with centralized tokens (CSS custom properties or an equivalent mechanism). Use semantic variable names; do not scatter magic numbers.

## Pages and Sections

This is a complete standard **7-route connected site** within the default 6-8 route range. Every page needs at least four substantive sections; long-scroll story, guide, and editorial pages need at least six. It is not one landing page with in-page anchors. Build every route in the table; each section needs real content objects, a clear purpose, and executable actions. A single long home page, a mobile view, a modal, or a state layer does not replace the other routes.

| Page | Route | Role | Sections | Links |
|---|---|---|---:|---|
| Half Light — Coffee for the in-between hours | `/` | brand orientation | 5 | Coffee — Six lots, roasted small, Kinglet — A washed coffee from Huila, Brew — A recipe you can actually follow, Roastery — Process, provenance, and proof, Subscriptions — Choose a rhythm, not a contract |
| Coffee — Six lots, roasted small | `/coffee/` | filterable catalog | 5 | Half Light — Coffee for the in-between hours, Kinglet — A washed coffee from Huila, Brew — A recipe you can actually follow, Subscriptions — Choose a rhythm, not a contract |
| Kinglet — A washed coffee from Huila | `/coffee/kinglet/` | coffee lot dossier | 5 | Half Light — Coffee for the in-between hours, Coffee — Six lots, roasted small, Brew — A recipe you can actually follow, Roastery — Process, provenance, and proof, Journal — Field notes from the roast room |
| Brew — A recipe you can actually follow | `/brew/` | interactive brew guide | 5 | Half Light — Coffee for the in-between hours, Coffee — Six lots, roasted small, Kinglet — A washed coffee from Huila, Roastery — Process, provenance, and proof |
| Roastery — Process, provenance, and proof | `/roastery/` | process and transparency | 6 | Half Light — Coffee for the in-between hours, Coffee — Six lots, roasted small, Kinglet — A washed coffee from Huila, Brew — A recipe you can actually follow, Journal — Field notes from the roast room |
| Journal — Field notes from the roast room | `/journal/` | editorial journal | 6 | Half Light — Coffee for the in-between hours, Coffee — Six lots, roasted small, Kinglet — A washed coffee from Huila, Brew — A recipe you can actually follow, Roastery — Process, provenance, and proof |
| Subscriptions — Choose a rhythm, not a contract | `/subscriptions/` | subscription comparison | 6 | Half Light — Coffee for the in-between hours, Coffee — Six lots, roasted small, Kinglet — A washed coffee from Huila, Brew — A recipe you can actually follow |

### Shared Shell

- Shared masthead with brand, seven routes, bag count, and a local-demo badge on every page.
- Shared footer with roast dates, the same seven-route navigation, and an explicit demo-data notice.
- Shared packing-table tokens: cream paper, espresso ink, vermilion stamps, butter labels, sage origin notes, and kraft rules.

Every page reuses the same header, primary navigation, footer, and demo-data notice. The current page must have a perceptible selected navigation state, and mobile navigation must reach every page rather than only returning home.

### Page-by-Page Contract

### P1 — Half Light — Coffee for the in-between hours (`/`)

- **Navigation label**: Home
- **Page role**: brand orientation
- **Purpose**: Orient a new visitor through the current lot pedestal, roastery approach, brew preview, and a subscription invitation that carries into the full catalog.
- **Required sections**:
  - `roastery-opening` **Coffee for the in-between hours** (primary) — Open on a stacked bag table with one current lot, its tasting notes, and a live bag count rather than a generic ecommerce hero. Content: coffee lot / bag / tasting note / bag count. Actions: open coffee catalog / add current lot / open brew guide.
  - `current-lots` **Three lots on the table** (primary) — Show three coffees with different roast levels and brew intentions, each with a die-cut label and an add-to-bag action. Content: coffee lot / origin / roast level / tasting note / price. Actions: compare lots / add to bag / open lot.
  - `roast-room` **The roast room** (primary) — Explain the roastery's light, seasonal approach with a real roast curve and three decisions behind it. Content: roast curve / phase / decision / roaster note. Actions: read curve / open lot.
  - `brew-bar` **The brew bar** (support) — Preview four brew methods and carry the chosen method into the full brew guide. Content: brew method / recipe / ratio / time. Actions: choose method / open brew guide.
  - `subscription` **A bag that arrives before you run out** (support) — Offer four cadences with clear bean choice, pause rules, and a local demo subscription, without pretending to charge a card. Content: subscription cadence / bean choice / pause rule / price. Actions: choose cadence / add subscription / read terms.
- **Links to**: Coffee — Six lots, roasted small, Kinglet — A washed coffee from Huila, Brew — A recipe you can actually follow, Roastery — Process, provenance, and proof, Subscriptions — Choose a rhythm, not a contract

### P2 — Coffee — Six lots, roasted small (`/coffee/`)

- **Navigation label**: Coffee
- **Page role**: filterable catalog
- **Purpose**: Let a drinker compare six lots by roast level and brew method, add bags, open the fullest lot page, and manage the local bag.
- **Required sections**:
  - `catalog-opening` **Six lots on the shelf** (primary) — Set the current lot count and expose roast-level and brew-method filters as a working shelf, not a product-card grid. Content: coffee lot / roast level / brew method / visible count. Actions: filter roast / filter brew / clear filters.
  - `coffee-shelf` **The coffee shelf** (primary) — Present six lots as staggered shelf rows with die-cut bag art, origin, notes, price, and a direct add action. Content: coffee lot / origin / process / tasting note / price / stock. Actions: add to bag / open lot / compare.
  - `tasting-key` **Tasting key** (support) — Explain the five flavor families used on every label so the notes are comparable rather than decorative. Content: flavor family / descriptor / example lot. Actions: read key / filter by flavor.
  - `roast-calendar` **Roast calendar** (support) — Show the next four roast dates and which lots are on the drum. Content: roast date / lot / availability. Actions: read calendar / add lot.
  - `bag-tray` **Your bag** (primary) — Show every added lot or subscription with quantity, remove, subtotal, and a clear local-demo boundary. Content: bag line / quantity / subtotal / demo note. Actions: change quantity / remove line / empty bag.
- **Links to**: Half Light — Coffee for the in-between hours, Kinglet — A washed coffee from Huila, Brew — A recipe you can actually follow, Subscriptions — Choose a rhythm, not a contract

### P3 — Kinglet — A washed coffee from Huila (`/coffee/kinglet/`)

- **Navigation label**: Kinglet
- **Page role**: coffee lot dossier
- **Purpose**: Give one coffee the depth of a lot dossier: farm facts, flavor story, roast curve, three brew recipes, and the producer note that connects it to the journal.
- **Required sections**:
  - `lot-opening` **Kinglet, washed, Huila** (primary) — Open on the bag and the facts a buyer needs: producer, altitude, process, roast level, price, and stock. Content: coffee lot / producer / altitude / process / roast level / price. Actions: add to bag / add subscription / choose grind.
  - `flavor-story` **Apricot, brown sugar, a long finish** (primary) — Describe the cup in four intensity notes and two short paragraphs tied to the farm and the roast. Content: tasting note / intensity / producer story / roast decision. Actions: read story / open roast curve.
  - `roast-profile` **The curve behind the cup** (primary) — Show the roast curve with charge, first crack, development, and drop, plus three decisions the roaster made. Content: roast phase / temperature / time / roaster note. Actions: read curve / open brew recipes.
  - `brew-recipes` **Three recipes for this lot** (primary) — Switch between V60, espresso, and French press recipes with dose, water, temperature, grind, and steps. Content: brew recipe / dose / water / temperature / grind / step. Actions: switch recipe / open brew guide.
  - `field-notes` **Producer and drinker notes** (support) — Add a producer note and three short drinker notes that mention actual brew variables. Content: producer note / drinker note / brew method. Actions: read note / add to bag.
- **Links to**: Half Light — Coffee for the in-between hours, Coffee — Six lots, roasted small, Brew — A recipe you can actually follow, Roastery — Process, provenance, and proof, Journal — Field notes from the roast room

### P4 — Brew — A recipe you can actually follow (`/brew/`)

- **Navigation label**: Brew
- **Page role**: interactive brew guide
- **Purpose**: Give the visitor a working method chooser, step timer, ratio calculator, troubleshooting notes, and paths back to a coffee lot and the roast-room method.
- **Required sections**:
  - `brew-opening` **Pick a method, get a recipe** (primary) — Switch between four methods and show a complete recipe with dose, water, temperature, grind, and total time. Content: brew method / recipe / dose / water / temperature / grind. Actions: choose method / open lot.
  - `step-timer` **A timer with a job** (primary) — Run a real start/pause/reset timer that highlights the current brew step and announces the next one. Content: timer / brew step / target time / status. Actions: start timer / pause timer / reset timer.
  - `ratio-calculator` **Scale the recipe** (primary) — Calculate water from dose and ratio, with a clear result and a reset to the selected recipe. Content: dose / ratio / water result / grind note. Actions: change dose / change ratio / reset recipe.
  - `troubleshooting` **When the cup is not right** (support) — Map four common taste problems to grind, temperature, ratio, and time changes. Content: taste problem / cause / adjustment / related method. Actions: read fix / open method.
  - `method-notes` **Four methods, four jobs** (support) — Explain when to choose V60, AeroPress, espresso, or French press and what each one reveals in a coffee. Content: brew method / strength / clarity / best use. Actions: compare methods / choose method.
- **Links to**: Half Light — Coffee for the in-between hours, Coffee — Six lots, roasted small, Kinglet — A washed coffee from Huila, Roastery — Process, provenance, and proof

### P5 — Roastery — Process, provenance, and proof (`/roastery/`)

- **Navigation label**: Roastery
- **Page role**: process and transparency
- **Purpose**: Show how a green lot becomes a rested bag through a roast-day schedule, buying principles, traceability ledger, cupping table, and honest operating boundaries.
- **Required sections**:
  - `process-opening` **From green to rested** (primary) — Open on a working roast log and state the small-batch rhythm before showing any brand language. Content: green lot / roast batch / rest day. Actions: read the process / open the roast log.
  - `roast-day` **A roast day, minute by minute** (primary) — Walk through charge, turning point, first crack, development, drop, cooling, and rest with the decisions made at each stage. Content: roast phase / temperature / roaster decision. Actions: follow the schedule / inspect a phase.
  - `green-buying` **What we buy, and why** (primary) — Explain the buying filters for traceability, cup quality, harvest freshness, and producer relationship rather than vague sourcing claims. Content: producer / green lot / harvest. Actions: read buying rules / open a producer note.
  - `traceability-ledger` **Traceability ledger** (primary) — Connect every current bag to a producer, region, process, altitude, purchase window, roast date, and rest window in one scannable ledger. Content: coffee lot / producer / process / roast date. Actions: compare lots / open lot dossier.
  - `cupping-table` **The cupping table** (support) — Show the weekly calibration ritual, the scoring language, and what would make the team reject a roast instead of marketing around it. Content: cupping score / flavor note / roast decision. Actions: read cupping notes / open brew guide.
  - `operating-boundaries` **What this demonstration does not claim** (support) — Separate the fictional demo from real commerce: no orders, deliveries, certificates, equipment control, or producer payment are created here. Content: demo boundary / local state / fictional producer. Actions: read limits / return to coffee shelf.
- **Links to**: Half Light — Coffee for the in-between hours, Coffee — Six lots, roasted small, Kinglet — A washed coffee from Huila, Brew — A recipe you can actually follow, Journal — Field notes from the roast room

### P6 — Journal — Field notes from the roast room (`/journal/`)

- **Navigation label**: Journal
- **Page role**: editorial journal
- **Purpose**: Publish a filterable field-note index, one producer story, a dated roast log, a tasting vocabulary, and a path from reading into a coffee lot or brew recipe.
- **Required sections**:
  - `journal-opening` **Notes from the roast room** (primary) — Introduce the journal as a working record of farms, roast decisions, and brew experiments rather than a brand blog. Content: field note / roast decision / producer. Actions: browse notes / filter by topic.
  - `field-note-index` **Field notes by topic** (primary) — Filter six dated notes by origin, roasting, brewing, or producer so the reader can reach a specific working note without scanning a marketing feed. Content: field note / topic / date / coffee lot. Actions: filter notes / open a note.
  - `producer-story` **The long way to Kinglet** (primary) — Tell the producer-side story behind Kinglet through a named farm, harvest decisions, a failed first lot, and the cup that changed the buying decision. Content: producer / harvest / coffee lot. Actions: read the story / open Kinglet dossier.
  - `roast-log` **Roast log: 24–28 November** (primary) — Show four dated roast records with charge temperature, first crack, development, drop, and the next adjustment instead of a polished highlight reel. Content: roast batch / roast phase / adjustment. Actions: compare batches / open process notes.
  - `tasting-vocabulary` **A small tasting vocabulary** (support) — Define the five flavour families used on the shelf, with concrete everyday references and a warning that words point to directions rather than promises. Content: tasting note / flavour family / reference. Actions: learn the terms / filter the shelf.
  - `journal-to-cup` **Follow a note into a cup** (support) — Close the editorial loop with direct paths to Kinglet, the brew guide, and the current roast-day schedule. Content: coffee lot / brew recipe / roast day. Actions: open lot / choose brew method.
- **Links to**: Half Light — Coffee for the in-between hours, Coffee — Six lots, roasted small, Kinglet — A washed coffee from Huila, Brew — A recipe you can actually follow, Roastery — Process, provenance, and proof

### P7 — Subscriptions — Choose a rhythm, not a contract (`/subscriptions/`)

- **Navigation label**: Plans
- **Page role**: subscription comparison
- **Purpose**: Compare three local-only coffee rhythms, choose a cadence, understand skip and pause rules, and see the saved browser state without simulating checkout.
- **Required sections**:
  - `plans-opening` **A rhythm, not a contract** (primary) — Open on the practical question of how often a household drinks coffee, with a visible no-card, no-delivery boundary. Content: subscription plan / cadence / local state. Actions: compare plans / read the boundary.
  - `plan-comparison` **Three ways to keep the shelf full** (primary) — Compare weekly, fortnightly, and monthly rhythms by bag size, choice model, roast timing, pause rule, and price without turning the page into a pricing-card wall. Content: subscription cadence / bean choice / price / pause rule. Actions: compare cadence / choose a rhythm.
  - `cadence-selector` **Choose a cadence** (primary) — Store a selected cadence in this browser and announce exactly what did and did not happen; pause is a real selectable state, not a fake discount. Content: subscription state / cadence / price. Actions: select cadence / pause / reset.
  - `skip-pause` **Skipping is part of the plan** (primary) — Explain how a skip, pause, or bean-change decision would work before a roast date, and separate that future rule from the current demo state. Content: skip rule / pause rule / roast date. Actions: read rules / pause locally.
  - `plan-state` **What the browser remembers** (support) — Make the local state legible with a plain-language status and a reset action, so a saved cadence never looks like a confirmed order. Content: local state / subscription cadence / demo boundary. Actions: inspect status / reset local choice.
  - `plan-questions` **Questions before you choose** (support) — Answer the practical questions about grind, decaf, skipping, freshness, and the fact that this prototype never processes payment or schedules delivery. Content: plan FAQ / grind option / demo boundary. Actions: read answers / open brew guide.
- **Links to**: Half Light — Coffee for the in-between hours, Coffee — Six lots, roasted small, Kinglet — A washed coffee from Huila, Brew — A recipe you can actually follow

### Cross-page States

- Bag lines and quantities live in localStorage under halflight.bag.v1 and update the masthead count and tray on every route.
- The selected brew method lives under halflight.brew.v1 and can arrive through the query string from home, journal, or the lot dossier.
- A subscription cadence lives under halflight.sub.v1 and is compared on /subscriptions/ without claiming a payment or delivery.
- A lot can be added from the home page, catalog, dossier, journal, or subscription plan comparison with the same bag line identity.
- Journal topic filters stay in the query string so a note can be linked directly; clearing the bag restores an honest empty state.

Pages must form a continuous task: index to detail, detail to task, task back to context. Preserve filters, selected objects, form drafts, and local receipts where applicable; direct deep links and refreshes must still render real content. Do not substitute a modal or accordion for a catalog, detail, explanation, or task page that deserves its own route.

Every section must keep semantic markup and a comprehensible heading hierarchy in the DOM. Delete sections that lack real content instead of filling them with decoration.

## Component States

- **Die-cut coffee bag** (`coffee-bag`): states default, hover, focus, added, sold out; Opens the lot dossier or adds the lot, with a separate label action so the bag is not a nested button.
- **Shelf filter** (`shelf-filter`): states default, hover, focus, selected, empty; Filters six lots by roast level and brew method, announces the visible count, and keeps the query string.
- **Bag line** (`bag-line`): states default, quantity changed, removed, empty, subscription; Changes quantity, removes a line, updates the subtotal and bag count, and stores the bag locally.
- **Recipe tabs** (`recipe-tabs`): states default, hover, focus, selected, empty; Switches V60, espresso, and French press recipes with aria-selected and a full recipe update.
- **Brew timer** (`brew-timer`): states idle, running, paused, step complete, reset; Counts up in whole seconds, highlights the current brew step, and announces the next step without claiming a real extraction.
- **Roast-day ledger** (`process-timeline`): states default, active, past, focus, reduced motion; Reads as a real sequential ledger; each phase exposes a time, temperature, decision, and what would make the roaster adjust.
- **Traceability ledger** (`traceability-ledger`): states default, hover, focus, selected lot, empty; Keeps producer, region, process, altitude, roast date, and rest window aligned across rows without becoming a conventional admin table.
- **Journal topic filter** (`journal-filter`): states default, hover, focus, selected, empty; Filters six dated notes by topic, updates the visible count, stores the topic in the query string, and restores the choice on reload.
- **Subscription rhythm strip** (`plan-strip`): states default, hover, focus, selected, paused, saved; Compares three cadences and pause, updates a local status, and never presents the selection as an order or payment.

## Interactions

- **filter-lots**: Choose a roast level or brew method → The six lots filter in place, the visible count updates, and the URL keeps the filter.. Keyboard: Tab to each filter and activate with Enter or Space; aria-pressed reflects the active choice.; reduced motion: Rows change instantly with no slide or fade..
- **add-bag**: Add a lot or subscription to the bag → The bag count, tray, and subtotal update; the line survives navigation and reload.. Keyboard: Enter or Space adds; a live status announces the lot and the new bag count.; reduced motion: No label settle or bag lift; the count and tray change immediately..
- **switch-recipe**: Choose V60, espresso, or French press on a lot → Dose, water, temperature, grind, and steps change for that method.. Keyboard: Tab to the recipe tabs and use Left/Right arrows or Enter; aria-selected and focus stay in sync.; reduced motion: The recipe swaps immediately without a cross-fade..
- **run-timer**: Start, pause, or reset the brew timer → The timer counts up, the current step highlights, and a live status announces the next instruction.. Keyboard: Enter or Space starts and pauses; reset is a separate button and returns focus to Start.; reduced motion: The timer still updates text; no pulsing, bouncing, or ambient animation is used..
- **filter-journal**: Choose a journal topic → The six notes filter in place, the count updates, and the chosen topic survives reload through the query string.. Keyboard: Tab to each topic control and activate with Enter or Space; aria-pressed reflects the selected topic.; reduced motion: Notes change immediately without slide, fade, or height animation..
- **choose-plan**: Choose weekly, fortnightly, monthly, or pause on the subscription page → The plan is saved in this browser and a plain-language status states that no payment, delivery, or email was created.. Keyboard: Tab to the cadence controls and activate with Enter or Space; the local status is announced through aria-live.; reduced motion: The selected strip and status change immediately without movement..

## Responsive Behavior

- **Breakpoints**: wide: 1180px and up: bag pedestal, label fragments, and subscription ticket share the packing table; mid: 720–1179px: the bag stack compresses and the subscription ticket moves below-right; narrow: below 720px: stacked bag tray, staggered lot rows, full-width recipe card, and timer above steps
- **Mobile priorities**: current lot and bag count; coffee filters and lot facts; recipe and timer; subscription terms; brew troubleshooting
- **Navigation translation**: The masthead keeps the brand, four routes, bag count, and a compact demo badge on narrow screens; every route stays visible.
- Keep the interface readable and operable at widths of at least 1440px and 390px. Do not require horizontal scrolling to complete the primary task (content strips may be designed separately, but must have an alternative path).

## Accessibility

- **Contrast**: Espresso on cream exceeds 7:1; vermilion is used with dark text or as a border, never as the only state signal.
- **Keyboard**: Native buttons, links, inputs, and selects; recipe tabs use a roving tabindex; the timer has separate start, pause, and reset controls.
- **Focus**: A 3px vermilion outline with 3px offset remains visible on cream, kraft, and bag surfaces.
- **Semantics**: Landmarks, one h1 per route, labelled sections, fieldsets, aria-live status, and a timer role=status describe the bag and brew flows.
- **Motion**: prefers-reduced-motion removes label settles, cross-fades, and transforms while keeping timer text and recipe changes immediate.
- **Touch targets**: Interactive targets are at least 44x44px, including bag add buttons, recipe tabs, and timer controls.

## Assets

- Original inline SVG, CSS gradients, and generated geometric artwork only; no template assets or stock photography.

Do not introduce unauthorized remote images, fonts, or icons. Prefer original CSS/SVG, code-drawn graphics, and clearly licensed self-hosted fonts. Every icon needs an accessible name or a decorative marker.

## Build and Verification

1. Build or start the page: `No build step. Serve the site/ directory over HTTP with python3 -m http.server.`. Record the actual command and output directory; never mark an unexecuted step as passed.
2. Run the browser audit from the project root; replace `--site` if the output is not in `site/`:

```bash
python3 "$SKILL_DIR/scripts/audit_site.py" \
  --site site \
  --spec .ui-skill/design-spec.json \
  --out verification/report.json \
  --screenshots verification/screenshots
```

3. Automated verification passes only when all of the following hold:
   - the audit command exits with code 0;
   - `verification/report.json` has `summary.failed == 0`;
   - `verification/report.json` has `checks.runtime_clean == true`;
   - `checks.page_coverage`, `checks.page_content_depth`, `checks.shared_navigation`, and `checks.no_broken_links` are all true;
   - every route has desktop and mobile screenshots, and the root route's compatibility `desktop.png` and `mobile.png` screenshots exist.
4. Navigate all primary actions from the start of the page by keyboard; check focus visibility, focus order, error recovery, and reduced motion; also verify the applicable default, loading, empty, error, and success states.
5. Inspect the desktop 1440×900 and mobile 390×844 screenshots and record the visual review. `manual` and `visual_review` must not be converted into automatic passes; if the screenshots were not inspected, write “visual review pending”.

## Acceptance Criteria

Composition acceptance must cover at least: the first viewport makes the “an asymmetric warm pedestal holds one oversized coffee bag while three smaller bags stack behind it and die-cut label fragments orbit the group” silhouette legible; at least one real content object spans columns, breaks its container, clips, or overlaps; the primary task is not carried only by an equal-width card grid or a conventional table; non-rectangular composition is not faked with uniform radii and shadows: No equal product cards, no carousel, no rectangle sidebar plus product detail; recolouring a card grid would not satisfy this composition..

| ID | Category | Criterion | Check | Evidence |
|---|---|---|---|---|
| AC-BUILD | build | The site is served from site/index.html with no build dependency. | build | Static HTML, CSS, and JavaScript load over HTTP. |
| AC-RUNTIME | build | Every route loads without console errors, page errors, or failed requests. | runtime_clean | Browser audit checks runtime_clean across all routes. |
| AC-KEYBOARD | keyboard | All visible interactive controls are reachable by Tab with visible focus. | keyboard_focus | Browser keyboard audit on the home route. |
| AC-RESPONSIVE | responsive | Neither the desktop nor the mobile viewport has horizontal overflow. | no_horizontal_overflow | Browser viewport audit at 1440x900 and 390x844. |
| AC-MOTION | motion | Reduced-motion users receive complete content without ongoing animation. | reduced_motion | Browser reduced-motion audit. |
| AC-NAMES | accessibility | Every visible interactive control has an accessible name. | interactive_names | Browser accessibility-name audit. |
| AC-LANGUAGE | accessibility | The output is English-dominant and uses lang=en. | language_lock | Browser language-ratio audit. |
| AC-LINKS | navigation | Every internal link resolves without a broken route. | no_broken_links | HTTP probe results for every discovered internal path. |
| AC-INTERACTION | interaction | A visitor can filter six lots, add Kinglet and a subscription to the bag, change quantity, open the Kinglet dossier, switch recipes, run the brew timer, follow a roast-ledger phase, filter the journal by topic, select or pause a plan, reload, and see the local bag and selected states restored. | manual | Interaction record plus desktop and mobile screenshots of the filtered shelf, bag tray, recipe tabs, running timer, process ledger, journal filter, and saved plan state. |
| AC-PAGES | content | Every one of the seven routes contains at least four substantive sections with coffee-specific content, and the roastery overview, filterable catalog, lot dossier, brew guide, process ledger, editorial journal, and subscription comparison each have a distinct role. | page_content_depth | Per-route section counts and main-text length in the audit report. |
| AC-COVERAGE | navigation | All seven declared routes load successfully and expose a main landmark. | page_coverage | Route statuses and main-landmark checks in the audit report. |
| AC-NAV | navigation | Every route shares the same complete primary navigation to all seven routes. | shared_navigation | Per-route visible navigation link sets in the audit report. |
| AC-SCALE | navigation | The standard build contains exactly seven connected routes and is not a four-route demo. | route_scale | Route count and scale contract in the audit report. |
| AC-DIVERSITY | content | The seven routes expose seven distinct page roles with no duplicated page purpose. | route_diversity | Page roles and normalized purposes in the design spec and audit report. |
| AC-LANGINTENT | accessibility | The interface language follows the user intent and remains English because no Chinese or bilingual UI was explicitly requested. | language_intent | Expected language and page language statistics in the audit report. |
| AC-VISUAL | visual | The packing-table pedestal, staggered shelf, lot dossier, recipe ticket, roast ledger, editorial spine, and cadence strip keep a non-card, non-carousel identity in both viewports. | visual_review | Desktop and mobile screenshots for all seven routes, manually reviewed. |
| AC-NOBOX | visual | No route reduces the primary content to an equal card grid; the bag pedestal, shelf rows, roast curve, timer, process bands, journal spine, and cadence comparison carry the composition. | manual | Manual composition review against layout.composition and per-route screenshots. |

## Don'ts

- Do not collapse the site into one long homepage or repeat the same packing table under seven route names.
- Do not turn the catalog into an equal-width product-card grid or a carousel.
- Do not use stock coffee photography, fake scarcity, or a dark neon roastery aesthetic.
- Do not hide the lot dossier, brew guide, process ledger, journal, or subscription comparison in a modal.
- Do not claim a payment, order, delivery, producer payment, or equipment control was created.
- Do not lose added bags, quantities, the selected brew method, the journal topic, or the selected subscription cadence when navigating or reloading.
- Do not use colour alone to mark roast level, stock, active journal topic, or the selected plan.
- Do not pad the route count with empty pages; every route must own a real information job.

- Do not treat this prompt as an instruction to reproduce a source template; pattern cards and visual fingerprints provide abstract design constraints only.
- Do not hide a still-rectangular structure behind uniform radii, shadows, recoloring, gradients, or decorative illustration.
- Do not let the primary task collapse into header + equal-width card grid/table + rectangular sidebar + rectangular form.
- Do not fill unresolved design problems with placeholder headings, meaningless decoration, or fake data.
- Do not make "multiple pages" by duplicating the same home page under different titles; every page must carry a different information role and task.
- Do not claim the build passed acceptance before browser verification is complete.
