# Build the Hone website

You are working in an AI coding tool. Build this website in the current project from the specification below. It is a one-page site for a fictional knife shop in Portland, Oregon, Hone, which sharpens kitchen knives by hand on whetstones and sells Japanese knives. The page plays a deadpan joke: it is the "Lost Edge Office", where you report a dull knife like lost property. A drawn steel blade (one WebGL fragment shader) runs down the left edge of the whole page, heel at the top and tip at the bottom, with an inch ruler that counts how far down the knife you have scrolled. The blade's edge shows real wear (chips, a rolled edge, flat spots, a scallop, pits) beside the chapter that names each one, floods the screen in the confession chapter, and spends an edge when you hold a button. Around it: canary yellow, carbon blue and pink office paper, a huge Abril Fatface serif, DotGothic16 pixel type for the forms, a ticket that slides out of a red dispenser, a four-question form that prints a "reading" of your edge, a tear-off calendar, blue photocopied pictures and a claim form.

Build everything yourself except the supporting files listed in section 2. Do not substitute a different stack, font, library or design system. Keep the copy exactly as written. Do not add analytics, trackers, external embeds, CDN links or any request to another domain.

This prompt comes with a required pack of fonts, pictures and one code module (the steel blade). It is not a text-only prompt. Results differ between AI tools and models. Follow the specification closely, but report honestly what you built and tested.

## 1. Stack and project setup

- Plain HTML, CSS and JavaScript. No framework, no build step, no npm packages, no TypeScript, no Tailwind. Classic scripts (not modules) that share a few globals: `window.HONE`, `window.HONE_STATE`, `window.Stage`, `window.onSeen`.
- Every path is relative (`site.css`, `js/config.js`, `img/...`, `fonts/...`), so the site works from a domain root and from any sub-folder. Never write a leading-slash URL.
- No inline `<script>` code anywhere (the JSON-LD data block in the head is the only inline script element). The page must run under this Content Security Policy without violations: `default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob:; font-src 'self' data:; connect-src 'self' blob: data:`.

Target layout of the finished project:

```text
index.html          (section 4, written by you)
404.html            (section 4, written by you)
site.css            (section 5, written by you)
js/config.js        (section 6, written by you)
js/stage.js         (from the required pack, supporting code)
js/chapters.js      (section 8, written by you)
fonts/              (from the required pack)
img/                (from the required pack)
licenses/           (from the required pack)
```

To look at it, serve the folder with any static file server, for example `npx --yes http-server -p 8080 -c-1 .` or `python -m http.server 8080`, and open the address it prints.

## 2. Required files

Required pack, version 1:

- URL: https://sitepeel.dev/website-prompts/hone/assets-v1.zip
- SHA-256: `f88469803f00867e57fbc38301fe49565441bfa68a323146f0ca745c00375cc5`
- Size: 436038 bytes

Download it with your tool's web fetch, `curl -fL -o assets-v1.zip <URL>`, or `Invoke-WebRequest`. If `assets-v1.zip` is already in the project root, use that copy. If you cannot download it, stop and ask the person to save the file into the project root, then continue. Check the SHA-256 (`shasum -a 256`, `sha256sum` or `certutil -hashfile assets-v1.zip SHA256`) and stop if it differs. Unzip it into the project root so that `fonts/`, `img/`, `js/` and `licenses/` sit next to `index.html`. Delete the zip afterwards. You may delete the pack's `README.md` and `SHA256SUMS.txt` once the hashes are checked.

Files in the pack (path, SHA-256):

| File | SHA-256 |
|---|---|
| `README.md` | `3907700c52de36dbf7b1208a766b5fac90c3eec930f512674185fa1de5a341fe` |
| `fonts/OFL-AbrilFatface.txt` | `4e65e75d5b12be85144934d41e8a1895c14600ff6f56467d46acf73440adf0e0` |
| `fonts/OFL-DotGothic16.txt` | `335d6a81ce1afcf64c8bc36334458ba3292ca6fba5d3974895b3ed84ccee530e` |
| `fonts/abril-fatface-latin-400-normal.woff2` | `edf7a1f3bc22e815ea426b102fa0493d20af482b242066e689a1263ebb2eeb68` |
| `fonts/dotgothic16-107-400-normal.woff2` | `e9180e42122f2785cee913aea799966cf29104e43ff1115f0479fc449a7b5135` |
| `fonts/dotgothic16-87-400-normal.woff2` | `9e69e139a0978b4d867e9f5bb02ea9222663203f8916d4686183125f04e8bd0f` |
| `fonts/dotgothic16-93-400-normal.woff2` | `759407e3b7cea4e6a1924b89aecb0af991e1a2c86477d3e9edc58fa994d8e165` |
| `fonts/dotgothic16-latin-400-normal.woff2` | `d29abf817463fdba7e9e87fc954cfa2b60ea6534e8a79c46e858a0dc5aa6a6f6` |
| `img/churning-water.png` | `138b4fb228bd30a514a99863301d336de9423eb09ce8ebc847dd0deb86e5fcde` |
| `img/dark-sand.png` | `47edeac58e14646a139431e15a3a47bacdb6528e72f626d00b2801c1f862900b` |
| `img/dry-mud.png` | `4ffb343b84cf82c764c29815150c6a72727c47a04c4c239251fd2b903c53de2e` |
| `img/knife-tomatoes.png` | `cdd28f4ea6ad3510f7b5f5d244b468ebbbeca1d4b54f7b841c2ccb66d9a760e1` |
| `img/share.png` | `367450c668f5c16398c1644dc898a0b4b7584fc210d3481f4818e09e256d5560` |
| `img/tomato-splash.png` | `40e19d87b984cb7328285279c0bb4a3c3a4280f7f04ee9ed4be251a225a496ce` |
| `img/wood-bowl.png` | `09c64e28ba5be0cf878e2e10c4970e72a1aa3805da87988f9f96af7c45a3c48e` |
| `js/stage.js` | `aab78737c3df135b980934f51e0e6c495799a77633849fd7487abaf6f8c18859` |
| `licenses/OFL-AbrilFatface.txt` | `4e65e75d5b12be85144934d41e8a1895c14600ff6f56467d46acf73440adf0e0` |
| `licenses/OFL-DotGothic16.txt` | `335d6a81ce1afcf64c8bc36334458ba3292ca6fba5d3974895b3ed84ccee530e` |
| `licenses/PROVENANCE.md` | `1a18ebfdb65e652a9d4c859266360d033a4f124bff76652daf9fd7f0f3296c95` |
| `licenses/THIRD-PARTY.md` | `b825c5a6d9d5f6ec9d8ceb884c77761fc6469c974d91130bb3650ac8c24979af` |

What the supporting module is. Do not rewrite it; the look depends on its exact numbers. Load it after `js/config.js`.

`js/stage.js` defines `window.Stage` and `window.onSeen`. It draws the blade into `<canvas id="steel">` with WebGL2 (adding class `gl` to `<html>`, or `no-gl` when WebGL2 is missing or motion is reduced, so the CSS can show a plain grey strip in `#strip` instead), keeps the inch readout `#inch-n`/`#inch-u` up to date (the page is 10 inches long; the readout shows `Held` while the confession chapter holds it), reads every element with `data-wear` (`chip`, `roll`, `flat`, `scallop`, `pit`), `data-span` and `data-amp` to put that wear on the edge at the element's height, writes each `[data-at]` label as the inch where its item sits (for example `2.19 in`), widens the blade across the damage chapter, floods the whole screen with steel at the confession and holds it at about 85 percent of the width through the unused-edges chapter (with the stacked spare edges drawn as lines), and sets the CSS variable `--sway` on `<html>` from scroll speed (between -9deg and 9deg) for things that swing. Its API:

- `Stage.reduced`: true when the visitor prefers reduced motion.
- `Stage.say(text)`: writes `text` into the polite live region `#live` for screen readers.
- `Stage.track(el, fn)`: calls `fn(p, offset)` on every scroll change with `p` = progress through `el` from 0 to 1 (`(scrollY - top) / (height - viewport height)`, clamped) and `offset = scrollY - top`.
- `Stage.tieTo(el)`: draws a thin curved string (an SVG `.string` prepended into `el`) from the blade's edge to `el`, like a luggage tag tied to the knife.
- `Stage.refresh()`: re-measures (call after content changes height).
- `Stage.spend(n = 1)`: spends n edges; the steel edge moves back toward the spine by one line each.
- `Stage.glow(y)`: a warm flash along the edge at page position `y` that fades out.
- `Stage.hold(on)`: freezes the inch readout and shows `Held`.
- `Stage.bladeW`: the blade strip width in CSS pixels.
- `onSeen(el, fn, threshold = .25)`: calls `fn(el)` once, the first time `el` is at least `threshold` visible.

## 3. Rights and honesty

- Abril Fatface and DotGothic16 are under the SIL Open Font License 1.1. Their licences are in the pack and must stay with the font files. Do not rename or modify them. The three numbered DotGothic16 files are unmodified parts of the font, each used for one Japanese character (刀, 牛, 研); `site.css` limits each to its character with `unicode-range`.
- The six blue pictures were generated for this project with an image model and then turned into a one-colour ordered-dither "photocopy". `img/share.png` is a screenshot of this page. `js/stage.js` was written for this project. Nothing on the page is a photograph of a real shop, person or product.
- Hone, its office and its email address are invented. The page shows `counter@hone.example`, a reserved address that cannot be delivered. The claim form sends nothing until an email or booking link is set in `js/config.js`. No real knife maker, forge, steel brand or town is named as a supplier. The prices are examples: nothing on the page takes a payment, and the footer says so (`Hone is a made-up shop. ...`). Before anyone publishes the site, the name, city, email, prices and claims should be replaced with their own, and the `noindex` tag removed.

## 4. Page markup

Create `index.html` exactly as below. It holds the structure, every hook the scripts need and nearly all of the copy (the rest is in section 8). Inline `style` attributes and the `<noscript>` style block are intended.

```html
<!doctype html>
<!-- Fictional demo site. Hone, its office and its address are invented. -->
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<title>Hone. You have lost your edge.</title>
<meta name="description" content="Report your dull knife to Hone, a Japanese knife shop and whetstone sharpener in Portland, Oregon.">
<meta name="robots" content="noindex">
<meta name="theme-color" content="#F3D93F">
<meta property="og:title" content="Hone. You have lost your edge.">
<meta property="og:description" content="Report your dull knife to Hone, a Japanese knife shop and whetstone sharpener in Portland, Oregon.">
<meta property="og:type" content="website">
<meta property="og:image" content="img/share.png">
<meta name="twitter:card" content="summary_large_image">
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M9 2h14l6 7v21H3V9z' fill='%23F3D93F' stroke='%231B2C9C' stroke-width='2'/%3E%3Ccircle cx='16' cy='9' r='3' fill='%231B2C9C'/%3E%3C/svg%3E">
<link rel="preload" href="fonts/abril-fatface-latin-400-normal.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="fonts/dotgothic16-latin-400-normal.woff2" as="font" type="font/woff2" crossorigin>
<script type="application/ld+json">{"@context":"https://schema.org","@type":"Store","name":"Hone","description":"Japanese knife shop and hand whetstone sharpening","address":{"@type":"PostalAddress","addressLocality":"Portland","addressRegion":"OR","addressCountry":"US"}}</script>
<link rel="stylesheet" href="site.css">
</head>
<body>
<a class="skip" href="#claim">Skip to the claim form</a>
<div id="strip" aria-hidden="true"></div>
<canvas id="steel" aria-hidden="true"></canvas>
<p id="inches" aria-live="off"><span id="inch-n">0.00</span> <span id="inch-u">in</span></p>
<main>
<!-- chapter: the-counter -->
<section class="ch canary" data-chapter="the-counter" id="counter">
  <div class="ink counter">
    <p class="office"><span class="office-name">Hone. Lost Edge Office.</span> <span class="office-what">Knife sharpening and Japanese knives. Portland, Oregon.</span></p>
    <h1 class="poster">You <br class="p">have <br class="p">lost <br>your <br class="p">edge.</h1>
    <div class="desk">
      <p class="sub">Hone is a knife shop. We sharpen kitchen knives by hand on whetstones, and we sell Japanese kitchen knives. Report your dull knife here.</p>
      <div class="tags">
        <a class="tag" data-tie href="#claim"><span>Report a lost edge<small>Book a sharpening</small></span></a>
        <a class="tag" data-tie href="#replacement" data-intent="replace"><span>Replace the item<small>Buy a new knife</small></span></a>
      </div>
      <div class="bellrow">
        <button class="bell" id="bell" type="button" aria-describedby="bell-label">
          <svg viewBox="0 0 120 92" aria-hidden="true" role="presentation">
            <rect class="b-base" x="10" y="74" width="100" height="14" rx="2"/>
            <path class="b-dome" d="M60 22C31 22 21 46 18 74h84C99 46 89 22 60 22z"/>
            <path class="b-shine" d="M42 34c-9 8-13 22-15 36"/>
            <rect class="b-pin" x="55" y="6" width="10" height="18" rx="3"/>
          </svg>
          <span class="vh">Ring the bell</span>
        </button>
        <p id="bell-label">Ring for attention</p>
        <span class="stamp-mark noted" id="noted" hidden>NOTED</span>
      </div>
    </div>
  </div>
</section>

<!-- chapter: take-a-number -->
<section class="ch canary" data-chapter="take-a-number" id="number">
  <div class="tk-stage ink">
    <h2 class="tk-title">Take a number.</h2>
    <div class="tk-machine" aria-hidden="true"><p>Hone</p><p class="tk-pull">Pull</p></div>
    <div class="tk-slot" aria-hidden="true"></div>
    <div class="tk-clip">
      <article class="ticket" id="ticket">
        <p class="tk-office">Hone. Lost Edge Office.</p>
        <p class="tk-label">Your number</p>
        <p class="tk-num" id="tk-num">0001</p>
        <ol class="tk-facts">
          <li>We sharpen by hand, on whetstones.</li>
          <li>We charge per inch of edge.</li>
          <li>It is usually back in 3 days.</li>
        </ol>
        <p class="tk-back" id="tk-back" hidden></p>
        <p class="tk-fine">Keep this ticket. Nobody will ask for it.</p>
      </article>
    </div>
  </div>
</section>

<!-- chapter: two-suspects -->
<section class="ch white" data-chapter="two-suspects" id="suspects">
  <div class="ink su-head"><h2>Most knives are not lost. They are taken.</h2></div>
  <div class="ink su-wall">
    <article class="suspect" id="s1">
      <div class="ruler-v" aria-hidden="true"><span>34 in</span><span>17 in</span><span>0</span></div>
      <div class="su-body">
        <figure class="copy-pic su-tall">
          <svg class="dw" viewBox="0 0 240 340" preserveAspectRatio="none" aria-hidden="true"><rect x="2" y="2" width="236" height="336" rx="6"/><rect x="2" y="2" width="236" height="46"/><path class="dw-h" d="M80 25h80"/><path d="M26 300h188M26 280h188M46 262v56M90 262v56M134 262v56M178 262v56"/></svg>
          <img src="img/churning-water.png" alt="Close-up of churning grey water, printed as a blue photocopy" width="400" height="224" loading="lazy">
          <figcaption>Water, enlarged. A stand-in. We did not photograph your dishwasher.</figcaption>
        </figure>
        <span class="stamp-mark su-stamp" data-stamp hidden>IDENTIFIED</span>
        <div class="su-text">
          <h3>Suspect one. The dishwasher.</h3>
          <p>Held overnight with the forks. Heat, detergent, and metal knocking against metal.</p>
          <p class="su-note">Standard height, about 34 in.</p>
          <button class="btn su-id" type="button" data-for="s1" aria-pressed="false">Identify</button>
        </div>
      </div>
    </article>
    <article class="suspect" id="s2">
      <div class="ruler-v small" aria-hidden="true"><span>4 in</span><span>0</span></div>
      <div class="su-body">
        <svg class="pullthrough" viewBox="0 0 120 56" role="img" aria-labelledby="pt-t pt-d">
          <title id="pt-t">Pull-through knife sharpener</title>
          <desc id="pt-d">A small handheld sharpener with a V shaped carbide slot cut into its top.</desc>
          <path d="M8 16h104a6 6 0 0 1 6 6v28H2V22a6 6 0 0 1 6-6z"/>
          <path class="pt-v" d="M44 16l16 26 16-26"/>
          <path class="pt-grip" d="M14 34h26M80 34h26"/>
        </svg>
        <span class="stamp-mark su-stamp small" data-stamp hidden>IDENTIFIED</span>
        <div class="su-text">
          <h3>Suspect two. The pull-through sharpener.</h3>
          <p>One slot, one angle, every knife in the house. Carbide takes the edge off in small pieces and calls that sharp.</p>
          <p class="su-note">Actual height, about 4 in.</p>
          <button class="btn su-id" type="button" data-for="s2" aria-pressed="false">Identify</button>
        </div>
      </div>
    </article>
  </div>
  <div class="ink su-foot">
    <p>Both were in your kitchen at the time.</p>
    <p class="su-charges" id="su-charges" hidden>Charges noted.</p>
  </div>
</section>

<!-- chapter: damage-by-inch -->
<section class="ch canary" data-chapter="damage-by-inch" id="damage">
  <div class="ink dm-head"><h2>The item, described.</h2></div>
  <dl class="ink dm-list">
    <div class="wear-item" data-wear="chip" data-span="150" data-amp="44">
      <dt class="wear-dt"><button class="wear-tag tag" type="button" data-tie>Chip<span class="wear-at" data-at></span></button></dt>
      <dd>A piece of the edge is gone. Dishwashers, bone and carbide wheels do this.</dd>
    </div>
    <div class="wear-item i2" data-wear="roll" data-span="170" data-amp="30">
      <dt class="wear-dt"><button class="wear-tag tag" type="button" data-tie>Roll<span class="wear-at" data-at></span></button></dt>
      <dd>The edge has folded over. Drag a fingernail across it and the nail catches.</dd>
    </div>
    <div class="wear-item i3" data-wear="flat" data-span="170" data-amp="24">
      <dt class="wear-dt"><button class="wear-tag tag" type="button" data-tie>Flat<span class="wear-at" data-at></span></button></dt>
      <dd>The edge has worn away and left a shiny line. A sharp edge shows no line at all.</dd>
    </div>
    <div class="wear-item i4" data-wear="scallop" data-span="230" data-amp="34">
      <dt class="wear-dt"><button class="wear-tag tag" type="button" data-tie>Scallop<span class="wear-at" data-at></span></button></dt>
      <dd>A wave along the edge, the signature of a pull-through.</dd>
    </div>
    <div class="wear-item i5" data-wear="pit" data-span="150" data-amp="14">
      <dt class="wear-dt"><button class="wear-tag tag" type="button" data-tie>Pit<span class="wear-at" data-at></span></button></dt>
      <dd>Small dark pocks from heat and detergent.</dd>
    </div>
  </dl>
  <div class="ink dm-foot"><p>Tilt the knife under a lamp. You are looking for what shines.</p></div>
</section>

<!-- chapter: scene-of-the-incident -->
<section class="ch pink" data-chapter="scene-of-the-incident" id="scene">
  <div class="ink sc">
    <figure class="copy-pic sc-a">
      <img src="img/knife-tomatoes.png" alt="A chef's knife beside tomatoes on a wooden board, printed as a blue photocopy" width="400" height="224" loading="lazy">
      <figcaption>Exhibit 1. Reconstruction of the kitchen where it happened. Not your kitchen. We have not been to your kitchen. Not a Hone knife either.</figcaption>
    </figure>
    <figure class="copy-pic sc-b">
      <img src="img/tomato-splash.png" alt="Sliced tomatoes bursting through water, printed as a blue photocopy" width="400" height="600" loading="lazy">
      <figcaption>Exhibit 2. A tomato. A sharp edge goes in without pushing.</figcaption>
    </figure>
    <p class="sc-late" id="sc-late">Your tomato has been filing complaints.</p>
  </div>
</section>

<!-- chapter: the-reading -->
<section class="ch canary" data-chapter="the-reading" id="reading">
  <div class="ink rd-head">
    <h2>How you cook, according to your knife.</h2>
    <p>A sharpener can read how you cook from the wear on your edge. This form is a poor substitute. It is still unsettling.</p>
  </div>

  <form class="rd-form" id="rd" novalidate>
    <fieldset class="ink panel" id="q1">
      <legend><span class="qn">Question one</span>Where does the edge give up?</legend>
      <p class="form-corner">Form LE-3<br>Sheet 1 of 4</p>
      <div class="opts">
        <label class="opt"><input type="radio" name="where" value="heel"><span>At the heel</span></label>
        <label class="opt"><input type="radio" name="where" value="belly"><span>In the middle</span></label>
        <label class="opt"><input type="radio" name="where" value="tip"><span>At the tip</span></label>
        <label class="opt"><input type="radio" name="where" value="all"><span>All of it</span></label>
      </div>
    </fieldset>

    <fieldset class="ink panel" id="q2">
      <legend><span class="qn">Question two</span>What do you cut the most?</legend>
      <p class="form-corner">Form LE-3<br>Sheet 2 of 4</p>
      <div class="opts">
        <label class="opt"><input type="radio" name="cut" value="onions"><span>Onions</span></label>
        <label class="opt"><input type="radio" name="cut" value="herbs"><span>Herbs</span></label>
        <label class="opt"><input type="radio" name="cut" value="squash"><span>Squash and roots</span></label>
        <label class="opt"><input type="radio" name="cut" value="bone"><span>Chicken on the bone</span></label>
        <label class="opt"><input type="radio" name="cut" value="packaging"><span>Packaging</span></label>
      </div>
    </fieldset>

    <fieldset class="ink panel" id="q3">
      <legend><span class="qn">Question three</span>Confess.</legend>
      <p class="form-corner">Form LE-3<br>Sheet 3 of 4</p>
      <p class="hint">Tick all that apply.</p>
      <div class="opts">
        <label class="opt"><input type="checkbox" name="conf" value="dishwasher"><span>Dishwasher</span></label>
        <label class="opt"><input type="checkbox" name="conf" value="pull"><span>Pull-through sharpener</span></label>
        <label class="opt"><input type="checkbox" name="conf" value="glass"><span>Glass or stone cutting board</span></label>
        <label class="opt"><input type="checkbox" name="conf" value="none"><span>None of the above</span></label>
      </div>
      <button class="btn nextq" type="button" data-next="q4">That is everything</button>
    </fieldset>

    <fieldset class="ink panel" id="q4">
      <legend><span class="qn">Question four</span>How long is the blade?</legend>
      <p class="form-corner">Form LE-3<br>Sheet 4 of 4</p>
      <p class="len"><output id="rd-len">8</output> <span>inches</span></p>
      <input class="len-range" id="rd-range" type="range" min="6" max="12" step=".5" value="8" aria-label="Blade length in inches">
      <button class="btn print-btn" type="submit">Print my reading</button>
    </fieldset>
  </form>

  <div class="ink printer" id="printer">
    <div class="slot" aria-hidden="true"></div>
    <div class="slip-clip">
      <article class="slip" id="slip" aria-label="Your reading">
        
      </article>
    </div>
    <div class="slip-actions" id="slip-actions" hidden>
      <a class="btn" href="#claim" id="file-it">File this and book the knife in</a>
      <button class="again" type="button" id="again">Print another</button>
    </div>
  </div>
</section>

<!-- chapter: fee-by-the-inch -->
<section class="ch white" data-chapter="fee-by-the-inch" id="fee">
  <div class="ink fee">
    <h2>The fee is charged by the inch.</h2>
    <p class="fee-sub">An inch of edge is the one thing in this office that can be measured honestly.</p>
    <div class="ruler">
      <div class="ruler-track" aria-hidden="true">
        <span>6</span><span>7</span><span>8</span><span>9</span><span>10</span><span>11</span><span>12</span>
      </div>
      <input id="fee-range" class="ruler-input" type="range" min="6" max="12" step=".5" value="8" aria-label="Measure your blade in inches">
    </div>
    <p class="fee-read"><output id="fee-n">8</output> <span>inches of edge</span></p>
    <p class="fee-price" id="fee-price">Priced per inch at the counter.</p>
    <p class="fee-help">Measure yours. Heel to tip, in a straight line. Curves are charged as straight lines.</p>
    <p class="fee-big" id="fee-big" hidden>Are you sure this is a kitchen knife?</p>
  </div>
</section>

<!-- chapter: three-days -->
<section class="ch pink" data-chapter="three-days" id="days">
  <div class="td-stage ink">
    <p class="vh" id="td-plain"></p>
    <div class="td-bind" aria-hidden="true"></div>
    <div class="td-pad" aria-hidden="true">
      <article class="leaf l3"><div class="lf"><p class="lf-a">Day three</p><p class="lf-d" id="l3-d"></p><p class="lf-b" id="l3-w"></p><p class="lf-c">Usually back.</p><p class="lf-e">Usually is the word this office uses.</p></div></article>
      <article class="leaf l2"><div class="lf"><p class="lf-a">Day two</p><p class="lf-d" id="l2-d"></p><p class="lf-b" id="l2-w"></p></div></article>
      <article class="leaf l0"><div class="lf"><p class="lf-a">Day one</p><p class="lf-d" id="l0-d"></p><p class="lf-b" id="l0-w"></p></div></article>
      <article class="leaf l1"><div class="lf"><p class="lf-a" id="l1-a">Hand it in today</p><p class="lf-d" id="l1-d"></p><p class="lf-b" id="l1-w"></p><p class="lf-e" id="l1-late" hidden>Too late for today.</p></div></article>
    </div>
  </div>
</section>

<!-- chapter: the-confession -->
<section class="ch" data-chapter="the-confession" id="confession">
  <div class="cf">
    <p class="cf-hd">Notice to all claimants.</p>
    <h2>This office has never returned a single edge.</h2>
    <p class="cf-p">Your old edge is gone. It left the stone as grey mud and went down the drain.</p>
    <p class="cf-p">A new edge is cut further back, toward the spine, where there was steel all along.</p>
    <figure class="copy-pic cf-mud">
      <img src="img/dry-mud.png" alt="Cracked dry mud, printed as a blue photocopy" width="400" height="224" loading="lazy">
      <figcaption>Exhibit 3. The mud, enlarged. A stand-in for the real thing, which we rinsed.</figcaption>
    </figure>
  </div>
</section>

<!-- chapter: unused-edges -->
<section class="ch" data-chapter="unused-edges" id="unused">
  <div class="ue">
    <h2>It was all still in there.</h2>
    <p class="ue-p">Every knife is a stack of edges. Each sharpening spends one and brings the next one into use. A pull-through spends them fast and spends them badly.</p>
    <p class="ue-note">Nobody can tell you how many are left without looking at it.</p>
    <div class="ue-act">
      <button class="ue-btn" id="spend" type="button"><svg viewBox="0 0 80 80" aria-hidden="true"><circle class="ue-track" cx="40" cy="40" r="36"/><circle class="ue-fill" id="ue-fill" cx="40" cy="40" r="36" pathLength="1"/></svg><span id="spend-label">Hold to spend an edge</span></button>
      <p class="ue-count"><span id="ue-n">0</span> spent this visit</p>
    </div>
    <figure class="copy-pic ue-grit">
      <img src="img/dark-sand.png" alt="Dark sand, printed as a blue photocopy" width="400" height="713" loading="lazy">
      <figcaption>Exhibit 4. Grit, enlarged. A stand-in.</figcaption>
    </figure>
  </div>
</section>

<!-- chapter: replacement-items -->
<section class="ch white" data-chapter="replacement-items" id="replacement">
  <div class="ink rp">
    <h2>Replacements are held in the back.</h2>
    <div class="knife-wrap">
      <svg class="knife" id="knife" viewBox="0 0 1000 200" role="img" aria-labelledby="kn-t">
        <title id="kn-t">Outline of a gyuto</title>
        <defs><linearGradient id="kn-g" x1="0" y1="0" x2="0" y2="1"><stop offset="0" style="stop-color:var(--blade-dark)"/><stop offset=".55" style="stop-color:var(--white)"/><stop offset="1" style="stop-color:var(--blade)"/></linearGradient></defs>
        <path class="kn-steel" d="M280 60 L1000 88 C860 150 560 170 280 170 Z"/>
        <path class="kn-bevel" d="M300 142 C560 142 840 124 985 92"/>
        <text class="kn-etch" x="350" y="128" lang="ja">牛刀</text>
        <path pathLength="1" d="M280 60 L1000 88 C860 150 560 170 280 170 Z"/>
        <path pathLength="1" d="M30 68h236a14 14 0 0 1 14 14v56a14 14 0 0 1-14 14H30a22 22 0 0 1-22-22V90a22 22 0 0 1 22-22z"/>
        <path pathLength="1" d="M280 62v108"/>
      </svg>
      <p class="kn-scale">Not to scale. Neither is this office.</p>
    </div>
    <p class="rp-lead">Two things are kept in the back.</p>
    <ul class="forges">
      <li><span class="fg-k" lang="ja">刀</span><div><h3>Knives</h3><p>Japanese kitchen knives. Each one is sharpened here by hand before it leaves the office.</p></div></li>
      <li><span class="fg-k" lang="ja">研</span><div><h3>Stones</h3><p>Whetstones, coarse to fine, for keeping the new edge at home.</p></div></li>
    </ul>
    <div class="gyuto">
      <p class="gy-word"><span lang="ja">牛刀</span> Gyuto</p>
      <p>The word means beef sword. The usual first knife.</p>
      <button class="tag price" type="button" id="price-tag">From $180</button>
      <a class="btn" href="#claim" data-intent="replace">Ask about a replacement</a>
    </div>
  </div>
</section>

<!-- chapter: quiet-questions -->
<section class="ch pink" data-chapter="quiet-questions" id="quiet">
  <div class="ink qq">
    <h2>Questions the office is asked quietly.</h2>
    <div class="qq-list">
      <details open><summary><span class="qmark"></span>Query 1. It went through the dishwasher. Is it too late?</summary><p>Bring it anyway. Chips get ground out by taking the edge back past them.</p></details>
      <details><summary><span class="qmark"></span>Query 2. Can I use a steel?</summary><p>A smooth steel can stand a rolled edge back up. A grooved steel scrapes it, and hard Japanese steel can chip on it.</p></details>
      <details><summary><span class="qmark"></span>Query 3. What do I do between sharpenings?</summary><p>Hand wash. Dry it. Wood or plastic board. Leave the slot alone.</p></details>
      <details id="q-pull"><summary><span class="qmark"></span>Query 4. Should I feel bad about the pull-through?</summary><p>The office does not deal in feelings. It came with the block.</p><span class="stamp-mark qq-stamp" hidden>NOTED</span></details>
    </div>
    <figure class="copy-pic qq-wood">
      <img src="img/wood-bowl.png" alt="Pale wood grain in a turned bowl, printed as a blue photocopy" width="400" height="400" loading="lazy">
      <figcaption>Exhibit 5. Wood. The correct answer.</figcaption>
    </figure>
  </div>
</section>

<!-- chapter: the-claim -->
<section class="ch white" data-chapter="the-claim" id="claim">
  <div class="ink cl">
    <h2>Form of claim.</h2>
    <div class="cl-clip">
      <form class="cl-form" id="claim-form" novalidate>
        <p class="form-corner">Form LE-1, white original. Pink and canary copies remain with the office.</p>
        <fieldset class="cl-kind">
          <legend class="vh">What is this claim for</legend>
          <label><input type="radio" name="kind" value="report" checked><span>I wish to report a lost edge.</span></label>
          <label><input type="radio" name="kind" value="replace"><span>I wish to replace the item.</span></label>
        </fieldset>
        <div class="fld"><label for="cl-name">Your name</label><input id="cl-name" name="name" autocomplete="name" required aria-describedby="cl-name-h"><p class="hlp" id="cl-name-h"></p></div>
        <div class="fld"><label for="cl-contact">Telephone or email</label><input id="cl-contact" name="contact" autocomplete="email" inputmode="email" required aria-describedby="cl-contact-h"><p class="hlp" id="cl-contact-h"></p></div>
        <div class="fld short"><label for="cl-len">Blade length in inches</label><input id="cl-len" name="inches" inputmode="decimal" value="8"></div>
        <div class="fld"><label for="cl-dec">Anything to declare</label><textarea id="cl-dec" name="declare" rows="4"></textarea></div>
        <button class="btn cl-file" type="submit" id="cl-go">File this claim</button>
      </form>
    </div>
    <div class="cl-drawer" aria-hidden="true"><div class="cl-mouth"></div><p>Claims</p></div>
    <div class="cl-result" id="cl-result" hidden tabindex="-1">
      <p class="cl-msg" id="cl-msg"></p>
      <button class="btn" type="button" id="cl-copy" hidden>Copy claim</button>
    </div>
  </div>
</section>

<!-- chapter: closing-notice -->
<section class="ch canary" data-chapter="closing-notice" id="closing">
  <div class="ink cn">
    <p class="cn-now">Now serving</p>
    <p class="cn-num" id="cn-num">0001</p>
    <p class="cn-your">Your number. The edge ends here.</p>
    <p class="cn-back" id="cn-back" hidden>You came back for it.</p>
    <p class="cn-bring">Bring the knife.</p>
    <p class="cn-links"><a href="#claim">Report a lost edge</a> <a href="#claim" data-intent="replace">Replace the item</a></p>
    <p class="cn-where"><strong>Hone</strong>, Portland, Oregon. Lost Edge Office. <a href="mailto:counter@hone.example">counter@hone.example</a></p>
    <p class="cn-fiction">Hone is a made-up shop. Its prices are examples, and nothing on this page can be bought or paid for.</p>
    <p class="cn-colophon">Set in Abril Fatface and DotGothic16. The steel is drawn by code, no photograph of steel was used. The blue pictures are generated pictures put through a photocopier. Nothing on this page is a photograph of our knives, because no photographs have been taken yet.</p>
  </div>
</section>
</main>
<div id="live" class="vh" aria-live="polite"></div>
<noscript><style>.td-stage{position:static!important;height:auto!important}[data-chapter=three-days]{height:auto!important}.td-pad{max-height:none!important;display:grid;gap:18px}.leaf{position:static!important;transform:none!important;min-height:420px}[data-chapter=take-a-number]{height:auto!important}.tk-stage{position:static!important;height:auto!important}</style></noscript>
<script defer src="js/config.js"></script>
<script defer src="js/stage.js"></script>
<script defer src="js/chapters.js"></script>
</body>
</html>
```

Create `404.html` exactly as below.

```html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="robots" content="noindex">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Hone. This page has also been lost.</title>
<meta name="theme-color" content="#F3D93F">
<link rel="stylesheet" href="site.css">
<style>
.lost{min-height:100svh;display:flex;flex-direction:column;justify-content:center;gap:18px;padding:24px var(--gut) 24px calc(var(--blade-w) + var(--gut))}
.lost h1{font-size:clamp(50px,14vw,150px);line-height:.95}
#strip{position:fixed;left:0;top:0;bottom:0;width:var(--blade-w)}
</style>
</head>
<body class="canary">
<div id="strip" aria-hidden="true"></div>
<main class="lost">
  <p>Lost Edge Office</p>
  <h1>This page has also been lost.</h1>
  <p>It is not in the back. <a href="./">Return to the counter</a>.</p>
</main>
</body>
</html>
```

## 5. Styles

Create `site.css` exactly as below. It holds the fonts, the colour tokens (canary `#F3D93F`, pink `#F4AFC2`, office white `#F6F4EC`, carbon blue `#1B2C9C`, stamp red `#D4142F`, blade grey `#AEB6BC`), the layout of every chapter, the phone layout and every CSS animation the scripts switch on with classes (`ring`, `down`, `in`, `on`, `under`, `holding`, `swing`, `drawn`, `filed`) and variables (`--p`, `--t`, `--sway`).

```css
/* world/00-tokens.css */
/* Abril Fatface and DotGothic16: SIL Open Font License 1.1, see fonts/OFL-*.txt. The three DotGothic16 Japanese files are unmodified npm @fontsource/dotgothic16 parts, each used here for one character. */
@font-face{font-family:"Abril Fatface";src:url(fonts/abril-fatface-latin-400-normal.woff2) format("woff2");font-display:swap}
@font-face{font-family:"DotGothic16";src:url(fonts/dotgothic16-87-400-normal.woff2) format("woff2");font-display:swap;unicode-range:U+5200}
@font-face{font-family:"DotGothic16";src:url(fonts/dotgothic16-93-400-normal.woff2) format("woff2");font-display:swap;unicode-range:U+725B}
@font-face{font-family:"DotGothic16";src:url(fonts/dotgothic16-107-400-normal.woff2) format("woff2");font-display:swap;unicode-range:U+7814}
@font-face{font-family:"DotGothic16";src:url(fonts/dotgothic16-latin-400-normal.woff2) format("woff2");font-display:swap;unicode-range:U+0000-00FF,U+2018-2019,U+201C-201D,U+2026}
@font-face{font-family:"Notice Fallback";src:local("Georgia");size-adjust:92%;ascent-override:96%}

:root{
  --canary:#F3D93F; --pink:#F4AFC2; --white:#F6F4EC; --carbon:#1B2C9C; --stamp:#D4142F; --blade:#AEB6BC;
  --blade-dark:#6F7880; --manila:#E8C98A; --string:#7A5A2C; --brass:#B08A2E; --slot:#14151A;
  --display:"Abril Fatface","Notice Fallback",Georgia,serif;
  --print:"DotGothic16","Courier New",monospace;
  --blade-w:clamp(56px,16vw,280px);
  --gut:clamp(14px,3vw,40px);
  --drop:cubic-bezier(.2,.9,.25,1);
  --pull:cubic-bezier(.5,0,.8,.3);
  --settle:cubic-bezier(.16,1,.3,1);
}


/* world/10-base.css */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scrollbar-color:var(--blade-dark) var(--canary);font-synthesis:none}
body{margin:0;background:var(--canary);color:var(--carbon);font:400 17px/1.5 var(--print);overflow-x:clip}
h1,h2,h3,p,dl,dd,ol,ul,figure{margin:0;padding:0}
ol,ul{list-style:none}
h1,h2,h3{font-family:var(--display);font-weight:400}
img,svg{display:block;max-width:100%}
a{color:inherit;text-decoration:underline double;text-decoration-thickness:1px;text-underline-offset:.2em}
a:hover{text-decoration-thickness:2px}
[hidden]{display:none!important}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
::selection{background:var(--stamp);color:var(--white)}
input,textarea{caret-color:var(--carbon)}
:focus-visible{outline:3px solid var(--stamp);outline-offset:3px}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip{position:fixed;left:8px;top:-60px;z-index:9;background:var(--white);padding:10px 14px}
.skip:focus{top:8px}

#strip{position:fixed;left:0;top:0;bottom:0;width:var(--blade-w);z-index:1;background:linear-gradient(90deg,var(--blade-dark),var(--blade) 60%,var(--white))}
#steel{position:fixed;left:0;top:0;width:100vw;height:100lvh;z-index:1;pointer-events:none;opacity:0;transition:opacity .9s ease}
.gl #steel{opacity:1}
.gl #strip{opacity:0;transition:opacity .9s ease .3s}

/* The chapter root must not make a stacking context, so the fixed steel can lie between paper and ink.
   overflow-x:clip keeps a slamming stamp from widening the page (phones zoom out when it does); it makes no scroll box, so the sticky pins still work. */
.ch{position:relative;overflow-x:clip}
.ink{position:relative;z-index:2;padding-left:calc(var(--blade-w) + var(--gut));padding-right:var(--gut)}
.canary{background:var(--canary)}.pink{background:var(--pink)}.white{background:var(--white)}

#inches{position:fixed;left:0;bottom:calc(10px + env(safe-area-inset-bottom));width:var(--blade-w);z-index:3;text-align:center;font-size:13px;line-height:1.1;color:var(--slot);font-variant-numeric:tabular-nums;pointer-events:none}
#inch-n{font-size:15px;display:block}

/* Tag, a thing tied to the edge. Reused wherever something hangs from the blade. */
.tag{--tagbg:var(--manila);position:relative;isolation:isolate;display:inline-flex;align-items:center;min-height:52px;padding:10px 20px 10px 34px;color:var(--slot);font-family:var(--print);text-decoration:none;transform-origin:8px 50%;transition:transform .2s var(--settle)}
.tag::after{content:"";position:absolute;inset:0;z-index:-1;background:var(--tagbg);clip-path:polygon(16px 0,100% 0,100% 100%,16px 100%,0 50%);transition:background-color .15s}
.tag::before{content:"";position:absolute;left:14px;top:50%;width:11px;height:11px;margin-top:-5.5px;border-radius:50%;background:var(--canary);box-shadow:0 0 0 2px var(--string)}
.tag:hover{transform:rotate(-2.5deg);--tagbg:var(--white)}
.tag:active{transform:translateY(2px) rotate(-1deg)}
.string{position:absolute;overflow:visible;pointer-events:none}
.string path{fill:none;stroke:var(--string);stroke-width:1.5}

.stamp-mark{display:inline-block;color:var(--stamp);border:3px solid currentColor;padding:2px 10px;font-family:var(--display);transform:rotate(-7deg) scale(1);mix-blend-mode:multiply}
@keyframes slam{0%{opacity:0;transform:rotate(-16deg) scale(2.4)}70%{opacity:1;transform:rotate(-5deg) scale(.94)}100%{opacity:1;transform:rotate(-7deg) scale(1)}}
.stamp-mark.down{animation:slam .18s var(--drop) both}

.btn{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:10px 22px;background:var(--carbon);color:var(--white);font-family:var(--print);font-size:17px;text-decoration:none;transition:transform .12s var(--settle),background-color .15s}
.btn:hover{background:var(--stamp)}
.btn:active{transform:translateY(2px)}

.copy-pic{position:relative}
.copy-pic img{width:100%;height:auto;image-rendering:pixelated}
.copy-pic::before{content:"";position:absolute;left:18px;top:-5px;width:30px;height:7px;border-radius:2px;background:linear-gradient(#d8dde1,#858d94);box-shadow:0 2px 2px rgb(0 0 0/.35);z-index:1}
figcaption{font-size:14px;line-height:1.35;margin-top:8px}

.no-gl .ch[data-chapter=the-confession],.no-gl .ch[data-chapter=unused-edges],.reduce .ch[data-chapter=the-confession],.reduce .ch[data-chapter=unused-edges]{background:linear-gradient(95deg,var(--blade-dark),var(--blade) 55%,var(--white))}

@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.001s!important;animation-delay:0s!important;transition-duration:.001s!important}}
@media print{#steel,#strip,#inches,.ch:not([data-chapter=the-claim]){display:none}.ink{padding:0}}

/* Form paper has fibre, and every sheet is perforated where it tears from the one before it. */
.canary,.pink,.white{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .1 0 0 0 0 .1 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23f)'/%3E%3C/svg%3E")}
.ch{--prev:var(--canary)}
[data-chapter=two-suspects],[data-chapter=scene-of-the-incident],[data-chapter=fee-by-the-inch]{--prev:var(--canary)}
[data-chapter=damage-by-inch],[data-chapter=quiet-questions]{--prev:var(--white)}
[data-chapter=the-reading],[data-chapter=three-days]{--prev:var(--pink)}
[data-chapter=three-days]{--prev:var(--white)}
[data-chapter=replacement-items],[data-chapter=the-claim]{--prev:var(--white)}
[data-chapter=the-claim]{--prev:var(--pink)}
[data-chapter=closing-notice]{--prev:var(--white)}
.ch:not(:first-child)::after{content:"";position:absolute;left:0;right:0;top:-7px;height:14px;pointer-events:none;background:radial-gradient(circle at 7px 7px,var(--prev) 4.5px,transparent 5px) 0 0/14px 14px repeat-x}
[data-chapter=the-confession]::after,[data-chapter=unused-edges]::after{display:none}
.form-corner{font-size:13px;line-height:1.2}


/* chapter: the-counter */
.counter{min-height:100svh;padding-top:18px;padding-bottom:30px;display:flex;flex-direction:column}
.office{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;font-size:20px;line-height:1.1}
.office-name{font-family:var(--display)}
.office-what{font-size:16px;line-height:1.3;background:var(--white);color:var(--slot);padding:4px 10px;box-shadow:0 0 0 1.5px var(--carbon)}
.poster{font-size:min(26vw,19.5svh);line-height:.86;letter-spacing:-.02em;margin:14px 0 18px;color:var(--carbon)}
.desk{margin-top:auto;display:grid;gap:14px}
.sub{font-size:19px;line-height:1.35;max-width:32ch}
.tag>span{display:grid;gap:2px;line-height:1.2}
.tag small{font-size:13px;opacity:.78}
.tags{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.bellrow{display:flex;align-items:center;gap:14px;min-height:60px;position:relative}
.bell{width:62px;height:52px;flex:none;transform-origin:50% 88%;transition:transform .15s var(--settle)}
.bell svg{width:100%;height:100%;overflow:visible}
.bell:hover{transform:rotate(4deg)}
.bell:active{transform:translateY(2px) scaleY(.94)}
.b-base{fill:var(--slot)}.b-dome{fill:var(--brass)}.b-pin{fill:var(--slot)}
.b-shine{fill:none;stroke:var(--canary);stroke-width:3;stroke-linecap:round;opacity:.7}
@keyframes ding{0%{transform:rotate(0)}18%{transform:rotate(-14deg)}40%{transform:rotate(10deg)}62%{transform:rotate(-6deg)}82%{transform:rotate(3deg)}100%{transform:rotate(0)}}
.bell.ring svg{animation:ding .9s var(--settle)}
#bell-label{font-size:15px;line-height:1.25;width:18ch}
.noted{position:absolute;right:0;top:-6px;font-size:18px}

@media (min-width:900px){
  .counter{padding-top:26px}
  .poster{font-size:min(13vw,30vh);margin:22px 0 0;line-height:.9}
  .poster br.p{display:none}
  .desk{grid-template-columns:auto minmax(0,1fr) auto;align-items:end;gap:40px;margin-bottom:6px}
  .tags{order:-1}
  .sub{font-size:24px;max-width:34ch}
}
/* Small phones: a smaller poster, so the lead that says what the shop does stays on the first screen. */
@media (max-width:360px){.poster{font-size:min(22vw,19.5svh)}.office-what{font-size:14px}}
/* Portrait tablets: the poster on three lines, so the shop, the tags and the bell share the first screen. */
@media (min-width:600px) and (max-width:899px){
  .poster{font-size:min(16vw,15svh);line-height:.9;margin:20px 0 0}
  .poster br.p{display:none}
  .sub{font-size:22px;max-width:30ch}
  .desk{grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:18px 28px}
  .desk .sub{grid-column:1/-1}
}
/* Landscape phones: the poster on two lines, the desk in one row. */
@media (max-height:500px) and (orientation:landscape){
  .counter{padding-top:12px;padding-bottom:14px}
  .office-what{font-size:13px}
  .poster{font-size:17svh;line-height:.9;margin:10px 0 0}
  .poster br.p{display:none}
  .desk{grid-template-columns:auto minmax(0,1fr) auto;align-items:end;gap:20px}
  .tags{order:-1}
  .desk .sub{grid-column:auto;font-size:15px;max-width:36ch}
  .tag{min-height:46px;padding-top:6px;padding-bottom:6px}
}


/* chapter: take-a-number */
[data-chapter=take-a-number]{height:210svh}
.tk-stage{position:sticky;top:0;height:100svh;display:flex;flex-direction:column;align-items:center;padding-top:22px;z-index:2}
.tk-title{font-size:clamp(46px,14vw,120px);line-height:1;align-self:stretch;margin-bottom:18px}
.tk-slot{flex:none;width:min(100%,430px);height:14px;background:var(--slot);box-shadow:inset 0 5px 6px #000}
.tk-clip{flex:1;width:min(100%,430px);overflow:hidden;margin-top:-5px;padding:0 6px}
.ticket{position:relative;background:var(--white);color:var(--slot);padding:26px 20px 34px;transform:translateY(calc((var(--p,1) - 1) * 100%));will-change:transform;
  background-image:linear-gradient(90deg,transparent 62%,rgb(27 44 156/.05) 63%,transparent 66%)}
.ticket::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:10px;background:radial-gradient(circle at 8px 12px,var(--canary) 6px,transparent 6.5px) 0 0/16px 10px repeat-x}
.tk-office{font-family:var(--display);font-size:22px;line-height:1.05}
.tk-label{margin-top:16px;font-size:15px}
.tk-num{font-family:var(--display);font-size:clamp(90px,26vw,128px);line-height:.92;color:var(--carbon);font-variant-numeric:tabular-nums}
.tk-facts{margin-top:18px;border-top:1px dashed var(--slot)}
.tk-facts li{padding:9px 0;border-bottom:1px dashed var(--slot);font-size:18px;line-height:1.25}
.tk-back{margin-top:14px;font-size:15px;color:var(--stamp)}
.tk-fine{margin-top:16px;font-size:14px}
@media (min-width:900px){.tk-title{text-align:center}}

.tk-machine{flex:none;width:min(100%,460px);height:clamp(92px,15svh,132px);background:linear-gradient(180deg,var(--stamp),var(--stamp) 74%,var(--slot));border-radius:18px 18px 0 0;position:relative;display:flex;align-items:center;justify-content:space-between;padding:0 24px;color:var(--white);font-family:var(--display);font-size:clamp(34px,10vw,54px);line-height:1;box-shadow:inset 0 3px 0 rgb(255 255 255/.28)}
.tk-pull{font:400 15px var(--print)}
.tk-slot{width:min(100%,460px);height:16px;margin-top:-1px}
.tk-clip{width:min(100%,430px)}
@media (max-width:360px){.tk-num{font-size:21vw}}
/* Short phones (320 x 640): a compact dispenser and ticket, so the whole ticket, return note included, fits under it. */
@media (max-width:600px) and (max-height:700px) and (orientation:portrait){
  .tk-stage{padding-top:14px}
  .tk-title{font-size:38px;margin-bottom:10px}
  .tk-machine{height:64px;font-size:30px}
  .ticket{padding:16px 16px 22px}
  .tk-office{font-size:18px}.tk-label{margin-top:8px;font-size:13px}
  .tk-num{font-size:18vw}
  .tk-facts{margin-top:10px}.tk-facts li{padding:5px 0;font-size:15px}
  .tk-back,.tk-fine{margin-top:8px;font-size:13px}
}
/* Landscape phones: the title beside the dispenser, a shorter ticket that fits under it. */
@media (max-height:500px) and (orientation:landscape){
  .tk-stage{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,430px);grid-template-rows:auto auto minmax(0,1fr);column-gap:28px;align-items:start;padding-top:14px}
  .tk-title{grid-row:1/4;font-size:13svh;align-self:center;margin:0}
  .tk-machine,.tk-slot,.tk-clip{grid-column:2}
  .tk-machine{height:64px;font-size:34px}
  .tk-clip{height:100%}
  .ticket{padding:14px 18px 22px}
  .tk-office{font-size:17px}.tk-label{margin-top:6px;font-size:13px}
  .tk-num{font-size:56px}
  .tk-facts{margin-top:8px}.tk-facts li{padding:4px 0;font-size:14px}
  .tk-back,.tk-fine{margin-top:6px;font-size:12.5px}
}


/* chapter: two-suspects */
[data-chapter=two-suspects]{background-image:repeating-linear-gradient(180deg,transparent 0 39px,rgb(27 44 156/.13) 39px 40px)}
.su-head{padding-top:60px;padding-bottom:40px}
.su-head h2{font-size:clamp(46px,13.5vw,140px);line-height:.96;letter-spacing:-.015em}
.su-wall{display:grid;gap:70px}
.suspect{display:grid;grid-template-columns:44px minmax(0,1fr);gap:12px;align-items:start}
.ruler-v{height:340px;border-right:2px solid var(--carbon);display:flex;flex-direction:column;justify-content:space-between;font-size:13px;text-align:right;padding-right:6px;background:repeating-linear-gradient(180deg,var(--carbon) 0 1px,transparent 1px 20px) right/10px 100% no-repeat}
.ruler-v.small{height:62px}
.su-body{position:relative;display:grid;gap:14px}
.su-tall{background:var(--white)}
.su-tall{position:relative}
.su-tall img{height:340px;object-fit:cover;object-position:60% 50%;clip-path:inset(46px 0 58px 0)}
.dw{position:absolute;left:0;top:0;width:100%;height:340px;pointer-events:none}
.dw rect,.dw path{fill:none;stroke:var(--carbon);stroke-width:2}
.dw .dw-h{stroke-width:5}
.su-tall figcaption{margin-top:6px}
.su-text{display:grid;gap:8px;justify-items:start}
.su-text h3{font-size:clamp(36px,9.6vw,64px);line-height:1}
.su-text p{max-width:40ch}
.su-note{font-size:14px}
.su-id{margin-top:6px}
.su-id[aria-pressed=true]{background:var(--stamp)}
.pullthrough{width:132px;height:auto}
.pullthrough path{fill:var(--white);stroke:var(--carbon);stroke-width:2}
.pullthrough .pt-v{fill:var(--slot);stroke:none}
.pullthrough .pt-grip{stroke-width:2}
.su-stamp{position:absolute;left:12px;top:30%;font-size:clamp(26px,7vw,40px)}
.su-stamp.small{left:146px;top:-4px;font-size:22px}
@media (max-width:600px){.su-stamp.small{left:auto;right:0}}
.su-foot{padding-top:60px;padding-bottom:70px;font-family:var(--display);font-size:clamp(26px,7vw,48px);line-height:1.1}
.su-charges{font-family:var(--print);color:var(--stamp);font-size:18px;margin-top:10px}
@media (min-width:900px){
  .su-wall{grid-template-columns:1fr 1fr;align-items:end;gap:40px}
  .su-tall img{height:380px}.ruler-v{height:380px}.dw{height:380px}
}


/* chapter: damage-by-inch */
.dm-head{padding-top:64px;padding-bottom:30px}
.dm-head h2{font-size:clamp(48px,14vw,140px);line-height:.96}
.dm-list{display:block;padding-left:calc(var(--blade-w) + var(--gut) + 10vw)}
.wear-item{min-height:58svh;padding:26px 0;display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.wear-tag{transform:rotate(var(--sway,0deg));font-size:clamp(30px,8vw,48px);font-family:var(--display);min-height:60px;gap:10px;padding:8px 18px 8px 36px}
.wear-dt{display:block}
.wear-tag:hover{transform:rotate(calc(var(--sway,0deg) - 3deg))}
.wear-at{font:400 13px var(--print);color:var(--carbon);font-variant-numeric:tabular-nums}
.wear-item dd{font-size:20px;line-height:1.32;max-width:30ch;padding-left:6px}
.dm-foot{padding-top:20px;padding-bottom:80px;font-size:15px}
@media (min-width:900px){
  .i2{padding-left:90px}.i3{padding-left:22px}.i4{padding-left:150px}.i5{padding-left:50px}
  .wear-item{min-height:52vh}
  .wear-item dd{font-size:20px}
}

@media (min-width:900px){.dm-list{padding-left:calc(var(--blade-w) + var(--gut) + 13vw)}}

.dm-head,.dm-foot{padding-left:calc(var(--blade-w) + var(--gut) + 10vw)}
.dm-foot{padding-top:40px}
.dm-foot p{font-size:17px;max-width:30ch}
@media (min-width:900px){.dm-head,.dm-foot{padding-left:calc(var(--blade-w) + var(--gut) + 13vw)}}


/* chapter: scene-of-the-incident */
.sc{padding-top:50px;padding-bottom:110px;display:grid;gap:64px;justify-items:start}
.sc-a{width:min(94%,520px);margin-left:6%;rotate:-2deg;transition:transform .25s var(--settle)}
.sc-b{width:min(70%,300px);rotate:3deg;justify-self:end;transition:transform .25s var(--settle)}
.sc-a:hover,.sc-b:hover{transform:translateY(-3px)}
[data-enter] {opacity:0;transform:translateY(8px)}
[data-enter].in{opacity:1;transform:none;transition:opacity .5s linear,transform .5s var(--drop)}
.sc-late{font-family:var(--display);font-size:clamp(30px,8.5vw,52px);line-height:1.05;max-width:13em}
.js-late .sc-late{opacity:0}.js-late .sc-late.on{opacity:1;transition:opacity .6s linear}
@media (min-width:900px){.sc{grid-template-columns:1fr 1fr;align-items:center;padding-top:90px}.sc-b{justify-self:center}.sc-late{grid-column:1/-1;font-size:60px}}

[data-chapter=scene-of-the-incident]::before{content:"Form of claim";position:absolute;right:var(--gut);bottom:5%;font-family:var(--display);font-size:clamp(40px,10.5vw,150px);line-height:1;color:var(--carbon);opacity:.07;transform:rotate(-1.5deg);pointer-events:none}


/* chapter: the-reading */
.rd-head{min-height:62svh;padding-top:60px;padding-bottom:30px;display:flex;flex-direction:column;justify-content:flex-end;gap:16px}
.rd-head h2{font-size:clamp(46px,13.5vw,132px);line-height:.94;letter-spacing:-.015em}
.rd-head p{font-size:18px;max-width:40ch}
.rd-form{display:block}
.panel{border:0;border-top:3px solid var(--carbon);margin:0;min-height:100svh;padding-top:12px;padding-bottom:44px;display:flex;flex-direction:column;background-image:repeating-linear-gradient(180deg,transparent 0 61px,rgb(27 44 156/.16) 61px 62px)}
.panel .form-corner{text-align:right}
.panel legend{float:left;width:100%;padding:0;font-family:var(--display);font-size:clamp(44px,12.5vw,104px);line-height:.96;letter-spacing:-.01em}
.qn{display:block;font-family:var(--print);font-size:15px;letter-spacing:0;margin-bottom:10px}
.hint{clear:both;font-size:15px;padding-top:12px}
.opts{clear:both;display:grid;gap:2px;margin-top:24px}
.opt{position:relative;display:flex;align-items:center;min-height:62px;padding:4px 0 4px 6px;border-bottom:1px solid var(--carbon);cursor:pointer;font-size:21px;line-height:1.15}
.opt:hover span{transform:translateX(5px)}
.opt span{position:relative;z-index:1;padding:8px 16px;transition:transform .15s var(--settle)}
.opt input{position:absolute;opacity:0;width:100%;height:100%;left:0;top:0;margin:0;cursor:pointer}
.opt:focus-within{outline:3px solid var(--stamp);outline-offset:2px}
.opt .ring{position:absolute;inset:-5px 0 -5px -4px;width:calc(100% + 4px);height:calc(100% + 10px);pointer-events:none;overflow:visible}
.opt .ring path{fill:none;stroke:var(--carbon);stroke-width:1.2;stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset .38s cubic-bezier(.3,.6,.3,1)}
.opt input:checked ~ .ring path{stroke-dashoffset:0}
.opt input:checked ~ span{color:var(--stamp)}
.nextq{align-self:flex-start;margin-top:26px}

.len{clear:both;font-family:var(--display);font-size:clamp(100px,30vw,230px);line-height:.9;margin-top:22px;font-variant-numeric:tabular-nums}
.len span{font-size:max(.2em,18px);font-family:var(--print)}
.len-range{width:100%;height:56px;accent-color:var(--carbon);margin:14px 0 26px;touch-action:none}
.print-btn{align-self:flex-start;font-size:20px;min-height:64px;padding:12px 30px}

.printer{padding-top:30px;padding-bottom:70px;min-height:60svh}
.slot{height:20px;background:var(--slot);max-width:640px;box-shadow:inset 0 5px 7px #000}
.slip-clip{overflow:hidden;max-width:640px;margin-top:-6px}
.slip{position:relative;background:var(--white);color:var(--slot);font:400 18px/1.42 var(--print);padding:26px 38px 44px;min-height:440px;
  background-image:radial-gradient(circle at 13px 14px,var(--canary) 0 5px,transparent 5.5px),radial-gradient(circle at calc(100% - 13px) 14px,var(--canary) 0 5px,transparent 5.5px);background-size:100% 28px;background-repeat:repeat-y}
.slip-wait{min-height:90px;color:var(--carbon)}
.slip .ln{display:block;clip-path:inset(0 100% 0 0)}
.slip .ln.on{clip-path:inset(0 0 0 0);animation:judder .12s steps(2) 1}
@keyframes judder{50%{transform:translateX(1px)}}
.slip .rule{border-top:1px dashed var(--slot);margin:8px 0}
.slip .big{font-family:var(--display);font-size:clamp(38px,10vw,68px);line-height:1;margin:6px 0 10px}
.slip .fine{font-size:13.5px;margin-top:10px;color:var(--carbon)}
.slip-stamp{position:absolute;right:24px;bottom:60px;font-size:40px;line-height:1;text-align:center;padding:6px 12px;opacity:0}
.slip-stamp small{display:block;font:400 14px var(--print);margin-top:2px}
.slip-stamp.down{opacity:1}
.slip-actions{display:flex;flex-direction:column;align-items:flex-start;gap:12px;margin-top:22px}
.again{min-height:48px;text-decoration:underline double;text-underline-offset:.2em;font-size:15px}
.again:hover{color:var(--stamp)}

@media (min-width:900px){
  .panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,440px);column-gap:60px;align-content:center}
  .panel legend{float:none;grid-column:1;grid-row:1/4;align-self:center}
  .opts,.hint{grid-column:2}.opts{margin-top:0}
  .nextq,.print-btn{grid-column:2}
  .len,.len-range{grid-column:2}
  .printer{display:grid;justify-items:start}
}

.slip::after{content:"";position:absolute;left:0;right:0;bottom:0;height:22px;background:linear-gradient(transparent,rgb(20 21 26/.16));pointer-events:none}

@media (min-width:900px){.panel{min-height:82vh}.opt{font-size:27px;min-height:76px}}
.panel{position:relative}
.panel .form-corner{position:absolute;right:var(--gut);top:12px;margin:0}


/* chapter: fee-by-the-inch */
.fee{padding-top:64px;padding-bottom:40px;display:grid;gap:18px;grid-template-columns:minmax(0,1fr) 76px;column-gap:14px}
.fee h2{font-size:clamp(46px,13vw,130px);line-height:.96;grid-column:1/-1}
.fee-sub{grid-column:1;font-size:18px;max-width:30ch}
.ruler{grid-column:2;grid-row:2/7;position:relative;height:66svh;align-self:start;background:var(--manila);transition:transform .15s var(--settle);border-left:4px solid var(--brass)}
.ruler:active{transform:rotate(1deg)}
.ruler-track{position:absolute;inset:0;background:repeating-linear-gradient(180deg,var(--slot) 0 1px,transparent 1px calc(100%/12)) left/42% 100% no-repeat;display:flex;flex-direction:column-reverse;justify-content:space-between;font-family:var(--display);font-size:17px;align-items:flex-end;padding:0 6px}
.ruler-track span{line-height:0}
.ruler-input{position:absolute;inset:0;width:100%;height:100%;margin:0;-webkit-appearance:none;appearance:none;background:none;writing-mode:vertical-lr;direction:rtl;touch-action:none;cursor:grab}
.ruler-input::-webkit-slider-thumb{-webkit-appearance:none;width:76px;height:6px;background:var(--stamp);border:0}
.ruler-input::-moz-range-thumb{width:76px;height:6px;background:var(--stamp);border:0;border-radius:0}
.fee-read{grid-column:1;font-family:var(--display);font-size:clamp(88px,24vw,180px);line-height:.92;font-variant-numeric:tabular-nums}
.fee-read span{font-size:.17em;font-family:var(--print);display:block}
.fee-price{grid-column:1;font-size:18px;color:var(--stamp)}
.fee-help{grid-column:1;font-size:15px;max-width:30ch}
.fee-big{grid-column:1;font-size:15px;color:var(--stamp)}
@media (min-width:900px){
  .fee{grid-template-columns:minmax(0,1fr)}
  .fee-sub,.fee-read,.fee-price,.fee-help,.fee-big,.ruler{grid-column:1;grid-row:auto}
  .ruler{height:96px;align-self:auto;border-left:0;border-top:4px solid var(--brass);margin:10px 0}
  .ruler-track{background:repeating-linear-gradient(90deg,var(--slot) 0 1px,transparent 1px calc(100%/12)) top/100% 42% no-repeat;flex-direction:row;align-items:flex-end;padding:0 0 8px}
  .ruler-input{writing-mode:horizontal-tb;direction:ltr}
  .ruler-input::-webkit-slider-thumb{width:6px;height:96px}
  .ruler-input::-moz-range-thumb{width:6px;height:96px}
  .fee-sub{font-size:20px}
}

.ruler-track span:nth-child(-n+3){opacity:.55}


/* chapter: three-days */
[data-chapter=three-days]{height:300svh}
.td-stage{position:sticky;top:0;height:100svh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding-top:24px;padding-bottom:24px;z-index:2;overflow:clip}
.td-bind{width:min(100%,460px);height:22px;background:var(--slot);flex:none}
.td-pad{position:relative;width:min(100%,460px);flex:1;max-height:640px}
.leaf{position:absolute;inset:0;background:var(--white);color:var(--slot);padding:24px 22px;display:flex;flex-direction:column;transform-origin:0 0;will-change:transform;box-shadow:0 10px 30px rgb(20 21 26/calc(var(--t,0) * .55));
  transform:translateY(calc(var(--t,0) * 130svh)) rotate(calc(var(--t,0) * var(--r,8deg)))}
.leaf::before{content:"";position:absolute;left:0;right:0;top:0;height:10px;background:radial-gradient(circle at 9px 0,var(--white) 5px,transparent 5.5px) 0 0/18px 10px repeat-x;transform:translateY(-9px)}
.l2{--r:-22deg}.l1{--r:26deg}.l0{--r:-18deg}
.lf{display:flex;flex-direction:column;height:100%}
.leaf.under .lf{visibility:hidden}
.lf-a{font-size:20px}
.lf-d{font-family:var(--display);font-size:min(46vw,250px);line-height:.92;color:var(--stamp);margin-top:6px;font-variant-numeric:tabular-nums;text-shadow:1.5px 1.5px 0 rgb(27 44 156/.8)}
.lf-b{font-family:var(--display);font-size:clamp(24px,7vw,34px);line-height:1.1}
.lf-c{margin-top:auto;font-family:var(--display);font-size:clamp(40px,11vw,56px);line-height:1;color:var(--carbon)}
.lf-e{font-size:15px;margin-top:6px}
.no-gl .td-stage,.reduce .td-stage{position:static;height:auto}
.no-gl [data-chapter=three-days],.reduce [data-chapter=three-days]{height:auto}
.no-gl .td-pad,.reduce .td-pad{max-height:none;display:grid;gap:18px}
.no-gl .leaf,.reduce .leaf{position:static;transform:none;min-height:420px}
/* Still page: the leaves stand in date order (the markup stacks them last day first for the tear-off). */
.no-gl .leaf.under .lf{visibility:visible}
.no-gl .l1,.reduce .l1{order:1}.no-gl .l0,.reduce .l0{order:2}.no-gl .l2,.reduce .l2{order:3}.no-gl .l3,.reduce .l3{order:4}
/* Landscape phones: a short pad, so a whole leaf fits on the screen. */
@media (max-height:500px) and (orientation:landscape){
  .td-stage{padding-top:12px;padding-bottom:12px}
  .td-bind{height:14px}
  .leaf{padding:12px 18px}
  .lf-a{font-size:15px}
  .lf-d{font-size:31svh;margin-top:2px}
  .lf-b{font-size:20px}
  .lf-c{font-size:30px}
  .lf-e{font-size:12.5px;margin-top:2px}
  .no-gl .leaf,.reduce .leaf{min-height:0}
}


/* chapter: the-confession */
[data-chapter=the-confession]{background:var(--pink)}
.cf{position:relative;z-index:2;padding:24vh var(--gut) 26vh;display:grid;gap:26px;color:var(--slot);max-width:1400px;margin:0 auto}
.cf-hd{font-size:19px}
.cf h2{font-size:clamp(58px,17.4vw,250px);line-height:.92;letter-spacing:-.015em;text-shadow:0 1.5px 0 rgb(255 255 255/.6),0 -1px 0 rgb(0 0 0/.3)}
.cf-p{font-size:clamp(20px,5.2vw,30px);line-height:1.3;max-width:26em;background:var(--white);padding:12px 16px}
.cf-mud{width:min(70%,340px);background:var(--white);padding:8px;rotate:-2.5deg;justify-self:end}
.cf-mud figcaption{color:var(--carbon);font-size:13px}


/* chapter: unused-edges */
[data-chapter=unused-edges]{background:var(--white);min-height:170svh}
.ue{position:relative;z-index:2;padding:18vh var(--gut) 24vh;display:grid;gap:20px;color:var(--slot);max-width:1300px;margin:0 auto}
.ue h2{font-size:clamp(46px,14vw,160px);line-height:.96;max-width:9em;text-shadow:0 1.5px 0 rgb(255 255 255/.6)}
.ue-p,.ue-note{background:var(--white);padding:14px 16px;position:relative}
.ue-p::before{content:"";position:absolute;left:18px;top:-4px;width:30px;height:7px;background:linear-gradient(var(--white),var(--blade-dark));box-shadow:0 2px 2px rgb(0 0 0/.35)}
.ue-p{font-size:clamp(19px,4.8vw,26px);line-height:1.32;max-width:24em}
.ue-note{font-size:15px;max-width:24em}
.ue-act{display:flex;align-items:center;gap:18px;justify-self:end;margin-top:30px}
.ue-btn{position:relative;width:142px;height:142px;flex:none;color:var(--white);font-size:16px;line-height:1.2;display:grid;place-items:center;padding:14px;background:var(--slot);border-radius:50%;transition:transform .12s var(--settle)}
.ue-btn:active{transform:translateY(2px) scale(.97)}
.ue-btn svg{position:absolute;inset:-6px;width:calc(100% + 12px);height:calc(100% + 12px);transform:rotate(-90deg);overflow:visible}
.ue-track{fill:none;stroke:rgb(0 0 0/.3);stroke-width:4}
.ue-fill{fill:none;stroke:var(--stamp);stroke-width:4;stroke-dasharray:1;stroke-dashoffset:1}
.ue-btn.holding .ue-fill{transition:stroke-dashoffset .8s linear;stroke-dashoffset:0}
.ue-count{font-size:15px;font-variant-numeric:tabular-nums}
.ue-count span{font-family:var(--display);font-size:42px;line-height:1;display:block}
.ue-grit{width:min(46%,220px);background:var(--white);padding:6px;rotate:2.5deg}
.ue-grit figcaption{color:var(--carbon);font-size:12.5px}


/* chapter: replacement-items */
.rp{padding-top:70px;padding-bottom:70px;display:grid;grid-template-columns:minmax(0,1fr);gap:26px}
.rp h2{font-size:clamp(40px,11.2vw,140px);line-height:.96}
.knife-wrap{position:relative;height:118vw;width:24vw;margin:8px 0 8px 26vw}
.knife{position:absolute;left:100%;top:0;width:118vw;height:auto;max-width:none;transform-origin:0 0;transform:rotate(90deg)}
.knife path{fill:none;stroke:var(--carbon);stroke-width:5;stroke-dasharray:1;stroke-dashoffset:var(--dash,0)}
.kn-steel{fill:url(#kn-g);stroke:none!important}
.kn-bevel{stroke-width:1.2!important;stroke-dasharray:none!important;opacity:.7}
.kn-etch{font:400 54px var(--print);fill:var(--slot);opacity:.68}
.knife.draw path{--dash:1}.knife.drawn path{--dash:0;transition:stroke-dashoffset 1.1s cubic-bezier(.4,.1,.2,1)}
.kn-scale{position:absolute;left:calc(100% + 16px);top:0;width:30vw;max-width:calc(50vw - var(--blade-w) - 2 * var(--gut) - 16px);font-size:13px}
.rp-lead{font-family:var(--display);font-size:clamp(34px,9.6vw,70px);line-height:1}
.forges{display:grid;gap:18px}
.forges li{display:grid;grid-template-columns:auto 1fr;gap:16px;align-items:start;border-top:1px solid var(--carbon);padding-top:14px}
.fg-k{font-size:62px;line-height:1;color:var(--stamp);font-family:var(--print)}
.forges h3{font-size:30px;line-height:1.05;margin-bottom:6px}
.forges p{font-size:17px;max-width:34ch}
.gyuto{display:grid;gap:12px;justify-items:start;margin-top:10px}
.gy-word{font-family:var(--display);font-size:clamp(46px,13vw,110px);line-height:1}
.gy-word span{font-family:var(--print);color:var(--stamp);font-size:.5em;vertical-align:.35em}
.price{font-family:var(--display);font-size:32px;min-height:68px;--tagbg:var(--canary)}
@keyframes swing{0%{transform:rotate(0)}18%{transform:rotate(12deg)}40%{transform:rotate(-8deg)}62%{transform:rotate(5deg)}82%{transform:rotate(-2deg)}100%{transform:rotate(0)}}
.price.swing{animation:swing .9s var(--settle)}
@media (min-width:900px){
  .knife-wrap{height:auto;width:100%;margin:0}
  .knife{position:static;width:100%;transform:none}
  .knife path{stroke-width:2.4}
  .kn-scale{position:static;width:auto;margin-top:6px}
  .forges{grid-template-columns:1fr 1fr;gap:40px}
  .gyuto{grid-template-columns:auto auto auto;justify-items:start;align-items:end;gap:24px}
  .gy-word{grid-column:1/-1}
}
@media (max-width:360px){.rp h2{font-size:34px}}


/* chapter: quiet-questions */
.qq{min-height:100svh;padding-top:80px;padding-bottom:90px;display:grid;gap:24px;align-content:center;justify-items:center;font-size:16px}
.qq h2{font-size:clamp(24px,5.6vw,34px);line-height:1.05;text-align:center;max-width:15em}
.qq-list{width:min(100%,430px);display:grid}
details{border-top:1px dotted var(--carbon);position:relative}
details:last-child{border-bottom:1px dotted var(--carbon)}
summary{display:flex;gap:10px;align-items:flex-start;padding:15px 2px;cursor:pointer;list-style:none;min-height:48px;line-height:1.3}
summary::-webkit-details-marker{display:none}
.qmark{flex:none;width:13px;height:13px;border-radius:50%;border:1.5px solid var(--carbon);margin-top:4px;transition:background-color .15s}
details[open] .qmark{background:var(--carbon)}
summary:hover{color:var(--stamp)}
details p{padding:0 2px 14px 25px;line-height:1.4}
details p .sl{display:inline-block;clip-path:inset(0 100% 0 0)}
details p .sl.on{clip-path:inset(0)}
.qq-stamp{position:absolute;right:0;top:6px;font-size:15px}
.qq-wood{width:min(50%,190px);rotate:-3deg;margin-top:24px}
@media (min-width:900px){.qq{font-size:14px}.qq h2{font-size:24px}}


/* chapter: the-claim */
.cl{padding-top:64px;padding-bottom:80px;display:grid;gap:22px}
.cl h2{font-size:clamp(50px,15vw,140px);line-height:.96}
.cl-clip{overflow:hidden;max-width:640px;padding:0 14px 14px 0;position:relative;background:linear-gradient(var(--pink),var(--pink)) 7px 7px/100% 100% no-repeat,linear-gradient(var(--canary),var(--canary)) 14px 14px/100% 100% no-repeat}
.cl-form{display:grid;gap:20px;background:var(--white);box-shadow:0 0 0 2px var(--carbon);transition:transform .7s var(--pull)}
.cl-form.filed{transform:translateY(102%)}
.cl-kind{border:0;margin:0;padding:0;display:grid;gap:6px}
.cl-kind label{display:flex;align-items:center;gap:12px;min-height:52px;font-size:19px;line-height:1.2;cursor:pointer;position:relative}
.cl-kind input{appearance:none;-webkit-appearance:none;width:22px;height:22px;border:2px solid var(--carbon);border-radius:50%;margin:0;flex:none;transition:background-color .2s}
.cl-kind input:checked{background:var(--carbon);box-shadow:inset 0 0 0 4px var(--white)}
.cl-kind input:focus-visible{outline:3px solid var(--stamp);outline-offset:2px}
.fld{display:grid;gap:2px;border:2px solid var(--carbon);padding:6px 10px 0}
.fld label{font-size:14px}
.fld + .fld{margin-top:-22px}
.fld .hlp{min-height:18px}
.fld input,.fld textarea{font:400 18px/1.4 var(--print);color:var(--slot);background:transparent;border:0;min-height:48px;padding:10px 2px;border-radius:0;width:100%}
.fld textarea{min-height:120px;resize:vertical}
.fld input:focus,.fld textarea:focus{outline:0;border-bottom-color:var(--stamp)}
.fld.short input{max-width:120px}
.hlp{min-height:20px;font-size:14px;color:var(--stamp)}
.cl-file{justify-self:start;font-size:19px;min-height:60px;padding:12px 30px}
.cl-slot{margin-top:6px;height:16px;background:var(--slot);max-width:640px;box-shadow:inset 0 5px 7px #000}
.cl-result{background:var(--pink);padding:18px;max-width:640px;display:grid;gap:12px;justify-items:start}
.cl-msg{font-size:18px;line-height:1.4}

.cl-form::before,.cl-form::after{content:"+";position:absolute;font-size:18px;line-height:1;color:var(--carbon)}
.cl-form{position:relative;padding:18px 16px}.cl-form::before{left:2px;top:2px}.cl-form::after{right:2px;bottom:2px}

.cl-drawer{max-width:640px;background:linear-gradient(180deg,var(--blade),var(--blade-dark));padding:10px 12px 18px;position:relative}
.cl-mouth{height:16px;background:var(--slot);box-shadow:inset 0 5px 7px #000}
.cl-drawer p{display:inline-block;margin-top:12px;background:var(--white);padding:3px 18px;font-family:var(--display);font-size:24px;line-height:1.1;box-shadow:0 0 0 2px var(--slot)}
/* Landscape phones: "Report a lost edge" lands with the heading and the first field on screen. */
@media (max-height:500px) and (orientation:landscape){.cl{padding-top:22px;gap:14px}.cl h2{font-size:15svh}.cl-form{gap:12px;padding-top:12px}.cl-kind label{min-height:42px}}


/* chapter: closing-notice */
.cn{min-height:112svh;display:flex;flex-direction:column;padding-top:40px;padding-bottom:calc(46px + env(safe-area-inset-bottom));padding-left:max(calc(var(--gut) + 4px),18vw)}
.cn-now{font-size:17px}
.cn-num{font-family:var(--display);font-size:min(26vw,280px);line-height:.9;font-variant-numeric:tabular-nums;color:var(--stamp)}
.cn-your{font-size:18px}
.cn-back{font-size:16px;color:var(--stamp);margin-top:8px}
.cn-bring{font-family:var(--display);font-size:clamp(44px,14vw,120px);line-height:1;margin-top:auto;padding-top:30px}
.cn-links{display:flex;flex-wrap:wrap;gap:14px 26px;margin-top:18px;font-size:18px}
.cn-links a{display:inline-flex;align-items:center;min-height:48px}
.cn-where{margin-top:18px;font-size:18px}
.cn-where strong{font-family:var(--display);font-weight:400;font-size:20px}
.cn-fiction{font-size:15px;line-height:1.4;max-width:60ch;margin-top:12px}
.cn-colophon{font-size:14px;line-height:1.4;max-width:60ch;margin-top:10px}
.no-gl [data-chapter=closing-notice]::before{content:"";position:absolute;left:0;bottom:0;width:var(--blade-w);height:70svh;background:var(--canary);clip-path:polygon(100% 0,100% 100%,0 100%);z-index:2}
```

## 6. Shared code

Create `js/config.js` exactly as below. `window.HONE` holds the only owner settings; `window.HONE_STATE` is shared visitor state (blade length, the printed reading, which claim the visitor wants, and the visit count that numbers the ticket).

```js
/* Owner settings. These are the only values that need changing before this site goes live.
   bookingEmail: where filed claims are sent, for example "shop@example.com".
   bookingLink:  a booking page, if you get one. It wins over the email.
   ratePerInch:  the sharpening fee per inch as a number, for example 3. */
window.HONE = { bookingEmail: "", bookingLink: "", ratePerInch: "" };

/* Shared visitor state. Nothing here leaves this browser. */
window.HONE_STATE = { inches: 8, reading: null, intent: "report", visit: 1 };
try {
  const n = parseInt(localStorage.getItem("hone-visit") || "0", 10) + 1;
  localStorage.setItem("hone-visit", String(n));
  HONE_STATE.visit = n;
} catch (e) { /* storage blocked, so the ticket stays at 0001 */ }
HONE_STATE.number = String(HONE_STATE.visit).padStart(4, "0");

console.log("%cHone. The steel on this page is one fragment shader. Do not put it in the dishwasher.", "font:14px monospace;color:#1B2C9C");
document.addEventListener("visibilitychange", () => {
  document.title = document.hidden ? "Your edge is still missing" : "Hone. You have lost your edge.";
});
```

## 7. Script order

At the end of `<body>` load, in this order and each with `defer`: `js/config.js`, `js/stage.js`, `js/chapters.js` (the tags are already in the markup above).

## 8. Chapter behaviours (`js/chapters.js`)

Write `js/chapters.js` as fourteen blocks in page order, each wrapped in its own `(function () { ... })();`. Elements are found by the ids and attributes in the markup. "Reduced" means `Stage.reduced`. To replay a CSS animation class, remove it, read `offsetWidth`, then add it again. All strings and numbers below are required.

### 1. the-counter

- `Stage.tieTo` every `[data-tie]` element (the two luggage tags).
- The bell `#bell`: each click replays class `ring` on it and sets `#bell-label` to `Nobody is coming. Keep scrolling.` On the fifth click, unhide `#noted`, add class `down` (the stamp lands) and `Stage.say("Noted.")`.

### 2. take-a-number

- Write `HONE_STATE.number` into `#tk-num`. If `HONE_STATE.visit > 1`, unhide `#tk-back` with `You have been here before. Last time you were number ${previous}.` (previous = visit - 1, padded to four digits).
- Unless reduced, `Stage.track` the chapter and set `--p` on `#ticket` to `min(1, p * 1.5)` with three decimals (the ticket slides out of the dispenser as you scroll).

### 3. two-suspects

- Each `.su-id` button (`data-for` = the suspect's id) marks its suspect: `aria-pressed="true"`, text `Identified`, unhide that suspect's `[data-stamp]` and add class `down`, `Stage.say("Identified.")`. Ignore clicks once pressed. Keep the identified ids in `sessionStorage` under `hone-ids` (JSON array; wrap storage in try/catch) and restore them at load without the stamp animation. When both are identified, unhide `#su-charges`.

### 4. damage-by-inch

For each `.wear-item`, `Stage.tieTo` its `.wear-tag`; clicking the tag calls `Stage.glow` at the item's vertical centre on the page (`rect.top + scrollY + rect.height / 2`).

### 5. scene-of-the-incident

- Give every `.copy-pic` in the chapter the attribute `data-enter` and add class `in` when `onSeen` fires at threshold .2.
- Unless reduced, add class `js-late` to `<html>`, and 3000 ms after `#sc-late` is half visible add class `on` to it (the tomato's complaint arrives late).

### 6. the-reading (four questions and a printed slip)

- For each `.opt` in form `#rd`, insert after its input an SVG ring: class `ring`, viewBox `0 0 100 41`, `preserveAspectRatio="none"`, `aria-hidden="true"`, one path `M6,20 C5,8 22,3 50,3 C78,3 96,8 95,20 C94,33 76,38 49,38 C22,38 7,32 6,18` with `pathLength="1"`, rotated `((i * 37) % 5) - 2` degrees (i = option index). CSS draws it when the option is chosen.
- Navigation: `go(id)` scrolls that question into view (`block: 'start'`, smooth unless reduced). Choosing a radio moves on after 420 ms: from `where` to `#q2`, from `cut` to `#q3`. Checkboxes named `conf`: ticking `none` unticks the others; ticking any other unticks `none`. The `.nextq` button goes to its `data-next`.
- Blade length: `fmt(v)` is `${floor(v)} 1/2` for halves, else the number. On `#rd-range` input: `HONE_STATE.inches = v`, `#rd-len` shows `fmt(v)`, `aria-valuetext` `${fmt(v)} inches`, and dispatch `hone:inches` with `detail: v` on `document`.
- Reading texts (keys are the input values):
  - where: heel `You push down through hard things with the back of the blade.`; belly `You rock. The middle of this edge has done the work.`; tip `You use the point. Scoring, picking, opening things that were not food.`; all `Even wear along the whole edge. You cook often and you have waited too long.`; none chosen `You left the first question blank. That is also a reading.`
  - cut: onions `A dull edge crushes an onion where a sharp one parts it. If you have been crying more, this is why.`; herbs `If your herbs go black where they are cut, the edge is bruising them.`; squash `Squash is where edges go to be tested.`; bone `Bone is hard on hard steel. Look for small chips.`; packaging `You have been opening mail with it. Noted.`; none chosen `You will not say what you cut. The edge will.`
  - conf (one line each, in order): dishwasher `Dishwasher, yes. Expect pits and small chips.`; pull `Pull-through, yes. Expect a scalloped edge.`; glass `Glass or stone board, yes. Every landing rolls a little edge.`; none of these `You have confessed to nothing. The wear will say otherwise.`
- `print(specimen)`: clear pending timers. If not a specimen, count it (`prints`). The specimen uses where `belly`, cut `onions`, conf `dishwasher`. Build the slip in `#slip` from these lines, in order: `HONE. LOST EDGE OFFICE.`, `PORTLAND, OREGON.`, a rule, `READING OF THE EDGE, CLAIMANT COPY.`, `DATE ${today}` (today = `toLocaleDateString('en-GB', { day: '2-digit', month: 'short', year: 'numeric' })` in capitals), `REF ${HONE_STATE.number}-${prints}`, `BLADE ${fmt(inches)} IN`, then `SPECIMEN ONLY. ANSWER THE FORM ABOVE FOR YOUR OWN.` for the specimen or `SECOND OPINION REQUESTED.` from the second print on, a rule, the first reading line as a big line, the remaining reading lines, and the fine print `This reading is a guess from a form. The real one takes a sharpener and the actual knife.` Each line is a `p` with class `ln` (plus `big` or `fine`); a rule is `div.ln.rule`. Append a stamp `div.stamp-mark.slip-stamp` containing `<span lang="ja">研</span><small>SPECIMEN</small>` (or `READ`). Hide `#slip-actions`. For a real print, store the joined reading in `HONE_STATE.reading` and scroll `#printer` into view. Reveal line i with class `on` at `260 + i * 120` ms (all at once when reduced); 220 ms after the last line, add `down` to the stamp, show `#slip-actions` (real prints only), `Stage.refresh()`, and for real prints `Stage.say('Reading printed. ' + lines)` and dispatch `hone:reading`.
- Form submit and `#again` print a real reading. The first time `#printer` is seen (threshold .2) with no prints yet, print the specimen. `#file-it` sets `HONE_STATE.intent = 'report'` and dispatches `hone:intent`.

### 7. fee-by-the-inch

- `#fee-range` input sets `HONE_STATE.inches`, shows the value and dispatches `hone:inches`. Listen for `hone:inches` too, and call `show(HONE_STATE.inches)` at load.
- `show(v)`: count `#fee-n` from the shown value to v over 400 ms with ease-out (`1 - (1 - p)^2`), one decimal while moving and `fmt(v)` at the end; set the range value and `aria-valuetext`; if `HONE.ratePerInch` is a positive number, `#fee-price` reads `$${(rate * v).toFixed(2)} for this edge, at $${rate} per inch.`; unhide `#fee-big` only when v is 12 or more.

### 8. three-days (tear-off calendar)

- Dates: if it is Sunday after 18:00, start tomorrow, otherwise today. Leaves `l1`, `l0`, `l2`, `l3` show start + 0, 1, 2, 3 days: `#<id>-d` the day number, `#<id>-w` `${weekday}, ${month}` in `en-US` long names. When starting tomorrow, `#l1-a` reads `Hand it in tomorrow` and `#l1-late` is shown. `#td-plain` reads `Hand it in on ${weekday} ${day} ${month}. It is usually back on ${weekday} ${day} ${month}.` for day 0 and day 3.
- Reduced: add class `reduce` to `<html>` and stop. Otherwise, with the leaves `.l1, .l0, .l2, .l3` in that order and windows `[.05, .3]`, `[.33, .58]`, `[.61, .86]`, `Stage.track` the chapter: for window i, `t = clamp((p - a) / (b - a))^3`; set `--t` on leaf i (it tears off) and toggle class `under` on leaf i + 1 while `t < .35`. Start with every leaf but the first marked `under`.

### 9. the-confession

`Stage.hold(true)` while at least 30 percent of the chapter is visible, `Stage.hold(false)` otherwise (IntersectionObserver).

### 10. unused-edges

- The round button `#spend`: holding spends an edge every 800 ms. `press()`: if not already on, replay class `holding` and start an 800 ms interval that spends and replays `holding`. `release()`: stop; if still `holding` and nothing was spent yet, spend one (a tap spends one); remove `holding`. Pointer down (with pointer capture) presses, pointer up or cancel releases; Space or Enter key down (not repeat) presses, key up releases.
- Each spend: count++, `Stage.spend(1)`, `#ue-n` shows the count, `#spend-label` reads `Spent` (or `Please stop` from 12 on), `Stage.say` `${count} edges spent.` (or `Please stop.`), and after 700 ms the label returns to `Hold to spend an edge` while under 12.

### 11. replacement-items

- Unless reduced, add class `draw` to the knife outline `#knife`, then when seen (threshold .1) swap it for `drawn` (the outline draws itself).
- The price tag `#price-tag` replays class `swing` on click and on mouseenter.
- Every `[data-intent]` link sets `HONE_STATE.intent` to its value and dispatches `hone:intent`.

### 12. quiet-questions

For each `details` in `#quiet`: split its `p` into sentences (`/[^.]+\.\s*/g`) wrapped in `span.sl`; hide the `p` while closed. On open, reveal the spans one by one with class `on` at `90 + i * 260` ms (at once when reduced). Opening `#q-pull` also unhides its `.qq-stamp` and adds `down`.

### 13. the-claim

- Required: `#cl-name` and `#cl-contact`. Empty shows in `#<id>-h` either `We need something to shout across the room.` or `We need a way to tell you it is ready.` and sets `aria-invalid`. Check on blur.
- Keep the form in sync: `hone:inches` fills `#cl-len`; `hone:reading` puts `HONE_STATE.reading` into `#cl-dec`; `hone:intent` checks the `kind` radio with that value (`report` or `replace`).
- Claim text, one line each: `Claim: report a lost edge` or `Claim: replace the item`, `Name: …`, `Contact: …`, `Blade length: … inches`, `Declared: …`.
- Submit: prevent default; if a check fails focus the first bad field. Otherwise `#cl-go` reads `Filing…` and is disabled; after 500 ms add class `filed` to the form (it drops into the drawer) and the button reads `Filed`. Then: if `HONE.bookingLink` is set, go there; else if `HONE.bookingEmail` is set, open a `mailto:` with subject `Hone claim` and the claim text as body, and show `Your mail app should have opened with this claim. Press send there and it is filed.`; else show `This claim has not been sent. The office has no line out yet. Copy it and bring it to the counter.` with the copy button. Showing a message unhides `#cl-result`, writes `#cl-msg`, shows or hides `#cl-copy`, focuses the result without scrolling, scrolls it to the centre smoothly, `Stage.say` and `Stage.refresh()`.
- `#cl-copy` copies the claim text; it then reads `Copied`, or `Copy did not work. Please write it down.`

### 14. closing-notice

Write `HONE_STATE.number` into `#cn-num`. Observe the chapter at threshold .4: each time it comes into view call `Stage.glow(document.documentElement.scrollHeight - innerHeight * .4)`; if the visitor had reached it, left, and come back, unhide `#cn-back` ("You came back for it."). Its `[data-intent]` links set the intent as above.

## 9. Interactions to confirm by hand

1. First screen: "Hone. Lost Edge Office." beside the white label "Knife sharpening and Japanese knives. Portland, Oregon.", then "You have lost your edge." in huge blue serif on canary, the steel blade down the left with an inch ruler, the plain lead that says what the shop does, two tags tied to the blade by strings (each with its plain second line, "Book a sharpening" and "Buy a new knife"), and the bell. At 1440 x 900, 768 x 1024, 390 x 844 and in a landscape phone (844 x 390) the office label, the headline, the lead and both tags are on the first screen. Ring the bell five times without moving the mouse: the bell stays where it is (its label has a fixed width) and the NOTED stamp lands.
2. Scroll: the ticket slides out of the red dispenser; the inch counter bottom left climbs from 0 to 10.
3. Identify both suspects: stamps land and "Both were in your kitchen at the time." appears. On a phone width the page does not get wider while a stamp slams down (every chapter clips its own horizontal overflow).
4. In "The item, described." each wear type appears on the blade's edge level with its tag; clicking a tag flashes that spot.
5. Answer the four questions: rings draw round each choice and the page moves on; "Print my reading" prints a slip line by line and stamps it.
6. The fee slider counts; set it to 12 or more for "Are you sure this is a kitchen knife?".
7. The calendar leaves tear off one by one as you scroll. With reduced motion they stand as a list in date order (Hand it in today first).
8. At "This office has never returned a single edge." the steel floods the screen and the counter says Held; then hold "Hold to spend an edge" and watch the edge move back.
9. The knife outline draws itself; the price tag swings. "Two things are kept in the back." lists Knives (刀) and Stones (研).
10. Open the quiet questions: sentences appear one after another.
11. File an empty claim to see the errors, then a full one: it drops into the drawer and the "not sent" message offers Copy claim.

## 10. Verify, then show the result

Serve the folder (section 1) and open it. Check desktop near 1440 x 900, a tablet near 768 x 1024, phone widths near 390 and 320, and a landscape phone near 844 x 390: no horizontal overflow, no missing files, no console errors, no request to another domain. With a browser tool, check the interactions in section 9 with motion allowed (if your browser reports reduced motion, the blade is a plain strip and scroll motion is off; that is intended). If WebGL2 is unavailable where you test, say so.

Finish by telling the person the local address, what you built and tested, the tool and model you are, and anything missing or different. Do not call the result pixel-identical to the demo at https://sitepeel.dev/website-prompts/hone/preview/.
