# Quire: the Woodblock example

Quire is a fictional writing app for essays and newsletters, built twice:

- `before/`: the generic template an unguided AI agent tends to produce from the same prompt
  (Inter or the system font, a purple-to-blue gradient hero, invented stats and testimonials,
  a bento grid, a dark dashboard with fake KPI tiles). A fixed banner at the top explains that every
  number, name and quote on those pages is invented on purpose, with a link to the artled version.
- `after/`: the same product in the artled [Woodblock style](../../skills/artled/styles/woodblock/STYLE.md):
  light paper matched to the print, indigo keylines with a registration offset shadow, Shippori Mincho
  for display, Source Serif 4 for reading, JetBrains Mono for numbers, one vermilion accent per screen,
  and a full-bleed ukiyo-e print of pages turning into cranes over a rainy river.

## How to open it

Run any static server from the repository root, for example:

```bash
npx serve .
```

Then open:

- `/examples/woodblock/after/` (the site)
- `/examples/woodblock/after/app.html` (the app demo)
- `/examples/woodblock/before/` and `/examples/woodblock/before/app.html` (the "before" versions)

The pages are fully static and client-side; no build step, no network calls after load.

## What the example demonstrates

| Area | Rules shown |
|---|---|
| Full-bleed ukiyo-e print hero with a huge paper-coloured headline in the calm indigo sky, a measured scrim, a glass bar holding the live word count, and a 9:16 print for portrait screens with the text placed in the sky | WB3, PA1, PA2, C6, P7 |
| Animated rain on the hero with a pause control and off under reduced motion | WB5, H18 |
| The "Read your draft" working tool as the instrument card: words, reading time at a stated 238 wpm, sentences, average and longest sentence, paragraphs, and pattern flags, with empty, filled and flagged states | C2, C5, H3, H8, H9 |
| Pattern flags built from the artled-copy rules (em dash detected via its escape sequence in JS, never a literal character; buzzwords; the fast-paced-world opener; the not-just-X-but-Y contrast; "AI-powered") | H1, Q4 |
| Ideas in asymmetric keyline panels (7 + 5, then 5 + 7) with the registration shadow, distinct content, one icon per idea | WB4, P10, Q1 |
| The room print returning as an art band with a paper panel of the app's features and a sample of the editor settings, and again as the final band with one vermilion CTA | WB2, Q1, Q3 |
| A real FAQ about how this demo works: where the numbers come from, exports, offline behaviour, draft privacy, print origins | H10, H17 |
| The app: the U rules wearing Woodblock tokens; a banner cut from the room print; a rail marking the current section; documents table with tabular figures and a visible "Sample data" label; the editor at a 66ch measure with live counts and flags; new draft; delete with name confirmation plus undo; export dialog with focus trap and return; light and dark themes from the same tokens | Q13, U1 to U12, H13, H23 |
| Honesty: the fictional-product line near the hero, under the app banner and in the footer; no invented users, quotes or statistics | H15, H17, H24 |
| Hygiene: versioned asset URLs (`?v=2`), fonts and Phosphor from the shared folder, every generated print listed with its job ID in `media/CREDITS.md` | Q14, H20 |

`DESIGN.md` records the direction, the measured contrast ratios for every text pair in both themes, and the decisions behind it.

## Checks

Machine checks from the repo root:

```bash
node skills/artled/scripts/audit.mjs examples/woodblock/after
python skills/artled/scripts/contrast-check.py "#1E1C1A" "#EDE3CF"
```

The audit is not run on `before/`; that folder is the counter-example.
