Skip to content

An AI skill that turns books into animated, narrated, interactive web experiences

fix(site): picture-book pages, impeccable pass; Little Horse gets its making-of

yzr8e15cf9e01ef
diff --git a/site/joke-collection/index.html b/site/joke-collection/index.html
index 0e21483..df1232f 100644
--- a/site/joke-collection/index.html
+++ b/site/joke-collection/index.html
@@ -17,11 +17,14 @@
<style>
:root { --ink: #2f2418; --soft: #6b5a46; --paper: #fbf5e8; --card: #fffaf0; --line: #e4d6bb; --accent: #2f5aa8; --ui: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif; --serif: "Iowan Old Style", Palatino, Georgia, serif; color-scheme: light; }
* { box-sizing: border-box; }
+ ::selection { background: #2f5aa833; }
+ a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
+ h1, h2 { text-wrap: balance; } p, li, dd { text-wrap: pretty; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.65 var(--ui); }
a { color: var(--accent); }
header.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; max-width: 1180px; margin: 0 auto; padding: 48px 24px 24px; }
.hero img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 14px 40px #4a33182e; }
- .back { display: inline-block; margin-bottom: 18px; font-size: 15px; color: var(--soft); text-decoration: none; }
+ .back { display: inline-block; margin: -10px 0 8px; padding: 10px 0; font-size: 15px; color: var(--soft); text-decoration: none; }
h1 { margin: 0 0 8px; font: 700 clamp(34px, 4.6vw, 56px)/1.05 var(--serif); }
.tag { display: inline-block; margin-bottom: 18px; padding: 2px 12px; border: 1.5px solid var(--accent); border-radius: 99px; color: var(--accent); font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.lede { font-size: 20px; color: #4a3b2a; }
@@ -35,13 +38,14 @@
.stills img { width: 100%; height: auto; border-radius: 6px; display: block; }
.episodes { list-style: none; padding: 0; margin: 18px 0 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.episodes a { display: flex; flex-direction: column; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
- .episodes a:hover { border-color: var(--accent); transform: translateY(-2px); }
+ .episodes a:hover, .episodes a:focus-visible { border-color: var(--accent); transform: translateY(-2px); }
+ .episodes a:focus-visible { border-radius: 10px; }
.thumb { position: relative; display: block; }
.thumb img { display: block; width: 100%; height: auto; }
.thumb::after { content: "▶"; position: absolute; left: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%; background: #2f2418d0; color: #fff6e0; font-size: 15px; line-height: 38px; text-align: center; text-indent: 3px; opacity: .85; transition: opacity .15s; }
- .episodes a:hover .thumb::after { opacity: 1; }
+ .episodes a:hover .thumb::after, .episodes a:focus-visible .thumb::after { opacity: 1; }
.episodes small { margin: 12px 16px 0; color: var(--soft); font-size: 13px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
- .episodes b { margin: 2px 16px 4px; font: 700 21px/1.25 var(--serif); }
+ .episodes b { margin: 2px 16px 4px; font: 700 21px/1.25 var(--serif); text-wrap: balance; }
.episodes span:last-child { margin: 0 16px 16px; color: var(--soft); font-size: 15px; line-height: 1.5; }
.soon { margin: 0 0 18px; color: var(--soft); font-size: 15px; }
.verdict { margin: 18px 0; padding: 4px 22px; border-left: 4px solid var(--accent); background: var(--card); border-radius: 0 8px 8px 0; }
diff --git a/site/little-horse/index.html b/site/little-horse/index.html
index 821f501..abb29a1 100644
--- a/site/little-horse/index.html
+++ b/site/little-horse/index.html
@@ -11,28 +11,49 @@
:root { --ink: #2f2418; --soft: #6b5a46; --paper: #fbf5e8; --card: #fffaf0; --line: #e4d6bb; --accent: #2f5aa8;
--ui: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif; --serif: "Iowan Old Style", Palatino, Georgia, serif; color-scheme: light; }
* { box-sizing: border-box; }
+ ::selection { background: #2f5aa833; }
+ h1, h2 { text-wrap: balance; } .lede, main p, main li { text-wrap: pretty; }
+ a { color: var(--accent); }
+ a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.6 var(--ui); }
header { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; max-width: 1180px; margin: 0 auto; padding: 48px 24px 24px; }
header img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 14px 40px #4a33182e; }
+ .back { display: inline-block; margin: -10px 0 8px; padding: 10px 0; font-size: 15px; color: var(--soft); text-decoration: none; }
h1 { margin: 0 0 8px; font: 700 clamp(34px, 4.6vw, 56px)/1.05 var(--serif); }
.lede { font-size: 20px; color: var(--soft); }
- main { max-width: 1000px; margin: 0 auto; padding: 8px 24px 80px; }
+ main { max-width: 900px; margin: 0 auto; padding: 8px 24px 80px; }
+ h2 { margin: 64px 0 8px; font: 700 32px/1.2 var(--serif); }
+ figure { margin: 18px 0 26px; }
+ figure img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
+ figcaption { margin-top: 8px; font-size: 15px; color: var(--soft); }
+ .stills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 32px 0 18px; }
+ .stills img { width: 100%; height: auto; border-radius: 6px; display: block; }
+ .numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0; }
+ .numbers div { padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; text-align: center; }
+ .numbers b { display: block; font: 700 28px/1.1 var(--serif); }
+ .numbers span { font-size: 14px; color: var(--soft); }
+ .watch { display: inline-flex; align-items: center; margin-top: 10px; padding: 14px 26px; border-radius: 99px; background: var(--ink); color: #fff6e0; font-weight: 600; text-decoration: none; white-space: nowrap; }
+ .watch:hover { background: #4a3826; }
+ .watch:focus-visible { border-radius: 99px; }
+ footer { max-width: 900px; margin: 0 auto; padding: 0 24px 60px; color: var(--soft); font-size: 15px; }
.episodes { list-style: none; padding: 0; margin: 18px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.episodes a { display: flex; flex-direction: column; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 10px;
overflow: hidden; color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
+ .episodes a:focus-visible { border-radius: 10px; }
.episodes a:hover, .episodes a:focus-visible { border-color: var(--accent); transform: translateY(-2px); }
.episodes img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.episodes small { margin: 12px 16px 0; color: var(--soft); font-size: 13px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
- .episodes b { margin: 2px 16px 4px; font: 700 21px/1.25 var(--serif); }
+ .episodes b { margin: 2px 16px 4px; font: 700 21px/1.25 var(--serif); text-wrap: balance; }
.episodes span { margin: 0 16px 16px; color: var(--soft); font-size: 15px; line-height: 1.5; }
.watched small::after { content: " · ✓ watched"; color: var(--accent); }
- @media (max-width: 760px) { header { grid-template-columns: 1fr; padding-top: 28px; } .episodes { grid-template-columns: 1fr; } }
+ @media (max-width: 760px) { header { grid-template-columns: 1fr; padding-top: 28px; } .episodes { grid-template-columns: 1fr; } .numbers, .stills { grid-template-columns: 1fr 1fr; } }
</style>
</head>
<body>
<header>
<img src="img/cover.webp" width="1400" height="788" alt="Little Horse, a chestnut paper foal with a red saddle cloth, standing in the river with the water at his knees.">
<div>
+ <a class="back" href="../">← Back to the bookshelf</a>
<h1>The Little Horse Crosses the River</h1>
<p class="lede">小马过河 — a Chinese folk tale for young children learning English. Uncle Ox says the river is shallow; Squirrel says it is deep. Little Horse has to find out for himself.</p>
<p class="lede">Paper puppets in a layered spring valley, all drawn in code. Twice the film stops so a child can touch the picture and hear the words.</p>
@@ -40,7 +61,60 @@
</header>
<main>
<ul class="episodes" id="episodes"></ul>
+
+ <div class="stills">
+ <img src="making/still-home.webp" width="800" height="450" alt="Mother and Little Horse side by side at the stable door, the half sack of wheat waiting beside them." loading="lazy">
+ <img src="making/still-river.webp" width="800" height="450" alt="Little Horse stops on the river bank, the sack of wheat on his back." loading="lazy">
+ <img src="making/still-ox.webp" width="800" height="450" alt="Uncle Ox, a grey water buffalo with crescent horns, munching grass in the shallows." loading="lazy">
+ <img src="making/still-squirrel.webp" width="800" height="450" alt="Squirrel on the rock, shouting at Little Horse to stop." loading="lazy">
+ <img src="making/still-bubble.webp" width="800" height="450" alt="A thought bubble: the river cut side-on, Uncle Ox in it with the water at his shins, Little Horse beside him, a red question mark." loading="lazy">
+ <img src="making/still-rabbit.webp" width="800" height="450" alt="Little Horse, with no sack now, meets a little white rabbit at the river's edge." loading="lazy">
+ </div>
+
+ <h2>What we set out to do</h2>
+ <p>The shelf had no Chinese story. 小马过河 is one almost every child in China knows: a foal is sent to the mill with half a sack of wheat, a river is in the way, an old ox says it is shallow and a squirrel says it is deep. We made it for young children learning English, with English voices, in the paper-puppet style of <a href="../little-red-riding-hood/">Little Red Riding Hood</a>: no image model, everything drawn in code.</p>
+ <p>The whole story hangs on one picture: the same river is shallow for a big ox, deep for a small squirrel, and just up to the knees for Little Horse. So the film never only says how deep the water is. It shows it against legs, at the waterline, while the voice says it.</p>
+
+ <h2>Showing the depth</h2>
+ <p>The river is seen side-on, the way a paper theatre sees it, and the water stands in front of whoever wades in, so its depth reads against their legs. The puppets keep their sizes through the whole film and the riverbed is built on them: at the deepest point the water is on Uncle Ox's shins, at Little Horse's knees, and over Squirrel's head.</p>
+ <figure><img src="making/depth.webp" width="1610" height="450" alt="Left: Uncle Ox's legs in the river, the water at his shins. Right: Little Horse in the middle of the river, a dashed line marking the water at his knees." loading="lazy"><figcaption>The same river: on Uncle Ox's shins, at Little Horse's knees.</figcaption></figure>
+ <p>The film adds a few moments to the story, so a child can see why each of them was right:</p>
+ <ul>
+ <li>When we meet Uncle Ox he is already standing in the shallows, and Squirrel is tiny beside the river.</li>
+ <li>When Mother asks "Did you think about what they said?", a thought bubble opens over Little Horse: the river cut side-on, the ox with the water at his shins, the squirrel under it, and Little Horse in between with a question mark.</li>
+ <li>After the crossing, Uncle Ox says "Told you it was shallow", Squirrel says "Told you it was deep!", and they look at each other.</li>
+ <li>On the way home a little rabbit wants to cross. Little Horse starts "The water only comes up to my—", looks at the rabbit's short legs, and says "For you, it might be deep. Hop on! Let's find out together."</li>
+ </ul>
+
+ <h2>Listen and find</h2>
+ <p>Twice the film stops for a game. By the river, Little Horse needs someone to ask, and he asks the child to find things one at a time: a bird, a flower, a butterfly, and last Uncle Ox ("There's Uncle Ox! Let's ask him!"), which takes the story on. At the mill he asks for the wheel, the duck and the sack. He asks with his eyes on the child, and the picture keeps living while he waits: the ox chews, the wheel turns.</p>
+ <p>Nothing is ever called wrong. A tap on something else says that thing's name and asks again. After a second miss, the thing he wants wiggles; after a third, paper stars circle it; and if nobody finds it in twenty seconds, he says "Look! There it is!" Tap Little Horse himself and he says "That's me!" The game was new in this book, and Little Red Riding Hood's meadow stop was rebuilt the same way.</p>
+
+ <h2>Puppets on four legs</h2>
+ <p>Little Red Riding Hood's puppets stand on two legs. This story needed a foal, his mother, a water buffalo, a squirrel and a rabbit, so we built a rig for animals on four legs. Each leg is two paper pieces on pins, and the hoof is solved to land on a point, so a planted hoof stays exactly where it is while the body rides over it. Walking and trotting come from the distance covered, not from the clock, so the feet never slide. To turn round, a puppet squashes flat and comes out mirrored, like a paper cut-out turned over on the table.</p>
+ <p>Uncle Ox changed most along the way. After the first review he became a water buffalo: longer, thicker legs, two broad crescent horns, a broad muzzle and a nose ring.</p>
+
+ <h2>A spring valley in layers</h2>
+ <p>Four sets: the stable, the road, the river and the mill. Each is cut from layers of paper (misty mountains, willows, bamboo, peach blossom, a red paper sun), and as the camera moves the layers slide past each other at different speeds. Behind a close-up the set goes soft, and in the close-ups of the depth the water turns half see-through, so the legs show under it.</p>
+
+ <h2>Voices, music and sound</h2>
+ <p>Five ElevenLabs (v4) voices: George narrates, Jessica is Little Horse, Lily is Mother, Brian is Uncle Ox, slow and deep, and Laura is Squirrel, quick. Every word in every line is timed, and those times drive the mouths and the captions. The music is original, composed in code for this book: a synthesized guzheng and a soft dizi on a pentatonic scale, looping under the whole film and falling silent for the stare after the crossing. The river, the mill wheel, the hooves, the splashes and the rest of the sounds are synthesized in code too.</p>
+
+ <h2>How it was made</h2>
+ <p>One agent built everything the scenes share: the story and storyboard, the voices, the sets, the puppets and the helpers. Then nine scene agents, one per scene, each staged and checked its own scene: contact sheets of every shot, onion skins of the walks to see that hooves stay planted, frames at every cut. A director agent watched the exported film and wrote notes, and the scenes were reworked from them. There were four review rounds; in the last, the director also played both games.</p>
+ <p>The second round's notes put what the film is for in one line: a five-year-old must see the river shallow for Uncle Ox, deep for Squirrel and knee-deep for Little Horse, at the moments the voice says it. From then on, wherever depth is said, the film reuses its clearest pictures of it: the side-on slice in the thought bubble and a dashed waterline across the legs.</p>
+
+ <h2>The numbers</h2>
+ <div class="numbers">
+ <div><b>~4 min</b><span>9 scenes</span></div>
+ <div><b>5 · 4</b><span>puppets · sets</span></div>
+ <div><b>2</b><span>listen-and-find games</span></div>
+ <div><b>~$0.31</b><span>for voices, $0 for pictures</span></div>
+ </div>
+
+ <p><a class="watch" href="ch01/">▶ Watch the film</a></p>
</main>
+<footer>Story: 小马过河 (The Little Horse Crosses the River), a Chinese folk tale, retold in English for this film. No image model: everything you see is drawn in code. Voices by ElevenLabs (v4), music composed in code for this film, sound effects synthesized. Part of <a href="../">Papermorph</a>.</footer>
<script>
'use strict';
// One entry per finished episode, in order: its folder, title, a still (16:9) with alt text, and one line.
diff --git a/site/little-horse/making/depth.webp b/site/little-horse/making/depth.webp
new file mode 100644
index 0000000..6f8d309
Binary files /dev/null and b/site/little-horse/making/depth.webp differ
diff --git a/site/little-horse/making/still-bubble.webp b/site/little-horse/making/still-bubble.webp
new file mode 100644
index 0000000..36fec8d
Binary files /dev/null and b/site/little-horse/making/still-bubble.webp differ
diff --git a/site/little-horse/making/still-home.webp b/site/little-horse/making/still-home.webp
new file mode 100644
index 0000000..bd40b21
Binary files /dev/null and b/site/little-horse/making/still-home.webp differ
diff --git a/site/little-horse/making/still-ox.webp b/site/little-horse/making/still-ox.webp
new file mode 100644
index 0000000..6d5b7cf
Binary files /dev/null and b/site/little-horse/making/still-ox.webp differ
diff --git a/site/little-horse/making/still-rabbit.webp b/site/little-horse/making/still-rabbit.webp
new file mode 100644
index 0000000..1402a79
Binary files /dev/null and b/site/little-horse/making/still-rabbit.webp differ
diff --git a/site/little-horse/making/still-river.webp b/site/little-horse/making/still-river.webp
new file mode 100644
index 0000000..5d14bbe
Binary files /dev/null and b/site/little-horse/making/still-river.webp differ
diff --git a/site/little-horse/making/still-squirrel.webp b/site/little-horse/making/still-squirrel.webp
new file mode 100644
index 0000000..ef9946d
Binary files /dev/null and b/site/little-horse/making/still-squirrel.webp differ
diff --git a/site/little-red-riding-hood/index.html b/site/little-red-riding-hood/index.html
index 93f85b4..8d994c4 100644
--- a/site/little-red-riding-hood/index.html
+++ b/site/little-red-riding-hood/index.html
@@ -17,17 +17,21 @@
<style>
:root { --ink: #2f2418; --soft: #6b5a46; --paper: #fbf5e8; --card: #fffaf0; --line: #e4d6bb; --accent: #a8322a; --ui: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif; --serif: "Iowan Old Style", Palatino, Georgia, serif; color-scheme: light; }
* { box-sizing: border-box; }
+ ::selection { background: #a8322a33; }
+ a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
+ h1, h2 { text-wrap: balance; } p, li, dd { text-wrap: pretty; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.65 var(--ui); }
a { color: var(--accent); }
header.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; max-width: 1180px; margin: 0 auto; padding: 48px 24px 24px; }
.hero img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 14px 40px #4a33182e; }
- .back { display: inline-block; margin-bottom: 18px; font-size: 15px; color: var(--soft); text-decoration: none; }
+ .back { display: inline-block; margin: -10px 0 8px; padding: 10px 0; font-size: 15px; color: var(--soft); text-decoration: none; }
h1 { margin: 0 0 8px; font: 700 clamp(34px, 4.6vw, 56px)/1.05 var(--serif); }
.tag { display: inline-block; margin-bottom: 18px; padding: 2px 12px; border: 1.5px solid var(--accent); border-radius: 99px; color: var(--accent); font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.lede { font-size: 20px; color: #4a3b2a; }
.watch { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; padding: 14px 26px; border-radius: 99px; background: var(--ink); color: #fff6e0; font-weight: 600; text-decoration: none; }
.watch:hover { background: #4a3826; }
- .watch { flex-wrap: wrap; row-gap: 2px; }
+ .watch:focus-visible { border-radius: 99px; }
+ .watch { flex-wrap: wrap; justify-content: center; row-gap: 2px; text-align: center; }
.watch span, .watch small { white-space: nowrap; }
.watch small { opacity: .75; font-weight: 500; }
main { max-width: 900px; margin: 0 auto; padding: 8px 24px 80px; }
diff --git a/site/proteus/index.html b/site/proteus/index.html
index 6cc56c1..376c914 100644
--- a/site/proteus/index.html
+++ b/site/proteus/index.html
@@ -10,19 +10,24 @@
:root { --ink: #2f2418; --soft: #6b5a46; --paper: #f3ecdc; --card: #fffaf0; --line: #e4d6bb; --accent: #2b6f8f;
--ui: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif; --serif: "Iowan Old Style", Palatino, Georgia, serif; color-scheme: light; }
* { box-sizing: border-box; }
+ ::selection { background: #2b6f8f33; }
+ h1 { text-wrap: balance; } .lede { text-wrap: pretty; }
+ .episodes a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.6 var(--ui); }
header { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; max-width: 1180px; margin: 0 auto; padding: 48px 24px 24px; }
header img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 14px 40px #4a33182e; }
+ .back { display: inline-block; margin: -10px 0 8px; padding: 10px 0; font-size: 15px; color: var(--soft); text-decoration: none; }
+ .back:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1 { margin: 0 0 8px; font: 700 clamp(34px, 4.6vw, 56px)/1.05 var(--serif); }
.lede { font-size: 20px; color: var(--soft); }
- main { max-width: 1000px; margin: 0 auto; padding: 8px 24px 80px; }
+ main { max-width: 1180px; margin: 0 auto; padding: 8px 24px 80px; }
.episodes { list-style: none; padding: 0; margin: 18px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.episodes a { display: flex; flex-direction: column; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 10px;
overflow: hidden; color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.episodes a:hover, .episodes a:focus-visible { border-color: var(--accent); transform: translateY(-2px); }
.episodes img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.episodes small { margin: 12px 16px 0; color: var(--soft); font-size: 13px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
- .episodes b { margin: 2px 16px 4px; font: 700 21px/1.25 var(--serif); }
+ .episodes b { margin: 2px 16px 4px; font: 700 21px/1.25 var(--serif); text-wrap: balance; }
.episodes span { margin: 0 16px 16px; color: var(--soft); font-size: 15px; line-height: 1.5; }
.watched small::after { content: " · ✓ watched"; color: var(--accent); }
.credits { margin-top: 48px; color: var(--soft); font-size: 15px; } .credits h2 { font: 700 22px/1.2 var(--serif); color: var(--ink); }
@@ -34,6 +39,7 @@
<header>
<img src="img/cover.webp" width="1400" height="788" alt="A paper tree whose branches hold five small cards: a lesson, a picture book, a film, a short and a map, beside the words One source, many shapes, Papermorph.">
<div>
+ <a class="back" href="../">← Back to the bookshelf</a>
<h1>Proteus</h1>
<p class="lede">Homer’s old man of the sea changes shape in your hands, and so does a source in Papermorph: a lesson, a picture book, a film, a short, a map.</p>
</div>
diff --git a/site/three-little-pigs/index.html b/site/three-little-pigs/index.html
index d12722b..285cf35 100644
--- a/site/three-little-pigs/index.html
+++ b/site/three-little-pigs/index.html
@@ -15,28 +15,34 @@
<meta property="og:image:alt" content="A wooden bookshelf of animated books">
<meta name="twitter:card" content="summary_large_image">
<style>
- :root { --ink: #2f2418; --soft: #6b5a46; --paper: #fbf5e8; --card: #fffaf0; --line: #e4d6bb; --accent: #b4532a; --ui: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif; --serif: "Iowan Old Style", Palatino, Georgia, serif; color-scheme: light; }
+ :root { --ink: #2f2418; --soft: #6b5a46; --paper: #fbf5e8; --card: #fffaf0; --line: #e4d6bb; --accent: #a64a24; --ui: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif; --serif: "Iowan Old Style", Palatino, Georgia, serif; color-scheme: light; }
* { box-sizing: border-box; }
+ ::selection { background: #a64a2433; }
+ a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
+ h1, h2 { text-wrap: balance; } p, li, dd { text-wrap: pretty; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.65 var(--ui); }
a { color: var(--accent); }
header.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: center; max-width: 1180px; margin: 0 auto; padding: 48px 24px 24px; }
- .hero img { width: 100%; border-radius: 10px; box-shadow: 0 14px 40px #4a33182e; }
- .back { display: inline-block; margin-bottom: 18px; font-size: 15px; color: var(--soft); text-decoration: none; }
+ .hero img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 14px 40px #4a33182e; }
+ .back { display: inline-block; margin: -10px 0 8px; padding: 10px 0; font-size: 15px; color: var(--soft); text-decoration: none; }
h1 { margin: 0 0 8px; font: 700 clamp(34px, 4.6vw, 56px)/1.05 var(--serif); }
.tag { display: inline-block; margin-bottom: 18px; padding: 2px 12px; border: 1.5px solid var(--accent); border-radius: 99px; color: var(--accent); font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.lede { font-size: 20px; color: #4a3b2a; }
.watch { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; padding: 14px 26px; border-radius: 99px; background: var(--ink); color: #fff6e0; font-weight: 600; text-decoration: none; }
.watch:hover { background: #4a3826; }
+ .watch:focus-visible { border-radius: 99px; }
+ .watch { flex-wrap: wrap; justify-content: center; row-gap: 2px; text-align: center; }
+ .watch span, .watch small { white-space: nowrap; }
.watch small { opacity: .75; font-weight: 500; }
main { max-width: 900px; margin: 0 auto; padding: 8px 24px 80px; }
h2 { margin: 64px 0 8px; font: 700 32px/1.2 var(--serif); }
h3 { margin: 32px 0 4px; font: 700 21px/1.3 var(--ui); }
figure { margin: 18px 0 26px; }
- figure img { display: block; width: 100%; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
+ figure img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
figcaption { margin-top: 8px; font-size: 15px; color: var(--soft); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
- .stills img { width: 100%; border-radius: 6px; display: block; }
+ .stills img { width: 100%; height: auto; border-radius: 6px; display: block; }
.notice { margin: 0 0 18px; padding: 12px 16px; border-radius: 8px; background: #f6e3d6; border: 1px solid #e4bfa6; font-size: 16px; color: #5a3320; }
.notice a { font-weight: 600; }
.verdict { margin: 18px 0; padding: 4px 22px; border-left: 4px solid var(--accent); background: var(--card); border-radius: 0 8px 8px 0; }
@@ -56,30 +62,30 @@
</head>
<body>
<header class="hero">
- <img src="making/cover.webp" alt="The Three Little Pigs: the wolf blows at the straw house while the first little pig peeks out of the window.">
+ <img src="making/cover.webp" width="1000" height="1006" alt="The Three Little Pigs: the wolf blows at the straw house while the first little pig peeks out of the window.">
<div>
<a class="back" href="../">← Back to the bookshelf</a><br>
<div class="notice"><b>We don't recommend this method.</b> Asking an image model to draw the characters as well as the world meant new drawings for every action and a constant fight for consistency. Our picture books now paint only what stays still and move the characters in code: see <a href="../joke-collection/">Joke Collection</a>.</div>
<span class="tag">An experiment</span>
<h1>The Three Little Pigs</h1>
<p class="lede">The other books on this shelf start from a textbook and draw every picture in code. This one started from nothing but the story. An image model painted the characters and places, and code made them move, speak and dance. It works, and it's fun to watch. But the method turned out not good enough to become part of the Papermorph Skill. Here is how it was made, and why.</p>
- <a class="watch" href="ch01/">▶ Watch the film <small>4½ minutes · narrated · music</small></a>
+ <a class="watch" href="ch01/"><span>▶ Watch the film</span> <small>4½ minutes · narrated · music</small></a>
</div>
</header>
<main>
<div class="stills">
- <img src="making/still-1.webp" alt="Mother Pig waves goodbye with her handkerchief." loading="lazy">
- <img src="making/still-2.webp" alt="The first pig carries straw to her half-built house." loading="lazy">
- <img src="making/still-5.webp" alt="The wolf licks his lips." loading="lazy">
- <img src="making/still-6.webp" alt="The straw house flies apart." loading="lazy">
- <img src="making/still-8.webp" alt="Three pigs in the windows of the brick house." loading="lazy">
- <img src="making/still-11.webp" alt="Happily ever after." loading="lazy">
+ <img src="making/still-1.webp" width="1200" height="675" alt="Mother Pig waves goodbye with her handkerchief." loading="lazy">
+ <img src="making/still-2.webp" width="1200" height="675" alt="The first pig carries straw to her half-built house." loading="lazy">
+ <img src="making/still-5.webp" width="1200" height="675" alt="The wolf licks his lips." loading="lazy">
+ <img src="making/still-6.webp" width="1200" height="675" alt="The straw house flies apart." loading="lazy">
+ <img src="making/still-8.webp" width="1200" height="675" alt="Three pigs in the windows of the brick house." loading="lazy">
+ <img src="making/still-11.webp" width="1200" height="675" alt="Happily ever after." loading="lazy">
</div>
<h2>What we set out to do</h2>
<p>Take a story with no book and no pictures, and make it an animated film you can pause, scrub and read along with. The pages are the same kind as the rest of the shelf: static web pages, one SVG stage, narration clips driving every move. What was new: the art came from an image model (OpenAI's gpt-image through OpenRouter), and the goal was for it to feel like a TV cartoon, not a slideshow.</p>
- <figure><img src="making/styles.webp" alt="The same scene in three styles: gouache, cut paper, TV cartoon." loading="lazy"><figcaption>Style tests, one scene in three looks. We chose the TV cartoon (right).</figcaption></figure>
+ <figure><img src="making/styles.webp" width="1400" height="260" alt="The same scene in three styles: gouache, cut paper, TV cartoon." loading="lazy"><figcaption>Style tests, one scene in three looks. We chose the TV cartoon (right).</figcaption></figure>
<h2>Four tries at a character</h2>
<ol class="tries">
@@ -89,43 +95,43 @@
<li><b>Characters drawn entirely in code.</b> They lined up perfectly, but looked far too crude next to the painted world.</li>
</ol>
<div class="pair">
- <figure><img src="making/try1-rigid.webp" alt="The wolf assembled from rigid painted parts." loading="lazy"><figcaption>Try 1: rigid parts.</figcaption></figure>
- <figure><img src="making/try2-hose.webp" alt="The wolf with bendable code-drawn limbs." loading="lazy"><figcaption>Try 2: bendable limbs.</figcaption></figure>
- <figure><img src="making/try3-sheets.webp" alt="Mother Pig's arm emerging beside her sleeve." loading="lazy"><figcaption>Try 3: parts that don't fit.</figcaption></figure>
- <figure><img src="making/try4-handdrawn.webp" alt="Mother Pig drawn in code, crude." loading="lazy"><figcaption>Try 4: drawn in code.</figcaption></figure>
+ <figure><img src="making/try1-rigid.webp" width="1400" height="788" alt="The wolf assembled from rigid painted parts." loading="lazy"><figcaption>Try 1: rigid parts.</figcaption></figure>
+ <figure><img src="making/try2-hose.webp" width="1400" height="788" alt="The wolf with bendable code-drawn limbs." loading="lazy"><figcaption>Try 2: bendable limbs.</figcaption></figure>
+ <figure><img src="making/try3-sheets.webp" width="1400" height="362" alt="Mother Pig's arm emerging beside her sleeve." loading="lazy"><figcaption>Try 3: parts that don't fit.</figcaption></figure>
+ <figure><img src="making/try4-handdrawn.webp" width="1000" height="781" alt="Mother Pig drawn in code, crude." loading="lazy"><figcaption>Try 4: drawn in code.</figcaption></figure>
</div>
<h2>What finally worked</h2>
<h3>One picture, edited, never redrawn</h3>
<p>Each character got one large picture. Every other version was an <em>edit</em> of that same picture: without the near arm, without eyes and mouth, with the legs in each walking pose, with each mouth shape. Because the edits change only a few percent of the pixels, they line up exactly, and a script can cut parts out wherever two pictures differ.</p>
- <figure><img src="making/edits-mother.webp" alt="Mother Pig three times: complete, without her arm, without her face." loading="lazy"><figcaption>Mother Pig as drawn, without her arm (the dress behind it painted in), and without her face.</figcaption></figure>
+ <figure><img src="making/edits-mother.webp" width="1400" height="689" alt="Mother Pig three times: complete, without her arm, without her face." loading="lazy"><figcaption>Mother Pig as drawn, without her arm (the dress behind it painted in), and without her face.</figcaption></figure>
<h3>Vectorized, then swapped like a TV cartoon</h3>
<p>The cut parts were traced into vector shapes, so close-ups stay sharp. Then they were baked back to images, because live tracing was too slow. Movement comes from swapping drawings the way TV cartoons do. Legs walk on four drawings, each held for a few frames. Arms swap between drawn gestures. Big actions, like sleeping or running, are whole drawings of their own. Code adds the rest: body bounce, blinks, eye movement and the camera.</p>
- <figure><img src="making/vectorize.webp" alt="Mother Pig painted, vectorized, and zoomed in three times." loading="lazy"><figcaption>Painted, vectorized, and the vector zoomed in three times.</figcaption></figure>
- <figure><img src="making/walk-wolf.webp" alt="Four walking drawings of the wolf." loading="lazy"><figcaption>The wolf's walk: four drawings, all edits of the same picture.</figcaption></figure>
- <figure><img src="making/whole-poses.webp" alt="The first pig carrying, tossing, napping, laughing and running." loading="lazy"><figcaption>Whole-body drawings for actions that limbs alone can't do.</figcaption></figure>
- <figure><img src="making/wolf-poses.webp" alt="The wolf sniffing, grinning, inhaling, blowing, tiptoeing, collapsing and howling." loading="lazy"><figcaption>Every wolf action in the film is one of these.</figcaption></figure>
+ <figure><img src="making/vectorize.webp" width="1400" height="741" alt="Mother Pig painted, vectorized, and zoomed in three times." loading="lazy"><figcaption>Painted, vectorized, and the vector zoomed in three times.</figcaption></figure>
+ <figure><img src="making/walk-wolf.webp" width="1400" height="516" alt="Four walking drawings of the wolf." loading="lazy"><figcaption>The wolf's walk: four drawings, all edits of the same picture.</figcaption></figure>
+ <figure><img src="making/whole-poses.webp" width="1400" height="410" alt="The first pig carrying, tossing, napping, laughing and running." loading="lazy"><figcaption>Whole-body drawings for actions that limbs alone can't do.</figcaption></figure>
+ <figure><img src="making/wolf-poses.webp" width="1400" height="292" alt="The wolf sniffing, grinning, inhaling, blowing, tiptoeing, collapsing and howling." loading="lazy"><figcaption>Every wolf action in the film is one of these.</figcaption></figure>
<h3>Faces that talk</h3>
<p>Each face has a featureless "faceplate" laid over it. On top go moving eyes, lids that slide down to blink, and brows. Mouth shapes are painted by the model, and each one is timed to a word from the voice track.</p>
- <figure><img src="making/mouths-wolf.webp" alt="The wolf's mouth: closed, and four open shapes." loading="lazy"><figcaption>The wolf's mouths. Each is a block of the muzzle with a soft edge, so the jaw can really open.</figcaption></figure>
- <figure><img src="making/mouths-mother.webp" alt="Mother Pig's mouth: closed and four shapes." loading="lazy"></figure>
+ <figure><img src="making/mouths-wolf.webp" width="1400" height="245" alt="The wolf's mouth: closed, and four open shapes." loading="lazy"><figcaption>The wolf's mouths. Each is a block of the muzzle with a soft edge, so the jaw can really open.</figcaption></figure>
+ <figure><img src="making/mouths-mother.webp" width="1400" height="195" alt="Mother Pig's mouth: closed and four shapes." loading="lazy"></figure>
<h2>Places, houses and the camera</h2>
<p>Backgrounds were painted, then separated into layers: sky, hills, ground, buildings, and flowers close to the camera. Layers slide past each other as the camera moves, and the background softens in close-ups. The houses come in three aligned stages, so building them is a series of thumps, not a wipe. The camera cuts on words: a close-up for whoever speaks, a follow shot when someone runs. Silences were spliced into the narration to give the building and the huffing room to happen.</p>
- <figure><img src="making/layers.webp" alt="The cottage scene as five separate layers." loading="lazy"><figcaption>Mother Pig's cottage in five layers.</figcaption></figure>
- <figure><img src="making/houses.webp" alt="Each house in three construction stages." loading="lazy"><figcaption>Three houses, three stages each.</figcaption></figure>
+ <figure><img src="making/layers.webp" width="1600" height="178" alt="The cottage scene as five separate layers." loading="lazy"><figcaption>Mother Pig's cottage in five layers.</figcaption></figure>
+ <figure><img src="making/houses.webp" width="1600" height="175" alt="Each house in three construction stages." loading="lazy"><figcaption>Three houses, three stages each.</figcaption></figure>
<p>The voices are free text-to-speech, one voice per character; when all three pigs answer the wolf, three voices are stretched to the same length and mixed into a chorus. The music, four instrumental pieces, was generated with Google's Lyria and crossfades between parts of the story, dipping under the voices.</p>
<h2>What kept going wrong</h2>
<p>Almost every fix came from a problem spotted while watching, and many of them were specific to one character.</p>
- <figure><img src="making/bugs-hands.webp" alt="A hollow arm, a missing hand, and ghost legs." loading="lazy"><figcaption>A see-through arm (fur the same colour as the body behind it fooled the cutting), a missing hand, ghost legs from blending two drawings.</figcaption></figure>
+ <figure><img src="making/bugs-hands.webp" width="1400" height="344" alt="A hollow arm, a missing hand, and ghost legs." loading="lazy"><figcaption>A see-through arm (fur the same colour as the body behind it fooled the cutting), a missing hand, ghost legs from blending two drawings.</figcaption></figure>
<ul>
<li>The second pig wore no trousers in his first design. The image model's safety filter kept refusing his pictures. Another model redrew each one slightly differently, so his body flickered as he walked. In the end he got shorts and was redrawn from scratch.</li>
<li>A held object belongs to one drawing: the third pig carried the pot while still holding a brick, because his carrying arm was the brick-carrying drawing.</li>
<li>Anything without its own drawing slides instead of moving, like the wolf running away on a single pose, until we gave it the walking legs.</li>
<li>Quality "high" cost five times "medium" and, once traced, looked the same. We found out late.</li>
</ul>
- <figure><img src="making/medium-vs-high.webp" alt="Medium and high quality side by side, zoomed in." loading="lazy"><figcaption>Medium (left) and high (right), vectorized and zoomed in three times.</figcaption></figure>
+ <figure><img src="making/medium-vs-high.webp" width="1400" height="788" alt="Medium and high quality side by side, zoomed in." loading="lazy"><figcaption>Medium (left) and high (right), vectorized and zoomed in three times.</figcaption></figure>
<h2>The numbers</h2>
<div class="numbers">
diff --git a/site/work/index.html b/site/work/index.html
index bf2bf34..38cedb2 100644
--- a/site/work/index.html
+++ b/site/work/index.html
@@ -165,7 +165,7 @@
.about-dialog h2 { margin: 0 0 16px; font-size: 30px; font-weight: 400; text-align: left; }
.about-dialog p { font-size: 15px; line-height: 1.7; margin: 0 0 12px; }
.about-close { position: absolute; right: 16px; top: 12px; padding: 0 8px; background: transparent; border: 0; color: var(--dlg-close); font: 26px var(--ui); cursor: pointer; }
- @media (max-width: 720px) { .about-dialog { padding: 32px 24px; } }
+ @media (max-width: 720px) { .about-dialog { padding: 32px 24px; } .foot nav a, .foot nav button.about-open { padding: 12px 0; } .foot { padding-bottom: 16px; } }
[hidden] { display: none !important; }
@media (max-width: 720px) {