Skip to content

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

fix(site): what the Hallmark audit found, fixed once at the source

yzrb1328a5aec4c
diff --git a/.claude/skills/papermorph/assets/templates/book.html b/.claude/skills/papermorph/assets/templates/book.html
index a3be85b..5fd51f6 100644
--- a/.claude/skills/papermorph/assets/templates/book.html
+++ b/.claude/skills/papermorph/assets/templates/book.html
@@ -26,12 +26,12 @@
<span style="left:5%;bottom:20%;--d:2.2">PHRASE THREE</span>
<span style="right:6%;bottom:15%;--d:2.5">PHRASE FOUR</span>
</div>
- <svg class="mascot draw" id="guide" width="210" height="147"></svg>
+ <svg class="mascot draw" id="guide" width="210" height="147" aria-hidden="true"></svg>
+ <h1>BOOK &amp; TITLE</h1>
<p class="kicker">An animated book</p>
- <h1>BOOK <i>&amp;</i> TITLE</h1>
<p class="lede">ONE OR TWO SENTENCES ABOUT WHAT THE READER WILL SEE AND DO.</p>
<div class="acts">
- <a class="btn go" href="#contents" data-t="open">Open the book<svg viewBox="0 0 16 16"><path d="M6 2.5 11.5 8 6 13.5 4.6 12.1 8.7 8 4.6 3.9z"/></svg></a>
+ <a class="btn go" href="#contents" data-t="open">Open the book<svg viewBox="0 0 16 16" aria-hidden="true"><path d="M6 2.5 11.5 8 6 13.5 4.6 12.1 8.7 8 4.6 3.9z"/></svg></a>
<a class="btn quiet" id="resume" hidden></a>
</div>
<p class="meta" id="meta"></p>
@@ -39,7 +39,7 @@
<main id="contents">
<header class="top">
- <a class="home" href="#book" aria-label="Back to the cover" data-t-label="toCover"><svg class="mascot" id="guideSmall" width="52" height="36"></svg><strong>BOOK <i>&amp;</i> TITLE</strong></a>
+ <a class="home" href="#book" aria-label="Back to the cover" data-t-label="toCover"><svg class="mascot" id="guideSmall" width="52" height="36" aria-hidden="true"></svg><strong>BOOK &amp; TITLE</strong></a>
<span class="prog" id="prog"></span>
</header>
<div id="units"></div>
diff --git a/.claude/skills/papermorph/assets/templates/picture-book/series.html b/.claude/skills/papermorph/assets/templates/picture-book/series.html
index f36b432..f0f800a 100644
--- a/.claude/skills/papermorph/assets/templates/picture-book/series.html
+++ b/.claude/skills/papermorph/assets/templates/picture-book/series.html
@@ -6,43 +6,77 @@
<title>SERIES TITLE</title>
<meta name="description" content="One line about the series.">
<link rel="stylesheet" href="lib/book.css"><!-- only for --progress-key, if the book sets one -->
-<!-- A picture book's cover and episode list. A starting point, not a design: give it the book's own look. -->
+<!-- A picture book's or a film's landing page. A starting point, not a design: give it the book's own look.
+ The page is for one thing, pressing play, so the hero carries the action: its picture and its button open the
+ first episode, and both work without scripting. With one episode the hero is the film and no list is drawn;
+ with two or more, the list below shows each episode as a row. The hero's picture (img/cover.webp) is not shown
+ again: when the series has a list, give the first episode a still of its own, a different frame. -->
<style>
:root { --ink: #2f2418; --soft: #6b5a46; --paper: #fbf5e8; --card: #fffaf0; --line: #e4d6bb; --accent: #2f5aa8;
+ --on-ink: #fff6e0; --ink-hover: #4a3826; --shadow: #4a33182e; --select: #2f5aa833;
--ui: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif; --serif: "Iowan Old Style", Palatino, Georgia, serif; color-scheme: light; }
* { box-sizing: border-box; }
+ html, body { overflow-x: clip; }
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; }
+ ::selection { background: var(--select); }
+ a { color: var(--accent); }
+ a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
+ h1, h2 { text-wrap: balance; overflow-wrap: break-word; min-width: 0; } p { text-wrap: pretty; }
+ .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 40px; }
+ .cover { display: block; border-radius: 10px; }
+ .cover img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 14px 40px var(--shadow); }
+ .back { display: inline-block; margin: -10px 0 8px; padding: 10px 0; font-size: 15px; color: var(--soft); text-decoration: none; }
+ .back:hover { color: var(--ink); }
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; }
- .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;
+ .lede { margin: 0; font-size: 20px; color: var(--soft); }
+ .action { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 24px 0 0; color: var(--soft); font-size: 16px; }
+ .watch { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 99px; background: var(--ink); color: var(--on-ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
+ .watch:hover { background: var(--ink-hover); }
+ .watch:active { transform: translateY(1px); }
+ .watch:focus-visible { border-radius: 99px; }
+ .watch svg { width: 11px; height: 13px; fill: currentColor; }
+ .seen { color: var(--accent); font-style: normal; }
+ main { max-width: 1180px; margin: 0 auto; padding: 8px 24px 80px; }
+ h2 { margin: 40px 0 16px; font: 700 32px/1.2 var(--serif); }
+ .episodes { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
+ .episodes a { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); align-items: center; gap: 0 28px; 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 a:active { transform: translateY(0); }
+ .episodes a:focus-visible { border-radius: 10px; }
.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 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; } }
+ .episodes div { padding: 16px 24px 16px 0; }
+ .episodes small, .episodes b, .episodes span, .episodes .seen { display: block; }
+ .episodes small { color: var(--soft); font-size: 15px; }
+ .episodes b { margin: 2px 0 4px; font: 700 24px/1.25 var(--serif); text-wrap: balance; }
+ .episodes span { max-width: 60ch; color: var(--soft); font-size: 16px; line-height: 1.5; }
+ .episodes .seen { margin-top: 6px; font-size: 15px; }
+ @media (prefers-reduced-motion: reduce) { .episodes a, .watch { transition: none; } .episodes a:hover, .episodes a:focus-visible, .episodes a:active, .watch:active { transform: none; } }
+ @media (max-width: 760px) { .hero { grid-template-columns: minmax(0, 1fr); padding-top: 28px; gap: 24px; } .episodes a { grid-template-columns: minmax(0, 1fr); } .episodes div { padding: 12px 16px 16px; } }
</style>
</head>
<body>
-<header>
- <img src="img/cover.webp" width="1400" height="788" alt="Describe the cover still.">
+<header class="hero">
+ <a class="cover" href="ch01/" tabindex="-1"><img src="img/cover.webp" width="1400" height="788" alt="Describe the cover still."></a>
<div>
+ <a class="back" href="../">← Back to the bookshelf</a>
<h1>SERIES TITLE</h1>
- <p class="lede">One or two sentences: what these films are and who they are for.</p>
+ <p class="lede">One sentence: what this is and who it is for.</p>
+ <p class="action"><a class="watch" href="ch01/"><svg viewBox="0 0 11 13" aria-hidden="true"><path d="M0 0l11 6.5L0 13z"/></svg>Watch the film</a>
+ <span>4 minutes</span> <em class="seen" id="seen" hidden>✓ Watched</em></p>
</div>
</header>
<main>
- <ul class="episodes" id="episodes"></ul>
+ <section id="list" hidden>
+ <h2>Episodes</h2>
+ <ol class="episodes" id="episodes"></ol>
+ </section>
</main>
<script>
'use strict';
// One entry per finished episode, in order: its folder, title, a still (16:9) with alt text, and one line.
+// With one entry the hero is the film (say "Watch the film" and its length there); with more, the list is drawn
+// and the hero's button names the first episode ("Watch episode 1").
const EPISODES = [
{ ch: 'ch01', title: 'EPISODE TITLE', minutes: 2, still: 'img/still-ch01.webp', alt: 'Describe the still.', line: 'One line about the episode.' },
];
@@ -52,10 +86,13 @@ const key = getComputedStyle(document.documentElement).getPropertyValue('--progr
|| 'animebook:progress:' + new URL('.', location.href).pathname;
let done = [];
try { done = JSON.parse(localStorage.getItem(key) || '{}').done || []; } catch {}
+const seen = e => done.includes(+e.ch.slice(2));
const esc = s => String(s).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/"/g, '&quot;');
-document.getElementById('episodes').innerHTML = EPISODES.map((e, i) => `<li${done.includes(+e.ch.slice(2)) ? ' class="watched"' : ''}>
- <a href="${e.ch}/"><img src="${esc(e.still)}" alt="${esc(e.alt)}" loading="lazy">
- <small>Episode ${i + 1} · ${e.minutes} minute${e.minutes == 1 ? "" : "s"}</small><b>${esc(e.title)}</b><span>${esc(e.line)}</span></a></li>`).join('');
+if (EPISODES.length > 1) {
+ document.getElementById('episodes').innerHTML = EPISODES.map((e, i) => `<li><a href="${e.ch}/"><img src="${esc(e.still)}" alt="${esc(e.alt)}" loading="lazy">
+ <div><small>Episode ${i + 1}, ${e.minutes} minute${e.minutes == 1 ? '' : 's'}</small><b>${esc(e.title)}</b><span>${esc(e.line)}</span>${seen(e) ? '<em class="seen">✓ Watched</em>' : ''}</div></a></li>`).join('');
+ document.getElementById('list').hidden = false;
+} else if (EPISODES[0] && seen(EPISODES[0])) document.getElementById('seen').hidden = false;
</script>
</body>
</html>
diff --git a/.claude/skills/papermorph/references/picture-books/stories.md b/.claude/skills/papermorph/references/picture-books/stories.md
index ab554a6..d84c26c 100644
--- a/.claude/skills/papermorph/references/picture-books/stories.md
+++ b/.claude/skills/papermorph/references/picture-books/stories.md
@@ -166,4 +166,4 @@ Alone, run the same rounds yourself, one viewpoint at a time, writing each revie
The episode is a first cut for the user's viewing, not a finished film. Deliver its URL with what was made, the final script, the decisions the user should review (every line or moment you added), known problems, and the real cost of pictures. Once the user approves it, add it to `approved` in `style.json` and to the series page, and set the previous episode's `CHAPTER.next`: when an episode's last scene ends, the player marks it watched and offers the next one.
-The series page is the book's `index.html`, made from [series.html](../../assets/templates/picture-book/series.html): one card per episode with a still, its title and a line, and a mark on episodes already watched. A still is one frame saved as a 1400×788 WebP: `shot.py chNN --out books/<book>/review/stills sceneN:S --webp 1400 --name still-chNN --url http://localhost:8765/<book>/` writes it without the player's controls (beside a full-size PNG); copy the WebP to `site/<book>/img/`. The page's header shows `img/cover.webp`, a still too: the first episode's, or a frame the user picks, until the series has a picture of its own.
+The series page is the book's `index.html`, made from [series.html](../../assets/templates/picture-book/series.html): its hero picture and Watch button open the first episode (both work without scripting); with one episode that is the whole page, with two or more a list below shows each episode's still, title, line and a mark on episodes already watched. The hero's `img/cover.webp` is not shown again, so once there is a list, give episode 1 a different frame as its still. A still is one frame saved as a 1400×788 WebP: `shot.py chNN --out books/<book>/review/stills sceneN:S --webp 1400 --name still-chNN --url http://localhost:8765/<book>/` writes it without the player's controls (beside a full-size PNG); copy the WebP to `site/<book>/img/`. The page's header shows `img/cover.webp`, a still too: the first episode's, or a frame the user picks, until the series has a picture of its own.
diff --git a/engine/check_i18n.py b/engine/check_i18n.py
index bd0323a..4974c26 100644
--- a/engine/check_i18n.py
+++ b/engine/check_i18n.py
@@ -256,7 +256,7 @@ async def check_russian_book(browser, errors):
page = await open_page(browser, "ru/", errors)
text = lambda selector: page.locator(selector).first.text_content() # as written, before CSS case and spacing
assert (await text("#cover .btn.go")).startswith("Открыть книгу")
- assert await text("#meta") == "1 глава · 1 раздел · со звуком"
+ assert await text("#meta") == "1 глава, 1 раздел, со звуком"
assert await text("#prog") == "1 глава"
assert await text(".unit h2 span") == "Раздел 1"
assert await text(".ch small") == "8 мин"
@@ -274,8 +274,8 @@ async def check_russian_book(browser, errors):
async def check_cjk(browser, errors):
expect = {
- "zh": ("第 1 章", "开始上课", "打开这本书", "1 章 · 1 个单元 · 有配音", "第 1 单元", "8 分钟"),
- "ja": ("第1章", "授業を始める", "本を開く", "1章 · 1単元 · 音声つき", "単元 1", "8分"),
+ "zh": ("第 1 章", "开始上课", "打开这本书", "1 章,1 个单元,有配音", "第 1 单元", "8 分钟"),
+ "ja": ("第1章", "授業を始める", "本を開く", "1章、1単元、音声つき", "単元 1", "8分"),
}
for language, (chapter, start, open_book, meta, unit, minutes) in expect.items():
page = await open_lesson(browser, language, errors)
@@ -350,7 +350,7 @@ async def check_arabic_book(browser, errors):
assert (await text("#cover .btn.go")).startswith("افتح الكتاب")
# Its arrow points the way the page reads: to the left.
assert await page.locator("#cover .btn.go svg").evaluate("e => getComputedStyle(e).transform") == "matrix(-1, 0, 0, 1, 0, 0)"
- assert await text("#meta") == "فصل واحد · وحدة واحدة · مع الصوت", await text("#meta")
+ assert await text("#meta") == "فصل واحد، وحدة واحدة، مع الصوت", await text("#meta")
assert await text("#prog") == "فصل واحد"
assert await text(".unit h2 span") == "الوحدة 1"
assert await text(".ch small") == "8 دقائق"
diff --git a/engine/contents.css b/engine/contents.css
index 5b8be35..8c99714 100644
--- a/engine/contents.css
+++ b/engine/contents.css
@@ -13,6 +13,7 @@
}
* { box-sizing: border-box; }
html { scroll-padding-top: 90px; }
+html, body { overflow-x: clip; }
body { margin: 0; min-height: 100svh; background: var(--board); color: var(--chalk); font: 18px/1.5 var(--ui); }
/* Chalkboard: the same grain and vignette as the lesson stage. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
@@ -20,7 +21,7 @@ body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-even
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .92 0 0 0 0 .95 0 0 0 0 .9 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23g)'/%3E%3C/svg%3E"); }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--task); outline-offset: 3px; }
-.kicker { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--quiz); }
+.kicker { margin: -6px 0 24px; font-size: 18px; font-weight: 600; color: var(--quiz); } /* under the title, a subtitle */
/* ---------- cover ---------- */
#cover { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
@@ -30,16 +31,16 @@ a:focus-visible { outline: 3px solid var(--task); outline-offset: 3px; }
body:not(.refsview) #refpage, .refsview #cover, .refsview #contents { display: none; }
#cover > * { animation: rise .8s var(--ease) backwards; }
#cover .mascot { animation: none; margin-bottom: 26px; view-transition-name: guide; }
-#cover .kicker { animation-delay: .9s; }
#cover h1 { animation-delay: 1s; }
+#cover .kicker { animation-delay: 1.06s; }
#cover .lede { animation-delay: 1.12s; }
#cover .acts { animation-delay: 1.24s; }
#cover .meta { animation-delay: 1.36s; }
h1 { margin: 14px 0 18px; font: 500 clamp(44px, 8.4vw, 92px)/1.02 var(--book); letter-spacing: -.01em; view-transition-name: book; }
-h1 i { color: var(--task); font-style: italic; }
+h1 i, .home strong i { font-style: normal; } /* the whole title one face and one colour; <i> left in older covers */
.lede { max-width: 34em; margin: 0 0 34px; color: var(--dim); font-size: clamp(17px, 2.2vw, 20px); text-wrap: balance; }
.acts { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
-.btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 30px; border-radius: 999px; font-weight: 600; font-size: 19px; text-decoration: none;
+.btn { display: inline-flex; align-items: center; gap: 12px; padding: 12px 28px; border-radius: 999px; font-weight: 600; font-size: 19px; text-decoration: none;
transition: transform .25s var(--ease), background-color .25s, border-color .25s; }
.btn[hidden] { display: none; }
.btn:hover { transform: translateY(-2px); }
@@ -47,7 +48,7 @@ h1 i { color: var(--task); font-style: italic; }
.btn.quiet { border: 1.5px solid var(--edge); color: var(--chalk); }
.btn.quiet:hover { border-color: var(--dim); }
.btn svg { width: 15px; height: 15px; fill: currentColor; }
-.meta { margin: 30px 0 0; color: var(--dim); font-size: 15px; letter-spacing: .04em; } /* --faint read below 3:1 */
+.meta { margin: 30px 0 0; color: var(--dim); font-size: 15px; } /* --faint read below 3:1 */
/* Faint chalk notes around the edges of the board. */
.chalk { position: absolute; inset: 0; z-index: -1; pointer-events: none; animation: none !important; }
.chalk span { position: absolute; font: italic 400 clamp(22px, 3vw, 38px) var(--book); color: var(--chalk); opacity: 0; white-space: nowrap;
@@ -77,7 +78,6 @@ h1 i { color: var(--task); font-style: italic; }
.home { display: flex; align-items: center; gap: 12px; text-decoration: none; border-radius: 10px; }
.home .mascot { view-transition-name: guide; }
.home strong { font: 500 22px/1.1 var(--book); view-transition-name: book; }
-.home strong i { color: var(--task); }
.prog { margin-inline-start: auto; color: var(--dim); font-size: 15px; white-space: nowrap; }
.prog b { color: var(--good); font-weight: 600; }
main#contents { padding-bottom: 80px; }
diff --git a/engine/contents.js b/engine/contents.js
index cb2629d..b8aeb88 100644
--- a/engine/contents.js
+++ b/engine/contents.js
@@ -12,7 +12,7 @@ const Contents = (() => {
const TRANSLATIONS = {
en: {
open: 'Open the book', toCover: 'Back to the cover', resume: 'Continue · Chapter {n}', unit: 'Unit {n}', minutes: '{n} min',
- meta: '{chapters}{samples} · {units} · with sound', metaChapters: { one: '{n} chapter', other: '{n} chapters' },
+ meta: '{chapters}{samples}, {units}, with sound', metaChapters: { one: '{n} chapter', other: '{n} chapters' },
metaUnits: { one: '{n} unit', other: '{n} units' }, metaSamples: { one: ' + {n} sample', other: ' + {n} samples' }, samples: 'Sample chapters, another look',
chapterCount: { one: '{n} chapter', other: '{n} chapters' }, finished: '{done} of {n} finished',
doneMark: '✓ Finished · ', lastMark: ' · Last opened',
@@ -23,7 +23,7 @@ const Contents = (() => {
},
ru: {
open: 'Открыть книгу', toCover: 'К обложке', resume: 'Продолжить · Глава {n}', unit: 'Раздел {n}', minutes: '{n} мин',
- meta: '{chapters}{samples} · {units} · со звуком',
+ meta: '{chapters}{samples}, {units}, со звуком',
metaChapters: { one: '{n} глава', few: '{n} главы', many: '{n} глав', other: '{n} главы' },
metaUnits: { one: '{n} раздел', few: '{n} раздела', many: '{n} разделов', other: '{n} раздела' },
metaSamples: { one: ' + {n} пробная', few: ' + {n} пробные', many: ' + {n} пробных', other: ' + {n} пробной' },
@@ -37,7 +37,7 @@ const Contents = (() => {
},
zh: {
open: '打开这本书', toCover: '返回封面', resume: '继续 · 第 {n} 章', unit: '第 {n} 单元', minutes: '{n} 分钟',
- meta: '{chapters}{samples} · {units} · 有配音', metaChapters: '{n} 章', metaUnits: '{n} 个单元',
+ meta: '{chapters}{samples},{units},有配音', metaChapters: '{n} 章', metaUnits: '{n} 个单元',
metaSamples: ' + {n} 个示例章', samples: '示例章,另一种风格',
chapterCount: '{n} 章', finished: '已完成 {done} / {n}',
doneMark: '✓ 已完成 · ', lastMark: ' · 上次打开',
@@ -47,7 +47,7 @@ const Contents = (() => {
},
ja: {
open: '本を開く', toCover: '表紙に戻る', resume: '続きから · 第{n}章', unit: '単元 {n}', minutes: '{n}分',
- meta: '{chapters}{samples} · {units} · 音声つき', metaChapters: '{n}章', metaUnits: '{n}単元',
+ meta: '{chapters}{samples}、{units}、音声つき', metaChapters: '{n}章', metaUnits: '{n}単元',
metaSamples: ' + サンプル{n}章', samples: 'サンプル章(別のスタイル)',
chapterCount: '{n}章', finished: '{n}章中 {done}章 完了',
doneMark: '✓ 完了 · ', lastMark: ' · 最後に開いた章',
@@ -59,7 +59,7 @@ const Contents = (() => {
ar: {
open: 'افتح الكتاب', toCover: 'العودة إلى الغلاف', resume: 'تابع · الفصل {n}', unit: 'الوحدة {n}',
minutes: { one: 'دقيقة', two: 'دقيقتان', few: '{n} دقائق', many: '{n} دقيقة', other: '{n} دقيقة' },
- meta: '{chapters}{samples} · {units} · مع الصوت',
+ meta: '{chapters}{samples}، {units}، مع الصوت',
metaChapters: { one: 'فصل واحد', two: 'فصلان', few: '{n} فصول', many: '{n} فصلاً', other: '{n} فصل' },
metaUnits: { one: 'وحدة واحدة', two: 'وحدتان', few: '{n} وحدات', many: '{n} وحدة', other: '{n} وحدة' },
metaSamples: { one: ' + فصل تجريبي واحد', two: ' + فصلان تجريبيان', few: ' + {n} فصول تجريبية', many: ' + {n} فصلاً تجريبياً', other: ' + {n} فصل تجريبي' },
diff --git a/engine/units.css b/engine/units.css
index 014ce88..c5ff6f0 100644
--- a/engine/units.css
+++ b/engine/units.css
@@ -60,7 +60,7 @@
@keyframes breathe { from { transform: scaleY(1); } to { transform: scaleY(.35); } }
/* The label and the title share a line when they fit; a long title wraps below the label instead of running off. */
.unit h2 .title { min-width: 0; text-wrap: balance; }
-.unit h2 .label { font: 600 14px var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--c); white-space: nowrap; }
+.unit h2 .label { font: 600 16px var(--ui); color: var(--c); white-space: nowrap; }
/* Keep the sketches cheap: each is its own layer, so its loop repaints only itself, and loops pause while their unit is
off screen or under the sticky bar (units.js toggles .live), so the bar's blur is not redrawn every frame. */
.unit-art { will-change: transform; contain: layout style; }
diff --git a/site/elementary-algebra/index.html b/site/elementary-algebra/index.html
index 9b0b095..d0d07db 100644
--- a/site/elementary-algebra/index.html
+++ b/site/elementary-algebra/index.html
@@ -34,12 +34,12 @@
<span style="right:24%;bottom:5%;--d:3.1">3(x + 2)</span>
<span style="left:16%;bottom:6%;--d:3.4">−2 &lt; x ≤ 5</span>
</div>
- <svg class="mascot draw" id="guide" width="210" height="147"></svg>
+ <svg class="mascot draw" id="guide" width="210" height="147" aria-hidden="true"></svg>
+ <h1>Elementary Algebra</h1>
<p class="kicker">An animated workbook</p>
- <h1>Elementary <i>Algebra</i></h1>
<p class="lede">Lessons drawn and narrated step by step, quick checks inside the picture, and practice at the end of every chapter.</p>
<div class="acts">
- <a class="btn go" href="#contents" data-t="open">Open the book<svg viewBox="0 0 16 16"><path d="M6 2.5 11.5 8 6 13.5 4.6 12.1 8.7 8 4.6 3.9z"/></svg></a>
+ <a class="btn go" href="#contents" data-t="open">Open the book<svg viewBox="0 0 16 16" aria-hidden="true"><path d="M6 2.5 11.5 8 6 13.5 4.6 12.1 8.7 8 4.6 3.9z"/></svg></a>
<a class="btn quiet" id="resume" hidden></a>
</div>
<p class="meta" id="meta"></p>
@@ -49,7 +49,7 @@
<main id="contents">
<header class="top">
- <a class="home" href="#book" aria-label="Back to the cover" data-t-label="toCover"><svg class="mascot" id="guideSmall" width="52" height="36"></svg><strong>Elementary <i>Algebra</i></strong></a>
+ <a class="home" href="#book" aria-label="Back to the cover" data-t-label="toCover"><svg class="mascot" id="guideSmall" width="52" height="36" aria-hidden="true"></svg><strong>Elementary Algebra</strong></a>
<span class="prog" id="prog"></span>
<a class="back-shelf contents-back" href="../">← Bookshelf</a>
</header>
diff --git a/site/elementary-algebra/lib/contents.css b/site/elementary-algebra/lib/contents.css
index 5b8be35..8c99714 100644
--- a/site/elementary-algebra/lib/contents.css
+++ b/site/elementary-algebra/lib/contents.css
@@ -13,6 +13,7 @@
}
* { box-sizing: border-box; }
html { scroll-padding-top: 90px; }
+html, body { overflow-x: clip; }
body { margin: 0; min-height: 100svh; background: var(--board); color: var(--chalk); font: 18px/1.5 var(--ui); }
/* Chalkboard: the same grain and vignette as the lesson stage. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
@@ -20,7 +21,7 @@ body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-even
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .92 0 0 0 0 .95 0 0 0 0 .9 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23g)'/%3E%3C/svg%3E"); }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--task); outline-offset: 3px; }
-.kicker { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--quiz); }
+.kicker { margin: -6px 0 24px; font-size: 18px; font-weight: 600; color: var(--quiz); } /* under the title, a subtitle */
/* ---------- cover ---------- */
#cover { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
@@ -30,16 +31,16 @@ a:focus-visible { outline: 3px solid var(--task); outline-offset: 3px; }
body:not(.refsview) #refpage, .refsview #cover, .refsview #contents { display: none; }
#cover > * { animation: rise .8s var(--ease) backwards; }
#cover .mascot { animation: none; margin-bottom: 26px; view-transition-name: guide; }
-#cover .kicker { animation-delay: .9s; }
#cover h1 { animation-delay: 1s; }
+#cover .kicker { animation-delay: 1.06s; }
#cover .lede { animation-delay: 1.12s; }
#cover .acts { animation-delay: 1.24s; }
#cover .meta { animation-delay: 1.36s; }
h1 { margin: 14px 0 18px; font: 500 clamp(44px, 8.4vw, 92px)/1.02 var(--book); letter-spacing: -.01em; view-transition-name: book; }
-h1 i { color: var(--task); font-style: italic; }
+h1 i, .home strong i { font-style: normal; } /* the whole title one face and one colour; <i> left in older covers */
.lede { max-width: 34em; margin: 0 0 34px; color: var(--dim); font-size: clamp(17px, 2.2vw, 20px); text-wrap: balance; }
.acts { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
-.btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 30px; border-radius: 999px; font-weight: 600; font-size: 19px; text-decoration: none;
+.btn { display: inline-flex; align-items: center; gap: 12px; padding: 12px 28px; border-radius: 999px; font-weight: 600; font-size: 19px; text-decoration: none;
transition: transform .25s var(--ease), background-color .25s, border-color .25s; }
.btn[hidden] { display: none; }
.btn:hover { transform: translateY(-2px); }
@@ -47,7 +48,7 @@ h1 i { color: var(--task); font-style: italic; }
.btn.quiet { border: 1.5px solid var(--edge); color: var(--chalk); }
.btn.quiet:hover { border-color: var(--dim); }
.btn svg { width: 15px; height: 15px; fill: currentColor; }
-.meta { margin: 30px 0 0; color: var(--dim); font-size: 15px; letter-spacing: .04em; } /* --faint read below 3:1 */
+.meta { margin: 30px 0 0; color: var(--dim); font-size: 15px; } /* --faint read below 3:1 */
/* Faint chalk notes around the edges of the board. */
.chalk { position: absolute; inset: 0; z-index: -1; pointer-events: none; animation: none !important; }
.chalk span { position: absolute; font: italic 400 clamp(22px, 3vw, 38px) var(--book); color: var(--chalk); opacity: 0; white-space: nowrap;
@@ -77,7 +78,6 @@ h1 i { color: var(--task); font-style: italic; }
.home { display: flex; align-items: center; gap: 12px; text-decoration: none; border-radius: 10px; }
.home .mascot { view-transition-name: guide; }
.home strong { font: 500 22px/1.1 var(--book); view-transition-name: book; }
-.home strong i { color: var(--task); }
.prog { margin-inline-start: auto; color: var(--dim); font-size: 15px; white-space: nowrap; }
.prog b { color: var(--good); font-weight: 600; }
main#contents { padding-bottom: 80px; }
diff --git a/site/elementary-algebra/lib/contents.js b/site/elementary-algebra/lib/contents.js
index cb2629d..b8aeb88 100644
--- a/site/elementary-algebra/lib/contents.js
+++ b/site/elementary-algebra/lib/contents.js
@@ -12,7 +12,7 @@ const Contents = (() => {
const TRANSLATIONS = {
en: {
open: 'Open the book', toCover: 'Back to the cover', resume: 'Continue · Chapter {n}', unit: 'Unit {n}', minutes: '{n} min',
- meta: '{chapters}{samples} · {units} · with sound', metaChapters: { one: '{n} chapter', other: '{n} chapters' },
+ meta: '{chapters}{samples}, {units}, with sound', metaChapters: { one: '{n} chapter', other: '{n} chapters' },
metaUnits: { one: '{n} unit', other: '{n} units' }, metaSamples: { one: ' + {n} sample', other: ' + {n} samples' }, samples: 'Sample chapters, another look',
chapterCount: { one: '{n} chapter', other: '{n} chapters' }, finished: '{done} of {n} finished',
doneMark: '✓ Finished · ', lastMark: ' · Last opened',
@@ -23,7 +23,7 @@ const Contents = (() => {
},
ru: {
open: 'Открыть книгу', toCover: 'К обложке', resume: 'Продолжить · Глава {n}', unit: 'Раздел {n}', minutes: '{n} мин',
- meta: '{chapters}{samples} · {units} · со звуком',
+ meta: '{chapters}{samples}, {units}, со звуком',
metaChapters: { one: '{n} глава', few: '{n} главы', many: '{n} глав', other: '{n} главы' },
metaUnits: { one: '{n} раздел', few: '{n} раздела', many: '{n} разделов', other: '{n} раздела' },
metaSamples: { one: ' + {n} пробная', few: ' + {n} пробные', many: ' + {n} пробных', other: ' + {n} пробной' },
@@ -37,7 +37,7 @@ const Contents = (() => {
},
zh: {
open: '打开这本书', toCover: '返回封面', resume: '继续 · 第 {n} 章', unit: '第 {n} 单元', minutes: '{n} 分钟',
- meta: '{chapters}{samples} · {units} · 有配音', metaChapters: '{n} 章', metaUnits: '{n} 个单元',
+ meta: '{chapters}{samples},{units},有配音', metaChapters: '{n} 章', metaUnits: '{n} 个单元',
metaSamples: ' + {n} 个示例章', samples: '示例章,另一种风格',
chapterCount: '{n} 章', finished: '已完成 {done} / {n}',
doneMark: '✓ 已完成 · ', lastMark: ' · 上次打开',
@@ -47,7 +47,7 @@ const Contents = (() => {
},
ja: {
open: '本を開く', toCover: '表紙に戻る', resume: '続きから · 第{n}章', unit: '単元 {n}', minutes: '{n}分',
- meta: '{chapters}{samples} · {units} · 音声つき', metaChapters: '{n}章', metaUnits: '{n}単元',
+ meta: '{chapters}{samples}、{units}、音声つき', metaChapters: '{n}章', metaUnits: '{n}単元',
metaSamples: ' + サンプル{n}章', samples: 'サンプル章(別のスタイル)',
chapterCount: '{n}章', finished: '{n}章中 {done}章 完了',
doneMark: '✓ 完了 · ', lastMark: ' · 最後に開いた章',
@@ -59,7 +59,7 @@ const Contents = (() => {
ar: {
open: 'افتح الكتاب', toCover: 'العودة إلى الغلاف', resume: 'تابع · الفصل {n}', unit: 'الوحدة {n}',
minutes: { one: 'دقيقة', two: 'دقيقتان', few: '{n} دقائق', many: '{n} دقيقة', other: '{n} دقيقة' },
- meta: '{chapters}{samples} · {units} · مع الصوت',
+ meta: '{chapters}{samples}، {units}، مع الصوت',
metaChapters: { one: 'فصل واحد', two: 'فصلان', few: '{n} فصول', many: '{n} فصلاً', other: '{n} فصل' },
metaUnits: { one: 'وحدة واحدة', two: 'وحدتان', few: '{n} وحدات', many: '{n} وحدة', other: '{n} وحدة' },
metaSamples: { one: ' + فصل تجريبي واحد', two: ' + فصلان تجريبيان', few: ' + {n} فصول تجريبية', many: ' + {n} فصلاً تجريبياً', other: ' + {n} فصل تجريبي' },
diff --git a/site/elementary-algebra/lib/units.css b/site/elementary-algebra/lib/units.css
index 014ce88..c5ff6f0 100644
--- a/site/elementary-algebra/lib/units.css
+++ b/site/elementary-algebra/lib/units.css
@@ -60,7 +60,7 @@
@keyframes breathe { from { transform: scaleY(1); } to { transform: scaleY(.35); } }
/* The label and the title share a line when they fit; a long title wraps below the label instead of running off. */
.unit h2 .title { min-width: 0; text-wrap: balance; }
-.unit h2 .label { font: 600 14px var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--c); white-space: nowrap; }
+.unit h2 .label { font: 600 16px var(--ui); color: var(--c); white-space: nowrap; }
/* Keep the sketches cheap: each is its own layer, so its loop repaints only itself, and loops pause while their unit is
off screen or under the sticky bar (units.js toggles .live), so the bar's blur is not redrawn every frame. */
.unit-art { will-change: transform; contain: layout style; }
diff --git a/site/index.html b/site/index.html
index d99f9d3..8f9c718 100644
--- a/site/index.html
+++ b/site/index.html
@@ -3,12 +3,12 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
-<title>Papermorph — The animated bookshelf</title>
+<title>Papermorph: the animated bookshelf</title>
<meta name="description" content="A little library of books brought to life. Watch animated lessons, explore the ideas, and try them yourself.">
<link rel="canonical" href="https://papermorph.diamonddoge.org/">
<meta property="og:type" content="website">
<meta property="og:site_name" content="Papermorph">
-<meta property="og:title" content="Papermorph — The animated bookshelf">
+<meta property="og:title" content="Papermorph: the animated bookshelf">
<meta property="og:description" content="A little library of books brought to life. Watch animated lessons, explore the ideas, and try them yourself.">
<meta property="og:url" content="https://papermorph.diamonddoge.org/">
<meta property="og:image" content="https://papermorph.diamonddoge.org/assets/bookshelf.webp">
@@ -53,19 +53,19 @@
<div class="row">
<a class="book" data-book="elementary-algebra" href="elementary-algebra/">
<span class="doc"><img src="assets/covers/elementary-algebra.webp" width="960" height="540" alt=""><span class="ct" aria-hidden="true">Elementary Algebra</span></span>
- <span class="tag"><b>Elementary Algebra</b><em>Lessons · 68 chapters</em><span>Pre-algebra and algebra, narrated and animated, with quick checks and chapter practice.</span></span>
+ <span class="tag"><b>Elementary Algebra</b><em>Lessons, 68 chapters</em><span>Pre-algebra and algebra, narrated and animated, with quick checks and chapter practice.</span></span>
</a>
<a class="book" data-book="linear-algebra" href="linear-algebra/">
<span class="doc"><img src="assets/covers/linear-algebra.webp" width="960" height="540" alt=""><span class="ct" aria-hidden="true">Linear Algebra</span></span>
- <span class="tag"><b>Linear Algebra</b><em>Lessons · 40 chapters</em><span>Lines, planes and matrices you can drag in 2D and 3D, after MIT OCW 18.06, lectures 1&ndash;5.</span></span>
+ <span class="tag"><b>Linear Algebra</b><em>Lessons, 40 chapters</em><span>Lines, planes and matrices you can drag in 2D and 3D, after MIT OCW 18.06, lectures 1&ndash;5.</span></span>
</a>
<a class="book" data-book="math-notebook" href="math-notebook/">
<span class="doc"><img src="assets/covers/math-notebook.webp" width="960" height="935" style="object-position: 0 40%" alt=""><span class="ct" aria-hidden="true">Elementary Mathematics</span></span>
- <span class="tag"><b>Elementary Mathematics</b><em>Lessons · 23 chapters</em><span>Middle-school mathematics, narrated and animated, with quick checks and chapter practice.</span></span>
+ <span class="tag"><b>Elementary Mathematics</b><em>Lessons, 23 chapters</em><span>Middle-school mathematics, narrated and animated, with quick checks and chapter practice.</span></span>
</a>
<a class="book" data-book="science" href="science/">
<span class="doc"><img src="assets/covers/science.webp" width="960" height="540" alt=""><span class="ct" aria-hidden="true">Elementary Physics</span></span>
- <span class="tag"><b>Elementary Physics</b><em>Lessons · 9 chapters</em><span>Motion and forces, machines, energy, light and sound, electricity and magnetism.</span></span>
+ <span class="tag"><b>Elementary Physics</b><em>Lessons, 9 chapters</em><span>Motion and forces, machines, energy, light and sound, electricity and magnetism.</span></span>
</a>
</div>
<div class="lip"><h2 class="label" id="lessons-title">Lessons</h2></div>
@@ -79,15 +79,15 @@
</a>
<a class="book" data-book="little-red-riding-hood" href="little-red-riding-hood/">
<span class="doc"><img src="assets/covers/little-red-riding-hood.webp" width="960" height="540" style="object-position: 50% 40%" alt=""><span class="ct" aria-hidden="true">Little Red Riding Hood</span></span>
- <span class="tag"><b>Little Red Riding Hood</b><em>Paper cut-out</em><span>Stop motion drawn entirely in code. In the meadow, tap things to hear their names.</span></span>
+ <span class="tag"><b>Little Red Riding Hood</b><em>Paper cut-out</em><span>Stop motion drawn entirely in code. In the meadow, Red asks and the child finds.</span></span>
</a>
<a class="book" data-book="little-horse" href="little-horse/">
<span class="doc"><img src="assets/covers/little-horse.webp" width="960" height="540" style="object-position: 64% 50%" alt=""><span class="ct" aria-hidden="true">Little Horse</span></span>
- <span class="tag"><b>The Little Horse Crosses the River</b><em>Paper cut-out · 小马过河</em><span>A Chinese folk tale. Little Horse asks, the child finds and taps.</span></span>
+ <span class="tag"><b>The Little Horse Crosses the River</b><em>Paper cut-out, 小马过河</em><span>A Chinese folk tale. Little Horse asks, the child finds and taps.</span></span>
</a>
<a class="book" data-book="joke-collection" href="joke-collection/">
<span class="doc"><img src="assets/covers/joke-collection.webp" width="960" height="540" style="object-position: 22% 50%" alt=""><span class="ct" aria-hidden="true">Joke Collection</span></span>
- <span class="tag"><b>Joke Collection</b><em>Short films · 7 episodes</em><span>Painted sets and paper puppets moved by code, one joke an episode.</span></span>
+ <span class="tag"><b>Joke Collection</b><em>Short films, 7 episodes</em><span>Painted sets and paper puppets moved by code, one joke an episode.</span></span>
</a>
</div>
<div class="lip"><h2 class="label" id="pictures-title">Picture books</h2></div>
@@ -97,11 +97,11 @@
<div class="row">
<a class="book" data-book="madness" href="madness/">
<span class="doc"><img src="assets/covers/madness.webp" width="652" height="952" style="object-position: 50% 30%" alt=""><span class="ct" aria-hidden="true">Madness and Civilization</span></span>
- <span class="tag"><b>Madness and Civilization</b><em>Documentary · 10 min</em><span>Michel Foucault&rsquo;s book as a short film, and the same story as upright shorts.</span></span>
+ <span class="tag"><b>Madness and Civilization</b><em>Documentary, 10 min</em><span>Michel Foucault&rsquo;s book as a short film, and the same story as upright shorts.</span></span>
</a>
<a class="book" data-book="pandemic" href="pandemic/">
<span class="doc"><img src="assets/covers/pandemic.webp" width="640" height="520" style="object-position: 50% 50%" alt=""><span class="ct" aria-hidden="true">The Pandemic</span></span>
- <span class="tag"><b>The Pandemic</b><em>Documentary · 7 min</em><span>From a market in Wuhan to the count of the dead. Also as shorts and a scroll story.</span></span>
+ <span class="tag"><b>The Pandemic</b><em>Documentary, 7 min</em><span>From a market in Wuhan to the count of the dead. Also as shorts and a scroll story.</span></span>
</a>
<a class="book" data-book="time-of-the-magicians" href="time-of-the-magicians/">
<span class="doc"><img src="assets/covers/time-of-the-magicians.webp" width="440" height="470" alt=""><span class="ct" aria-hidden="true">Time of the Magicians</span></span>
diff --git a/site/joke-collection/index.html b/site/joke-collection/index.html
index df1232f..c38d95d 100644
--- a/site/joke-collection/index.html
+++ b/site/joke-collection/index.html
@@ -17,6 +17,8 @@
<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; }
+ html, body { overflow-x: clip; }
+ @media (prefers-reduced-motion: reduce) { .episodes a, .thumb::after { transition: none !important; } .episodes a:hover, .episodes a:focus-visible { transform: none !important; } }
::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; }
@@ -26,17 +28,17 @@
.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; }
+ .tag { display: block; margin: 0 0 14px; color: var(--accent); font-size: 18px; font-weight: 600; } /* a subtitle under the title */
.lede { font-size: 20px; color: #4a3b2a; }
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%; height: auto; 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: #fffdf8; }
figcaption { margin-top: 8px; font-size: 15px; color: var(--soft); }
- .stills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
+ .stills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.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 { list-style: none; padding: 0; margin: 18px 0 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 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 a:focus-visible { border-radius: 10px; }
@@ -44,20 +46,20 @@
.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, .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 small { margin: 12px 16px 0; color: var(--soft); font-size: 15px; }
.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; }
- .numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0; }
+ .numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 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); }
footer { max-width: 900px; margin: 0 auto; padding: 0 24px 60px; color: var(--soft); font-size: 15px; }
@media (max-width: 760px) {
- header.hero { grid-template-columns: 1fr; padding-top: 28px; }
- .numbers, .stills { grid-template-columns: 1fr 1fr; }
- .episodes { grid-template-columns: 1fr; }
+ header.hero { grid-template-columns: minmax(0, 1fr); padding-top: 28px; }
+ .numbers, .stills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
+ .episodes { grid-template-columns: minmax(0, 1fr); }
}
</style>
</head>
@@ -66,8 +68,8 @@
<img src="making/cover.webp" width="1400" height="788" alt="Bo, with a bun sitting on a toilet in his thought bubble, about to ask his question; Me beside him and the class behind.">
<div>
<a class="back" href="../">← Back to the bookshelf</a><br>
- <span class="tag">Short animated jokes</span>
<h1>Joke Collection</h1>
+ <span class="tag">Short animated jokes</span>
<p class="lede">Little jokes, a couple of minutes each. The third way we've tried to make picture books, and the one we're keeping: an image model paints every set and everything that stays still, and paper puppets drawn in code do all the moving.</p>
</div>
</header>
@@ -75,13 +77,13 @@
<main>
<h2>Episodes</h2>
<ul class="episodes" id="episodes">
- <li><a href="ch01/"><span class="thumb"><img src="making/still-stall.webp" width="800" height="450" alt="Me and Bo at the bun stall."></span><small>Episode 1 · 2 minutes</small><b>Breakfast in the Bathroom</b><span>Seventh grade. My deskmate had two questions for me, and one morning he asked them both at once. A true story.</span></a></li>
- <li><a href="ch02/"><span class="thumb"><img src="making/ep2-veggie.webp" width="800" height="450" alt="The customer hears “reji” as “veggie”."></span><small>Episode 2 · 2 minutes</small><b>Do You Need a Bag?</b><span>A convenience store in Fukuoka. A clerk who speaks no English, a customer who speaks no Japanese, and me in line behind them with a hundred-yen coffee. Also true.</span></a></li>
- <li><a href="ch03/"><span class="thumb"><img src="making/ep3-hay.webp" width="800" height="450" alt="The cow walks after hay hung from a rod on its own back."></span><small>Episode 3 · 2 minutes</small><b>How to Move a Cow</b><span>A Chinese man, an Indian man and an American are stuck behind a cow that won’t budge. Each has his own way to make it walk. An old joke, with a newer ending.</span></a></li>
- <li><a href="ch04/"><span class="thumb"><img src="making/ep4-glasses.webp" width="800" height="450" alt="The dog on the desk between Me and Bo, in glasses, a pencil in its mouth."></span><small>Episode 4 · 2 minutes</small><b>The Dog Ate My Homework</b><span>My deskmate Bo never did his homework, but he always had an excuse. Then he rented a dog to prove one. I did my homework every morning, at breakfast.</span></a></li>
- <li><a href="ch05/"><span class="thumb"><img src="making/ep5-photo.webp" width="800" height="450" alt="The man shows the policeman a photo from the zoo, the penguin beside him."></span><small>Episode 5 · 2 minutes</small><b>The Penguin and the Zoo</b><span>A man buys a fish at the harbour, and a penguin follows it. A policeman tells him to take it to the zoo. The next day, there they are again.</span></a></li>
- <li><a href="ch06/"><span class="thumb"><img src="making/ep6-box.webp" width="800" height="450" alt="Eight eyes in the slot of a cardboard box, one mouth open to bark."></span><small>Episode 6 · 2 minutes</small><b>Four Dogs</b><span>An American dog, a Polish dog and a Soviet dog meet in an alley behind a kitchen to compare notes on a dog’s life. Somebody in a box has been listening.</span></a></li>
- <li id="ep-baka"><a href="ch07/"><span class="thumb"><img src="making/ep7-baka.webp" width="800" height="450" alt="Luna the cow under a speech bubble that says バカ — Yui hears “vaca” as something worse."></span><small>Episode 7 · 2 minutes</small><b>Baka Means Cow</b><span>My cousin Yui visits her uncle Pedro’s farm in southern Spain, and Spain’s everyday word for a cow sounds, to Osaka-school ears, like the last thing you may call your aunt. Nobody insults anybody. It just sounds that way.</span></a></li>
+ <li><a href="ch01/"><span class="thumb"><img src="making/still-stall.webp" width="800" height="450" alt="Me and Bo at the bun stall."></span><small>Episode 1, 2 minutes</small><b>Breakfast in the Bathroom</b><span>Seventh grade. My deskmate had two questions for me, and one morning he asked them both at once. A true story.</span></a></li>
+ <li><a href="ch02/"><span class="thumb"><img src="making/ep2-veggie.webp" width="800" height="450" alt="The customer hears “reji” as “veggie”."></span><small>Episode 2, 2 minutes</small><b>Do You Need a Bag?</b><span>A convenience store in Fukuoka. A clerk who speaks no English, a customer who speaks no Japanese, and me in line behind them with a hundred-yen coffee. Also true.</span></a></li>
+ <li><a href="ch03/"><span class="thumb"><img src="making/ep3-hay.webp" width="800" height="450" alt="The cow walks after hay hung from a rod on its own back."></span><small>Episode 3, 2 minutes</small><b>How to Move a Cow</b><span>A Chinese man, an Indian man and an American are stuck behind a cow that won’t budge. Each has his own way to make it walk. An old joke, with a newer ending.</span></a></li>
+ <li><a href="ch04/"><span class="thumb"><img src="making/ep4-glasses.webp" width="800" height="450" alt="The dog on the desk between Me and Bo, in glasses, a pencil in its mouth."></span><small>Episode 4, 2 minutes</small><b>The Dog Ate My Homework</b><span>My deskmate Bo never did his homework, but he always had an excuse. Then he rented a dog to prove one. I did my homework every morning, at breakfast.</span></a></li>
+ <li><a href="ch05/"><span class="thumb"><img src="making/ep5-photo.webp" width="800" height="450" alt="The man shows the policeman a photo from the zoo, the penguin beside him."></span><small>Episode 5, 2 minutes</small><b>The Penguin and the Zoo</b><span>A man buys a fish at the harbour, and a penguin follows it. A policeman tells him to take it to the zoo. The next day, there they are again.</span></a></li>
+ <li><a href="ch06/"><span class="thumb"><img src="making/ep6-box.webp" width="800" height="450" alt="Eight eyes in the slot of a cardboard box, one mouth open to bark."></span><small>Episode 6, 2 minutes</small><b>Four Dogs</b><span>An American dog, a Polish dog and a Soviet dog meet in an alley behind a kitchen to compare notes on a dog’s life. Somebody in a box has been listening.</span></a></li>
+ <li id="ep-baka"><a href="ch07/"><span class="thumb"><img src="making/ep7-baka.webp" width="800" height="450" alt="Luna the cow under a speech bubble that says バカ — Yui hears “vaca” as something worse."></span><small>Episode 7, 2 minutes</small><b>Baka Means Cow</b><span>My cousin Yui visits her uncle Pedro’s farm in southern Spain, and Spain’s everyday word for a cow sounds, to Osaka-school ears, like the last thing you may call your aunt. Nobody insults anybody. It just sounds that way.</span></a></li>
</ul>
<p class="soon">More jokes coming.</p>
diff --git a/site/joke-collection/lib/contents.css b/site/joke-collection/lib/contents.css
index 5b8be35..8c99714 100644
--- a/site/joke-collection/lib/contents.css
+++ b/site/joke-collection/lib/contents.css
@@ -13,6 +13,7 @@
}
* { box-sizing: border-box; }
html { scroll-padding-top: 90px; }
+html, body { overflow-x: clip; }
body { margin: 0; min-height: 100svh; background: var(--board); color: var(--chalk); font: 18px/1.5 var(--ui); }
/* Chalkboard: the same grain and vignette as the lesson stage. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
@@ -20,7 +21,7 @@ body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-even
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .92 0 0 0 0 .95 0 0 0 0 .9 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23g)'/%3E%3C/svg%3E"); }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--task); outline-offset: 3px; }
-.kicker { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--quiz); }
+.kicker { margin: -6px 0 24px; font-size: 18px; font-weight: 600; color: var(--quiz); } /* under the title, a subtitle */
/* ---------- cover ---------- */
#cover { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
@@ -30,16 +31,16 @@ a:focus-visible { outline: 3px solid var(--task); outline-offset: 3px; }
body:not(.refsview) #refpage, .refsview #cover, .refsview #contents { display: none; }
#cover > * { animation: rise .8s var(--ease) backwards; }
#cover .mascot { animation: none; margin-bottom: 26px; view-transition-name: guide; }
-#cover .kicker { animation-delay: .9s; }
#cover h1 { animation-delay: 1s; }
+#cover .kicker { animation-delay: 1.06s; }
#cover .lede { animation-delay: 1.12s; }
#cover .acts { animation-delay: 1.24s; }
#cover .meta { animation-delay: 1.36s; }
h1 { margin: 14px 0 18px; font: 500 clamp(44px, 8.4vw, 92px)/1.02 var(--book); letter-spacing: -.01em; view-transition-name: book; }
-h1 i { color: var(--task); font-style: italic; }
+h1 i, .home strong i { font-style: normal; } /* the whole title one face and one colour; <i> left in older covers */
.lede { max-width: 34em; margin: 0 0 34px; color: var(--dim); font-size: clamp(17px, 2.2vw, 20px); text-wrap: balance; }
.acts { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
-.btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 30px; border-radius: 999px; font-weight: 600; font-size: 19px; text-decoration: none;
+.btn { display: inline-flex; align-items: center; gap: 12px; padding: 12px 28px; border-radius: 999px; font-weight: 600; font-size: 19px; text-decoration: none;
transition: transform .25s var(--ease), background-color .25s, border-color .25s; }
.btn[hidden] { display: none; }
.btn:hover { transform: translateY(-2px); }
@@ -47,7 +48,7 @@ h1 i { color: var(--task); font-style: italic; }
.btn.quiet { border: 1.5px solid var(--edge); color: var(--chalk); }
.btn.quiet:hover { border-color: var(--dim); }
.btn svg { width: 15px; height: 15px; fill: currentColor; }
-.meta { margin: 30px 0 0; color: var(--dim); font-size: 15px; letter-spacing: .04em; } /* --faint read below 3:1 */
+.meta { margin: 30px 0 0; color: var(--dim); font-size: 15px; } /* --faint read below 3:1 */
/* Faint chalk notes around the edges of the board. */
.chalk { position: absolute; inset: 0; z-index: -1; pointer-events: none; animation: none !important; }
.chalk span { position: absolute; font: italic 400 clamp(22px, 3vw, 38px) var(--book); color: var(--chalk); opacity: 0; white-space: nowrap;
@@ -77,7 +78,6 @@ h1 i { color: var(--task); font-style: italic; }
.home { display: flex; align-items: center; gap: 12px; text-decoration: none; border-radius: 10px; }
.home .mascot { view-transition-name: guide; }
.home strong { font: 500 22px/1.1 var(--book); view-transition-name: book; }
-.home strong i { color: var(--task); }
.prog { margin-inline-start: auto; color: var(--dim); font-size: 15px; white-space: nowrap; }
.prog b { color: var(--good); font-weight: 600; }
main#contents { padding-bottom: 80px; }
diff --git a/site/joke-collection/lib/contents.js b/site/joke-collection/lib/contents.js
index cb2629d..b8aeb88 100644
--- a/site/joke-collection/lib/contents.js
+++ b/site/joke-collection/lib/contents.js
@@ -12,7 +12,7 @@ const Contents = (() => {
const TRANSLATIONS = {
en: {
open: 'Open the book', toCover: 'Back to the cover', resume: 'Continue · Chapter {n}', unit: 'Unit {n}', minutes: '{n} min',
- meta: '{chapters}{samples} · {units} · with sound', metaChapters: { one: '{n} chapter', other: '{n} chapters' },
+ meta: '{chapters}{samples}, {units}, with sound', metaChapters: { one: '{n} chapter', other: '{n} chapters' },
metaUnits: { one: '{n} unit', other: '{n} units' }, metaSamples: { one: ' + {n} sample', other: ' + {n} samples' }, samples: 'Sample chapters, another look',
chapterCount: { one: '{n} chapter', other: '{n} chapters' }, finished: '{done} of {n} finished',
doneMark: '✓ Finished · ', lastMark: ' · Last opened',
@@ -23,7 +23,7 @@ const Contents = (() => {
},
ru: {
open: 'Открыть книгу', toCover: 'К обложке', resume: 'Продолжить · Глава {n}', unit: 'Раздел {n}', minutes: '{n} мин',
- meta: '{chapters}{samples} · {units} · со звуком',
+ meta: '{chapters}{samples}, {units}, со звуком',
metaChapters: { one: '{n} глава', few: '{n} главы', many: '{n} глав', other: '{n} главы' },
metaUnits: { one: '{n} раздел', few: '{n} раздела', many: '{n} разделов', other: '{n} раздела' },
metaSamples: { one: ' + {n} пробная', few: ' + {n} пробные', many: ' + {n} пробных', other: ' + {n} пробной' },
@@ -37,7 +37,7 @@ const Contents = (() => {
},
zh: {
open: '打开这本书', toCover: '返回封面', resume: '继续 · 第 {n} 章', unit: '第 {n} 单元', minutes: '{n} 分钟',
- meta: '{chapters}{samples} · {units} · 有配音', metaChapters: '{n} 章', metaUnits: '{n} 个单元',
+ meta: '{chapters}{samples},{units},有配音', metaChapters: '{n} 章', metaUnits: '{n} 个单元',
metaSamples: ' + {n} 个示例章', samples: '示例章,另一种风格',
chapterCount: '{n} 章', finished: '已完成 {done} / {n}',
doneMark: '✓ 已完成 · ', lastMark: ' · 上次打开',
@@ -47,7 +47,7 @@ const Contents = (() => {
},
ja: {
open: '本を開く', toCover: '表紙に戻る', resume: '続きから · 第{n}章', unit: '単元 {n}', minutes: '{n}分',
- meta: '{chapters}{samples} · {units} · 音声つき', metaChapters: '{n}章', metaUnits: '{n}単元',
+ meta: '{chapters}{samples}、{units}、音声つき', metaChapters: '{n}章', metaUnits: '{n}単元',
metaSamples: ' + サンプル{n}章', samples: 'サンプル章(別のスタイル)',
chapterCount: '{n}章', finished: '{n}章中 {done}章 完了',
doneMark: '✓ 完了 · ', lastMark: ' · 最後に開いた章',
@@ -59,7 +59,7 @@ const Contents = (() => {
ar: {
open: 'افتح الكتاب', toCover: 'العودة إلى الغلاف', resume: 'تابع · الفصل {n}', unit: 'الوحدة {n}',
minutes: { one: 'دقيقة', two: 'دقيقتان', few: '{n} دقائق', many: '{n} دقيقة', other: '{n} دقيقة' },
- meta: '{chapters}{samples} · {units} · مع الصوت',
+ meta: '{chapters}{samples}، {units}، مع الصوت',
metaChapters: { one: 'فصل واحد', two: 'فصلان', few: '{n} فصول', many: '{n} فصلاً', other: '{n} فصل' },
metaUnits: { one: 'وحدة واحدة', two: 'وحدتان', few: '{n} وحدات', many: '{n} وحدة', other: '{n} وحدة' },
metaSamples: { one: ' + فصل تجريبي واحد', two: ' + فصلان تجريبيان', few: ' + {n} فصول تجريبية', many: ' + {n} فصلاً تجريبياً', other: ' + {n} فصل تجريبي' },
diff --git a/site/joke-collection/lib/units.css b/site/joke-collection/lib/units.css
index 014ce88..c5ff6f0 100644
--- a/site/joke-collection/lib/units.css
+++ b/site/joke-collection/lib/units.css
@@ -60,7 +60,7 @@
@keyframes breathe { from { transform: scaleY(1); } to { transform: scaleY(.35); } }
/* The label and the title share a line when they fit; a long title wraps below the label instead of running off. */
.unit h2 .title { min-width: 0; text-wrap: balance; }
-.unit h2 .label { font: 600 14px var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--c); white-space: nowrap; }
+.unit h2 .label { font: 600 16px var(--ui); color: var(--c); white-space: nowrap; }
/* Keep the sketches cheap: each is its own layer, so its loop repaints only itself, and loops pause while their unit is
off screen or under the sticky bar (units.js toggles .live), so the bar's blur is not redrawn every frame. */
.unit-art { will-change: transform; contain: layout style; }
diff --git a/site/lib/bookshelf.css b/site/lib/bookshelf.css
index 5f882b8..e282403 100644
--- a/site/lib/bookshelf.css
+++ b/site/lib/bookshelf.css
@@ -9,17 +9,20 @@
--ui: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
--book: "Iowan Old Style", Palatino, Georgia, serif;
--ink: #26231f;
+ --focus: #f6b741; --paper-white: #fffaf0;
--red: #b5383c; --blue: #2b78a6; --purple: #6a3f9c; --brown: #5b3c2d;
color-scheme: light;
}
* { box-sizing: border-box; }
html { background: #151413; }
+html, body { overflow-x: clip; }
body { margin: 0; color: var(--ink); font: 16px/1.4 var(--ui); }
a { color: inherit; }
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: .5s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
-#shelf a:focus-visible, #shelf button:focus-visible, .drawer:focus-visible { outline: 3px solid #f6b741; outline-offset: 4px; }
+/* Two tones, so the ring shows on the cream covers and on the birch alike: the ink ring outside, the yellow between it and the edge. */
+#shelf a:focus-visible, #shelf button:focus-visible, .drawer:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 3px var(--focus); }
/* The photo, as wide as the window (it is 1024 px: wider than that it softens a little). The shelf in it spans source x 82-946 and starts at y 175. */
.scene { position: relative; width: 100%; aspect-ratio: 1024 / 1536; margin: 0 auto; container-type: inline-size; background: url(../assets/shelf/wall.webp) 0 0 / 100% 100%; }
@@ -40,13 +43,13 @@ a { color: inherit; }
.shelf .lip { position: absolute; top: 100%; left: 0; right: 0; } /* the lip below the bay, where it is in the photo */
.shelf + .shelf { margin-top: calc(33 * var(--s)); }
.shelf:nth-of-type(3) { margin-top: calc(33 * var(--s)); } .shelf:nth-of-type(4) { margin-top: calc(36 * var(--s)); }
-.row { --padx: calc(44 * var(--s)); display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 calc(12 * var(--s)); height: 100%; padding: 0 var(--padx); align-items: end; }
+.row { --padx: calc(44 * var(--s)); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 calc(12 * var(--s)); height: 100%; padding: 0 var(--padx); align-items: end; }
.row > * { margin-bottom: calc(-14 * var(--s)); }
-.label { margin: 0; padding: .25em .6em .2em; background: #1e1d1b; color: #f4f1ea; font: 700 clamp(10px, calc(13 * var(--s)), 14px)/1.2 var(--ui); letter-spacing: .08em; text-transform: uppercase; box-shadow: 1px 2px 3px #0004; }
+.label { margin: 0; padding: .25em .6em .2em; background: #1e1d1b; color: #f4f1ea; font: 700 clamp(11px, calc(14 * var(--s)), 15px)/1.2 var(--ui); box-shadow: 1px 2px 3px #0004; }
/* A book: a printed cover standing at the back of the bay (185 x 247 source px on the photo), its label card
leaning in front of the lower half. Covers sit a hair off straight, the way real ones do. */
-.book { position: relative; display: block; aspect-ratio: 3 / 4; text-decoration: none; color: #fff; }
+.book { position: relative; display: block; aspect-ratio: 3 / 4; text-decoration: none; color: var(--paper-white); }
.doc { position: absolute; inset: 0 3% 0; overflow: hidden; background: #f8f6f1; box-shadow: 1px 0 0 #d9d4c8, 2px 0 0 #bdb6a8, 2px 2px 2px #0003, 7px 9px 12px #0003; transition: transform .2s; }
.doc::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, #ffffff30, #fff0 32% 70%, #0000000d); pointer-events: none; }
.doc img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
@@ -56,10 +59,10 @@ a { color: inherit; }
.lessons a.book .doc { background: #f3ecdc; box-shadow: inset calc(15 * var(--s)) 0 0 var(--c), 1px 0 0 #d9d4c8, 2px 0 0 #bdb6a8, 2px 2px 2px #0003, 7px 9px 12px #0003; }
.lessons .doc img { inset: 33% 8% auto 17%; width: auto; height: 23%; outline: 1px solid #00000026; outline-offset: 2px; }
.lessons .ct { left: 17%; top: 7%; color: #2a251e; font: 600 calc(20 * var(--s))/1.02 var(--book); }
-.lessons .ct::before { content: "Papermorph"; display: block; margin-bottom: calc(5 * var(--s)); color: var(--c); font: 700 calc(8 * var(--s))/1 var(--ui); letter-spacing: .18em; text-transform: uppercase; }
-.pictures .ct { text-align: center; color: #fff; font: 800 calc(19 * var(--s))/1.02 var(--ui); letter-spacing: -.01em; text-shadow: 0 1px 0 #0007, 0 0 calc(9 * var(--s)) #0006; }
+.lessons .ct::before { content: "Papermorph"; display: block; margin-bottom: calc(5 * var(--s)); color: var(--c); font: 700 calc(9 * var(--s))/1 var(--ui); }
+.pictures .ct { text-align: center; color: var(--paper-white); font: 800 calc(19 * var(--s))/1.02 var(--ui); letter-spacing: -.01em; text-shadow: 0 1px 0 #0007, 0 0 calc(9 * var(--s)) #0006; }
.films .doc::after { background: linear-gradient(#000000b3, #0000 38%), linear-gradient(115deg, #ffffff22, #fff0 32%); }
-.films .ct { z-index: 2; color: #fff; font: 600 calc(19 * var(--s))/1.02 Oswald, var(--ui); letter-spacing: .03em; text-transform: uppercase; }
+.films .ct { z-index: 2; color: var(--paper-white); font: 600 calc(19 * var(--s))/1.02 Oswald, var(--ui); letter-spacing: .03em; text-transform: uppercase; }
.row > :nth-child(1) .doc { rotate: -.5deg; } .row > :nth-child(2) .doc { rotate: .4deg; } .row > :nth-child(3) .doc { rotate: -.2deg; } .row > :nth-child(4) .doc { rotate: .6deg; }
.tag { position: absolute; inset: 58% 0 0; display: flex; flex-direction: column; padding: 6% 7% 10%; background: var(--c); box-shadow: 1px 1px 1px #0003, 5px 6px 9px #0003; font-size: clamp(10px, calc(12 * var(--s)), 13px); line-height: 1.3; transition: transform .2s; }
.tag::after { content: ""; position: absolute; inset: 0; background: linear-gradient(170deg, #ffffff1a, #fff0 40%); pointer-events: none; }
@@ -82,15 +85,15 @@ a.book:hover .tag { transform: translateY(-2px); }
.empty { visibility: hidden; }
/* The one that is different: a hand-made sign, like "Start here". */
-.sign { position: absolute; z-index: 2; top: calc(-20 * var(--s)); left: calc(-14 * var(--s)); padding: .3em .6em .25em; background: #f6b741; border: 2px solid #1e1d1b; color: #1e1d1b; font: 700 clamp(11px, calc(15 * var(--s)), 16px)/1 Oswald, var(--ui); letter-spacing: .05em; text-transform: uppercase; transform: rotate(-7deg); box-shadow: 3px 4px 4px #0003; }
+.sign { position: absolute; z-index: 2; top: calc(-20 * var(--s)); left: calc(-14 * var(--s)); padding: .3em .6em .25em; background: var(--focus); border: 2px solid #1e1d1b; color: #1e1d1b; font: 700 clamp(11px, calc(15 * var(--s)), 16px)/1 Oswald, var(--ui); transform: rotate(-7deg); box-shadow: 3px 4px 4px #0003; }
-/* "Continue · Chapter N": a sticky note on the cover of a book the reader has started. */
+/* "Continue: Chapter N": a sticky note on the cover of a book the reader has started. */
.book-slot { position: relative; }
.resume-label { position: absolute; z-index: 4; top: 44%; right: -4px; padding: 3px 7px; background: #fff7c9; color: #3c3a2e; box-shadow: 1px 2px 5px #0003; font: clamp(10px, calc(12 * var(--s)), 13px) var(--ui); text-decoration: none; transform: rotate(3deg); }
/* The archive: books stand spine out in a row (a.spine, title written down the spine). */
.spines { display: flex; gap: calc(6 * var(--s)); align-items: end; justify-content: center; padding-bottom: calc(14 * var(--s)); }
-.spine { display: block; width: calc(40 * var(--s)); height: calc(105 * var(--s)); padding: 8px 0; background: var(--c); color: #fff; text-decoration: none; writing-mode: vertical-rl; font: 600 clamp(10px, calc(14 * var(--s)), 15px)/calc(40 * var(--s)) var(--ui); box-shadow: inset -4px 0 6px #0003, 5px 6px 9px #0003; }
+.spine { display: block; width: calc(40 * var(--s)); height: calc(105 * var(--s)); padding: 8px 0; background: var(--c); color: var(--paper-white); text-decoration: none; writing-mode: vertical-rl; font: 600 clamp(10px, calc(14 * var(--s)), 15px)/calc(40 * var(--s)) var(--ui); box-shadow: inset -4px 0 6px #0003, 5px 6px 9px #0003; }
.note { align-self: center; margin: 0; padding: .7em 1.1em; background: var(--brown); color: #f1e9df; font: clamp(12px, calc(15 * var(--s)), 15px)/1.4 var(--ui); box-shadow: 5px 6px 9px #0003; transform: rotate(-1deg); }
/* Under the archive, the photo's own pair of drawers, GitHub and YouTube cut into them: each link is the front. */
@@ -109,7 +112,7 @@ a.book:hover .tag { transform: translateY(-2px); }
.scene > * { position: static; width: auto; }
.case { --s: calc(100cqw / 864); margin-top: 0; filter: drop-shadow(5px 8px 10px #0003); }
.shelf { aspect-ratio: auto !important; }
- .row { grid-template-columns: 1fr 1fr; gap: calc(75 * var(--s)) calc(30 * var(--s)); padding-top: calc(40 * var(--s)); padding-bottom: 0; }
+ .row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(75 * var(--s)) calc(30 * var(--s)); padding-top: calc(40 * var(--s)); padding-bottom: 0; }
.row:not(.spines) > :first-child::after { content: ""; position: absolute; z-index: 3; top: calc(100% - 22 * var(--s)); left: calc(-1 * var(--padx)); width: 100cqw; aspect-ratio: 864 / 33; background: url(../assets/shelf/lip1.webp) 0 0 / 100% 100%; }
.tag { inset: 56% 0 0; font-size: 10.5px; }
.tag b { font-size: 13px; }
diff --git a/site/lib/bookshelf.js b/site/lib/bookshelf.js
index 4346055..d2ed828 100644
--- a/site/lib/bookshelf.js
+++ b/site/lib/bookshelf.js
@@ -29,7 +29,7 @@
if (!saved || !Number.isInteger(saved.last) || saved.last < 1 || saved.last > book.chapters) continue;
const resume = document.createElement('a');
resume.className = 'resume-label';
- resume.textContent = `Continue · Chapter ${saved.last} →`;
+ resume.textContent = `Continue: Chapter ${saved.last}`;
resume.href = `${book.chapterBase}ch${String(saved.last).padStart(2, '0')}/`;
const slot = document.createElement('div'); // a link can't hold a link: the note sits beside the cover, over it
slot.className = 'book-slot';
diff --git a/site/linear-algebra/index.html b/site/linear-algebra/index.html
index ef33459..d4fdf7c 100644
--- a/site/linear-algebra/index.html
+++ b/site/linear-algebra/index.html
@@ -34,12 +34,12 @@
<span style="left:5%;bottom:20%;--d:2.2">Ax = b</span>
<span style="right:6%;bottom:15%;--d:2.5">x·col 1 + y·col 2 = b</span>
</div>
- <svg class="mascot draw" id="guide" width="210" height="147"></svg>
+ <svg class="mascot draw" id="guide" width="210" height="147" aria-hidden="true"></svg>
+ <h1>Linear Algebra</h1>
<p class="kicker">An animated book</p>
- <h1>Linear <i>Algebra</i></h1>
<p class="lede">Equations you can see and move. Change a number and the lines, planes and arrows move with it; drag the picture and the numbers follow.</p>
<div class="acts">
- <a class="btn go" href="#contents" data-t="open">Open the book<svg viewBox="0 0 16 16"><path d="M6 2.5 11.5 8 6 13.5 4.6 12.1 8.7 8 4.6 3.9z"/></svg></a>
+ <a class="btn go" href="#contents" data-t="open">Open the book<svg viewBox="0 0 16 16" aria-hidden="true"><path d="M6 2.5 11.5 8 6 13.5 4.6 12.1 8.7 8 4.6 3.9z"/></svg></a>
<a class="btn quiet" id="resume" hidden></a>
</div>
<p class="meta" id="meta"></p>
@@ -49,7 +49,7 @@
<main id="contents">
<header class="top">
- <a class="home" href="#book" aria-label="Back to the cover" data-t-label="toCover"><svg class="mascot" id="guideSmall" width="52" height="36"></svg><strong>Linear <i>Algebra</i></strong></a>
+ <a class="home" href="#book" aria-label="Back to the cover" data-t-label="toCover"><svg class="mascot" id="guideSmall" width="52" height="36" aria-hidden="true"></svg><strong>Linear Algebra</strong></a>
<span class="prog" id="prog"></span>
<a class="back-shelf contents-back" href="../">← Bookshelf</a>
</header>
diff --git a/site/linear-algebra/lib/contents.css b/site/linear-algebra/lib/contents.css
index 5b8be35..8c99714 100644
--- a/site/linear-algebra/lib/contents.css
+++ b/site/linear-algebra/lib/contents.css
@@ -13,6 +13,7 @@
}
* { box-sizing: border-box; }
html { scroll-padding-top: 90px; }
+html, body { overflow-x: clip; }
body { margin: 0; min-height: 100svh; background: var(--board); color: var(--chalk); font: 18px/1.5 var(--ui); }
/* Chalkboard: the same grain and vignette as the lesson stage. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
@@ -20,7 +21,7 @@ body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-even
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .92 0 0 0 0 .95 0 0 0 0 .9 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23g)'/%3E%3C/svg%3E"); }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--task); outline-offset: 3px; }
-.kicker { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--quiz); }
+.kicker { margin: -6px 0 24px; font-size: 18px; font-weight: 600; color: var(--quiz); } /* under the title, a subtitle */
/* ---------- cover ---------- */
#cover { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
@@ -30,16 +31,16 @@ a:focus-visible { outline: 3px solid var(--task); outline-offset: 3px; }
body:not(.refsview) #refpage, .refsview #cover, .refsview #contents { display: none; }
#cover > * { animation: rise .8s var(--ease) backwards; }
#cover .mascot { animation: none; margin-bottom: 26px; view-transition-name: guide; }
-#cover .kicker { animation-delay: .9s; }
#cover h1 { animation-delay: 1s; }
+#cover .kicker { animation-delay: 1.06s; }
#cover .lede { animation-delay: 1.12s; }
#cover .acts { animation-delay: 1.24s; }
#cover .meta { animation-delay: 1.36s; }
h1 { margin: 14px 0 18px; font: 500 clamp(44px, 8.4vw, 92px)/1.02 var(--book); letter-spacing: -.01em; view-transition-name: book; }
-h1 i { color: var(--task); font-style: italic; }
+h1 i, .home strong i { font-style: normal; } /* the whole title one face and one colour; <i> left in older covers */
.lede { max-width: 34em; margin: 0 0 34px; color: var(--dim); font-size: clamp(17px, 2.2vw, 20px); text-wrap: balance; }
.acts { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
-.btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 30px; border-radius: 999px; font-weight: 600; font-size: 19px; text-decoration: none;
+.btn { display: inline-flex; align-items: center; gap: 12px; padding: 12px 28px; border-radius: 999px; font-weight: 600; font-size: 19px; text-decoration: none;
transition: transform .25s var(--ease), background-color .25s, border-color .25s; }
.btn[hidden] { display: none; }
.btn:hover { transform: translateY(-2px); }
@@ -47,7 +48,7 @@ h1 i { color: var(--task); font-style: italic; }
.btn.quiet { border: 1.5px solid var(--edge); color: var(--chalk); }
.btn.quiet:hover { border-color: var(--dim); }
.btn svg { width: 15px; height: 15px; fill: currentColor; }
-.meta { margin: 30px 0 0; color: var(--dim); font-size: 15px; letter-spacing: .04em; } /* --faint read below 3:1 */
+.meta { margin: 30px 0 0; color: var(--dim); font-size: 15px; } /* --faint read below 3:1 */
/* Faint chalk notes around the edges of the board. */
.chalk { position: absolute; inset: 0; z-index: -1; pointer-events: none; animation: none !important; }
.chalk span { position: absolute; font: italic 400 clamp(22px, 3vw, 38px) var(--book); color: var(--chalk); opacity: 0; white-space: nowrap;
@@ -77,7 +78,6 @@ h1 i { color: var(--task); font-style: italic; }
.home { display: flex; align-items: center; gap: 12px; text-decoration: none; border-radius: 10px; }
.home .mascot { view-transition-name: guide; }
.home strong { font: 500 22px/1.1 var(--book); view-transition-name: book; }
-.home strong i { color: var(--task); }
.prog { margin-inline-start: auto; color: var(--dim); font-size: 15px; white-space: nowrap; }
.prog b { color: var(--good); font-weight: 600; }
main#contents { padding-bottom: 80px; }
diff --git a/site/linear-algebra/lib/contents.js b/site/linear-algebra/lib/contents.js
index cb2629d..b8aeb88 100644
--- a/site/linear-algebra/lib/contents.js
+++ b/site/linear-algebra/lib/contents.js
@@ -12,7 +12,7 @@ const Contents = (() => {
const TRANSLATIONS = {
en: {
open: 'Open the book', toCover: 'Back to the cover', resume: 'Continue · Chapter {n}', unit: 'Unit {n}', minutes: '{n} min',
- meta: '{chapters}{samples} · {units} · with sound', metaChapters: { one: '{n} chapter', other: '{n} chapters' },
+ meta: '{chapters}{samples}, {units}, with sound', metaChapters: { one: '{n} chapter', other: '{n} chapters' },
metaUnits: { one: '{n} unit', other: '{n} units' }, metaSamples: { one: ' + {n} sample', other: ' + {n} samples' }, samples: 'Sample chapters, another look',
chapterCount: { one: '{n} chapter', other: '{n} chapters' }, finished: '{done} of {n} finished',
doneMark: '✓ Finished · ', lastMark: ' · Last opened',
@@ -23,7 +23,7 @@ const Contents = (() => {
},
ru: {
open: 'Открыть книгу', toCover: 'К обложке', resume: 'Продолжить · Глава {n}', unit: 'Раздел {n}', minutes: '{n} мин',
- meta: '{chapters}{samples} · {units} · со звуком',
+ meta: '{chapters}{samples}, {units}, со звуком',
metaChapters: { one: '{n} глава', few: '{n} главы', many: '{n} глав', other: '{n} главы' },
metaUnits: { one: '{n} раздел', few: '{n} раздела', many: '{n} разделов', other: '{n} раздела' },
metaSamples: { one: ' + {n} пробная', few: ' + {n} пробные', many: ' + {n} пробных', other: ' + {n} пробной' },
@@ -37,7 +37,7 @@ const Contents = (() => {
},
zh: {
open: '打开这本书', toCover: '返回封面', resume: '继续 · 第 {n} 章', unit: '第 {n} 单元', minutes: '{n} 分钟',
- meta: '{chapters}{samples} · {units} · 有配音', metaChapters: '{n} 章', metaUnits: '{n} 个单元',
+ meta: '{chapters}{samples},{units},有配音', metaChapters: '{n} 章', metaUnits: '{n} 个单元',
metaSamples: ' + {n} 个示例章', samples: '示例章,另一种风格',
chapterCount: '{n} 章', finished: '已完成 {done} / {n}',
doneMark: '✓ 已完成 · ', lastMark: ' · 上次打开',
@@ -47,7 +47,7 @@ const Contents = (() => {
},
ja: {
open: '本を開く', toCover: '表紙に戻る', resume: '続きから · 第{n}章', unit: '単元 {n}', minutes: '{n}分',
- meta: '{chapters}{samples} · {units} · 音声つき', metaChapters: '{n}章', metaUnits: '{n}単元',
+ meta: '{chapters}{samples}、{units}、音声つき', metaChapters: '{n}章', metaUnits: '{n}単元',
metaSamples: ' + サンプル{n}章', samples: 'サンプル章(別のスタイル)',
chapterCount: '{n}章', finished: '{n}章中 {done}章 完了',
doneMark: '✓ 完了 · ', lastMark: ' · 最後に開いた章',
@@ -59,7 +59,7 @@ const Contents = (() => {
ar: {
open: 'افتح الكتاب', toCover: 'العودة إلى الغلاف', resume: 'تابع · الفصل {n}', unit: 'الوحدة {n}',
minutes: { one: 'دقيقة', two: 'دقيقتان', few: '{n} دقائق', many: '{n} دقيقة', other: '{n} دقيقة' },
- meta: '{chapters}{samples} · {units} · مع الصوت',
+ meta: '{chapters}{samples}، {units}، مع الصوت',
metaChapters: { one: 'فصل واحد', two: 'فصلان', few: '{n} فصول', many: '{n} فصلاً', other: '{n} فصل' },
metaUnits: { one: 'وحدة واحدة', two: 'وحدتان', few: '{n} وحدات', many: '{n} وحدة', other: '{n} وحدة' },
metaSamples: { one: ' + فصل تجريبي واحد', two: ' + فصلان تجريبيان', few: ' + {n} فصول تجريبية', many: ' + {n} فصلاً تجريبياً', other: ' + {n} فصل تجريبي' },
diff --git a/site/linear-algebra/lib/units.css b/site/linear-algebra/lib/units.css
index 014ce88..c5ff6f0 100644
--- a/site/linear-algebra/lib/units.css
+++ b/site/linear-algebra/lib/units.css
@@ -60,7 +60,7 @@
@keyframes breathe { from { transform: scaleY(1); } to { transform: scaleY(.35); } }
/* The label and the title share a line when they fit; a long title wraps below the label instead of running off. */
.unit h2 .title { min-width: 0; text-wrap: balance; }
-.unit h2 .label { font: 600 14px var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--c); white-space: nowrap; }
+.unit h2 .label { font: 600 16px var(--ui); color: var(--c); white-space: nowrap; }
/* Keep the sketches cheap: each is its own layer, so its loop repaints only itself, and loops pause while their unit is
off screen or under the sticky bar (units.js toggles .live), so the bar's blur is not redrawn every frame. */
.unit-art { will-change: transform; contain: layout style; }
diff --git a/site/little-horse/index.html b/site/little-horse/index.html
index abb29a1..d017655 100644
--- a/site/little-horse/index.html
+++ b/site/little-horse/index.html
@@ -6,61 +6,61 @@
<title>The Little Horse Crosses the River</title>
<meta name="description" content="A Chinese folk tale (小马过河) as a paper cut-out film, all drawn in code, with English voices and two stops where a child touches the picture to hear its words.">
<link rel="stylesheet" href="lib/book.css"><!-- only for --progress-key, if the book sets one -->
-<!-- A picture book's cover and episode list. A starting point, not a design: give it the book's own look. -->
<style>
:root { --ink: #2f2418; --soft: #6b5a46; --paper: #fbf5e8; --card: #fffaf0; --line: #e4d6bb; --accent: #2f5aa8;
+ --on-ink: #fff6e0; --ink-hover: #4a3826; --shadow: #4a33182e; --select: #2f5aa833; --frame: #fffdf8;
--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; }
+ html, body { overflow-x: clip; }
+ body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.6 var(--ui); }
+ ::selection { background: var(--select); }
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; }
+ h1, h2 { text-wrap: balance; overflow-wrap: break-word; min-width: 0; } p, li { text-wrap: pretty; }
+ .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 40px; }
+ .cover { display: block; border-radius: 10px; }
+ .cover img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 14px 40px var(--shadow); }
.back { display: inline-block; margin: -10px 0 8px; padding: 10px 0; font-size: 15px; color: var(--soft); text-decoration: none; }
+ .back:hover { color: var(--ink); }
h1 { margin: 0 0 8px; font: 700 clamp(34px, 4.6vw, 56px)/1.05 var(--serif); }
- .lede { font-size: 20px; color: var(--soft); }
+ .lede { margin: 0; font-size: 20px; color: var(--soft); }
+ .action { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 24px 0 0; color: var(--soft); font-size: 16px; }
+ .watch { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 99px; background: var(--ink); color: var(--on-ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
+ .watch:hover { background: var(--ink-hover); }
+ .watch:active { transform: translateY(1px); }
+ .watch:focus-visible { border-radius: 99px; }
+ .watch svg { width: 11px; height: 13px; fill: currentColor; }
+ .seen { color: var(--accent); font-style: normal; }
main { max-width: 900px; margin: 0 auto; padding: 8px 24px 80px; }
+ .intro { font-size: 20px; }
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; }
+ figure img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); background: var(--frame); }
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 { display: grid; grid-template-columns: repeat(3, minmax(0, 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 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 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); 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; } .numbers, .stills { grid-template-columns: 1fr 1fr; } }
+ @media (prefers-reduced-motion: reduce) { .watch { transition: none; } .watch:active { transform: none; } }
+ @media (max-width: 760px) { .hero { grid-template-columns: minmax(0, 1fr); padding-top: 28px; gap: 24px; } .stills { grid-template-columns: repeat(2, minmax(0, 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.">
+<header class="hero">
+ <a class="cover" href="ch01/" tabindex="-1"><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."></a>
<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>
+ <p class="lede">小马过河: a Chinese folk tale for young children learning English. Is the river deep or shallow? It depends on who is asking.</p>
+ <p class="action"><a class="watch" href="ch01/"><svg viewBox="0 0 11 13" aria-hidden="true"><path d="M0 0l11 6.5L0 13z"/></svg>Watch the film</a>
+ <span>4 minutes</span> <em class="seen" id="seen" hidden>✓ Watched</em></p>
</div>
</header>
<main>
- <ul class="episodes" id="episodes"></ul>
+ <p class="intro">Uncle Ox says the river is shallow; Squirrel says it is deep. Little Horse has to find out for himself. 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>
<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">
@@ -107,12 +107,13 @@
<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>5</b><span>puppets</span></div>
+ <div><b>4</b><span>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>
+ <p><a class="watch" href="ch01/"><svg viewBox="0 0 11 13" aria-hidden="true"><path d="M0 0l11 6.5L0 13z"/></svg>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>
@@ -127,10 +128,7 @@ const key = getComputedStyle(document.documentElement).getPropertyValue('--progr
|| 'animebook:progress:' + new URL('.', location.href).pathname;
let done = [];
try { done = JSON.parse(localStorage.getItem(key) || '{}').done || []; } catch {}
-const esc = s => String(s).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/"/g, '&quot;');
-document.getElementById('episodes').innerHTML = EPISODES.map((e, i) => `<li${done.includes(+e.ch.slice(2)) ? ' class="watched"' : ''}>
- <a href="${e.ch}/"><img src="${esc(e.still)}" alt="${esc(e.alt)}" loading="lazy">
- <small>Film · ${e.minutes} minute${e.minutes == 1 ? "" : "s"}</small><b>${esc(e.title)}</b><span>${esc(e.line)}</span></a></li>`).join('');
+if (EPISODES.some(e => done.includes(+e.ch.slice(2)))) document.getElementById('seen').hidden = false;
</script>
</body>
</html>
diff --git a/site/little-horse/lib/contents.css b/site/little-horse/lib/contents.css
index 5b8be35..8c99714 100644
--- a/site/little-horse/lib/contents.css
+++ b/site/little-horse/lib/contents.css
@@ -13,6 +13,7 @@
}
* { box-sizing: border-box; }
html { scroll-padding-top: 90px; }
+html, body { overflow-x: clip; }
body { margin: 0; min-height: 100svh; background: var(--board); color: var(--chalk); font: 18px/1.5 var(--ui); }
/* Chalkboard: the same grain and vignette as the lesson stage. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
@@ -20,7 +21,7 @@ body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-even
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .92 0 0 0 0 .95 0 0 0 0 .9 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23g)'/%3E%3C/svg%3E"); }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--task); outline-offset: 3px; }
-.kicker { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--quiz); }
+.kicker { margin: -6px 0 24px; font-size: 18px; font-weight: 600; color: var(--quiz); } /* under the title, a subtitle */
/* ---------- cover ---------- */
#cover { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
@@ -30,16 +31,16 @@ a:focus-visible { outline: 3px solid var(--task); outline-offset: 3px; }
body:not(.refsview) #refpage, .refsview #cover, .refsview #contents { display: none; }
#cover > * { animation: rise .8s var(--ease) backwards; }
#cover .mascot { animation: none; margin-bottom: 26px; view-transition-name: guide; }
-#cover .kicker { animation-delay: .9s; }
#cover h1 { animation-delay: 1s; }
+#cover .kicker { animation-delay: 1.06s; }
#cover .lede { animation-delay: 1.12s; }
#cover .acts { animation-delay: 1.24s; }
#cover .meta { animation-delay: 1.36s; }
h1 { margin: 14px 0 18px; font: 500 clamp(44px, 8.4vw, 92px)/1.02 var(--book); letter-spacing: -.01em; view-transition-name: book; }
-h1 i { color: var(--task); font-style: italic; }
+h1 i, .home strong i { font-style: normal; } /* the whole title one face and one colour; <i> left in older covers */
.lede { max-width: 34em; margin: 0 0 34px; color: var(--dim); font-size: clamp(17px, 2.2vw, 20px); text-wrap: balance; }
.acts { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
-.btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 30px; border-radius: 999px; font-weight: 600; font-size: 19px; text-decoration: none;
+.btn { display: inline-flex; align-items: center; gap: 12px; padding: 12px 28px; border-radius: 999px; font-weight: 600; font-size: 19px; text-decoration: none;
transition: transform .25s var(--ease), background-color .25s, border-color .25s; }
.btn[hidden] { display: none; }
.btn:hover { transform: translateY(-2px); }
@@ -47,7 +48,7 @@ h1 i { color: var(--task); font-style: italic; }
.btn.quiet { border: 1.5px solid var(--edge); color: var(--chalk); }
.btn.quiet:hover { border-color: var(--dim); }
.btn svg { width: 15px; height: 15px; fill: currentColor; }
-.meta { margin: 30px 0 0; color: var(--dim); font-size: 15px; letter-spacing: .04em; } /* --faint read below 3:1 */
+.meta { margin: 30px 0 0; color: var(--dim); font-size: 15px; } /* --faint read below 3:1 */
/* Faint chalk notes around the edges of the board. */
.chalk { position: absolute; inset: 0; z-index: -1; pointer-events: none; animation: none !important; }
.chalk span { position: absolute; font: italic 400 clamp(22px, 3vw, 38px) var(--book); color: var(--chalk); opacity: 0; white-space: nowrap;
@@ -77,7 +78,6 @@ h1 i { color: var(--task); font-style: italic; }
.home { display: flex; align-items: center; gap: 12px; text-decoration: none; border-radius: 10px; }
.home .mascot { view-transition-name: guide; }
.home strong { font: 500 22px/1.1 var(--book); view-transition-name: book; }
-.home strong i { color: var(--task); }
.prog { margin-inline-start: auto; color: var(--dim); font-size: 15px; white-space: nowrap; }
.prog b { color: var(--good); font-weight: 600; }
main#contents { padding-bottom: 80px; }
diff --git a/site/little-horse/lib/contents.js b/site/little-horse/lib/contents.js
index cb2629d..b8aeb88 100644
--- a/site/little-horse/lib/contents.js
+++ b/site/little-horse/lib/contents.js
@@ -12,7 +12,7 @@ const Contents = (() => {
const TRANSLATIONS = {
en: {
open: 'Open the book', toCover: 'Back to the cover', resume: 'Continue · Chapter {n}', unit: 'Unit {n}', minutes: '{n} min',
- meta: '{chapters}{samples} · {units} · with sound', metaChapters: { one: '{n} chapter', other: '{n} chapters' },
+ meta: '{chapters}{samples}, {units}, with sound', metaChapters: { one: '{n} chapter', other: '{n} chapters' },
metaUnits: { one: '{n} unit', other: '{n} units' }, metaSamples: { one: ' + {n} sample', other: ' + {n} samples' }, samples: 'Sample chapters, another look',
chapterCount: { one: '{n} chapter', other: '{n} chapters' }, finished: '{done} of {n} finished',
doneMark: '✓ Finished · ', lastMark: ' · Last opened',
@@ -23,7 +23,7 @@ const Contents = (() => {
},
ru: {
open: 'Открыть книгу', toCover: 'К обложке', resume: 'Продолжить · Глава {n}', unit: 'Раздел {n}', minutes: '{n} мин',
- meta: '{chapters}{samples} · {units} · со звуком',
+ meta: '{chapters}{samples}, {units}, со звуком',
metaChapters: { one: '{n} глава', few: '{n} главы', many: '{n} глав', other: '{n} главы' },
metaUnits: { one: '{n} раздел', few: '{n} раздела', many: '{n} разделов', other: '{n} раздела' },
metaSamples: { one: ' + {n} пробная', few: ' + {n} пробные', many: ' + {n} пробных', other: ' + {n} пробной' },
@@ -37,7 +37,7 @@ const Contents = (() => {
},
zh: {
open: '打开这本书', toCover: '返回封面', resume: '继续 · 第 {n} 章', unit: '第 {n} 单元', minutes: '{n} 分钟',
- meta: '{chapters}{samples} · {units} · 有配音', metaChapters: '{n} 章', metaUnits: '{n} 个单元',
+ meta: '{chapters}{samples},{units},有配音', metaChapters: '{n} 章', metaUnits: '{n} 个单元',
metaSamples: ' + {n} 个示例章', samples: '示例章,另一种风格',
chapterCount: '{n} 章', finished: '已完成 {done} / {n}',
doneMark: '✓ 已完成 · ', lastMark: ' · 上次打开',
@@ -47,7 +47,7 @@ const Contents = (() => {
},
ja: {
open: '本を開く', toCover: '表紙に戻る', resume: '続きから · 第{n}章', unit: '単元 {n}', minutes: '{n}分',
- meta: '{chapters}{samples} · {units} · 音声つき', metaChapters: '{n}章', metaUnits: '{n}単元',
+ meta: '{chapters}{samples}、{units}、音声つき', metaChapters: '{n}章', metaUnits: '{n}単元',
metaSamples: ' + サンプル{n}章', samples: 'サンプル章(別のスタイル)',
chapterCount: '{n}章', finished: '{n}章中 {done}章 完了',
doneMark: '✓ 完了 · ', lastMark: ' · 最後に開いた章',
@@ -59,7 +59,7 @@ const Contents = (() => {
ar: {
open: 'افتح الكتاب', toCover: 'العودة إلى الغلاف', resume: 'تابع · الفصل {n}', unit: 'الوحدة {n}',
minutes: { one: 'دقيقة', two: 'دقيقتان', few: '{n} دقائق', many: '{n} دقيقة', other: '{n} دقيقة' },
- meta: '{chapters}{samples} · {units} · مع الصوت',
+ meta: '{chapters}{samples}، {units}، مع الصوت',
metaChapters: { one: 'فصل واحد', two: 'فصلان', few: '{n} فصول', many: '{n} فصلاً', other: '{n} فصل' },
metaUnits: { one: 'وحدة واحدة', two: 'وحدتان', few: '{n} وحدات', many: '{n} وحدة', other: '{n} وحدة' },
metaSamples: { one: ' + فصل تجريبي واحد', two: ' + فصلان تجريبيان', few: ' + {n} فصول تجريبية', many: ' + {n} فصلاً تجريبياً', other: ' + {n} فصل تجريبي' },
diff --git a/site/little-horse/lib/units.css b/site/little-horse/lib/units.css
index 014ce88..c5ff6f0 100644
--- a/site/little-horse/lib/units.css
+++ b/site/little-horse/lib/units.css
@@ -60,7 +60,7 @@
@keyframes breathe { from { transform: scaleY(1); } to { transform: scaleY(.35); } }
/* The label and the title share a line when they fit; a long title wraps below the label instead of running off. */
.unit h2 .title { min-width: 0; text-wrap: balance; }
-.unit h2 .label { font: 600 14px var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--c); white-space: nowrap; }
+.unit h2 .label { font: 600 16px var(--ui); color: var(--c); white-space: nowrap; }
/* Keep the sketches cheap: each is its own layer, so its loop repaints only itself, and loops pause while their unit is
off screen or under the sticky bar (units.js toggles .live), so the bar's blur is not redrawn every frame. */
.unit-art { will-change: transform; contain: layout style; }
diff --git a/site/little-red-riding-hood/index.html b/site/little-red-riding-hood/index.html
index 8d994c4..1e82ebf 100644
--- a/site/little-red-riding-hood/index.html
+++ b/site/little-red-riding-hood/index.html
@@ -3,12 +3,12 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
-<title>Little Red Riding Hood — how it was made</title>
+<title>Little Red Riding Hood: how it was made</title>
<meta name="description" content="A second picture-book experiment: paper-cutout stop motion drawn entirely in code, with no image model. How it was made, and everything we built for it.">
<link rel="canonical" href="https://papermorph.diamonddoge.org/little-red-riding-hood/">
<meta property="og:type" content="website">
<meta property="og:site_name" content="Papermorph">
-<meta property="og:title" content="Little Red Riding Hood — how it was made">
+<meta property="og:title" content="Little Red Riding Hood: how it was made">
<meta property="og:description" content="A second picture-book experiment: paper-cutout stop motion drawn entirely in code, with no image model. How it was made, and everything we built for it.">
<meta property="og:url" content="https://papermorph.diamonddoge.org/little-red-riding-hood/">
<meta property="og:image" content="https://papermorph.diamonddoge.org/assets/bookshelf.webp">
@@ -17,6 +17,7 @@
<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; }
+ html, body { overflow-x: clip; }
::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; }
@@ -26,7 +27,7 @@
.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; }
+ .tag { display: block; margin: 0 0 14px; color: var(--accent); font-size: 18px; font-weight: 600; } /* a subtitle under the title */
.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; }
@@ -38,12 +39,12 @@
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%; height: auto; 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: #fffdf8; }
figcaption { margin-top: 8px; font-size: 15px; color: var(--soft); }
- .stills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
+ .stills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.stills img { width: 100%; height: auto; border-radius: 6px; display: block; }
.verdict { margin: 18px 0; padding: 4px 22px; border-left: 4px solid var(--accent); background: var(--card); border-radius: 0 8px 8px 0; }
- .numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0; }
+ .numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 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); }
@@ -54,8 +55,8 @@
code { font-size: .88em; background: #f1e6cf; padding: 1px 5px; border-radius: 4px; }
footer { max-width: 900px; margin: 0 auto; padding: 0 24px 60px; color: var(--soft); font-size: 15px; }
@media (max-width: 760px) {
- header.hero { grid-template-columns: 1fr; padding-top: 28px; }
- .numbers, .stills { grid-template-columns: 1fr 1fr; }
+ header.hero { grid-template-columns: minmax(0, 1fr); padding-top: 28px; }
+ .numbers, .stills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
dl.made { grid-template-columns: 1fr; gap: 2px; }
dl.made dd { margin-bottom: 12px; }
}
@@ -66,10 +67,10 @@
<img src="making/cover.webp" width="1400" height="788" alt="Little Red Riding Hood meets the wolf in the woods: two paper puppets with brass pins at their joints.">
<div>
<a class="back" href="../">← Back to the bookshelf</a><br>
- <span class="tag">Paper-cutout stop motion</span>
<h1>Little Red Riding Hood</h1>
+ <span class="tag">Paper-cutout stop motion</span>
<p class="lede">Our second picture book, and the opposite bet to <a href="../three-little-pigs/">The Three Little Pigs</a>. No image model at all: every character, tree and cake is paper drawn in code, pinned at the joints and shot like a stop-motion film. It cost nothing in pictures, and any new movement is just a few more lines of code.</p>
- <a class="watch" href="ch01/"><span>▶ Watch the film</span> <small>4 minutes · with a listen-and-find game</small></a>
+ <a class="watch" href="ch01/"><span>▶ Watch the film</span> <small>4 minutes, with a listen-and-find game</small></a>
</div>
</header>
@@ -142,7 +143,8 @@
<h2>The numbers</h2>
<div class="numbers">
<div><b>~3½ min</b><span>11 scenes</span></div>
- <div><b>5 · 8</b><span>puppets · sets</span></div>
+ <div><b>5</b><span>puppets</span></div>
+ <div><b>8</b><span>sets</span></div>
<div><b>230</b><span>pieces of paper</span></div>
<div><b>$0</b><span>for pictures</span></div>
</div>
diff --git a/site/little-red-riding-hood/lib/contents.css b/site/little-red-riding-hood/lib/contents.css
index 5b8be35..8c99714 100644
--- a/site/little-red-riding-hood/lib/contents.css
+++ b/site/little-red-riding-hood/lib/contents.css
@@ -13,6 +13,7 @@
}
* { box-sizing: border-box; }
html { scroll-padding-top: 90px; }
+html, body { overflow-x: clip; }
body { margin: 0; min-height: 100svh; background: var(--board); color: var(--chalk); font: 18px/1.5 var(--ui); }
/* Chalkboard: the same grain and vignette as the lesson stage. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
@@ -20,7 +21,7 @@ body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-even
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .92 0 0 0 0 .95 0 0 0 0 .9 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23g)'/%3E%3C/svg%3E"); }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--task); outline-offset: 3px; }
-.kicker { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--quiz); }
+.kicker { margin: -6px 0 24px; font-size: 18px; font-weight: 600; color: var(--quiz); } /* under the title, a subtitle */
/* ---------- cover ---------- */
#cover { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
@@ -30,16 +31,16 @@ a:focus-visible { outline: 3px solid var(--task); outline-offset: 3px; }
body:not(.refsview) #refpage, .refsview #cover, .refsview #contents { display: none; }
#cover > * { animation: rise .8s var(--ease) backwards; }
#cover .mascot { animation: none; margin-bottom: 26px; view-transition-name: guide; }
-#cover .kicker { animation-delay: .9s; }
#cover h1 { animation-delay: 1s; }
+#cover .kicker { animation-delay: 1.06s; }
#cover .lede { animation-delay: 1.12s; }
#cover .acts { animation-delay: 1.24s; }
#cover .meta { animation-delay: 1.36s; }
h1 { margin: 14px 0 18px; font: 500 clamp(44px, 8.4vw, 92px)/1.02 var(--book); letter-spacing: -.01em; view-transition-name: book; }
-h1 i { color: var(--task); font-style: italic; }
+h1 i, .home strong i { font-style: normal; } /* the whole title one face and one colour; <i> left in older covers */
.lede { max-width: 34em; margin: 0 0 34px; color: var(--dim); font-size: clamp(17px, 2.2vw, 20px); text-wrap: balance; }
.acts { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
-.btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 30px; border-radius: 999px; font-weight: 600; font-size: 19px; text-decoration: none;
+.btn { display: inline-flex; align-items: center; gap: 12px; padding: 12px 28px; border-radius: 999px; font-weight: 600; font-size: 19px; text-decoration: none;
transition: transform .25s var(--ease), background-color .25s, border-color .25s; }
.btn[hidden] { display: none; }
.btn:hover { transform: translateY(-2px); }
@@ -47,7 +48,7 @@ h1 i { color: var(--task); font-style: italic; }
.btn.quiet { border: 1.5px solid var(--edge); color: var(--chalk); }
.btn.quiet:hover { border-color: var(--dim); }
.btn svg { width: 15px; height: 15px; fill: currentColor; }
-.meta { margin: 30px 0 0; color: var(--dim); font-size: 15px; letter-spacing: .04em; } /* --faint read below 3:1 */
+.meta { margin: 30px 0 0; color: var(--dim); font-size: 15px; } /* --faint read below 3:1 */
/* Faint chalk notes around the edges of the board. */
.chalk { position: absolute; inset: 0; z-index: -1; pointer-events: none; animation: none !important; }
.chalk span { position: absolute; font: italic 400 clamp(22px, 3vw, 38px) var(--book); color: var(--chalk); opacity: 0; white-space: nowrap;
@@ -77,7 +78,6 @@ h1 i { color: var(--task); font-style: italic; }
.home { display: flex; align-items: center; gap: 12px; text-decoration: none; border-radius: 10px; }
.home .mascot { view-transition-name: guide; }
.home strong { font: 500 22px/1.1 var(--book); view-transition-name: book; }
-.home strong i { color: var(--task); }
.prog { margin-inline-start: auto; color: var(--dim); font-size: 15px; white-space: nowrap; }
.prog b { color: var(--good); font-weight: 600; }
main#contents { padding-bottom: 80px; }
diff --git a/site/little-red-riding-hood/lib/contents.js b/site/little-red-riding-hood/lib/contents.js
index cb2629d..b8aeb88 100644
--- a/site/little-red-riding-hood/lib/contents.js
+++ b/site/little-red-riding-hood/lib/contents.js
@@ -12,7 +12,7 @@ const Contents = (() => {
const TRANSLATIONS = {
en: {
open: 'Open the book', toCover: 'Back to the cover', resume: 'Continue · Chapter {n}', unit: 'Unit {n}', minutes: '{n} min',
- meta: '{chapters}{samples} · {units} · with sound', metaChapters: { one: '{n} chapter', other: '{n} chapters' },
+ meta: '{chapters}{samples}, {units}, with sound', metaChapters: { one: '{n} chapter', other: '{n} chapters' },
metaUnits: { one: '{n} unit', other: '{n} units' }, metaSamples: { one: ' + {n} sample', other: ' + {n} samples' }, samples: 'Sample chapters, another look',
chapterCount: { one: '{n} chapter', other: '{n} chapters' }, finished: '{done} of {n} finished',
doneMark: '✓ Finished · ', lastMark: ' · Last opened',
@@ -23,7 +23,7 @@ const Contents = (() => {
},
ru: {
open: 'Открыть книгу', toCover: 'К обложке', resume: 'Продолжить · Глава {n}', unit: 'Раздел {n}', minutes: '{n} мин',
- meta: '{chapters}{samples} · {units} · со звуком',
+ meta: '{chapters}{samples}, {units}, со звуком',
metaChapters: { one: '{n} глава', few: '{n} главы', many: '{n} глав', other: '{n} главы' },
metaUnits: { one: '{n} раздел', few: '{n} раздела', many: '{n} разделов', other: '{n} раздела' },
metaSamples: { one: ' + {n} пробная', few: ' + {n} пробные', many: ' + {n} пробных', other: ' + {n} пробной' },
@@ -37,7 +37,7 @@ const Contents = (() => {
},
zh: {
open: '打开这本书', toCover: '返回封面', resume: '继续 · 第 {n} 章', unit: '第 {n} 单元', minutes: '{n} 分钟',
- meta: '{chapters}{samples} · {units} · 有配音', metaChapters: '{n} 章', metaUnits: '{n} 个单元',
+ meta: '{chapters}{samples},{units},有配音', metaChapters: '{n} 章', metaUnits: '{n} 个单元',
metaSamples: ' + {n} 个示例章', samples: '示例章,另一种风格',
chapterCount: '{n} 章', finished: '已完成 {done} / {n}',
doneMark: '✓ 已完成 · ', lastMark: ' · 上次打开',
@@ -47,7 +47,7 @@ const Contents = (() => {
},
ja: {
open: '本を開く', toCover: '表紙に戻る', resume: '続きから · 第{n}章', unit: '単元 {n}', minutes: '{n}分',
- meta: '{chapters}{samples} · {units} · 音声つき', metaChapters: '{n}章', metaUnits: '{n}単元',
+ meta: '{chapters}{samples}、{units}、音声つき', metaChapters: '{n}章', metaUnits: '{n}単元',
metaSamples: ' + サンプル{n}章', samples: 'サンプル章(別のスタイル)',
chapterCount: '{n}章', finished: '{n}章中 {done}章 完了',
doneMark: '✓ 完了 · ', lastMark: ' · 最後に開いた章',
@@ -59,7 +59,7 @@ const Contents = (() => {
ar: {
open: 'افتح الكتاب', toCover: 'العودة إلى الغلاف', resume: 'تابع · الفصل {n}', unit: 'الوحدة {n}',
minutes: { one: 'دقيقة', two: 'دقيقتان', few: '{n} دقائق', many: '{n} دقيقة', other: '{n} دقيقة' },
- meta: '{chapters}{samples} · {units} · مع الصوت',
+ meta: '{chapters}{samples}، {units}، مع الصوت',
metaChapters: { one: 'فصل واحد', two: 'فصلان', few: '{n} فصول', many: '{n} فصلاً', other: '{n} فصل' },
metaUnits: { one: 'وحدة واحدة', two: 'وحدتان', few: '{n} وحدات', many: '{n} وحدة', other: '{n} وحدة' },
metaSamples: { one: ' + فصل تجريبي واحد', two: ' + فصلان تجريبيان', few: ' + {n} فصول تجريبية', many: ' + {n} فصلاً تجريبياً', other: ' + {n} فصل تجريبي' },
diff --git a/site/little-red-riding-hood/lib/units.css b/site/little-red-riding-hood/lib/units.css
index 014ce88..c5ff6f0 100644
--- a/site/little-red-riding-hood/lib/units.css
+++ b/site/little-red-riding-hood/lib/units.css
@@ -60,7 +60,7 @@
@keyframes breathe { from { transform: scaleY(1); } to { transform: scaleY(.35); } }
/* The label and the title share a line when they fit; a long title wraps below the label instead of running off. */
.unit h2 .title { min-width: 0; text-wrap: balance; }
-.unit h2 .label { font: 600 14px var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--c); white-space: nowrap; }
+.unit h2 .label { font: 600 16px var(--ui); color: var(--c); white-space: nowrap; }
/* Keep the sketches cheap: each is its own layer, so its loop repaints only itself, and loops pause while their unit is
off screen or under the sticky bar (units.js toggles .live), so the bar's blur is not redrawn every frame. */
.unit-art { will-change: transform; contain: layout style; }
diff --git a/site/madness-shorts/lib/contents.css b/site/madness-shorts/lib/contents.css
index 5b8be35..8c99714 100644
--- a/site/madness-shorts/lib/contents.css
+++ b/site/madness-shorts/lib/contents.css
@@ -13,6 +13,7 @@
}
* { box-sizing: border-box; }
html { scroll-padding-top: 90px; }
+html, body { overflow-x: clip; }
body { margin: 0; min-height: 100svh; background: var(--board); color: var(--chalk); font: 18px/1.5 var(--ui); }
/* Chalkboard: the same grain and vignette as the lesson stage. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
@@ -20,7 +21,7 @@ body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-even
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .92 0 0 0 0 .95 0 0 0 0 .9 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23g)'/%3E%3C/svg%3E"); }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--task); outline-offset: 3px; }
-.kicker { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--quiz); }
+.kicker { margin: -6px 0 24px; font-size: 18px; font-weight: 600; color: var(--quiz); } /* under the title, a subtitle */
/* ---------- cover ---------- */
#cover { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
@@ -30,16 +31,16 @@ a:focus-visible { outline: 3px solid var(--task); outline-offset: 3px; }
body:not(.refsview) #refpage, .refsview #cover, .refsview #contents { display: none; }
#cover > * { animation: rise .8s var(--ease) backwards; }
#cover .mascot { animation: none; margin-bottom: 26px; view-transition-name: guide; }
-#cover .kicker { animation-delay: .9s; }
#cover h1 { animation-delay: 1s; }
+#cover .kicker { animation-delay: 1.06s; }
#cover .lede { animation-delay: 1.12s; }
#cover .acts { animation-delay: 1.24s; }
#cover .meta { animation-delay: 1.36s; }
h1 { margin: 14px 0 18px; font: 500 clamp(44px, 8.4vw, 92px)/1.02 var(--book); letter-spacing: -.01em; view-transition-name: book; }
-h1 i { color: var(--task); font-style: italic; }
+h1 i, .home strong i { font-style: normal; } /* the whole title one face and one colour; <i> left in older covers */
.lede { max-width: 34em; margin: 0 0 34px; color: var(--dim); font-size: clamp(17px, 2.2vw, 20px); text-wrap: balance; }
.acts { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
-.btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 30px; border-radius: 999px; font-weight: 600; font-size: 19px; text-decoration: none;
+.btn { display: inline-flex; align-items: center; gap: 12px; padding: 12px 28px; border-radius: 999px; font-weight: 600; font-size: 19px; text-decoration: none;
transition: transform .25s var(--ease), background-color .25s, border-color .25s; }
.btn[hidden] { display: none; }
.btn:hover { transform: translateY(-2px); }
@@ -47,7 +48,7 @@ h1 i { color: var(--task); font-style: italic; }
.btn.quiet { border: 1.5px solid var(--edge); color: var(--chalk); }
.btn.quiet:hover { border-color: var(--dim); }
.btn svg { width: 15px; height: 15px; fill: currentColor; }
-.meta { margin: 30px 0 0; color: var(--dim); font-size: 15px; letter-spacing: .04em; } /* --faint read below 3:1 */
+.meta { margin: 30px 0 0; color: var(--dim); font-size: 15px; } /* --faint read below 3:1 */
/* Faint chalk notes around the edges of the board. */
.chalk { position: absolute; inset: 0; z-index: -1; pointer-events: none; animation: none !important; }
.chalk span { position: absolute; font: italic 400 clamp(22px, 3vw, 38px) var(--book); color: var(--chalk); opacity: 0; white-space: nowrap;
@@ -77,7 +78,6 @@ h1 i { color: var(--task); font-style: italic; }
.home { display: flex; align-items: center; gap: 12px; text-decoration: none; border-radius: 10px; }
.home .mascot { view-transition-name: guide; }
.home strong { font: 500 22px/1.1 var(--book); view-transition-name: book; }
-.home strong i { color: var(--task); }
.prog { margin-inline-start: auto; color: var(--dim); font-size: 15px; white-space: nowrap; }
.prog b { color: var(--good); font-weight: 600; }
main#contents { padding-bottom: 80px; }
diff --git a/site/madness-shorts/lib/contents.js b/site/madness-shorts/lib/contents.js
index cb2629d..b8aeb88 100644
--- a/site/madness-shorts/lib/contents.js
+++ b/site/madness-shorts/lib/contents.js
@@ -12,7 +12,7 @@ const Contents = (() => {
const TRANSLATIONS = {
en: {
open: 'Open the book', toCover: 'Back to the cover', resume: 'Continue · Chapter {n}', unit: 'Unit {n}', minutes: '{n} min',
- meta: '{chapters}{samples} · {units} · with sound', metaChapters: { one: '{n} chapter', other: '{n} chapters' },
+ meta: '{chapters}{samples}, {units}, with sound', metaChapters: { one: '{n} chapter', other: '{n} chapters' },
metaUnits: { one: '{n} unit', other: '{n} units' }, metaSamples: { one: ' + {n} sample', other: ' + {n} samples' }, samples: 'Sample chapters, another look',
chapterCount: { one: '{n} chapter', other: '{n} chapters' }, finished: '{done} of {n} finished',
doneMark: '✓ Finished · ', lastMark: ' · Last opened',
@@ -23,7 +23,7 @@ const Contents = (() => {
},
ru: {
open: 'Открыть книгу', toCover: 'К обложке', resume: 'Продолжить · Глава {n}', unit: 'Раздел {n}', minutes: '{n} мин',
- meta: '{chapters}{samples} · {units} · со звуком',
+ meta: '{chapters}{samples}, {units}, со звуком',
metaChapters: { one: '{n} глава', few: '{n} главы', many: '{n} глав', other: '{n} главы' },
metaUnits: { one: '{n} раздел', few: '{n} раздела', many: '{n} разделов', other: '{n} раздела' },
metaSamples: { one: ' + {n} пробная', few: ' + {n} пробные', many: ' + {n} пробных', other: ' + {n} пробной' },
@@ -37,7 +37,7 @@ const Contents = (() => {
},
zh: {
open: '打开这本书', toCover: '返回封面', resume: '继续 · 第 {n} 章', unit: '第 {n} 单元', minutes: '{n} 分钟',
- meta: '{chapters}{samples} · {units} · 有配音', metaChapters: '{n} 章', metaUnits: '{n} 个单元',
+ meta: '{chapters}{samples},{units},有配音', metaChapters: '{n} 章', metaUnits: '{n} 个单元',
metaSamples: ' + {n} 个示例章', samples: '示例章,另一种风格',
chapterCount: '{n} 章', finished: '已完成 {done} / {n}',
doneMark: '✓ 已完成 · ', lastMark: ' · 上次打开',
@@ -47,7 +47,7 @@ const Contents = (() => {
},
ja: {
open: '本を開く', toCover: '表紙に戻る', resume: '続きから · 第{n}章', unit: '単元 {n}', minutes: '{n}分',
- meta: '{chapters}{samples} · {units} · 音声つき', metaChapters: '{n}章', metaUnits: '{n}単元',
+ meta: '{chapters}{samples}、{units}、音声つき', metaChapters: '{n}章', metaUnits: '{n}単元',
metaSamples: ' + サンプル{n}章', samples: 'サンプル章(別のスタイル)',
chapterCount: '{n}章', finished: '{n}章中 {done}章 完了',
doneMark: '✓ 完了 · ', lastMark: ' · 最後に開いた章',
@@ -59,7 +59,7 @@ const Contents = (() => {
ar: {
open: 'افتح الكتاب', toCover: 'العودة إلى الغلاف', resume: 'تابع · الفصل {n}', unit: 'الوحدة {n}',
minutes: { one: 'دقيقة', two: 'دقيقتان', few: '{n} دقائق', many: '{n} دقيقة', other: '{n} دقيقة' },
- meta: '{chapters}{samples} · {units} · مع الصوت',
+ meta: '{chapters}{samples}، {units}، مع الصوت',
metaChapters: { one: 'فصل واحد', two: 'فصلان', few: '{n} فصول', many: '{n} فصلاً', other: '{n} فصل' },
metaUnits: { one: 'وحدة واحدة', two: 'وحدتان', few: '{n} وحدات', many: '{n} وحدة', other: '{n} وحدة' },
metaSamples: { one: ' + فصل تجريبي واحد', two: ' + فصلان تجريبيان', few: ' + {n} فصول تجريبية', many: ' + {n} فصلاً تجريبياً', other: ' + {n} فصل تجريبي' },
diff --git a/site/madness-shorts/lib/units.css b/site/madness-shorts/lib/units.css
index 014ce88..c5ff6f0 100644
--- a/site/madness-shorts/lib/units.css
+++ b/site/madness-shorts/lib/units.css
@@ -60,7 +60,7 @@
@keyframes breathe { from { transform: scaleY(1); } to { transform: scaleY(.35); } }
/* The label and the title share a line when they fit; a long title wraps below the label instead of running off. */
.unit h2 .title { min-width: 0; text-wrap: balance; }
-.unit h2 .label { font: 600 14px var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--c); white-space: nowrap; }
+.unit h2 .label { font: 600 16px var(--ui); color: var(--c); white-space: nowrap; }
/* Keep the sketches cheap: each is its own layer, so its loop repaints only itself, and loops pause while their unit is
off screen or under the sticky bar (units.js toggles .live), so the bar's blur is not redrawn every frame. */
.unit-art { will-change: transform; contain: layout style; }
diff --git a/site/madness/index.html b/site/madness/index.html
index d745360..02bc7ee 100644
--- a/site/madness/index.html
+++ b/site/madness/index.html
@@ -7,63 +7,75 @@
<meta name="description" content="A short documentary on Michel Foucault’s Madness and Civilization, and the same story as upright shorts for a phone.">
<link rel="stylesheet" href="lib/fonts.css">
<link rel="stylesheet" href="lib/book.css"><!-- only for --progress-key, if the book sets one -->
-<!-- A picture book's cover and episode list. A starting point, not a design: give it the book's own look. -->
<style>
:root { --ink: #f3ede0; --soft: #d9b9b0; --paper: #5a0e16; --card: #4a0b12; --line: #7a2a30; --accent: #f08a4b;
+ --on-ink: #5a0e16; --ink-hover: #fffaf0; --shadow: #0006; --select: #f08a4b66;
--ui: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif; --serif: "Iowan Old Style", Palatino, Georgia, serif; color-scheme: dark; }
* { box-sizing: border-box; }
+ html, body { overflow-x: clip; }
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: 1100px; margin: 0 auto; padding: 20px 24px 24px; }
- header img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 14px 40px #0006; }
+ ::selection { background: var(--select); }
+ a { color: var(--accent); }
+ a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
+ h1, h2 { text-wrap: balance; overflow-wrap: break-word; min-width: 0; } p { text-wrap: pretty; }
+ .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 40px; }
+ .cover { display: block; border-radius: 10px; }
+ .cover img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 14px 40px var(--shadow); }
+ .back { display: inline-block; margin: -10px 0 8px; padding: 10px 0; font-size: 15px; color: var(--soft); text-decoration: none; }
+ .back:hover { color: var(--ink); }
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: 1100px; margin: 0 auto; padding: 8px 24px 40px; }
- .back { max-width: 1100px; margin: 0 auto; padding: 14px 24px 0; font: 600 13px/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; }
- .back a { display: inline-block; padding: 10px 0; color: var(--soft); text-decoration: none; }
- .back a:hover { color: var(--ink); }
- a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
- .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 span { margin: 0 16px 16px; color: var(--soft); font-size: 15px; line-height: 1.5; }
- .episodes.shorts { grid-template-columns: repeat(4, 1fr); }
- .episodes.shorts img { aspect-ratio: 9 / 16; }
- .episodes.shorts small, .episodes.shorts b, .episodes.shorts span { margin-left: 12px; margin-right: 12px; }
- .episodes.shorts small { font-size: 12px; letter-spacing: .02em; }
- ::selection { background: var(--accent); color: var(--paper); }
- main h2 { margin: 48px 0 0; font: 700 28px/1.2 var(--serif); }
- main h2 + p { margin: 4px 0 0; color: var(--soft); }
- .watched small::after { content: " · ✓ watched"; color: var(--accent); }
- @media (max-width: 760px) { header { grid-template-columns: 1fr; padding-top: 8px; } .episodes { grid-template-columns: 1fr; } .episodes.shorts { grid-template-columns: 1fr 1fr; } }
- .credits { max-width: 1100px; margin: 40px auto 60px; padding: 0 24px; color: var(--soft); font-size: 14px; line-height: 1.6; }
- .credits h2 { font: 600 20px/1.3 var(--serif); color: inherit; } .credits h3 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin: 18px 0 6px; }
+ .lede { margin: 0; font-size: 20px; color: var(--soft); }
+ .action { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 24px 0 0; color: var(--soft); font-size: 16px; }
+ .watch { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 99px; background: var(--ink); color: var(--on-ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
+ .watch:hover { background: var(--ink-hover); }
+ .watch:active { transform: translateY(1px); }
+ .watch:focus-visible { border-radius: 99px; }
+ .watch svg { width: 11px; height: 13px; fill: currentColor; }
+ .seen { color: var(--accent); font-style: normal; }
+ main { max-width: 1180px; margin: 0 auto; padding: 8px 24px 80px; }
+ h2 { margin: 40px 0 16px; font: 700 32px/1.2 var(--serif); }
+ @media (prefers-reduced-motion: reduce) { .watch { transition: none; } .watch:active { transform: none; } }
+ @media (max-width: 760px) { .hero { grid-template-columns: minmax(0, 1fr); padding-top: 28px; gap: 24px; } }
+ .credits { max-width: 1180px; margin: 0 auto; padding: 0 24px 60px; color: var(--soft); font-size: 15px; line-height: 1.6; }
+ .credits > p { max-width: 70ch; } .credits h3 { margin: 24px 0 6px; font: 600 16px/1.3 var(--ui); color: var(--ink); }
.credits ul { margin: 0; padding-left: 18px; columns: 2 340px; } .credits a { color: inherit; }
+ main h2 + p { margin: -8px 0 0; color: var(--soft); }
+ .shorts { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
+ .shorts a { display: flex; flex-direction: column; height: 100%; padding-bottom: 14px; 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; }
+ .shorts a:hover, .shorts a:focus-visible { border-color: var(--accent); transform: translateY(-2px); }
+ .shorts a:active { transform: translateY(0); }
+ .shorts a:focus-visible { border-radius: 10px; }
+ .shorts img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; }
+ .shorts small { margin: 12px 12px 0; color: var(--soft); font-size: 14px; }
+ .shorts b { margin: 2px 12px 4px; font: 700 20px/1.25 var(--serif); text-wrap: balance; }
+ .shorts span { margin: 0 12px; color: var(--soft); font-size: 15px; line-height: 1.5; }
+ .shorts .seen { margin: 6px 12px 0; font-size: 14px; }
+ @media (prefers-reduced-motion: reduce) { .shorts a { transition: none; } .shorts a:hover, .shorts a:focus-visible, .shorts a:active { transform: none; } }
+ @media (max-width: 760px) { .shorts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
</style>
</head>
<body>
-<nav class="back"><a href="../">← Bookshelf</a></nav>
-<header>
- <img src="img/cover.webp" width="1400" height="788" alt="The six fools of the film in a row, from a 1494 woodcut to Van Gogh, under the walled title Madness and Civilization.">
+<header class="hero">
+ <a class="cover" href="ch01/" tabindex="-1"><img src="img/cover.webp" width="1400" height="788" alt="The six fools of the film in a row, from a 1494 woodcut to Van Gogh, under the walled title Madness and Civilization."></a>
<div>
+ <a class="back" href="../">← Bookshelf</a>
<h1>Madness and Civilization</h1>
- <p class="lede">A short documentary on Michel Foucault’s 1961 book: how Europe sent its madmen down the rivers, then locked them up, then “freed” them — and what that says about reason.</p>
+ <p class="lede">A short documentary on Michel Foucault’s 1961 book: how Europe sent its madmen down the rivers, then locked them up, then “freed” them, and what that says about reason.</p>
+ <p class="action"><a class="watch" href="ch01/"><svg viewBox="0 0 11 13" aria-hidden="true"><path d="M0 0l11 6.5L0 13z"/></svg>Watch the film</a>
+ <span>10 minutes</span> <em class="seen" id="seen" hidden>✓ Watched</em></p>
</div>
</header>
<main>
- <ul class="episodes" id="episodes"></ul>
<h2 id="shorts">As shorts</h2>
<p>The same story told upright for a phone, a few minutes an episode.</p>
- <ul class="episodes shorts" id="shortList"></ul>
+ <ol class="shorts" id="shortList"></ol>
</main>
<section class="credits">
<h2>Sources and credits</h2>
<p>Narration written from Michel Foucault, <i>Madness and Civilization</i> (1961; English translation by Richard Howard, 1965); quotations are his and those of Pascal and Dostoevsky as he cites them. Voices by ElevenLabs v4; music and pictures are public-domain or CC0 works from Wikimedia Commons, listed below. The line drawings of Foucault, the Fool in each era, the tea party and the props were made with an image model (gpt-image via OpenRouter), the chained Fool animated with Kling 3.0. The shorts’ engravings marked “AI illustration” on screen were made with an image model too. Map data from Natural Earth (public domain). Type: Oswald and EB Garamond (SIL Open Font License, <code>lib/fonts/</code>).</p>
- <h3>Pictures</h3><ul><li><a href="https://commons.wikimedia.org/wiki/File%3ALa_Nef_des_fous_-_J%C3%A9r%C3%B4me_Bosch_-_Mus%C3%A9e_du_Louvre_Peintures_RF_2218.jpg">La Nef des fous - Jérôme Bosch - Musée du Louvre Peintures RF 2218.jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AShip_of_Fools_WDL8973.pdf">Ship of Fools WDL8973.pdf (pages 5 and 6)</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3ANarrenschiff_%281549%29.jpg">Narrenschiff (1549).jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3ALeper_with_bell_-_Pontifical_%28c.1400%29%2C_f.127_-_BL_Lansdowne_MS_451.jpg">Leper with bell - Pontifical (c.1400), f.127 - BL Lansdowne MS 451.jpg</a> · CC0</li><li><a href="https://commons.wikimedia.org/wiki/File%3ALeprozenhuis_in_Haarlem_Gezichten_bij_Haarlem_%28serietitel%29%2C_RP-P-1879-A-3470.jpg">Leprozenhuis in Haarlem Gezichten bij Haarlem (serietitel), RP-P-1879-A-3470.jpg</a> · CC0</li><li><a href="https://commons.wikimedia.org/wiki/File%3ARhenus_Fluviorum_Europae_celeberrimus_cum_Mosa_Mosella%2C_et_reliquis_in_illum_se_exonerantibus_fluminibus_%28Nicolaas_Visscher%29.jpg">Rhenus Fluviorum Europae celeberrimus cum Mosa Mosella, et reliquis in illum se exonerantibus fluminibus (Nicolaas Visscher).jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3A%22Off%2C_off%2C_you_lendings%E2%80%93Come_unbutton_here%22_%28Shakespeare%2C_King_Lear%2C_Act_3%2C_Scene_4%29_MET_49J_149R3.jpg">&quot;Off, off, you lendings–Come unbutton here&quot; (Shakespeare, King Lear, Act 3, Scene 4) MET 49J 149R3.jpg</a> · CC0</li><li><a href="https://commons.wikimedia.org/wiki/File%3ABook%2C_print%2C_title-page_%28BM_1949%2C0411.4992%29.jpg">Book, print, title-page (BM 1949,0411.4992).jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3APortrait_of_Louis_XIV_of_France_in_Coronation_Robes_%28by_Hyacinthe_Rigaud%29_-_Louvre_Museum.jpg">Portrait of Louis XIV of France in Coronation Robes (by Hyacinthe Rigaud) - Louvre Museum.jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AL%27Hospital_de_la_Salpestriere_hors_la_Porte_St._Bernart%2C_G.22845%282%29.jpg">L&#x27;Hospital de la Salpestriere hors la Porte St. Bernart, G.22845(2).jpg</a> · CC0</li><li><a href="https://commons.wikimedia.org/wiki/File%3ACallot%2C_Les_Gueux%2C_Le_Mendiant_au_couvet.jpg">Callot, Les Gueux, Le Mendiant au couvet.jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AJacques_Callot_-_Les_Gueux_%2802%29_-_Le_joueur_de_vielle.jpg">Jacques Callot - Les Gueux (02) - Le joueur de vielle.jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AJacques_Callot_-_Les_Gueux_%2813%29_-_Le_malingreux.jpg">Jacques Callot - Les Gueux (13) - Le malingreux.jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AJacques_Callot_-_Les_Gueux_%2816%29_-_La_mendiante_aux_b%C3%A9quilles.jpg">Jacques Callot - Les Gueux (16) - La mendiante aux béquilles.jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3ABlaise_Pascal_Versailles.JPG">Blaise Pascal Versailles.JPG</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AVasily_Perov_-_%D0%9F%D0%BE%D1%80%D1%82%D1%80%D0%B5%D1%82_%D0%A4.%D0%9C.%D0%94%D0%BE%D1%81%D1%82%D0%BE%D0%B5%D0%B2%D1%81%D0%BA%D0%BE%D0%B3%D0%BE_-_Google_Art_Project.jpg">Vasily Perov - Портрет Ф.М.Достоевского - Google Art Project.jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AWilliam_Norris_-_An_Insane_American_%281815%29.jpg">William Norris - An Insane American (1815).jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AA_Rake%27s_Progress%2C_Plate_8_MET_DP827030.jpg">A Rake&#x27;s Progress, Plate 8 MET DP827030.jpg</a> · CC0</li><li><a href="https://commons.wikimedia.org/wiki/File%3APhilippe_Pinel_%C3%A0_la_Salp%C3%AAtri%C3%A8re_.jpg">Philippe Pinel à la Salpêtrière .jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AEngraving_of_the_original_Retreat_near_York_instituted_1792.jpg">Engraving of the original Retreat near York instituted 1792.jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AFrancisco_de_Goya_-_La_casa_de_locos_-_Google_Art_Project.jpg">Francisco de Goya - La casa de locos - Google Art Project.jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3ANietzsche1882.jpg">Nietzsche1882.jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AVan_Gogh_-_Starry_Night_-_Google_Art_Project.jpg">Van Gogh - Starry Night - Google Art Project.jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3ATorino_e_suoi_dintorni_9.jpg">Torino e suoi dintorni 9.jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AWilliam_Dyce_-_King_Lear_and_the_Fool_in_the_Storm.jpg">William Dyce - King Lear and the Fool in the Storm.jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AFolly_Steps_Down_from_the_Pulpit%2C_marginal_drawing_by_Hans_Holbein_the_Younger.jpg">Folly Steps Down from the Pulpit, marginal drawing by Hans Holbein the Younger.jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3APrise_de_la_Bastille_clean.jpg">Prise de la Bastille clean.jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3APhilippe_Pinel_lib%C3%A9rant_les_ali%C3%A9n%C3%A9s_de_leurs_cha%C3%AEnes_%C3%A0_l%27asile_de_la_Salp%C3%AAtri%C3%A8re_%C3%A0_Paris_en_1795_%281876%29%2C_Tony_Robert-Fleury%2C_Paris%2C_h%C3%B4pital_de_la_Salp%C3%AAtri%C3%A8re.jpg">Philippe Pinel libérant les aliénés de leurs chaînes … (1876), Tony Robert-Fleury (detail photograph).jpg</a> · CC0</li><li><a href="https://commons.wikimedia.org/wiki/File%3AFrancisco_de_Goya_-_Self-Portrait_with_Dr._Arrieta_-_Google_Art_Project.jpg">Francisco de Goya - Self-Portrait with Dr. Arrieta - Google Art Project.jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AFrancisco_de_Goya%2C_Saturno_devorando_a_su_hijo_%281819-1823%29.jpg">Francisco de Goya, Saturno devorando a su hijo (1819-1823).jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3ANietzsche_Olde_01.JPG">Nietzsche Olde 01.JPG</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AVincent_van_Gogh_-_Self-Portrait_-_Google_Art_Project.jpg">Vincent van Gogh - Self-Portrait - Google Art Project.jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AHospital_at_Saint_Remy.jpg">Hospital at Saint Remy.jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AEh_Titel.JPG">Eh Titel.JPG</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AVincent_van_Gogh_-_Wheatfield_with_crows_-_Google_Art_Project.jpg">Vincent van Gogh - Wheatfield with crows - Google Art Project.jpg</a> · Public domain</li></ul>
- <h3>Music</h3><ul><li><a href="https://commons.wikimedia.org/wiki/File%3A20091104_Awadagin_Pratt_-_Bach%27s_Passacaglia_and_Fugue_in_C_minor%2C_BWV_582.ogg">20091104 Awadagin Pratt - Bach&#x27;s Passacaglia and Fugue in C minor, BWV 582.ogg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AHandel%27s_Water_Music_-_16._Sarabande_-_Chamber_Orchestra_-_United_States_Marine_Band.opus">Handel&#x27;s Water Music - 16. Sarabande - Chamber Orchestra - United States Marine Band.opus</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AMozart_-_String_Quartet_No._15_in_D_minor%2C_K421_-_II._Andante_%28Musopen_String_Quartet%29.flac">Mozart - String Quartet No. 15 in D minor, K421 - II. Andante (Musopen String Quartet).flac</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AMozart_-_Symphony_No._40_in_G_minor%2C_K550_-_II._Andante_%28Musopen_Symphony%29.flac">Mozart - Symphony No. 40 in G minor, K550 - II. Andante (Musopen Symphony).flac</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3ASatie_Gymnopedie_No_1_performed_by_Michael_Laucke.flac">Satie Gymnopedie No 1 performed by Michael Laucke.flac</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AThe_Modena_Chamber_Orchestra_-_Vivaldi%27s_Summer%2C_RV_315_-_III._Presto.ogg">The Modena Chamber Orchestra - Vivaldi&#x27;s Summer, RV 315 - III. Presto.ogg</a> · PDM-owner</li><li><a href="https://commons.wikimedia.org/wiki/File%3AVolte_-_Stellar_Brass_-_United_States_Air_Force_Band_of_the_Rockies.mp3">Volte - Stellar Brass - United States Air Force Band of the Rockies.mp3</a> · Public domain</li></ul>
+ <h3>Pictures</h3><ul><li><a href="https://commons.wikimedia.org/wiki/File%3ALa_Nef_des_fous_-_J%C3%A9r%C3%B4me_Bosch_-_Mus%C3%A9e_du_Louvre_Peintures_RF_2218.jpg">La Nef des fous - Jérôme Bosch - Musée du Louvre Peintures RF 2218.jpg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AShip_of_Fools_WDL8973.pdf">Ship of Fools WDL8973.pdf (pages 5 and 6)</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3ANarrenschiff_%281549%29.jpg">Narrenschiff (1549).jpg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3ALeper_with_bell_-_Pontifical_%28c.1400%29%2C_f.127_-_BL_Lansdowne_MS_451.jpg">Leper with bell - Pontifical (c.1400), f.127 - BL Lansdowne MS 451.jpg</a>, CC0</li><li><a href="https://commons.wikimedia.org/wiki/File%3ALeprozenhuis_in_Haarlem_Gezichten_bij_Haarlem_%28serietitel%29%2C_RP-P-1879-A-3470.jpg">Leprozenhuis in Haarlem Gezichten bij Haarlem (serietitel), RP-P-1879-A-3470.jpg</a>, CC0</li><li><a href="https://commons.wikimedia.org/wiki/File%3ARhenus_Fluviorum_Europae_celeberrimus_cum_Mosa_Mosella%2C_et_reliquis_in_illum_se_exonerantibus_fluminibus_%28Nicolaas_Visscher%29.jpg">Rhenus Fluviorum Europae celeberrimus cum Mosa Mosella, et reliquis in illum se exonerantibus fluminibus (Nicolaas Visscher).jpg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3A%22Off%2C_off%2C_you_lendings%E2%80%93Come_unbutton_here%22_%28Shakespeare%2C_King_Lear%2C_Act_3%2C_Scene_4%29_MET_49J_149R3.jpg">&quot;Off, off, you lendings–Come unbutton here&quot; (Shakespeare, King Lear, Act 3, Scene 4) MET 49J 149R3.jpg</a>, CC0</li><li><a href="https://commons.wikimedia.org/wiki/File%3ABook%2C_print%2C_title-page_%28BM_1949%2C0411.4992%29.jpg">Book, print, title-page (BM 1949,0411.4992).jpg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3APortrait_of_Louis_XIV_of_France_in_Coronation_Robes_%28by_Hyacinthe_Rigaud%29_-_Louvre_Museum.jpg">Portrait of Louis XIV of France in Coronation Robes (by Hyacinthe Rigaud) - Louvre Museum.jpg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AL%27Hospital_de_la_Salpestriere_hors_la_Porte_St._Bernart%2C_G.22845%282%29.jpg">L&#x27;Hospital de la Salpestriere hors la Porte St. Bernart, G.22845(2).jpg</a>, CC0</li><li><a href="https://commons.wikimedia.org/wiki/File%3ACallot%2C_Les_Gueux%2C_Le_Mendiant_au_couvet.jpg">Callot, Les Gueux, Le Mendiant au couvet.jpg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AJacques_Callot_-_Les_Gueux_%2802%29_-_Le_joueur_de_vielle.jpg">Jacques Callot - Les Gueux (02) - Le joueur de vielle.jpg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AJacques_Callot_-_Les_Gueux_%2813%29_-_Le_malingreux.jpg">Jacques Callot - Les Gueux (13) - Le malingreux.jpg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AJacques_Callot_-_Les_Gueux_%2816%29_-_La_mendiante_aux_b%C3%A9quilles.jpg">Jacques Callot - Les Gueux (16) - La mendiante aux béquilles.jpg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3ABlaise_Pascal_Versailles.JPG">Blaise Pascal Versailles.JPG</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AVasily_Perov_-_%D0%9F%D0%BE%D1%80%D1%82%D1%80%D0%B5%D1%82_%D0%A4.%D0%9C.%D0%94%D0%BE%D1%81%D1%82%D0%BE%D0%B5%D0%B2%D1%81%D0%BA%D0%BE%D0%B3%D0%BE_-_Google_Art_Project.jpg">Vasily Perov - Портрет Ф.М.Достоевского - Google Art Project.jpg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AWilliam_Norris_-_An_Insane_American_%281815%29.jpg">William Norris - An Insane American (1815).jpg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AA_Rake%27s_Progress%2C_Plate_8_MET_DP827030.jpg">A Rake&#x27;s Progress, Plate 8 MET DP827030.jpg</a>, CC0</li><li><a href="https://commons.wikimedia.org/wiki/File%3APhilippe_Pinel_%C3%A0_la_Salp%C3%AAtri%C3%A8re_.jpg">Philippe Pinel à la Salpêtrière .jpg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AEngraving_of_the_original_Retreat_near_York_instituted_1792.jpg">Engraving of the original Retreat near York instituted 1792.jpg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AFrancisco_de_Goya_-_La_casa_de_locos_-_Google_Art_Project.jpg">Francisco de Goya - La casa de locos - Google Art Project.jpg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3ANietzsche1882.jpg">Nietzsche1882.jpg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AVan_Gogh_-_Starry_Night_-_Google_Art_Project.jpg">Van Gogh - Starry Night - Google Art Project.jpg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3ATorino_e_suoi_dintorni_9.jpg">Torino e suoi dintorni 9.jpg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AWilliam_Dyce_-_King_Lear_and_the_Fool_in_the_Storm.jpg">William Dyce - King Lear and the Fool in the Storm.jpg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AFolly_Steps_Down_from_the_Pulpit%2C_marginal_drawing_by_Hans_Holbein_the_Younger.jpg">Folly Steps Down from the Pulpit, marginal drawing by Hans Holbein the Younger.jpg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3APrise_de_la_Bastille_clean.jpg">Prise de la Bastille clean.jpg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3APhilippe_Pinel_lib%C3%A9rant_les_ali%C3%A9n%C3%A9s_de_leurs_cha%C3%AEnes_%C3%A0_l%27asile_de_la_Salp%C3%AAtri%C3%A8re_%C3%A0_Paris_en_1795_%281876%29%2C_Tony_Robert-Fleury%2C_Paris%2C_h%C3%B4pital_de_la_Salp%C3%AAtri%C3%A8re.jpg">Philippe Pinel libérant les aliénés de leurs chaînes … (1876), Tony Robert-Fleury (detail photograph).jpg</a>, CC0</li><li><a href="https://commons.wikimedia.org/wiki/File%3AFrancisco_de_Goya_-_Self-Portrait_with_Dr._Arrieta_-_Google_Art_Project.jpg">Francisco de Goya - Self-Portrait with Dr. Arrieta - Google Art Project.jpg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AFrancisco_de_Goya%2C_Saturno_devorando_a_su_hijo_%281819-1823%29.jpg">Francisco de Goya, Saturno devorando a su hijo (1819-1823).jpg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3ANietzsche_Olde_01.JPG">Nietzsche Olde 01.JPG</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AVincent_van_Gogh_-_Self-Portrait_-_Google_Art_Project.jpg">Vincent van Gogh - Self-Portrait - Google Art Project.jpg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AHospital_at_Saint_Remy.jpg">Hospital at Saint Remy.jpg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AEh_Titel.JPG">Eh Titel.JPG</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AVincent_van_Gogh_-_Wheatfield_with_crows_-_Google_Art_Project.jpg">Vincent van Gogh - Wheatfield with crows - Google Art Project.jpg</a>, Public domain</li></ul>
+ <h3>Music</h3><ul><li><a href="https://commons.wikimedia.org/wiki/File%3A20091104_Awadagin_Pratt_-_Bach%27s_Passacaglia_and_Fugue_in_C_minor%2C_BWV_582.ogg">20091104 Awadagin Pratt - Bach&#x27;s Passacaglia and Fugue in C minor, BWV 582.ogg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AHandel%27s_Water_Music_-_16._Sarabande_-_Chamber_Orchestra_-_United_States_Marine_Band.opus">Handel&#x27;s Water Music - 16. Sarabande - Chamber Orchestra - United States Marine Band.opus</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AMozart_-_String_Quartet_No._15_in_D_minor%2C_K421_-_II._Andante_%28Musopen_String_Quartet%29.flac">Mozart - String Quartet No. 15 in D minor, K421 - II. Andante (Musopen String Quartet).flac</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AMozart_-_Symphony_No._40_in_G_minor%2C_K550_-_II._Andante_%28Musopen_Symphony%29.flac">Mozart - Symphony No. 40 in G minor, K550 - II. Andante (Musopen Symphony).flac</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3ASatie_Gymnopedie_No_1_performed_by_Michael_Laucke.flac">Satie Gymnopedie No 1 performed by Michael Laucke.flac</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AThe_Modena_Chamber_Orchestra_-_Vivaldi%27s_Summer%2C_RV_315_-_III._Presto.ogg">The Modena Chamber Orchestra - Vivaldi&#x27;s Summer, RV 315 - III. Presto.ogg</a>, PDM-owner</li><li><a href="https://commons.wikimedia.org/wiki/File%3AVolte_-_Stellar_Brass_-_United_States_Air_Force_Band_of_the_Rockies.mp3">Volte - Stellar Brass - United States Air Force Band of the Rockies.mp3</a>, Public domain</li></ul>
</section>
<script>
@@ -85,11 +97,11 @@ const key = getComputedStyle(document.documentElement).getPropertyValue('--progr
|| 'animebook:progress:' + new URL('.', location.href).pathname;
const doneIn = k => { try { return JSON.parse(localStorage.getItem(k) || '{}').done || []; } catch { return []; } };
const esc = s => String(s).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/"/g, '&quot;');
-const list = (list, base, done) => list.map((e, i) => `<li${done.includes(+e.ch.slice(2)) ? ' class="watched"' : ''}>
- <a href="${base}${e.ch}/"><img src="${esc(e.still)}" alt="${esc(e.alt)}" loading="lazy">
- <small>Episode ${+e.ch.slice(2)} · ${e.minutes} minute${e.minutes == 1 ? "" : "s"}</small><b>${esc(e.title)}</b><span>${esc(e.line)}</span></a></li>`).join('');
-document.getElementById('episodes').innerHTML = list(EPISODES, '', doneIn(key));
-document.getElementById('shortList').innerHTML = list(SHORTS, '../madness-shorts/', doneIn('animebook:progress:' + new URL('../madness-shorts/', location.href).pathname));
+const seen = (e, done) => done.includes(+e.ch.slice(2));
+if (EPISODES.some(e => seen(e, doneIn(key)))) document.getElementById('seen').hidden = false;
+const shortsDone = doneIn('animebook:progress:' + new URL('../madness-shorts/', location.href).pathname);
+document.getElementById('shortList').innerHTML = SHORTS.map(e => `<li><a href="../madness-shorts/${e.ch}/"><img src="${esc(e.still)}" alt="${esc(e.alt)}" loading="lazy">
+ <small>Episode ${+e.ch.slice(2)}, ${e.minutes} minute${e.minutes == 1 ? '' : 's'}</small><b>${esc(e.title)}</b><span>${esc(e.line)}</span>${seen(e, shortsDone) ? '<em class="seen">✓ Watched</em>' : ''}</a></li>`).join('');
</script>
</body>
</html>
diff --git a/site/madness/lib/contents.css b/site/madness/lib/contents.css
index 5b8be35..8c99714 100644
--- a/site/madness/lib/contents.css
+++ b/site/madness/lib/contents.css
@@ -13,6 +13,7 @@
}
* { box-sizing: border-box; }
html { scroll-padding-top: 90px; }
+html, body { overflow-x: clip; }
body { margin: 0; min-height: 100svh; background: var(--board); color: var(--chalk); font: 18px/1.5 var(--ui); }
/* Chalkboard: the same grain and vignette as the lesson stage. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
@@ -20,7 +21,7 @@ body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-even
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .92 0 0 0 0 .95 0 0 0 0 .9 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23g)'/%3E%3C/svg%3E"); }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--task); outline-offset: 3px; }
-.kicker { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--quiz); }
+.kicker { margin: -6px 0 24px; font-size: 18px; font-weight: 600; color: var(--quiz); } /* under the title, a subtitle */
/* ---------- cover ---------- */
#cover { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
@@ -30,16 +31,16 @@ a:focus-visible { outline: 3px solid var(--task); outline-offset: 3px; }
body:not(.refsview) #refpage, .refsview #cover, .refsview #contents { display: none; }
#cover > * { animation: rise .8s var(--ease) backwards; }
#cover .mascot { animation: none; margin-bottom: 26px; view-transition-name: guide; }
-#cover .kicker { animation-delay: .9s; }
#cover h1 { animation-delay: 1s; }
+#cover .kicker { animation-delay: 1.06s; }
#cover .lede { animation-delay: 1.12s; }
#cover .acts { animation-delay: 1.24s; }
#cover .meta { animation-delay: 1.36s; }
h1 { margin: 14px 0 18px; font: 500 clamp(44px, 8.4vw, 92px)/1.02 var(--book); letter-spacing: -.01em; view-transition-name: book; }
-h1 i { color: var(--task); font-style: italic; }
+h1 i, .home strong i { font-style: normal; } /* the whole title one face and one colour; <i> left in older covers */
.lede { max-width: 34em; margin: 0 0 34px; color: var(--dim); font-size: clamp(17px, 2.2vw, 20px); text-wrap: balance; }
.acts { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
-.btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 30px; border-radius: 999px; font-weight: 600; font-size: 19px; text-decoration: none;
+.btn { display: inline-flex; align-items: center; gap: 12px; padding: 12px 28px; border-radius: 999px; font-weight: 600; font-size: 19px; text-decoration: none;
transition: transform .25s var(--ease), background-color .25s, border-color .25s; }
.btn[hidden] { display: none; }
.btn:hover { transform: translateY(-2px); }
@@ -47,7 +48,7 @@ h1 i { color: var(--task); font-style: italic; }
.btn.quiet { border: 1.5px solid var(--edge); color: var(--chalk); }
.btn.quiet:hover { border-color: var(--dim); }
.btn svg { width: 15px; height: 15px; fill: currentColor; }
-.meta { margin: 30px 0 0; color: var(--dim); font-size: 15px; letter-spacing: .04em; } /* --faint read below 3:1 */
+.meta { margin: 30px 0 0; color: var(--dim); font-size: 15px; } /* --faint read below 3:1 */
/* Faint chalk notes around the edges of the board. */
.chalk { position: absolute; inset: 0; z-index: -1; pointer-events: none; animation: none !important; }
.chalk span { position: absolute; font: italic 400 clamp(22px, 3vw, 38px) var(--book); color: var(--chalk); opacity: 0; white-space: nowrap;
@@ -77,7 +78,6 @@ h1 i { color: var(--task); font-style: italic; }
.home { display: flex; align-items: center; gap: 12px; text-decoration: none; border-radius: 10px; }
.home .mascot { view-transition-name: guide; }
.home strong { font: 500 22px/1.1 var(--book); view-transition-name: book; }
-.home strong i { color: var(--task); }
.prog { margin-inline-start: auto; color: var(--dim); font-size: 15px; white-space: nowrap; }
.prog b { color: var(--good); font-weight: 600; }
main#contents { padding-bottom: 80px; }
diff --git a/site/madness/lib/contents.js b/site/madness/lib/contents.js
index cb2629d..b8aeb88 100644
--- a/site/madness/lib/contents.js
+++ b/site/madness/lib/contents.js
@@ -12,7 +12,7 @@ const Contents = (() => {
const TRANSLATIONS = {
en: {
open: 'Open the book', toCover: 'Back to the cover', resume: 'Continue · Chapter {n}', unit: 'Unit {n}', minutes: '{n} min',
- meta: '{chapters}{samples} · {units} · with sound', metaChapters: { one: '{n} chapter', other: '{n} chapters' },
+ meta: '{chapters}{samples}, {units}, with sound', metaChapters: { one: '{n} chapter', other: '{n} chapters' },
metaUnits: { one: '{n} unit', other: '{n} units' }, metaSamples: { one: ' + {n} sample', other: ' + {n} samples' }, samples: 'Sample chapters, another look',
chapterCount: { one: '{n} chapter', other: '{n} chapters' }, finished: '{done} of {n} finished',
doneMark: '✓ Finished · ', lastMark: ' · Last opened',
@@ -23,7 +23,7 @@ const Contents = (() => {
},
ru: {
open: 'Открыть книгу', toCover: 'К обложке', resume: 'Продолжить · Глава {n}', unit: 'Раздел {n}', minutes: '{n} мин',
- meta: '{chapters}{samples} · {units} · со звуком',
+ meta: '{chapters}{samples}, {units}, со звуком',
metaChapters: { one: '{n} глава', few: '{n} главы', many: '{n} глав', other: '{n} главы' },
metaUnits: { one: '{n} раздел', few: '{n} раздела', many: '{n} разделов', other: '{n} раздела' },
metaSamples: { one: ' + {n} пробная', few: ' + {n} пробные', many: ' + {n} пробных', other: ' + {n} пробной' },
@@ -37,7 +37,7 @@ const Contents = (() => {
},
zh: {
open: '打开这本书', toCover: '返回封面', resume: '继续 · 第 {n} 章', unit: '第 {n} 单元', minutes: '{n} 分钟',
- meta: '{chapters}{samples} · {units} · 有配音', metaChapters: '{n} 章', metaUnits: '{n} 个单元',
+ meta: '{chapters}{samples},{units},有配音', metaChapters: '{n} 章', metaUnits: '{n} 个单元',
metaSamples: ' + {n} 个示例章', samples: '示例章,另一种风格',
chapterCount: '{n} 章', finished: '已完成 {done} / {n}',
doneMark: '✓ 已完成 · ', lastMark: ' · 上次打开',
@@ -47,7 +47,7 @@ const Contents = (() => {
},
ja: {
open: '本を開く', toCover: '表紙に戻る', resume: '続きから · 第{n}章', unit: '単元 {n}', minutes: '{n}分',
- meta: '{chapters}{samples} · {units} · 音声つき', metaChapters: '{n}章', metaUnits: '{n}単元',
+ meta: '{chapters}{samples}、{units}、音声つき', metaChapters: '{n}章', metaUnits: '{n}単元',
metaSamples: ' + サンプル{n}章', samples: 'サンプル章(別のスタイル)',
chapterCount: '{n}章', finished: '{n}章中 {done}章 完了',
doneMark: '✓ 完了 · ', lastMark: ' · 最後に開いた章',
@@ -59,7 +59,7 @@ const Contents = (() => {
ar: {
open: 'افتح الكتاب', toCover: 'العودة إلى الغلاف', resume: 'تابع · الفصل {n}', unit: 'الوحدة {n}',
minutes: { one: 'دقيقة', two: 'دقيقتان', few: '{n} دقائق', many: '{n} دقيقة', other: '{n} دقيقة' },
- meta: '{chapters}{samples} · {units} · مع الصوت',
+ meta: '{chapters}{samples}، {units}، مع الصوت',
metaChapters: { one: 'فصل واحد', two: 'فصلان', few: '{n} فصول', many: '{n} فصلاً', other: '{n} فصل' },
metaUnits: { one: 'وحدة واحدة', two: 'وحدتان', few: '{n} وحدات', many: '{n} وحدة', other: '{n} وحدة' },
metaSamples: { one: ' + فصل تجريبي واحد', two: ' + فصلان تجريبيان', few: ' + {n} فصول تجريبية', many: ' + {n} فصلاً تجريبياً', other: ' + {n} فصل تجريبي' },
diff --git a/site/madness/lib/units.css b/site/madness/lib/units.css
index 014ce88..c5ff6f0 100644
--- a/site/madness/lib/units.css
+++ b/site/madness/lib/units.css
@@ -60,7 +60,7 @@
@keyframes breathe { from { transform: scaleY(1); } to { transform: scaleY(.35); } }
/* The label and the title share a line when they fit; a long title wraps below the label instead of running off. */
.unit h2 .title { min-width: 0; text-wrap: balance; }
-.unit h2 .label { font: 600 14px var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--c); white-space: nowrap; }
+.unit h2 .label { font: 600 16px var(--ui); color: var(--c); white-space: nowrap; }
/* Keep the sketches cheap: each is its own layer, so its loop repaints only itself, and loops pause while their unit is
off screen or under the sticky bar (units.js toggles .live), so the bar's blur is not redrawn every frame. */
.unit-art { will-change: transform; contain: layout style; }
diff --git a/site/math-notebook/index.html b/site/math-notebook/index.html
index 15b732a..2c2a06c 100644
--- a/site/math-notebook/index.html
+++ b/site/math-notebook/index.html
@@ -31,12 +31,12 @@
<span style="left:5%;bottom:20%;--d:2.2">0.25 = 1/4</span>
<span style="right:6%;bottom:15%;--d:2.5">π = 3.14159…</span>
</div>
- <svg class="mascot draw" id="guide" width="210" height="147"></svg>
+ <svg class="mascot draw" id="guide" width="210" height="147" aria-hidden="true"></svg>
+ <h1>Elementary Mathematics</h1>
<p class="kicker">An animated book</p>
- <h1>Elementary <i>Mathematics</i></h1>
<p class="lede">Middle-school math you can watch and try: numbers sort themselves into families, slide along the number line, and wait for you to place the next one.</p>
<div class="acts">
- <a class="btn go" href="#contents" data-t="open">Open the book<svg viewBox="0 0 16 16"><path d="M6 2.5 11.5 8 6 13.5 4.6 12.1 8.7 8 4.6 3.9z"/></svg></a>
+ <a class="btn go" href="#contents" data-t="open">Open the book<svg viewBox="0 0 16 16" aria-hidden="true"><path d="M6 2.5 11.5 8 6 13.5 4.6 12.1 8.7 8 4.6 3.9z"/></svg></a>
<a class="btn quiet" id="resume" hidden></a>
</div>
<p class="meta" id="meta"></p>
@@ -46,7 +46,7 @@
<main id="contents">
<header class="top">
- <a class="home" href="#book" aria-label="Back to the cover" data-t-label="toCover"><svg class="mascot" id="guideSmall" width="52" height="36"></svg><strong>Elementary <i>Mathematics</i></strong></a>
+ <a class="home" href="#book" aria-label="Back to the cover" data-t-label="toCover"><svg class="mascot" id="guideSmall" width="52" height="36" aria-hidden="true"></svg><strong>Elementary Mathematics</strong></a>
<span class="prog" id="prog"></span>
<a class="back-shelf contents-back" href="../">← Bookshelf</a>
</header>
diff --git a/site/math-notebook/lib/contents.css b/site/math-notebook/lib/contents.css
index 5b8be35..8c99714 100644
--- a/site/math-notebook/lib/contents.css
+++ b/site/math-notebook/lib/contents.css
@@ -13,6 +13,7 @@
}
* { box-sizing: border-box; }
html { scroll-padding-top: 90px; }
+html, body { overflow-x: clip; }
body { margin: 0; min-height: 100svh; background: var(--board); color: var(--chalk); font: 18px/1.5 var(--ui); }
/* Chalkboard: the same grain and vignette as the lesson stage. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
@@ -20,7 +21,7 @@ body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-even
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .92 0 0 0 0 .95 0 0 0 0 .9 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23g)'/%3E%3C/svg%3E"); }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--task); outline-offset: 3px; }
-.kicker { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--quiz); }
+.kicker { margin: -6px 0 24px; font-size: 18px; font-weight: 600; color: var(--quiz); } /* under the title, a subtitle */
/* ---------- cover ---------- */
#cover { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
@@ -30,16 +31,16 @@ a:focus-visible { outline: 3px solid var(--task); outline-offset: 3px; }
body:not(.refsview) #refpage, .refsview #cover, .refsview #contents { display: none; }
#cover > * { animation: rise .8s var(--ease) backwards; }
#cover .mascot { animation: none; margin-bottom: 26px; view-transition-name: guide; }
-#cover .kicker { animation-delay: .9s; }
#cover h1 { animation-delay: 1s; }
+#cover .kicker { animation-delay: 1.06s; }
#cover .lede { animation-delay: 1.12s; }
#cover .acts { animation-delay: 1.24s; }
#cover .meta { animation-delay: 1.36s; }
h1 { margin: 14px 0 18px; font: 500 clamp(44px, 8.4vw, 92px)/1.02 var(--book); letter-spacing: -.01em; view-transition-name: book; }
-h1 i { color: var(--task); font-style: italic; }
+h1 i, .home strong i { font-style: normal; } /* the whole title one face and one colour; <i> left in older covers */
.lede { max-width: 34em; margin: 0 0 34px; color: var(--dim); font-size: clamp(17px, 2.2vw, 20px); text-wrap: balance; }
.acts { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
-.btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 30px; border-radius: 999px; font-weight: 600; font-size: 19px; text-decoration: none;
+.btn { display: inline-flex; align-items: center; gap: 12px; padding: 12px 28px; border-radius: 999px; font-weight: 600; font-size: 19px; text-decoration: none;
transition: transform .25s var(--ease), background-color .25s, border-color .25s; }
.btn[hidden] { display: none; }
.btn:hover { transform: translateY(-2px); }
@@ -47,7 +48,7 @@ h1 i { color: var(--task); font-style: italic; }
.btn.quiet { border: 1.5px solid var(--edge); color: var(--chalk); }
.btn.quiet:hover { border-color: var(--dim); }
.btn svg { width: 15px; height: 15px; fill: currentColor; }
-.meta { margin: 30px 0 0; color: var(--dim); font-size: 15px; letter-spacing: .04em; } /* --faint read below 3:1 */
+.meta { margin: 30px 0 0; color: var(--dim); font-size: 15px; } /* --faint read below 3:1 */
/* Faint chalk notes around the edges of the board. */
.chalk { position: absolute; inset: 0; z-index: -1; pointer-events: none; animation: none !important; }
.chalk span { position: absolute; font: italic 400 clamp(22px, 3vw, 38px) var(--book); color: var(--chalk); opacity: 0; white-space: nowrap;
@@ -77,7 +78,6 @@ h1 i { color: var(--task); font-style: italic; }
.home { display: flex; align-items: center; gap: 12px; text-decoration: none; border-radius: 10px; }
.home .mascot { view-transition-name: guide; }
.home strong { font: 500 22px/1.1 var(--book); view-transition-name: book; }
-.home strong i { color: var(--task); }
.prog { margin-inline-start: auto; color: var(--dim); font-size: 15px; white-space: nowrap; }
.prog b { color: var(--good); font-weight: 600; }
main#contents { padding-bottom: 80px; }
diff --git a/site/math-notebook/lib/contents.js b/site/math-notebook/lib/contents.js
index cb2629d..b8aeb88 100644
--- a/site/math-notebook/lib/contents.js
+++ b/site/math-notebook/lib/contents.js
@@ -12,7 +12,7 @@ const Contents = (() => {
const TRANSLATIONS = {
en: {
open: 'Open the book', toCover: 'Back to the cover', resume: 'Continue · Chapter {n}', unit: 'Unit {n}', minutes: '{n} min',
- meta: '{chapters}{samples} · {units} · with sound', metaChapters: { one: '{n} chapter', other: '{n} chapters' },
+ meta: '{chapters}{samples}, {units}, with sound', metaChapters: { one: '{n} chapter', other: '{n} chapters' },
metaUnits: { one: '{n} unit', other: '{n} units' }, metaSamples: { one: ' + {n} sample', other: ' + {n} samples' }, samples: 'Sample chapters, another look',
chapterCount: { one: '{n} chapter', other: '{n} chapters' }, finished: '{done} of {n} finished',
doneMark: '✓ Finished · ', lastMark: ' · Last opened',
@@ -23,7 +23,7 @@ const Contents = (() => {
},
ru: {
open: 'Открыть книгу', toCover: 'К обложке', resume: 'Продолжить · Глава {n}', unit: 'Раздел {n}', minutes: '{n} мин',
- meta: '{chapters}{samples} · {units} · со звуком',
+ meta: '{chapters}{samples}, {units}, со звуком',
metaChapters: { one: '{n} глава', few: '{n} главы', many: '{n} глав', other: '{n} главы' },
metaUnits: { one: '{n} раздел', few: '{n} раздела', many: '{n} разделов', other: '{n} раздела' },
metaSamples: { one: ' + {n} пробная', few: ' + {n} пробные', many: ' + {n} пробных', other: ' + {n} пробной' },
@@ -37,7 +37,7 @@ const Contents = (() => {
},
zh: {
open: '打开这本书', toCover: '返回封面', resume: '继续 · 第 {n} 章', unit: '第 {n} 单元', minutes: '{n} 分钟',
- meta: '{chapters}{samples} · {units} · 有配音', metaChapters: '{n} 章', metaUnits: '{n} 个单元',
+ meta: '{chapters}{samples},{units},有配音', metaChapters: '{n} 章', metaUnits: '{n} 个单元',
metaSamples: ' + {n} 个示例章', samples: '示例章,另一种风格',
chapterCount: '{n} 章', finished: '已完成 {done} / {n}',
doneMark: '✓ 已完成 · ', lastMark: ' · 上次打开',
@@ -47,7 +47,7 @@ const Contents = (() => {
},
ja: {
open: '本を開く', toCover: '表紙に戻る', resume: '続きから · 第{n}章', unit: '単元 {n}', minutes: '{n}分',
- meta: '{chapters}{samples} · {units} · 音声つき', metaChapters: '{n}章', metaUnits: '{n}単元',
+ meta: '{chapters}{samples}、{units}、音声つき', metaChapters: '{n}章', metaUnits: '{n}単元',
metaSamples: ' + サンプル{n}章', samples: 'サンプル章(別のスタイル)',
chapterCount: '{n}章', finished: '{n}章中 {done}章 完了',
doneMark: '✓ 完了 · ', lastMark: ' · 最後に開いた章',
@@ -59,7 +59,7 @@ const Contents = (() => {
ar: {
open: 'افتح الكتاب', toCover: 'العودة إلى الغلاف', resume: 'تابع · الفصل {n}', unit: 'الوحدة {n}',
minutes: { one: 'دقيقة', two: 'دقيقتان', few: '{n} دقائق', many: '{n} دقيقة', other: '{n} دقيقة' },
- meta: '{chapters}{samples} · {units} · مع الصوت',
+ meta: '{chapters}{samples}، {units}، مع الصوت',
metaChapters: { one: 'فصل واحد', two: 'فصلان', few: '{n} فصول', many: '{n} فصلاً', other: '{n} فصل' },
metaUnits: { one: 'وحدة واحدة', two: 'وحدتان', few: '{n} وحدات', many: '{n} وحدة', other: '{n} وحدة' },
metaSamples: { one: ' + فصل تجريبي واحد', two: ' + فصلان تجريبيان', few: ' + {n} فصول تجريبية', many: ' + {n} فصلاً تجريبياً', other: ' + {n} فصل تجريبي' },
diff --git a/site/math-notebook/lib/units.css b/site/math-notebook/lib/units.css
index 014ce88..c5ff6f0 100644
--- a/site/math-notebook/lib/units.css
+++ b/site/math-notebook/lib/units.css
@@ -60,7 +60,7 @@
@keyframes breathe { from { transform: scaleY(1); } to { transform: scaleY(.35); } }
/* The label and the title share a line when they fit; a long title wraps below the label instead of running off. */
.unit h2 .title { min-width: 0; text-wrap: balance; }
-.unit h2 .label { font: 600 14px var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--c); white-space: nowrap; }
+.unit h2 .label { font: 600 16px var(--ui); color: var(--c); white-space: nowrap; }
/* Keep the sketches cheap: each is its own layer, so its loop repaints only itself, and loops pause while their unit is
off screen or under the sticky bar (units.js toggles .live), so the bar's blur is not redrawn every frame. */
.unit-art { will-change: transform; contain: layout style; }
diff --git a/site/pandemic-scroll/index.html b/site/pandemic-scroll/index.html
index 578116c..72e090a 100644
--- a/site/pandemic-scroll/index.html
+++ b/site/pandemic-scroll/index.html
@@ -12,8 +12,9 @@
<div class="progress" aria-hidden="true"><i></i></div>
<header class="hero">
- <p class="kicker">Papermorph · a scroll story</p>
+ <nav class="shelf"><a href="../">← Bookshelf</a></nav>
<h1>The Pandemic</h1>
+ <p class="kicker">Papermorph: a scroll story</p>
<p class="dek">How a pneumonia in one city became the biggest crisis of our generation: the story of COVID-19, from Wuhan to the waves and the count.</p>
<p class="more">Recut from the documentary <a href="../pandemic/">The Pandemic</a>. Scroll down to start; scroll back to rewind.</p>
<p class="cue" aria-hidden="true">↓</p>
diff --git a/site/pandemic-scroll/lib/scroll.css b/site/pandemic-scroll/lib/scroll.css
index 19417d8..80f798e 100644
--- a/site/pandemic-scroll/lib/scroll.css
+++ b/site/pandemic-scroll/lib/scroll.css
@@ -11,6 +11,8 @@
}
* { box-sizing: border-box; }
html { background: var(--paper); }
+html, body { overflow-x: clip; }
+a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 19px/1.5 "EB Garamond", Georgia, serif; }
a { color: inherit; text-decoration-color: var(--red); text-underline-offset: .15em; }
b { font-weight: 500; }
@@ -19,8 +21,12 @@ b { font-weight: 500; }
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 5; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--red); transform-origin: 0 0; transform: scaleX(0); }
+/* the way back to the shelf: one quiet line above the story, out of its flow */
+.shelf { position: absolute; top: 12px; left: max(16px, env(safe-area-inset-left)); font-size: 17px; }
+.shelf a { display: inline-block; padding: 10px 0; color: var(--soft); text-decoration: none; }
+.shelf a:hover { color: var(--ink); }
.hero { min-height: 92svh; padding: 18svh 16px 8svh; max-width: 40rem; margin: 0 auto; display: flex; flex-direction: column; justify-content: center; }
-.kicker { font: 500 14px/1.2 "Oswald", "Arial Narrow", sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin: 0 0 12px; }
+.kicker { font: 500 17px/1.2 "Oswald", "Arial Narrow", sans-serif; color: var(--red); margin: -8px 0 20px; }
h1 { font: 600 clamp(56px, 16vw, 120px)/.95 "Oswald", "Arial Narrow", sans-serif; text-transform: uppercase; letter-spacing: .02em; margin: 0 0 20px; }
.dek { font-size: 23px; line-height: 1.35; margin: 0 0 16px; }
.more { color: var(--soft); font-size: 17px; margin: 0; }
@@ -44,7 +50,7 @@ h1 { font: 600 clamp(56px, 16vw, 120px)/.95 "Oswald", "Arial Narrow", sans-serif
.step .src { font-size: 15px; color: var(--soft); }
.credits { max-width: 40rem; margin: 0 auto; padding: 12svh 16px 20svh; font-size: 16px; color: var(--soft); }
-.credits h2 { font: 500 15px/1.2 "Oswald", sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
+.credits h2 { font: 500 15px/1.2 "Oswald", sans-serif; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.credits li { margin-bottom: .4em; }
.credits code { font-size: .9em; }
diff --git a/site/pandemic-shorts/lib/contents.css b/site/pandemic-shorts/lib/contents.css
index 5b8be35..8c99714 100644
--- a/site/pandemic-shorts/lib/contents.css
+++ b/site/pandemic-shorts/lib/contents.css
@@ -13,6 +13,7 @@
}
* { box-sizing: border-box; }
html { scroll-padding-top: 90px; }
+html, body { overflow-x: clip; }
body { margin: 0; min-height: 100svh; background: var(--board); color: var(--chalk); font: 18px/1.5 var(--ui); }
/* Chalkboard: the same grain and vignette as the lesson stage. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
@@ -20,7 +21,7 @@ body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-even
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .92 0 0 0 0 .95 0 0 0 0 .9 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23g)'/%3E%3C/svg%3E"); }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--task); outline-offset: 3px; }
-.kicker { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--quiz); }
+.kicker { margin: -6px 0 24px; font-size: 18px; font-weight: 600; color: var(--quiz); } /* under the title, a subtitle */
/* ---------- cover ---------- */
#cover { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
@@ -30,16 +31,16 @@ a:focus-visible { outline: 3px solid var(--task); outline-offset: 3px; }
body:not(.refsview) #refpage, .refsview #cover, .refsview #contents { display: none; }
#cover > * { animation: rise .8s var(--ease) backwards; }
#cover .mascot { animation: none; margin-bottom: 26px; view-transition-name: guide; }
-#cover .kicker { animation-delay: .9s; }
#cover h1 { animation-delay: 1s; }
+#cover .kicker { animation-delay: 1.06s; }
#cover .lede { animation-delay: 1.12s; }
#cover .acts { animation-delay: 1.24s; }
#cover .meta { animation-delay: 1.36s; }
h1 { margin: 14px 0 18px; font: 500 clamp(44px, 8.4vw, 92px)/1.02 var(--book); letter-spacing: -.01em; view-transition-name: book; }
-h1 i { color: var(--task); font-style: italic; }
+h1 i, .home strong i { font-style: normal; } /* the whole title one face and one colour; <i> left in older covers */
.lede { max-width: 34em; margin: 0 0 34px; color: var(--dim); font-size: clamp(17px, 2.2vw, 20px); text-wrap: balance; }
.acts { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
-.btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 30px; border-radius: 999px; font-weight: 600; font-size: 19px; text-decoration: none;
+.btn { display: inline-flex; align-items: center; gap: 12px; padding: 12px 28px; border-radius: 999px; font-weight: 600; font-size: 19px; text-decoration: none;
transition: transform .25s var(--ease), background-color .25s, border-color .25s; }
.btn[hidden] { display: none; }
.btn:hover { transform: translateY(-2px); }
@@ -47,7 +48,7 @@ h1 i { color: var(--task); font-style: italic; }
.btn.quiet { border: 1.5px solid var(--edge); color: var(--chalk); }
.btn.quiet:hover { border-color: var(--dim); }
.btn svg { width: 15px; height: 15px; fill: currentColor; }
-.meta { margin: 30px 0 0; color: var(--dim); font-size: 15px; letter-spacing: .04em; } /* --faint read below 3:1 */
+.meta { margin: 30px 0 0; color: var(--dim); font-size: 15px; } /* --faint read below 3:1 */
/* Faint chalk notes around the edges of the board. */
.chalk { position: absolute; inset: 0; z-index: -1; pointer-events: none; animation: none !important; }
.chalk span { position: absolute; font: italic 400 clamp(22px, 3vw, 38px) var(--book); color: var(--chalk); opacity: 0; white-space: nowrap;
@@ -77,7 +78,6 @@ h1 i { color: var(--task); font-style: italic; }
.home { display: flex; align-items: center; gap: 12px; text-decoration: none; border-radius: 10px; }
.home .mascot { view-transition-name: guide; }
.home strong { font: 500 22px/1.1 var(--book); view-transition-name: book; }
-.home strong i { color: var(--task); }
.prog { margin-inline-start: auto; color: var(--dim); font-size: 15px; white-space: nowrap; }
.prog b { color: var(--good); font-weight: 600; }
main#contents { padding-bottom: 80px; }
diff --git a/site/pandemic-shorts/lib/contents.js b/site/pandemic-shorts/lib/contents.js
index cb2629d..b8aeb88 100644
--- a/site/pandemic-shorts/lib/contents.js
+++ b/site/pandemic-shorts/lib/contents.js
@@ -12,7 +12,7 @@ const Contents = (() => {
const TRANSLATIONS = {
en: {
open: 'Open the book', toCover: 'Back to the cover', resume: 'Continue · Chapter {n}', unit: 'Unit {n}', minutes: '{n} min',
- meta: '{chapters}{samples} · {units} · with sound', metaChapters: { one: '{n} chapter', other: '{n} chapters' },
+ meta: '{chapters}{samples}, {units}, with sound', metaChapters: { one: '{n} chapter', other: '{n} chapters' },
metaUnits: { one: '{n} unit', other: '{n} units' }, metaSamples: { one: ' + {n} sample', other: ' + {n} samples' }, samples: 'Sample chapters, another look',
chapterCount: { one: '{n} chapter', other: '{n} chapters' }, finished: '{done} of {n} finished',
doneMark: '✓ Finished · ', lastMark: ' · Last opened',
@@ -23,7 +23,7 @@ const Contents = (() => {
},
ru: {
open: 'Открыть книгу', toCover: 'К обложке', resume: 'Продолжить · Глава {n}', unit: 'Раздел {n}', minutes: '{n} мин',
- meta: '{chapters}{samples} · {units} · со звуком',
+ meta: '{chapters}{samples}, {units}, со звуком',
metaChapters: { one: '{n} глава', few: '{n} главы', many: '{n} глав', other: '{n} главы' },
metaUnits: { one: '{n} раздел', few: '{n} раздела', many: '{n} разделов', other: '{n} раздела' },
metaSamples: { one: ' + {n} пробная', few: ' + {n} пробные', many: ' + {n} пробных', other: ' + {n} пробной' },
@@ -37,7 +37,7 @@ const Contents = (() => {
},
zh: {
open: '打开这本书', toCover: '返回封面', resume: '继续 · 第 {n} 章', unit: '第 {n} 单元', minutes: '{n} 分钟',
- meta: '{chapters}{samples} · {units} · 有配音', metaChapters: '{n} 章', metaUnits: '{n} 个单元',
+ meta: '{chapters}{samples},{units},有配音', metaChapters: '{n} 章', metaUnits: '{n} 个单元',
metaSamples: ' + {n} 个示例章', samples: '示例章,另一种风格',
chapterCount: '{n} 章', finished: '已完成 {done} / {n}',
doneMark: '✓ 已完成 · ', lastMark: ' · 上次打开',
@@ -47,7 +47,7 @@ const Contents = (() => {
},
ja: {
open: '本を開く', toCover: '表紙に戻る', resume: '続きから · 第{n}章', unit: '単元 {n}', minutes: '{n}分',
- meta: '{chapters}{samples} · {units} · 音声つき', metaChapters: '{n}章', metaUnits: '{n}単元',
+ meta: '{chapters}{samples}、{units}、音声つき', metaChapters: '{n}章', metaUnits: '{n}単元',
metaSamples: ' + サンプル{n}章', samples: 'サンプル章(別のスタイル)',
chapterCount: '{n}章', finished: '{n}章中 {done}章 完了',
doneMark: '✓ 完了 · ', lastMark: ' · 最後に開いた章',
@@ -59,7 +59,7 @@ const Contents = (() => {
ar: {
open: 'افتح الكتاب', toCover: 'العودة إلى الغلاف', resume: 'تابع · الفصل {n}', unit: 'الوحدة {n}',
minutes: { one: 'دقيقة', two: 'دقيقتان', few: '{n} دقائق', many: '{n} دقيقة', other: '{n} دقيقة' },
- meta: '{chapters}{samples} · {units} · مع الصوت',
+ meta: '{chapters}{samples}، {units}، مع الصوت',
metaChapters: { one: 'فصل واحد', two: 'فصلان', few: '{n} فصول', many: '{n} فصلاً', other: '{n} فصل' },
metaUnits: { one: 'وحدة واحدة', two: 'وحدتان', few: '{n} وحدات', many: '{n} وحدة', other: '{n} وحدة' },
metaSamples: { one: ' + فصل تجريبي واحد', two: ' + فصلان تجريبيان', few: ' + {n} فصول تجريبية', many: ' + {n} فصلاً تجريبياً', other: ' + {n} فصل تجريبي' },
diff --git a/site/pandemic-shorts/lib/units.css b/site/pandemic-shorts/lib/units.css
index 014ce88..c5ff6f0 100644
--- a/site/pandemic-shorts/lib/units.css
+++ b/site/pandemic-shorts/lib/units.css
@@ -60,7 +60,7 @@
@keyframes breathe { from { transform: scaleY(1); } to { transform: scaleY(.35); } }
/* The label and the title share a line when they fit; a long title wraps below the label instead of running off. */
.unit h2 .title { min-width: 0; text-wrap: balance; }
-.unit h2 .label { font: 600 14px var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--c); white-space: nowrap; }
+.unit h2 .label { font: 600 16px var(--ui); color: var(--c); white-space: nowrap; }
/* Keep the sketches cheap: each is its own layer, so its loop repaints only itself, and loops pause while their unit is
off screen or under the sticky bar (units.js toggles .live), so the bar's blur is not redrawn every frame. */
.unit-art { will-change: transform; contain: layout style; }
diff --git a/site/pandemic/index.html b/site/pandemic/index.html
index 894f84c..9896545 100644
--- a/site/pandemic/index.html
+++ b/site/pandemic/index.html
@@ -12,64 +12,66 @@
--ui: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif; --serif: "EB Garamond", "Iowan Old Style", Palatino, Georgia, serif;
--key: "Oswald", "Avenir Next Condensed", "Arial Narrow", sans-serif; color-scheme: light; }
* { box-sizing: border-box; }
+ html, body { overflow-x: clip; }
+ @media (prefers-reduced-motion: reduce) { *, ::after { transition: none !important; } a:hover, a:focus-visible { transform: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 19px/1.62 var(--serif); }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
- ::selection { background: var(--accent); color: #fff; }
+ ::selection { background: var(--accent); color: #fffaf0; }
.top { background: var(--night); color: #f3ede0; }
- .top nav { max-width: 1180px; margin: 0 auto; padding: 10px 24px 0; font: 500 14px/1 var(--key); letter-spacing: .14em; text-transform: uppercase; }
+ .top nav { max-width: 1180px; margin: 0 auto; padding: 10px 24px 0; font: 500 14px/1 var(--key); }
.top nav a { color: #d9b9b0; text-decoration: none; display: inline-block; padding: 8px 0; }
.top nav a:hover { color: #f3ede0; }
header { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; max-width: 1180px; margin: 0 auto; padding: 28px 24px 52px; }
header .film { position: relative; display: block; border-radius: 6px; overflow: hidden; box-shadow: 0 18px 50px #0008; }
header .film img { display: block; width: 100%; height: auto; }
- header .film span { position: absolute; left: 18px; bottom: 16px; padding: 10px 18px; background: #c8301f; color: #fff; font: 600 16px/1 var(--key); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
+ header .film span { position: absolute; left: 18px; bottom: 16px; padding: 10px 18px; background: #c8301f; color: #fffaf0; font: 600 16px/1 var(--key); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
header .film:hover span, header .film:focus-visible span { background: #a8271a; }
- .kicker { margin: 0 0 6px; color: var(--accent-on-night); font: 500 14px/1.2 var(--key); letter-spacing: .16em; text-transform: uppercase; }
+ .kicker { margin: 0 0 6px; color: var(--accent-on-night); font: 500 14px/1.2 var(--key); }
h1 { margin: 0 0 10px; font: 600 clamp(40px, 5.4vw, 66px)/1 var(--key); letter-spacing: .02em; text-transform: uppercase; }
.lede { margin: 0 0 14px; font-size: 21px; color: #e6dccb; }
.meta { margin: 0; color: #b3a99a; font: 15px/1.5 var(--ui); }
- .watched .meta::after { content: " · ✓ watched"; color: var(--accent-on-night); }
+ .watched .meta::after { display: block; content: "✓ Watched"; color: var(--accent-on-night); }
main { max-width: 760px; margin: 0 auto; padding: 24px 24px 40px; }
- main h2 { margin: 56px 0 8px; font: 600 26px/1.2 var(--key); letter-spacing: .06em; text-transform: uppercase; }
+ main h2 { margin: 56px 0 8px; font: 600 26px/1.2 var(--key); letter-spacing: .04em; text-transform: uppercase; }
main h2:first-child { margin-top: 32px; }
main p { margin: 0 0 16px; }
figure { margin: 26px -60px; }
figure img { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 8px 26px #4a33182e; }
figcaption { margin: 8px 60px 0; color: var(--soft); font: 15px/1.5 var(--ui); }
- .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .pair figcaption { grid-column: 1 / -1; margin-top: -6px; }
+ .pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; } .pair figcaption { grid-column: 1 / -1; margin-top: -6px; }
ol.steps { padding-left: 22px; } ol.steps li { margin-bottom: 8px; }
blockquote { margin: 18px 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--accent); font-style: italic; }
- .numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
+ .numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.numbers div { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; }
.numbers b { display: block; font: 600 30px/1.1 var(--key); color: var(--accent); }
.numbers span { font: 14px/1.4 var(--ui); color: var(--soft); }
code { font-size: .86em; color: var(--ink); background: #e2d7bd; padding: 1px 5px; border-radius: 3px; }
.credits { max-width: 1000px; margin: 20px auto 70px; padding: 0 24px; color: var(--soft); font: 14px/1.6 var(--ui); }
- .credits h2 { font: 600 20px/1.3 var(--key); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
- .credits h3 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin: 18px 0 6px; color: var(--ink); }
+ .credits h2 { font: 600 20px/1.3 var(--key); letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
+ .credits h3 { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; margin: 18px 0 6px; color: var(--ink); }
.credits ul { margin: 0; padding-left: 18px; columns: 2 340px; }
.shorts { max-width: 1180px; margin: 0 auto; padding: 36px 24px 8px; }
- .shorts h2 { margin: 0; font: 600 26px/1.2 var(--key); letter-spacing: .06em; text-transform: uppercase; }
+ .shorts h2 { margin: 0; font: 600 26px/1.2 var(--key); letter-spacing: .04em; text-transform: uppercase; }
.shorts > p { margin: 4px 0 0; color: var(--soft); font: 16px/1.5 var(--ui); }
- .shorts ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
+ .shorts ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.shorts a { display: flex; flex-direction: column; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; text-decoration: none; transition: border-color .15s, transform .15s; }
.shorts a:hover, .shorts a:focus-visible { border-color: var(--accent); transform: translateY(-2px); }
.shorts img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; }
- .shorts small { margin: 10px 12px 0; color: var(--soft); font: 600 12px/1.3 var(--ui); letter-spacing: .04em; text-transform: uppercase; }
+ .shorts small { margin: 10px 12px 0; color: var(--soft); font: 600 12px/1.3 var(--ui); }
.shorts b { margin: 2px 12px 4px; font: 600 19px/1.2 var(--key); letter-spacing: .03em; text-transform: uppercase; }
.shorts span { margin: 0 12px 12px; color: var(--soft); font: 14px/1.45 var(--ui); }
- .shorts .watched small::after { content: " · ✓ watched"; color: var(--accent-text); }
- .shorts .story { display: grid; grid-template-columns: 3fr 2fr; margin-top: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
+ .shorts .watched small::after { display: block; content: "✓ Watched"; color: var(--accent-text); }
+ .shorts .story { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); margin-top: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.shorts .story:hover, .shorts .story:focus-visible { border-color: var(--accent); transform: translateY(-2px); }
.shorts .story img { display: block; width: 100%; height: 100%; aspect-ratio: 1000 / 625; object-fit: cover; }
.shorts .story div { display: flex; flex-direction: column; justify-content: center; padding: 20px 24px; }
.shorts .story b { margin: 0; font: 600 22px/1.2 var(--key); letter-spacing: .03em; text-transform: uppercase; }
.shorts .story span { margin: 6px 0 0; color: var(--soft); font: 15px/1.5 var(--ui); }
.shorts .story i { margin-top: 12px; color: var(--accent-text); font: 600 14px/1.3 var(--ui); font-style: normal; }
- @media (max-width: 1000px) { .shorts ul { grid-template-columns: repeat(3, 1fr); } }
+ @media (max-width: 1000px) { .shorts ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { figure { margin: 22px 0; } figcaption { margin: 8px 0 0; } }
- @media (max-width: 760px) { header { grid-template-columns: 1fr; gap: 24px; } header .film span { left: 10px; bottom: 10px; padding: 7px 11px; font-size: 13px; } .pair, .numbers { grid-template-columns: 1fr; } .shorts ul { grid-template-columns: 1fr 1fr; } .shorts .story { grid-template-columns: 1fr; } }
+ @media (max-width: 760px) { header { grid-template-columns: minmax(0, 1fr); gap: 24px; } header .film span { left: 10px; bottom: 10px; padding: 7px 11px; font-size: 13px; } .pair, .numbers { grid-template-columns: minmax(0, 1fr); } .shorts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } .shorts .story { grid-template-columns: minmax(0, 1fr); } }
</style>
</head>
<body>
@@ -78,10 +80,10 @@
<header id="film">
<a class="film" href="ch01/"><img src="img/cover.webp" width="1400" height="788" alt="The night globe behind two numbers: 7,115,706 confirmed COVID-19 deaths, and 27,000,000 estimated from excess deaths."><span>▶ Watch the film</span></a>
<div>
- <p class="kicker">A documentary · COVID-19</p>
+ <p class="kicker">A documentary: COVID-19</p>
<h1>The Pandemic</h1>
<p class="lede">From a market in Wuhan to a world that stopped, the waves, the count of the dead, and the question nobody has answered: where it came from.</p>
- <p class="meta">7 minutes · English with subtitles · made with the Papermorph Skill</p>
+ <p class="meta">7 minutes, English with subtitles, made with the Papermorph Skill</p>
</div>
</header>
</div>
@@ -172,31 +174,31 @@
<p>The shorts reuse the film’s pictures, maps and music, with a new script and voice for each episode. Pictures marked “AI illustration” on screen were made with an image model (gpt-image via OpenRouter); the breadline photograph is from the U.S. National Archives (public domain); the estimate of 27 million deaths is The Economist’s excess-death model. Every file of the shorts is listed with its source in <a href="../pandemic-shorts/img/SOURCES.md">SOURCES.md</a>.</p>
<h3>Pictures</h3>
<ul>
- <li><a href="https://commons.wikimedia.org/wiki/File:Novel_Coronavirus_SARS-CoV-2_(49597020718).jpg">Novel Coronavirus SARS-CoV-2</a>, NIAID · Public domain</li>
- <li>Empty Beijing airport, Mx. Granger · CC0</li>
- <li><a href="https://commons.wikimedia.org/wiki/File:Glenview_March_2020_24.jpg">Glenview March 2020</a> 05 and 24, C. E. Miller · Public domain</li>
- <li><a href="https://commons.wikimedia.org/wiki/File:EmptyHwy407.jpg">Empty Highway 407</a>, Raysonho · CC0</li>
- <li>School closed banner, Cyan&amp;Orange · CC0</li>
- <li>Empty classroom, U.S. Army, Pfc. Kaden Pitt · Public domain</li>
- <li>Masked officer, U.S. Customs and Border Protection · Public domain</li>
- <li><a href="https://www.dvidshub.net/image/6178786/">Hawaii National Guard</a>, Sgt. John Schoebel · Public domain</li>
- <li>Nurses in face shields, U.S. Navy, PO3 Jacob L. Greenberg · Public domain</li>
- <li><a href="https://www.flickr.com/photos/184594136@N08/49703752138/">Closed signs</a>, Alabama Extension · CC0</li>
- <li><a href="https://earthobservatory.nasa.gov/features/NightLights/page3.php">Black Marble 2016</a>, NASA Earth Observatory · Public domain</li>
- <li><a href="https://commons.wikimedia.org/wiki/File:COVID-19_Pneumonie_-_74m_CTax_-_002.jpg">COVID-19 pneumonia CT</a>, Hellerhoff · <a href="https://creativecommons.org/licenses/by-sa/3.0/">CC BY-SA 3.0</a>, toned</li>
- <li><a href="https://commons.wikimedia.org/wiki/File:Roadblock_in_Wuhan_on_January_29th,_2020_-_2.jpg">Roadblock in Wuhan, 29 January 2020</a>, 汮汐 · <a href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a>, toned</li>
- <li>Li Wenliang's own selfie, posted on Weibo · fair use, for commentary</li>
- <li><a href="https://commons.wikimedia.org/wiki/File:USNS_Comfort_New_York_City_2020.jpg">USNS Comfort in New York</a>, U.S. Navy · Public domain</li>
- <li><a href="https://commons.wikimedia.org/wiki/File:Mortuary_Trucks_in_New_York_City_by_Archer_West.jpg">Mortuary trucks in New York City</a>, Archer West · <a href="https://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a></li>
- <li><a href="https://commons.wikimedia.org/wiki/File:Nitrogen_dioxide_Density_Change_In_China_Due_To_Coronavirus.png">Nitrogen dioxide over China</a>, NASA Earth Observatory, ESA Sentinel-5P data · Public domain</li>
- <li><a href="https://commons.wikimedia.org/wiki/File:Empty_toilet_paper_shelves_(49665873706).jpg">Empty shelves</a>, Dan Keck · CC0</li>
+ <li><a href="https://commons.wikimedia.org/wiki/File:Novel_Coronavirus_SARS-CoV-2_(49597020718).jpg">Novel Coronavirus SARS-CoV-2</a>, NIAID, Public domain</li>
+ <li>Empty Beijing airport, Mx. Granger, CC0</li>
+ <li><a href="https://commons.wikimedia.org/wiki/File:Glenview_March_2020_24.jpg">Glenview March 2020</a> 05 and 24, C. E. Miller, Public domain</li>
+ <li><a href="https://commons.wikimedia.org/wiki/File:EmptyHwy407.jpg">Empty Highway 407</a>, Raysonho, CC0</li>
+ <li>School closed banner, Cyan&amp;Orange, CC0</li>
+ <li>Empty classroom, U.S. Army, Pfc. Kaden Pitt, Public domain</li>
+ <li>Masked officer, U.S. Customs and Border Protection, Public domain</li>
+ <li><a href="https://www.dvidshub.net/image/6178786/">Hawaii National Guard</a>, Sgt. John Schoebel, Public domain</li>
+ <li>Nurses in face shields, U.S. Navy, PO3 Jacob L. Greenberg, Public domain</li>
+ <li><a href="https://www.flickr.com/photos/184594136@N08/49703752138/">Closed signs</a>, Alabama Extension, CC0</li>
+ <li><a href="https://earthobservatory.nasa.gov/features/NightLights/page3.php">Black Marble 2016</a>, NASA Earth Observatory, Public domain</li>
+ <li><a href="https://commons.wikimedia.org/wiki/File:COVID-19_Pneumonie_-_74m_CTax_-_002.jpg">COVID-19 pneumonia CT</a>, Hellerhoff, <a href="https://creativecommons.org/licenses/by-sa/3.0/">CC BY-SA 3.0</a>, toned</li>
+ <li><a href="https://commons.wikimedia.org/wiki/File:Roadblock_in_Wuhan_on_January_29th,_2020_-_2.jpg">Roadblock in Wuhan, 29 January 2020</a>, 汮汐, <a href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a>, toned</li>
+ <li>Li Wenliang's own selfie, posted on Weibo, fair use, for commentary</li>
+ <li><a href="https://commons.wikimedia.org/wiki/File:USNS_Comfort_New_York_City_2020.jpg">USNS Comfort in New York</a>, U.S. Navy, Public domain</li>
+ <li><a href="https://commons.wikimedia.org/wiki/File:Mortuary_Trucks_in_New_York_City_by_Archer_West.jpg">Mortuary trucks in New York City</a>, Archer West, <a href="https://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a></li>
+ <li><a href="https://commons.wikimedia.org/wiki/File:Nitrogen_dioxide_Density_Change_In_China_Due_To_Coronavirus.png">Nitrogen dioxide over China</a>, NASA Earth Observatory, ESA Sentinel-5P data, Public domain</li>
+ <li><a href="https://commons.wikimedia.org/wiki/File:Empty_toilet_paper_shelves_(49665873706).jpg">Empty shelves</a>, Dan Keck, CC0</li>
</ul>
<h3>Maps and data</h3>
<ul>
- <li><a href="https://www.naturalearthdata.com/">Natural Earth</a> countries, provinces and places · Public domain</li>
- <li><a href="https://ourworldindata.org/coronavirus">Our World in Data</a>: cases, deaths, vaccinations, first cases, reporting · CC BY 4.0</li>
- <li><a href="https://ourworldindata.org/covid-stay-home-covid">Our World in Data</a>: stay-at-home requirements (Oxford COVID-19 Government Response Tracker) · CC BY 4.0</li>
- <li>SARS-CoV-2 reference sequence <a href="https://www.ncbi.nlm.nih.gov/nuccore/NC_045512.2">NC_045512.2</a>, NCBI · Public domain</li>
+ <li><a href="https://www.naturalearthdata.com/">Natural Earth</a> countries, provinces and places, Public domain</li>
+ <li><a href="https://ourworldindata.org/coronavirus">Our World in Data</a>: cases, deaths, vaccinations, first cases, reporting, CC BY 4.0</li>
+ <li><a href="https://ourworldindata.org/covid-stay-home-covid">Our World in Data</a>: stay-at-home requirements (Oxford COVID-19 Government Response Tracker), CC BY 4.0</li>
+ <li>SARS-CoV-2 reference sequence <a href="https://www.ncbi.nlm.nih.gov/nuccore/NC_045512.2">NC_045512.2</a>, NCBI, Public domain</li>
</ul>
</section>
diff --git a/site/pandemic/lib/contents.css b/site/pandemic/lib/contents.css
index 5b8be35..8c99714 100644
--- a/site/pandemic/lib/contents.css
+++ b/site/pandemic/lib/contents.css
@@ -13,6 +13,7 @@
}
* { box-sizing: border-box; }
html { scroll-padding-top: 90px; }
+html, body { overflow-x: clip; }
body { margin: 0; min-height: 100svh; background: var(--board); color: var(--chalk); font: 18px/1.5 var(--ui); }
/* Chalkboard: the same grain and vignette as the lesson stage. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
@@ -20,7 +21,7 @@ body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-even
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .92 0 0 0 0 .95 0 0 0 0 .9 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23g)'/%3E%3C/svg%3E"); }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--task); outline-offset: 3px; }
-.kicker { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--quiz); }
+.kicker { margin: -6px 0 24px; font-size: 18px; font-weight: 600; color: var(--quiz); } /* under the title, a subtitle */
/* ---------- cover ---------- */
#cover { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
@@ -30,16 +31,16 @@ a:focus-visible { outline: 3px solid var(--task); outline-offset: 3px; }
body:not(.refsview) #refpage, .refsview #cover, .refsview #contents { display: none; }
#cover > * { animation: rise .8s var(--ease) backwards; }
#cover .mascot { animation: none; margin-bottom: 26px; view-transition-name: guide; }
-#cover .kicker { animation-delay: .9s; }
#cover h1 { animation-delay: 1s; }
+#cover .kicker { animation-delay: 1.06s; }
#cover .lede { animation-delay: 1.12s; }
#cover .acts { animation-delay: 1.24s; }
#cover .meta { animation-delay: 1.36s; }
h1 { margin: 14px 0 18px; font: 500 clamp(44px, 8.4vw, 92px)/1.02 var(--book); letter-spacing: -.01em; view-transition-name: book; }
-h1 i { color: var(--task); font-style: italic; }
+h1 i, .home strong i { font-style: normal; } /* the whole title one face and one colour; <i> left in older covers */
.lede { max-width: 34em; margin: 0 0 34px; color: var(--dim); font-size: clamp(17px, 2.2vw, 20px); text-wrap: balance; }
.acts { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
-.btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 30px; border-radius: 999px; font-weight: 600; font-size: 19px; text-decoration: none;
+.btn { display: inline-flex; align-items: center; gap: 12px; padding: 12px 28px; border-radius: 999px; font-weight: 600; font-size: 19px; text-decoration: none;
transition: transform .25s var(--ease), background-color .25s, border-color .25s; }
.btn[hidden] { display: none; }
.btn:hover { transform: translateY(-2px); }
@@ -47,7 +48,7 @@ h1 i { color: var(--task); font-style: italic; }
.btn.quiet { border: 1.5px solid var(--edge); color: var(--chalk); }
.btn.quiet:hover { border-color: var(--dim); }
.btn svg { width: 15px; height: 15px; fill: currentColor; }
-.meta { margin: 30px 0 0; color: var(--dim); font-size: 15px; letter-spacing: .04em; } /* --faint read below 3:1 */
+.meta { margin: 30px 0 0; color: var(--dim); font-size: 15px; } /* --faint read below 3:1 */
/* Faint chalk notes around the edges of the board. */
.chalk { position: absolute; inset: 0; z-index: -1; pointer-events: none; animation: none !important; }
.chalk span { position: absolute; font: italic 400 clamp(22px, 3vw, 38px) var(--book); color: var(--chalk); opacity: 0; white-space: nowrap;
@@ -77,7 +78,6 @@ h1 i { color: var(--task); font-style: italic; }
.home { display: flex; align-items: center; gap: 12px; text-decoration: none; border-radius: 10px; }
.home .mascot { view-transition-name: guide; }
.home strong { font: 500 22px/1.1 var(--book); view-transition-name: book; }
-.home strong i { color: var(--task); }
.prog { margin-inline-start: auto; color: var(--dim); font-size: 15px; white-space: nowrap; }
.prog b { color: var(--good); font-weight: 600; }
main#contents { padding-bottom: 80px; }
diff --git a/site/pandemic/lib/contents.js b/site/pandemic/lib/contents.js
index cb2629d..b8aeb88 100644
--- a/site/pandemic/lib/contents.js
+++ b/site/pandemic/lib/contents.js
@@ -12,7 +12,7 @@ const Contents = (() => {
const TRANSLATIONS = {
en: {
open: 'Open the book', toCover: 'Back to the cover', resume: 'Continue · Chapter {n}', unit: 'Unit {n}', minutes: '{n} min',
- meta: '{chapters}{samples} · {units} · with sound', metaChapters: { one: '{n} chapter', other: '{n} chapters' },
+ meta: '{chapters}{samples}, {units}, with sound', metaChapters: { one: '{n} chapter', other: '{n} chapters' },
metaUnits: { one: '{n} unit', other: '{n} units' }, metaSamples: { one: ' + {n} sample', other: ' + {n} samples' }, samples: 'Sample chapters, another look',
chapterCount: { one: '{n} chapter', other: '{n} chapters' }, finished: '{done} of {n} finished',
doneMark: '✓ Finished · ', lastMark: ' · Last opened',
@@ -23,7 +23,7 @@ const Contents = (() => {
},
ru: {
open: 'Открыть книгу', toCover: 'К обложке', resume: 'Продолжить · Глава {n}', unit: 'Раздел {n}', minutes: '{n} мин',
- meta: '{chapters}{samples} · {units} · со звуком',
+ meta: '{chapters}{samples}, {units}, со звуком',
metaChapters: { one: '{n} глава', few: '{n} главы', many: '{n} глав', other: '{n} главы' },
metaUnits: { one: '{n} раздел', few: '{n} раздела', many: '{n} разделов', other: '{n} раздела' },
metaSamples: { one: ' + {n} пробная', few: ' + {n} пробные', many: ' + {n} пробных', other: ' + {n} пробной' },
@@ -37,7 +37,7 @@ const Contents = (() => {
},
zh: {
open: '打开这本书', toCover: '返回封面', resume: '继续 · 第 {n} 章', unit: '第 {n} 单元', minutes: '{n} 分钟',
- meta: '{chapters}{samples} · {units} · 有配音', metaChapters: '{n} 章', metaUnits: '{n} 个单元',
+ meta: '{chapters}{samples},{units},有配音', metaChapters: '{n} 章', metaUnits: '{n} 个单元',
metaSamples: ' + {n} 个示例章', samples: '示例章,另一种风格',
chapterCount: '{n} 章', finished: '已完成 {done} / {n}',
doneMark: '✓ 已完成 · ', lastMark: ' · 上次打开',
@@ -47,7 +47,7 @@ const Contents = (() => {
},
ja: {
open: '本を開く', toCover: '表紙に戻る', resume: '続きから · 第{n}章', unit: '単元 {n}', minutes: '{n}分',
- meta: '{chapters}{samples} · {units} · 音声つき', metaChapters: '{n}章', metaUnits: '{n}単元',
+ meta: '{chapters}{samples}、{units}、音声つき', metaChapters: '{n}章', metaUnits: '{n}単元',
metaSamples: ' + サンプル{n}章', samples: 'サンプル章(別のスタイル)',
chapterCount: '{n}章', finished: '{n}章中 {done}章 完了',
doneMark: '✓ 完了 · ', lastMark: ' · 最後に開いた章',
@@ -59,7 +59,7 @@ const Contents = (() => {
ar: {
open: 'افتح الكتاب', toCover: 'العودة إلى الغلاف', resume: 'تابع · الفصل {n}', unit: 'الوحدة {n}',
minutes: { one: 'دقيقة', two: 'دقيقتان', few: '{n} دقائق', many: '{n} دقيقة', other: '{n} دقيقة' },
- meta: '{chapters}{samples} · {units} · مع الصوت',
+ meta: '{chapters}{samples}، {units}، مع الصوت',
metaChapters: { one: 'فصل واحد', two: 'فصلان', few: '{n} فصول', many: '{n} فصلاً', other: '{n} فصل' },
metaUnits: { one: 'وحدة واحدة', two: 'وحدتان', few: '{n} وحدات', many: '{n} وحدة', other: '{n} وحدة' },
metaSamples: { one: ' + فصل تجريبي واحد', two: ' + فصلان تجريبيان', few: ' + {n} فصول تجريبية', many: ' + {n} فصلاً تجريبياً', other: ' + {n} فصل تجريبي' },
diff --git a/site/pandemic/lib/units.css b/site/pandemic/lib/units.css
index 014ce88..c5ff6f0 100644
--- a/site/pandemic/lib/units.css
+++ b/site/pandemic/lib/units.css
@@ -60,7 +60,7 @@
@keyframes breathe { from { transform: scaleY(1); } to { transform: scaleY(.35); } }
/* The label and the title share a line when they fit; a long title wraps below the label instead of running off. */
.unit h2 .title { min-width: 0; text-wrap: balance; }
-.unit h2 .label { font: 600 14px var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--c); white-space: nowrap; }
+.unit h2 .label { font: 600 16px var(--ui); color: var(--c); white-space: nowrap; }
/* Keep the sketches cheap: each is its own layer, so its loop repaints only itself, and loops pause while their unit is
off screen or under the sticky bar (units.js toggles .live), so the bar's blur is not redrawn every frame. */
.unit-art { will-change: transform; contain: layout style; }
diff --git a/site/physics-notebook/index.html b/site/physics-notebook/index.html
index f46c0f0..f82272a 100644
--- a/site/physics-notebook/index.html
+++ b/site/physics-notebook/index.html
@@ -50,12 +50,12 @@ h1 i { font-style: normal; }
<span style="left:5%;bottom:20%;--d:2.2">potential = stored</span>
<span style="right:6%;bottom:15%;--d:2.5">we're solar-powered!</span>
</div>
- <svg class="mascot draw" id="guide" width="210" height="147"></svg>
+ <svg class="mascot draw" id="guide" width="210" height="147" aria-hidden="true"></svg>
+ <h1>Energy &amp; Change</h1>
<p class="kicker">An animated notebook</p>
- <h1>Energy <i>&amp;</i> Change</h1>
<p class="lede">Follow Blip, a little bundle of energy, from sunlight to salad to a sprint. Watch balls roll, pens drop and bumper cars collide, and see why energy never disappears.</p>
<div class="acts">
- <a class="btn go" href="#contents" data-t="open">Open the book<svg viewBox="0 0 16 16"><path d="M6 2.5 11.5 8 6 13.5 4.6 12.1 8.7 8 4.6 3.9z"/></svg></a>
+ <a class="btn go" href="#contents" data-t="open">Open the book<svg viewBox="0 0 16 16" aria-hidden="true"><path d="M6 2.5 11.5 8 6 13.5 4.6 12.1 8.7 8 4.6 3.9z"/></svg></a>
<a class="btn quiet" id="resume" hidden></a>
</div>
<p class="meta" id="meta"></p>
@@ -64,7 +64,7 @@ h1 i { font-style: normal; }
<main id="contents">
<header class="top">
- <a class="home" href="#book" aria-label="Back to the cover" data-t-label="toCover"><svg class="mascot" id="guideSmall" width="52" height="36"></svg><strong>Energy <i>&amp;</i> Change</strong></a>
+ <a class="home" href="#book" aria-label="Back to the cover" data-t-label="toCover"><svg class="mascot" id="guideSmall" width="52" height="36" aria-hidden="true"></svg><strong>Energy &amp; Change</strong></a>
<span class="prog" id="prog"></span>
<a class="back-shelf contents-back" href="../">← Bookshelf</a>
</header>
diff --git a/site/physics-notebook/lib/contents.css b/site/physics-notebook/lib/contents.css
index 5b8be35..8c99714 100644
--- a/site/physics-notebook/lib/contents.css
+++ b/site/physics-notebook/lib/contents.css
@@ -13,6 +13,7 @@
}
* { box-sizing: border-box; }
html { scroll-padding-top: 90px; }
+html, body { overflow-x: clip; }
body { margin: 0; min-height: 100svh; background: var(--board); color: var(--chalk); font: 18px/1.5 var(--ui); }
/* Chalkboard: the same grain and vignette as the lesson stage. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
@@ -20,7 +21,7 @@ body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-even
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .92 0 0 0 0 .95 0 0 0 0 .9 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23g)'/%3E%3C/svg%3E"); }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--task); outline-offset: 3px; }
-.kicker { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--quiz); }
+.kicker { margin: -6px 0 24px; font-size: 18px; font-weight: 600; color: var(--quiz); } /* under the title, a subtitle */
/* ---------- cover ---------- */
#cover { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
@@ -30,16 +31,16 @@ a:focus-visible { outline: 3px solid var(--task); outline-offset: 3px; }
body:not(.refsview) #refpage, .refsview #cover, .refsview #contents { display: none; }
#cover > * { animation: rise .8s var(--ease) backwards; }
#cover .mascot { animation: none; margin-bottom: 26px; view-transition-name: guide; }
-#cover .kicker { animation-delay: .9s; }
#cover h1 { animation-delay: 1s; }
+#cover .kicker { animation-delay: 1.06s; }
#cover .lede { animation-delay: 1.12s; }
#cover .acts { animation-delay: 1.24s; }
#cover .meta { animation-delay: 1.36s; }
h1 { margin: 14px 0 18px; font: 500 clamp(44px, 8.4vw, 92px)/1.02 var(--book); letter-spacing: -.01em; view-transition-name: book; }
-h1 i { color: var(--task); font-style: italic; }
+h1 i, .home strong i { font-style: normal; } /* the whole title one face and one colour; <i> left in older covers */
.lede { max-width: 34em; margin: 0 0 34px; color: var(--dim); font-size: clamp(17px, 2.2vw, 20px); text-wrap: balance; }
.acts { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
-.btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 30px; border-radius: 999px; font-weight: 600; font-size: 19px; text-decoration: none;
+.btn { display: inline-flex; align-items: center; gap: 12px; padding: 12px 28px; border-radius: 999px; font-weight: 600; font-size: 19px; text-decoration: none;
transition: transform .25s var(--ease), background-color .25s, border-color .25s; }
.btn[hidden] { display: none; }
.btn:hover { transform: translateY(-2px); }
@@ -47,7 +48,7 @@ h1 i { color: var(--task); font-style: italic; }
.btn.quiet { border: 1.5px solid var(--edge); color: var(--chalk); }
.btn.quiet:hover { border-color: var(--dim); }
.btn svg { width: 15px; height: 15px; fill: currentColor; }
-.meta { margin: 30px 0 0; color: var(--dim); font-size: 15px; letter-spacing: .04em; } /* --faint read below 3:1 */
+.meta { margin: 30px 0 0; color: var(--dim); font-size: 15px; } /* --faint read below 3:1 */
/* Faint chalk notes around the edges of the board. */
.chalk { position: absolute; inset: 0; z-index: -1; pointer-events: none; animation: none !important; }
.chalk span { position: absolute; font: italic 400 clamp(22px, 3vw, 38px) var(--book); color: var(--chalk); opacity: 0; white-space: nowrap;
@@ -77,7 +78,6 @@ h1 i { color: var(--task); font-style: italic; }
.home { display: flex; align-items: center; gap: 12px; text-decoration: none; border-radius: 10px; }
.home .mascot { view-transition-name: guide; }
.home strong { font: 500 22px/1.1 var(--book); view-transition-name: book; }
-.home strong i { color: var(--task); }
.prog { margin-inline-start: auto; color: var(--dim); font-size: 15px; white-space: nowrap; }
.prog b { color: var(--good); font-weight: 600; }
main#contents { padding-bottom: 80px; }
diff --git a/site/physics-notebook/lib/contents.js b/site/physics-notebook/lib/contents.js
index cb2629d..b8aeb88 100644
--- a/site/physics-notebook/lib/contents.js
+++ b/site/physics-notebook/lib/contents.js
@@ -12,7 +12,7 @@ const Contents = (() => {
const TRANSLATIONS = {
en: {
open: 'Open the book', toCover: 'Back to the cover', resume: 'Continue · Chapter {n}', unit: 'Unit {n}', minutes: '{n} min',
- meta: '{chapters}{samples} · {units} · with sound', metaChapters: { one: '{n} chapter', other: '{n} chapters' },
+ meta: '{chapters}{samples}, {units}, with sound', metaChapters: { one: '{n} chapter', other: '{n} chapters' },
metaUnits: { one: '{n} unit', other: '{n} units' }, metaSamples: { one: ' + {n} sample', other: ' + {n} samples' }, samples: 'Sample chapters, another look',
chapterCount: { one: '{n} chapter', other: '{n} chapters' }, finished: '{done} of {n} finished',
doneMark: '✓ Finished · ', lastMark: ' · Last opened',
@@ -23,7 +23,7 @@ const Contents = (() => {
},
ru: {
open: 'Открыть книгу', toCover: 'К обложке', resume: 'Продолжить · Глава {n}', unit: 'Раздел {n}', minutes: '{n} мин',
- meta: '{chapters}{samples} · {units} · со звуком',
+ meta: '{chapters}{samples}, {units}, со звуком',
metaChapters: { one: '{n} глава', few: '{n} главы', many: '{n} глав', other: '{n} главы' },
metaUnits: { one: '{n} раздел', few: '{n} раздела', many: '{n} разделов', other: '{n} раздела' },
metaSamples: { one: ' + {n} пробная', few: ' + {n} пробные', many: ' + {n} пробных', other: ' + {n} пробной' },
@@ -37,7 +37,7 @@ const Contents = (() => {
},
zh: {
open: '打开这本书', toCover: '返回封面', resume: '继续 · 第 {n} 章', unit: '第 {n} 单元', minutes: '{n} 分钟',
- meta: '{chapters}{samples} · {units} · 有配音', metaChapters: '{n} 章', metaUnits: '{n} 个单元',
+ meta: '{chapters}{samples},{units},有配音', metaChapters: '{n} 章', metaUnits: '{n} 个单元',
metaSamples: ' + {n} 个示例章', samples: '示例章,另一种风格',
chapterCount: '{n} 章', finished: '已完成 {done} / {n}',
doneMark: '✓ 已完成 · ', lastMark: ' · 上次打开',
@@ -47,7 +47,7 @@ const Contents = (() => {
},
ja: {
open: '本を開く', toCover: '表紙に戻る', resume: '続きから · 第{n}章', unit: '単元 {n}', minutes: '{n}分',
- meta: '{chapters}{samples} · {units} · 音声つき', metaChapters: '{n}章', metaUnits: '{n}単元',
+ meta: '{chapters}{samples}、{units}、音声つき', metaChapters: '{n}章', metaUnits: '{n}単元',
metaSamples: ' + サンプル{n}章', samples: 'サンプル章(別のスタイル)',
chapterCount: '{n}章', finished: '{n}章中 {done}章 完了',
doneMark: '✓ 完了 · ', lastMark: ' · 最後に開いた章',
@@ -59,7 +59,7 @@ const Contents = (() => {
ar: {
open: 'افتح الكتاب', toCover: 'العودة إلى الغلاف', resume: 'تابع · الفصل {n}', unit: 'الوحدة {n}',
minutes: { one: 'دقيقة', two: 'دقيقتان', few: '{n} دقائق', many: '{n} دقيقة', other: '{n} دقيقة' },
- meta: '{chapters}{samples} · {units} · مع الصوت',
+ meta: '{chapters}{samples}، {units}، مع الصوت',
metaChapters: { one: 'فصل واحد', two: 'فصلان', few: '{n} فصول', many: '{n} فصلاً', other: '{n} فصل' },
metaUnits: { one: 'وحدة واحدة', two: 'وحدتان', few: '{n} وحدات', many: '{n} وحدة', other: '{n} وحدة' },
metaSamples: { one: ' + فصل تجريبي واحد', two: ' + فصلان تجريبيان', few: ' + {n} فصول تجريبية', many: ' + {n} فصلاً تجريبياً', other: ' + {n} فصل تجريبي' },
diff --git a/site/physics-notebook/lib/units.css b/site/physics-notebook/lib/units.css
index 014ce88..c5ff6f0 100644
--- a/site/physics-notebook/lib/units.css
+++ b/site/physics-notebook/lib/units.css
@@ -60,7 +60,7 @@
@keyframes breathe { from { transform: scaleY(1); } to { transform: scaleY(.35); } }
/* The label and the title share a line when they fit; a long title wraps below the label instead of running off. */
.unit h2 .title { min-width: 0; text-wrap: balance; }
-.unit h2 .label { font: 600 14px var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--c); white-space: nowrap; }
+.unit h2 .label { font: 600 16px var(--ui); color: var(--c); white-space: nowrap; }
/* Keep the sketches cheap: each is its own layer, so its loop repaints only itself, and loops pause while their unit is
off screen or under the sticky bar (units.js toggles .live), so the bar's blur is not redrawn every frame. */
.unit-art { will-change: transform; contain: layout style; }
diff --git a/site/proteus/img/still-ch01.webp b/site/proteus/img/still-ch01.webp
new file mode 100644
index 0000000..e190dd7
Binary files /dev/null and b/site/proteus/img/still-ch01.webp differ
diff --git a/site/proteus/index.html b/site/proteus/index.html
index 376c914..f2a7cc3 100644
--- a/site/proteus/index.html
+++ b/site/proteus/index.html
@@ -8,44 +8,65 @@
<link rel="stylesheet" href="lib/book.css"><!-- only for --progress-key, if the book sets one -->
<style>
:root { --ink: #2f2418; --soft: #6b5a46; --paper: #f3ecdc; --card: #fffaf0; --line: #e4d6bb; --accent: #2b6f8f;
+ --on-ink: #fff6e0; --ink-hover: #4a3826; --shadow: #4a33182e; --select: #2b6f8f33;
--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; }
+ html, body { overflow-x: clip; }
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; }
+ ::selection { background: var(--select); }
+ a { color: var(--accent); }
+ a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
+ h1, h2 { text-wrap: balance; overflow-wrap: break-word; min-width: 0; } p { text-wrap: pretty; }
+ .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 40px; }
+ .cover { display: block; border-radius: 10px; }
+ .cover img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 14px 40px var(--shadow); }
.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; }
+ .back:hover { color: var(--ink); }
h1 { margin: 0 0 8px; font: 700 clamp(34px, 4.6vw, 56px)/1.05 var(--serif); }
- .lede { font-size: 20px; color: var(--soft); }
+ .lede { margin: 0; font-size: 20px; color: var(--soft); }
+ .action { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 24px 0 0; color: var(--soft); font-size: 16px; }
+ .watch { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 99px; background: var(--ink); color: var(--on-ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
+ .watch:hover { background: var(--ink-hover); }
+ .watch:active { transform: translateY(1px); }
+ .watch:focus-visible { border-radius: 99px; }
+ .watch svg { width: 11px; height: 13px; fill: currentColor; }
+ .seen { color: var(--accent); font-style: normal; }
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;
+ h2 { margin: 40px 0 16px; font: 700 32px/1.2 var(--serif); }
+ .episodes { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
+ .episodes a { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); align-items: center; gap: 0 28px; 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 a:active { transform: translateY(0); }
+ .episodes a:focus-visible { border-radius: 10px; }
.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); 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); }
- .credits a { color: var(--accent); }
- @media (max-width: 760px) { header { grid-template-columns: 1fr; padding-top: 28px; } .episodes { grid-template-columns: 1fr; } }
+ .episodes div { padding: 16px 24px 16px 0; }
+ .episodes small, .episodes b, .episodes span, .episodes .seen { display: block; }
+ .episodes small { color: var(--soft); font-size: 15px; }
+ .episodes b { margin: 2px 0 4px; font: 700 24px/1.25 var(--serif); text-wrap: balance; }
+ .episodes span { max-width: 60ch; color: var(--soft); font-size: 16px; line-height: 1.5; }
+ .episodes .seen { margin-top: 6px; font-size: 15px; }
+ .credits { margin-top: 64px; color: var(--soft); font-size: 15px; } .credits ul { max-width: 70ch; padding-left: 20px; }
+ @media (prefers-reduced-motion: reduce) { .episodes a, .watch { transition: none; } .episodes a:hover, .episodes a:focus-visible, .episodes a:active, .watch:active { transform: none; } }
+ @media (max-width: 760px) { .hero { grid-template-columns: minmax(0, 1fr); padding-top: 28px; gap: 24px; } .episodes a { grid-template-columns: minmax(0, 1fr); } .episodes div { padding: 12px 16px 16px; } }
</style>
</head>
<body>
-<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.">
+<header class="hero">
+ <a class="cover" href="ch01/" tabindex="-1"><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."></a>
<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>
+ <p class="action"><a class="watch" href="ch01/"><svg viewBox="0 0 11 13" aria-hidden="true"><path d="M0 0l11 6.5L0 13z"/></svg>Watch the film</a>
+ <span>1 minute</span> <em class="seen" id="seen" hidden>✓ Watched</em></p>
</div>
</header>
<main>
- <ul class="episodes" id="episodes"></ul>
+ <section id="list" hidden>
+ <h2>Episodes</h2>
+ <ol class="episodes" id="episodes"></ol>
+ </section>
<section class="credits">
<h2>Sources</h2>
<ul>
@@ -63,7 +84,7 @@
'use strict';
// One entry per finished episode, in order: its folder, title, a still (16:9) with alt text, and one line.
const EPISODES = [
- { ch: 'ch01', title: 'One source, many shapes', minutes: 1, still: 'img/cover.webp', alt: 'The paper tree holding five shapes.', line: 'A lion, a dragon, a leopard, a wild boar, running water: five shapes of one source, gathered on a tree.' },
+ { ch: 'ch01', title: 'One source, many shapes', minutes: 1, still: 'img/still-ch01.webp', alt: 'A red paper lion beside a circle holding a lesson’s graph, under the words A lesson.', line: 'A lion, a dragon, a leopard, a wild boar, running water: five shapes of one source, gathered on a tree.' },
{ ch: 'ch02', title: 'One source, many shapes, upright', minutes: 1, still: 'img/still-ch02.webp', alt: 'The upright cut: One source, many shapes, Papermorph above the paper tree.', line: 'The same film on a phone’s upright screen, for Shorts, Reels and TikTok.' },
];
// The player records finished episodes under the same key as here (engine progress(): lib/book.css --progress-key,
@@ -72,10 +93,13 @@ const key = getComputedStyle(document.documentElement).getPropertyValue('--progr
|| 'animebook:progress:' + new URL('.', location.href).pathname;
let done = [];
try { done = JSON.parse(localStorage.getItem(key) || '{}').done || []; } catch {}
+const seen = e => done.includes(+e.ch.slice(2));
const esc = s => String(s).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/"/g, '&quot;');
-document.getElementById('episodes').innerHTML = EPISODES.map((e, i) => `<li${done.includes(+e.ch.slice(2)) ? ' class="watched"' : ''}>
- <a href="${e.ch}/"><img src="${esc(e.still)}" alt="${esc(e.alt)}" loading="lazy">
- <small>Episode ${i + 1} · ${e.minutes} minute${e.minutes == 1 ? "" : "s"}</small><b>${esc(e.title)}</b><span>${esc(e.line)}</span></a></li>`).join('');
+if (EPISODES.length > 1) {
+ document.getElementById('episodes').innerHTML = EPISODES.map((e, i) => `<li><a href="${e.ch}/"><img src="${esc(e.still)}" alt="${esc(e.alt)}" loading="lazy">
+ <div><small>Episode ${i + 1}, ${e.minutes} minute${e.minutes == 1 ? '' : 's'}</small><b>${esc(e.title)}</b><span>${esc(e.line)}</span>${seen(e) ? '<em class="seen">✓ Watched</em>' : ''}</div></a></li>`).join('');
+ document.getElementById('list').hidden = false;
+} else if (EPISODES[0] && seen(EPISODES[0])) document.getElementById('seen').hidden = false;
</script>
</body>
</html>
diff --git a/site/proteus/lib/contents.css b/site/proteus/lib/contents.css
index 5b8be35..8c99714 100644
--- a/site/proteus/lib/contents.css
+++ b/site/proteus/lib/contents.css
@@ -13,6 +13,7 @@
}
* { box-sizing: border-box; }
html { scroll-padding-top: 90px; }
+html, body { overflow-x: clip; }
body { margin: 0; min-height: 100svh; background: var(--board); color: var(--chalk); font: 18px/1.5 var(--ui); }
/* Chalkboard: the same grain and vignette as the lesson stage. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
@@ -20,7 +21,7 @@ body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-even
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .92 0 0 0 0 .95 0 0 0 0 .9 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23g)'/%3E%3C/svg%3E"); }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--task); outline-offset: 3px; }
-.kicker { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--quiz); }
+.kicker { margin: -6px 0 24px; font-size: 18px; font-weight: 600; color: var(--quiz); } /* under the title, a subtitle */
/* ---------- cover ---------- */
#cover { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
@@ -30,16 +31,16 @@ a:focus-visible { outline: 3px solid var(--task); outline-offset: 3px; }
body:not(.refsview) #refpage, .refsview #cover, .refsview #contents { display: none; }
#cover > * { animation: rise .8s var(--ease) backwards; }
#cover .mascot { animation: none; margin-bottom: 26px; view-transition-name: guide; }
-#cover .kicker { animation-delay: .9s; }
#cover h1 { animation-delay: 1s; }
+#cover .kicker { animation-delay: 1.06s; }
#cover .lede { animation-delay: 1.12s; }
#cover .acts { animation-delay: 1.24s; }
#cover .meta { animation-delay: 1.36s; }
h1 { margin: 14px 0 18px; font: 500 clamp(44px, 8.4vw, 92px)/1.02 var(--book); letter-spacing: -.01em; view-transition-name: book; }
-h1 i { color: var(--task); font-style: italic; }
+h1 i, .home strong i { font-style: normal; } /* the whole title one face and one colour; <i> left in older covers */
.lede { max-width: 34em; margin: 0 0 34px; color: var(--dim); font-size: clamp(17px, 2.2vw, 20px); text-wrap: balance; }
.acts { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
-.btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 30px; border-radius: 999px; font-weight: 600; font-size: 19px; text-decoration: none;
+.btn { display: inline-flex; align-items: center; gap: 12px; padding: 12px 28px; border-radius: 999px; font-weight: 600; font-size: 19px; text-decoration: none;
transition: transform .25s var(--ease), background-color .25s, border-color .25s; }
.btn[hidden] { display: none; }
.btn:hover { transform: translateY(-2px); }
@@ -47,7 +48,7 @@ h1 i { color: var(--task); font-style: italic; }
.btn.quiet { border: 1.5px solid var(--edge); color: var(--chalk); }
.btn.quiet:hover { border-color: var(--dim); }
.btn svg { width: 15px; height: 15px; fill: currentColor; }
-.meta { margin: 30px 0 0; color: var(--dim); font-size: 15px; letter-spacing: .04em; } /* --faint read below 3:1 */
+.meta { margin: 30px 0 0; color: var(--dim); font-size: 15px; } /* --faint read below 3:1 */
/* Faint chalk notes around the edges of the board. */
.chalk { position: absolute; inset: 0; z-index: -1; pointer-events: none; animation: none !important; }
.chalk span { position: absolute; font: italic 400 clamp(22px, 3vw, 38px) var(--book); color: var(--chalk); opacity: 0; white-space: nowrap;
@@ -77,7 +78,6 @@ h1 i { color: var(--task); font-style: italic; }
.home { display: flex; align-items: center; gap: 12px; text-decoration: none; border-radius: 10px; }
.home .mascot { view-transition-name: guide; }
.home strong { font: 500 22px/1.1 var(--book); view-transition-name: book; }
-.home strong i { color: var(--task); }
.prog { margin-inline-start: auto; color: var(--dim); font-size: 15px; white-space: nowrap; }
.prog b { color: var(--good); font-weight: 600; }
main#contents { padding-bottom: 80px; }
diff --git a/site/proteus/lib/contents.js b/site/proteus/lib/contents.js
index cb2629d..b8aeb88 100644
--- a/site/proteus/lib/contents.js
+++ b/site/proteus/lib/contents.js
@@ -12,7 +12,7 @@ const Contents = (() => {
const TRANSLATIONS = {
en: {
open: 'Open the book', toCover: 'Back to the cover', resume: 'Continue · Chapter {n}', unit: 'Unit {n}', minutes: '{n} min',
- meta: '{chapters}{samples} · {units} · with sound', metaChapters: { one: '{n} chapter', other: '{n} chapters' },
+ meta: '{chapters}{samples}, {units}, with sound', metaChapters: { one: '{n} chapter', other: '{n} chapters' },
metaUnits: { one: '{n} unit', other: '{n} units' }, metaSamples: { one: ' + {n} sample', other: ' + {n} samples' }, samples: 'Sample chapters, another look',
chapterCount: { one: '{n} chapter', other: '{n} chapters' }, finished: '{done} of {n} finished',
doneMark: '✓ Finished · ', lastMark: ' · Last opened',
@@ -23,7 +23,7 @@ const Contents = (() => {
},
ru: {
open: 'Открыть книгу', toCover: 'К обложке', resume: 'Продолжить · Глава {n}', unit: 'Раздел {n}', minutes: '{n} мин',
- meta: '{chapters}{samples} · {units} · со звуком',
+ meta: '{chapters}{samples}, {units}, со звуком',
metaChapters: { one: '{n} глава', few: '{n} главы', many: '{n} глав', other: '{n} главы' },
metaUnits: { one: '{n} раздел', few: '{n} раздела', many: '{n} разделов', other: '{n} раздела' },
metaSamples: { one: ' + {n} пробная', few: ' + {n} пробные', many: ' + {n} пробных', other: ' + {n} пробной' },
@@ -37,7 +37,7 @@ const Contents = (() => {
},
zh: {
open: '打开这本书', toCover: '返回封面', resume: '继续 · 第 {n} 章', unit: '第 {n} 单元', minutes: '{n} 分钟',
- meta: '{chapters}{samples} · {units} · 有配音', metaChapters: '{n} 章', metaUnits: '{n} 个单元',
+ meta: '{chapters}{samples},{units},有配音', metaChapters: '{n} 章', metaUnits: '{n} 个单元',
metaSamples: ' + {n} 个示例章', samples: '示例章,另一种风格',
chapterCount: '{n} 章', finished: '已完成 {done} / {n}',
doneMark: '✓ 已完成 · ', lastMark: ' · 上次打开',
@@ -47,7 +47,7 @@ const Contents = (() => {
},
ja: {
open: '本を開く', toCover: '表紙に戻る', resume: '続きから · 第{n}章', unit: '単元 {n}', minutes: '{n}分',
- meta: '{chapters}{samples} · {units} · 音声つき', metaChapters: '{n}章', metaUnits: '{n}単元',
+ meta: '{chapters}{samples}、{units}、音声つき', metaChapters: '{n}章', metaUnits: '{n}単元',
metaSamples: ' + サンプル{n}章', samples: 'サンプル章(別のスタイル)',
chapterCount: '{n}章', finished: '{n}章中 {done}章 完了',
doneMark: '✓ 完了 · ', lastMark: ' · 最後に開いた章',
@@ -59,7 +59,7 @@ const Contents = (() => {
ar: {
open: 'افتح الكتاب', toCover: 'العودة إلى الغلاف', resume: 'تابع · الفصل {n}', unit: 'الوحدة {n}',
minutes: { one: 'دقيقة', two: 'دقيقتان', few: '{n} دقائق', many: '{n} دقيقة', other: '{n} دقيقة' },
- meta: '{chapters}{samples} · {units} · مع الصوت',
+ meta: '{chapters}{samples}، {units}، مع الصوت',
metaChapters: { one: 'فصل واحد', two: 'فصلان', few: '{n} فصول', many: '{n} فصلاً', other: '{n} فصل' },
metaUnits: { one: 'وحدة واحدة', two: 'وحدتان', few: '{n} وحدات', many: '{n} وحدة', other: '{n} وحدة' },
metaSamples: { one: ' + فصل تجريبي واحد', two: ' + فصلان تجريبيان', few: ' + {n} فصول تجريبية', many: ' + {n} فصلاً تجريبياً', other: ' + {n} فصل تجريبي' },
diff --git a/site/proteus/lib/units.css b/site/proteus/lib/units.css
index 014ce88..c5ff6f0 100644
--- a/site/proteus/lib/units.css
+++ b/site/proteus/lib/units.css
@@ -60,7 +60,7 @@
@keyframes breathe { from { transform: scaleY(1); } to { transform: scaleY(.35); } }
/* The label and the title share a line when they fit; a long title wraps below the label instead of running off. */
.unit h2 .title { min-width: 0; text-wrap: balance; }
-.unit h2 .label { font: 600 14px var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--c); white-space: nowrap; }
+.unit h2 .label { font: 600 16px var(--ui); color: var(--c); white-space: nowrap; }
/* Keep the sketches cheap: each is its own layer, so its loop repaints only itself, and loops pause while their unit is
off screen or under the sticky bar (units.js toggles .live), so the bar's blur is not redrawn every frame. */
.unit-art { will-change: transform; contain: layout style; }
diff --git a/site/science/index.html b/site/science/index.html
index 1cadf9c..8932daa 100644
--- a/site/science/index.html
+++ b/site/science/index.html
@@ -31,12 +31,12 @@
<span style="left:5%;bottom:20%;--d:2.2">+2 m/s → −2 m/s</span>
<span style="right:6%;bottom:15%;--d:2.5">5 m/s²</span>
</div>
- <svg class="mascot draw" id="guide" width="210" height="147"></svg>
- <p class="kicker">An animated science book · physics</p>
- <h1>Elementary <i>Physics</i></h1>
+ <svg class="mascot draw" id="guide" width="210" height="147" aria-hidden="true"></svg>
+ <h1>Elementary Physics</h1>
+ <p class="kicker">An animated science book: physics</p>
<p class="lede">The physics chapters of a middle-school science notebook, as short narrated animations with quick checks: nine chapters from motion to electrical energy, and two samples.</p>
<div class="acts">
- <a class="btn go" href="#contents" data-t="open">Open the book<svg viewBox="0 0 16 16"><path d="M6 2.5 11.5 8 6 13.5 4.6 12.1 8.7 8 4.6 3.9z"/></svg></a>
+ <a class="btn go" href="#contents" data-t="open">Open the book<svg viewBox="0 0 16 16" aria-hidden="true"><path d="M6 2.5 11.5 8 6 13.5 4.6 12.1 8.7 8 4.6 3.9z"/></svg></a>
<a class="btn quiet" id="resume" hidden></a>
</div>
<p class="meta" id="meta"></p>
@@ -45,7 +45,7 @@
<main id="contents">
<header class="top">
- <a class="home" href="#book" aria-label="Back to the cover" data-t-label="toCover"><svg class="mascot" id="guideSmall" width="52" height="36"></svg><strong>Elementary <i>Physics</i></strong></a>
+ <a class="home" href="#book" aria-label="Back to the cover" data-t-label="toCover"><svg class="mascot" id="guideSmall" width="52" height="36" aria-hidden="true"></svg><strong>Elementary Physics</strong></a>
<span class="prog" id="prog"></span>
<a class="back-shelf contents-back" href="../">← Bookshelf</a>
</header>
diff --git a/site/science/lib/contents.css b/site/science/lib/contents.css
index 5b8be35..8c99714 100644
--- a/site/science/lib/contents.css
+++ b/site/science/lib/contents.css
@@ -13,6 +13,7 @@
}
* { box-sizing: border-box; }
html { scroll-padding-top: 90px; }
+html, body { overflow-x: clip; }
body { margin: 0; min-height: 100svh; background: var(--board); color: var(--chalk); font: 18px/1.5 var(--ui); }
/* Chalkboard: the same grain and vignette as the lesson stage. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
@@ -20,7 +21,7 @@ body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-even
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .92 0 0 0 0 .95 0 0 0 0 .9 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23g)'/%3E%3C/svg%3E"); }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--task); outline-offset: 3px; }
-.kicker { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--quiz); }
+.kicker { margin: -6px 0 24px; font-size: 18px; font-weight: 600; color: var(--quiz); } /* under the title, a subtitle */
/* ---------- cover ---------- */
#cover { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
@@ -30,16 +31,16 @@ a:focus-visible { outline: 3px solid var(--task); outline-offset: 3px; }
body:not(.refsview) #refpage, .refsview #cover, .refsview #contents { display: none; }
#cover > * { animation: rise .8s var(--ease) backwards; }
#cover .mascot { animation: none; margin-bottom: 26px; view-transition-name: guide; }
-#cover .kicker { animation-delay: .9s; }
#cover h1 { animation-delay: 1s; }
+#cover .kicker { animation-delay: 1.06s; }
#cover .lede { animation-delay: 1.12s; }
#cover .acts { animation-delay: 1.24s; }
#cover .meta { animation-delay: 1.36s; }
h1 { margin: 14px 0 18px; font: 500 clamp(44px, 8.4vw, 92px)/1.02 var(--book); letter-spacing: -.01em; view-transition-name: book; }
-h1 i { color: var(--task); font-style: italic; }
+h1 i, .home strong i { font-style: normal; } /* the whole title one face and one colour; <i> left in older covers */
.lede { max-width: 34em; margin: 0 0 34px; color: var(--dim); font-size: clamp(17px, 2.2vw, 20px); text-wrap: balance; }
.acts { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
-.btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 30px; border-radius: 999px; font-weight: 600; font-size: 19px; text-decoration: none;
+.btn { display: inline-flex; align-items: center; gap: 12px; padding: 12px 28px; border-radius: 999px; font-weight: 600; font-size: 19px; text-decoration: none;
transition: transform .25s var(--ease), background-color .25s, border-color .25s; }
.btn[hidden] { display: none; }
.btn:hover { transform: translateY(-2px); }
@@ -47,7 +48,7 @@ h1 i { color: var(--task); font-style: italic; }
.btn.quiet { border: 1.5px solid var(--edge); color: var(--chalk); }
.btn.quiet:hover { border-color: var(--dim); }
.btn svg { width: 15px; height: 15px; fill: currentColor; }
-.meta { margin: 30px 0 0; color: var(--dim); font-size: 15px; letter-spacing: .04em; } /* --faint read below 3:1 */
+.meta { margin: 30px 0 0; color: var(--dim); font-size: 15px; } /* --faint read below 3:1 */
/* Faint chalk notes around the edges of the board. */
.chalk { position: absolute; inset: 0; z-index: -1; pointer-events: none; animation: none !important; }
.chalk span { position: absolute; font: italic 400 clamp(22px, 3vw, 38px) var(--book); color: var(--chalk); opacity: 0; white-space: nowrap;
@@ -77,7 +78,6 @@ h1 i { color: var(--task); font-style: italic; }
.home { display: flex; align-items: center; gap: 12px; text-decoration: none; border-radius: 10px; }
.home .mascot { view-transition-name: guide; }
.home strong { font: 500 22px/1.1 var(--book); view-transition-name: book; }
-.home strong i { color: var(--task); }
.prog { margin-inline-start: auto; color: var(--dim); font-size: 15px; white-space: nowrap; }
.prog b { color: var(--good); font-weight: 600; }
main#contents { padding-bottom: 80px; }
diff --git a/site/science/lib/contents.js b/site/science/lib/contents.js
index cb2629d..b8aeb88 100644
--- a/site/science/lib/contents.js
+++ b/site/science/lib/contents.js
@@ -12,7 +12,7 @@ const Contents = (() => {
const TRANSLATIONS = {
en: {
open: 'Open the book', toCover: 'Back to the cover', resume: 'Continue · Chapter {n}', unit: 'Unit {n}', minutes: '{n} min',
- meta: '{chapters}{samples} · {units} · with sound', metaChapters: { one: '{n} chapter', other: '{n} chapters' },
+ meta: '{chapters}{samples}, {units}, with sound', metaChapters: { one: '{n} chapter', other: '{n} chapters' },
metaUnits: { one: '{n} unit', other: '{n} units' }, metaSamples: { one: ' + {n} sample', other: ' + {n} samples' }, samples: 'Sample chapters, another look',
chapterCount: { one: '{n} chapter', other: '{n} chapters' }, finished: '{done} of {n} finished',
doneMark: '✓ Finished · ', lastMark: ' · Last opened',
@@ -23,7 +23,7 @@ const Contents = (() => {
},
ru: {
open: 'Открыть книгу', toCover: 'К обложке', resume: 'Продолжить · Глава {n}', unit: 'Раздел {n}', minutes: '{n} мин',
- meta: '{chapters}{samples} · {units} · со звуком',
+ meta: '{chapters}{samples}, {units}, со звуком',
metaChapters: { one: '{n} глава', few: '{n} главы', many: '{n} глав', other: '{n} главы' },
metaUnits: { one: '{n} раздел', few: '{n} раздела', many: '{n} разделов', other: '{n} раздела' },
metaSamples: { one: ' + {n} пробная', few: ' + {n} пробные', many: ' + {n} пробных', other: ' + {n} пробной' },
@@ -37,7 +37,7 @@ const Contents = (() => {
},
zh: {
open: '打开这本书', toCover: '返回封面', resume: '继续 · 第 {n} 章', unit: '第 {n} 单元', minutes: '{n} 分钟',
- meta: '{chapters}{samples} · {units} · 有配音', metaChapters: '{n} 章', metaUnits: '{n} 个单元',
+ meta: '{chapters}{samples},{units},有配音', metaChapters: '{n} 章', metaUnits: '{n} 个单元',
metaSamples: ' + {n} 个示例章', samples: '示例章,另一种风格',
chapterCount: '{n} 章', finished: '已完成 {done} / {n}',
doneMark: '✓ 已完成 · ', lastMark: ' · 上次打开',
@@ -47,7 +47,7 @@ const Contents = (() => {
},
ja: {
open: '本を開く', toCover: '表紙に戻る', resume: '続きから · 第{n}章', unit: '単元 {n}', minutes: '{n}分',
- meta: '{chapters}{samples} · {units} · 音声つき', metaChapters: '{n}章', metaUnits: '{n}単元',
+ meta: '{chapters}{samples}、{units}、音声つき', metaChapters: '{n}章', metaUnits: '{n}単元',
metaSamples: ' + サンプル{n}章', samples: 'サンプル章(別のスタイル)',
chapterCount: '{n}章', finished: '{n}章中 {done}章 完了',
doneMark: '✓ 完了 · ', lastMark: ' · 最後に開いた章',
@@ -59,7 +59,7 @@ const Contents = (() => {
ar: {
open: 'افتح الكتاب', toCover: 'العودة إلى الغلاف', resume: 'تابع · الفصل {n}', unit: 'الوحدة {n}',
minutes: { one: 'دقيقة', two: 'دقيقتان', few: '{n} دقائق', many: '{n} دقيقة', other: '{n} دقيقة' },
- meta: '{chapters}{samples} · {units} · مع الصوت',
+ meta: '{chapters}{samples}، {units}، مع الصوت',
metaChapters: { one: 'فصل واحد', two: 'فصلان', few: '{n} فصول', many: '{n} فصلاً', other: '{n} فصل' },
metaUnits: { one: 'وحدة واحدة', two: 'وحدتان', few: '{n} وحدات', many: '{n} وحدة', other: '{n} وحدة' },
metaSamples: { one: ' + فصل تجريبي واحد', two: ' + فصلان تجريبيان', few: ' + {n} فصول تجريبية', many: ' + {n} فصلاً تجريبياً', other: ' + {n} فصل تجريبي' },
diff --git a/site/science/lib/units.css b/site/science/lib/units.css
index 014ce88..c5ff6f0 100644
--- a/site/science/lib/units.css
+++ b/site/science/lib/units.css
@@ -60,7 +60,7 @@
@keyframes breathe { from { transform: scaleY(1); } to { transform: scaleY(.35); } }
/* The label and the title share a line when they fit; a long title wraps below the label instead of running off. */
.unit h2 .title { min-width: 0; text-wrap: balance; }
-.unit h2 .label { font: 600 14px var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--c); white-space: nowrap; }
+.unit h2 .label { font: 600 16px var(--ui); color: var(--c); white-space: nowrap; }
/* Keep the sketches cheap: each is its own layer, so its loop repaints only itself, and loops pause while their unit is
off screen or under the sticky bar (units.js toggles .live), so the bar's blur is not redrawn every frame. */
.unit-art { will-change: transform; contain: layout style; }
diff --git a/site/shooting-an-elephant/index.html b/site/shooting-an-elephant/index.html
index 1960abd..5675c93 100644
--- a/site/shooting-an-elephant/index.html
+++ b/site/shooting-an-elephant/index.html
@@ -7,55 +7,57 @@
<meta name="description" content="A short interactive documentary of George Orwell’s 1936 essay, in his own words: the reader holds the rifle.">
<link rel="stylesheet" href="lib/fonts.css">
<link rel="stylesheet" href="lib/book.css"><!-- only for --progress-key, if the book sets one -->
-<!-- A picture book's cover and episode list. A starting point, not a design: give it the book's own look. -->
<style>
- :root { --ink: #f3ede0; --soft: #bccdb9; --paper: #1d3527; --card: #172b20; --line: #355443; --accent: #c0392b;
+ :root { --ink: #f3ede0; --soft: #bccdb9; --paper: #1d3527; --card: #172b20; --line: #355443; --accent: #c0392b; --accent-text: #ec7b6b;
+ --on-ink: #1d3527; --ink-hover: #fffaf0; --shadow: #0006; --select: #f3ede055;
--ui: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif; --serif: "Iowan Old Style", Palatino, Georgia, serif; color-scheme: dark; }
* { box-sizing: border-box; }
+ html, body { overflow-x: clip; }
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: 1100px; margin: 0 auto; padding: 20px 24px 24px; }
- header img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 14px 40px #0006; }
+ ::selection { background: var(--select); }
+ a { color: var(--accent); }
+ a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
+ h1, h2 { text-wrap: balance; overflow-wrap: break-word; min-width: 0; } p { text-wrap: pretty; }
+ .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 40px; }
+ .cover { display: block; border-radius: 10px; }
+ .cover img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 14px 40px var(--shadow); }
+ .back { display: inline-block; margin: -10px 0 8px; padding: 10px 0; font-size: 15px; color: var(--soft); text-decoration: none; }
+ .back:hover { color: var(--ink); }
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: 1100px; margin: 0 auto; padding: 8px 24px 40px; }
- .back { max-width: 1100px; margin: 0 auto; padding: 14px 24px 0; font: 600 13px/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; }
- .back a { display: inline-block; padding: 10px 0; color: var(--soft); text-decoration: none; }
- .back a:hover { color: var(--ink); }
- a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
- .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 span { margin: 0 16px 16px; color: var(--soft); font-size: 15px; line-height: 1.5; }
- .watched small::after { content: " · ✓ watched"; color: #ec7b6b; }
- ::selection { background: var(--ink); color: var(--paper); }
- @media (max-width: 760px) { header { grid-template-columns: 1fr; padding-top: 8px; } .episodes { grid-template-columns: 1fr; } }
- .credits { max-width: 1100px; margin: 40px auto 60px; padding: 0 24px; color: var(--soft); font-size: 14px; line-height: 1.6; }
- .credits h2 { font: 600 20px/1.3 var(--serif); color: inherit; } .credits h3 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin: 18px 0 6px; }
+ .lede { margin: 0; font-size: 20px; color: var(--soft); }
+ .action { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 24px 0 0; color: var(--soft); font-size: 16px; }
+ .watch { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 99px; background: var(--ink); color: var(--on-ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
+ .watch:hover { background: var(--ink-hover); }
+ .watch:active { transform: translateY(1px); }
+ .watch:focus-visible { border-radius: 99px; }
+ .watch svg { width: 11px; height: 13px; fill: currentColor; }
+ .seen { color: var(--accent-text); font-style: normal; }
+ main { max-width: 1180px; margin: 0 auto; padding: 8px 24px 80px; }
+ h2 { margin: 40px 0 16px; font: 700 32px/1.2 var(--serif); }
+ @media (prefers-reduced-motion: reduce) { .watch { transition: none; } .watch:active { transform: none; } }
+ @media (max-width: 760px) { .hero { grid-template-columns: minmax(0, 1fr); padding-top: 28px; gap: 24px; } }
+ .credits { max-width: 1180px; margin: 0 auto; padding: 0 24px 60px; color: var(--soft); font-size: 15px; line-height: 1.6; }
+ .credits > p { max-width: 70ch; } .credits h3 { margin: 24px 0 6px; font: 600 16px/1.3 var(--ui); color: var(--ink); }
.credits ul { margin: 0; padding-left: 18px; columns: 2 340px; } .credits a { color: inherit; }
</style>
</head>
<body>
-<nav class="back"><a href="../">← Bookshelf</a></nav>
-<header>
- <img src="img/cover.webp" width="1400" height="788" alt="An elephant grazing in a flooded paddy field, in black and white.">
+<header class="hero">
+ <a class="cover" href="ch01/" tabindex="-1"><img src="img/cover.webp" width="1400" height="788" alt="An elephant grazing in a flooded paddy field, in black and white."></a>
<div>
+ <a class="back" href="../">← Bookshelf</a>
<h1>Shooting an Elephant</h1>
<p class="lede">George Orwell’s 1936 essay, told in his own words: a young police officer in Burma, an elephant in a paddy field, and a crowd that wants a shot. This time the reader holds the rifle.</p>
+ <p class="action"><a class="watch" href="ch01/"><svg viewBox="0 0 11 13" aria-hidden="true"><path d="M0 0l11 6.5L0 13z"/></svg>Watch the film</a>
+ <span>9 minutes</span> <em class="seen" id="seen" hidden>✓ Watched</em></p>
</div>
</header>
-<main>
- <ul class="episodes" id="episodes"></ul>
-</main>
<section class="credits">
<h2>Sources and credits</h2>
<p>The words are George Orwell’s, from “Shooting an Elephant” (<i>New Writing</i>, 1936), cut but not rewritten, read by an ElevenLabs v4 voice (“daniel”); the crowd’s laughter is six more ElevenLabs voices. Archive pictures, music and two sound recordings are public-domain or CC0 works from Wikimedia Commons, listed below. Where no photograph exists, the scenes are reconstructions made with an image model (gpt-image via OpenRouter): Orwell as the young officer, the orderly, the football match, the rampage, the body, the double rifle, the club, the painted town of Moulmein, and the grazing elephant and every stage of its shooting, including the cover; the novice who turns and grins is an altered archive photograph. The silhouettes, maps and theatre are drawn in code, as are the other sound effects. Type: Oswald and EB Garamond (SIL Open Font License, <code>lib/fonts/</code>).</p>
- <h3>Pictures</h3><ul><li><a href="https://commons.wikimedia.org/wiki/File%3AOrwellBurmaPassport.jpg">OrwellBurmaPassport.jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3ABurmese_Funeral_procession_1900.jpg">Burmese Funeral procession 1900.jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3ABurmese_monks_and_novices.jpg">Burmese monks and novices.jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3ABurma_showing_British_acquisitions_%281826-1890%29.jpg">Burma showing British acquisitions (1826-1890).jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3ABurma_Military_Police_1898.jpg">Burma Military Police 1898.jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3ARangoon_Government_House.jpg">Rangoon Government House.jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3APrivate_audience-room_in_the_Palace_at_Mandalay%2C_used_as_the_British_Head-quarters_mess_ILN-1886-0320-0024.jpg">Private audience-room in the Palace at Mandalay, used as the British Head-quarters mess ILN-1886-0320-0024.jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AA_Burmese_Lady%2C_photograph_by_Philip_Adolphe_Klier.jpg">A Burmese Lady, photograph by Philip Adolphe Klier.jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AImperial_Federation%2C_Map_of_the_World_Showing_the_Extent_of_the_British_Empire_in_1886_%28levelled%29.jpg">Imperial Federation, Map of the World Showing the Extent of the British Empire in 1886 (levelled).jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3ACandlestick_Telephone_with_Note_Pad.png">Candlestick Telephone with Note Pad.png</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AWinchester_1873_Rifle.jpg">Winchester 1873 Rifle.jpg</a> · CC0</li><li><a href="https://commons.wikimedia.org/wiki/File%3AElephant%2C_India%2C_ca._1920_%28IMP-CSCNWW33-OS16-17%29.jpg">Elephant, India, ca. 1920 (IMP-CSCNWW33-OS16-17).jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AA_coolie_in_Calcutta_in_the_1920s.jpg">A coolie in Calcutta in the 1920s.jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AWhite_Horse_Final1923.jpg">White Horse Final1923.jpg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AFlickr_-_%E2%80%A6trialsanderrors_-_Kellar%2C_Levitation%2C_magician_poster%2C_ca._1894.jpg">Flickr - …trialsanderrors - Kellar, Levitation, magician poster, ca. 1894.jpg</a> · Public domain</li></ul>
- <h3>Music</h3><ul><li><a href="https://commons.wikimedia.org/wiki/File%3AThe_Crown_of_India_Suite%2C_2._Menuetto_-_U.S._Marine_Band.ogg">The Crown of India Suite, 2. Menuetto - U.S. Marine Band.ogg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AMusopen_-_In_the_Hall_Of_The_Mountain_King.ogg">Musopen - In the Hall Of The Mountain King.ogg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AGrieg_-_Peer_Gynt_Suite_No._1%2C_Op._46_-_II._The_Death_of_Aase_%28Musopen_Symphony%29.flac">Grieg - Peer Gynt Suite No. 1, Op. 46 - II. The Death of Aase (Musopen Symphony).flac</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AGrieg_-_Peer_Gynt_Suite_No._1%2C_Op._46_-_I._Morning_Mood_%28Musopen_Symphony%29.flac">Grieg - Peer Gynt Suite No. 1, Op. 46 - I. Morning Mood (Musopen Symphony).flac</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3ASatie_Gymnopedie_No_1_performed_by_Michael_Laucke.flac">Satie Gymnopedie No 1 performed by Michael Laucke.flac</a> · Public domain</li></ul>
- <h3>Sound</h3><ul><li><a href="https://commons.wikimedia.org/wiki/File%3AGunshots_8.ogg">Gunshots 8.ogg</a> · Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AElephant_voice_-_trumpeting.ogg">Elephant voice - trumpeting.ogg</a> · CC0</li></ul>
+ <h3>Pictures</h3><ul><li><a href="https://commons.wikimedia.org/wiki/File%3AOrwellBurmaPassport.jpg">OrwellBurmaPassport.jpg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3ABurmese_Funeral_procession_1900.jpg">Burmese Funeral procession 1900.jpg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3ABurmese_monks_and_novices.jpg">Burmese monks and novices.jpg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3ABurma_showing_British_acquisitions_%281826-1890%29.jpg">Burma showing British acquisitions (1826-1890).jpg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3ABurma_Military_Police_1898.jpg">Burma Military Police 1898.jpg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3ARangoon_Government_House.jpg">Rangoon Government House.jpg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3APrivate_audience-room_in_the_Palace_at_Mandalay%2C_used_as_the_British_Head-quarters_mess_ILN-1886-0320-0024.jpg">Private audience-room in the Palace at Mandalay, used as the British Head-quarters mess ILN-1886-0320-0024.jpg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AA_Burmese_Lady%2C_photograph_by_Philip_Adolphe_Klier.jpg">A Burmese Lady, photograph by Philip Adolphe Klier.jpg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AImperial_Federation%2C_Map_of_the_World_Showing_the_Extent_of_the_British_Empire_in_1886_%28levelled%29.jpg">Imperial Federation, Map of the World Showing the Extent of the British Empire in 1886 (levelled).jpg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3ACandlestick_Telephone_with_Note_Pad.png">Candlestick Telephone with Note Pad.png</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AWinchester_1873_Rifle.jpg">Winchester 1873 Rifle.jpg</a>, CC0</li><li><a href="https://commons.wikimedia.org/wiki/File%3AElephant%2C_India%2C_ca._1920_%28IMP-CSCNWW33-OS16-17%29.jpg">Elephant, India, ca. 1920 (IMP-CSCNWW33-OS16-17).jpg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AA_coolie_in_Calcutta_in_the_1920s.jpg">A coolie in Calcutta in the 1920s.jpg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AWhite_Horse_Final1923.jpg">White Horse Final1923.jpg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AFlickr_-_%E2%80%A6trialsanderrors_-_Kellar%2C_Levitation%2C_magician_poster%2C_ca._1894.jpg">Flickr - …trialsanderrors - Kellar, Levitation, magician poster, ca. 1894.jpg</a>, Public domain</li></ul>
+ <h3>Music</h3><ul><li><a href="https://commons.wikimedia.org/wiki/File%3AThe_Crown_of_India_Suite%2C_2._Menuetto_-_U.S._Marine_Band.ogg">The Crown of India Suite, 2. Menuetto - U.S. Marine Band.ogg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AMusopen_-_In_the_Hall_Of_The_Mountain_King.ogg">Musopen - In the Hall Of The Mountain King.ogg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AGrieg_-_Peer_Gynt_Suite_No._1%2C_Op._46_-_II._The_Death_of_Aase_%28Musopen_Symphony%29.flac">Grieg - Peer Gynt Suite No. 1, Op. 46 - II. The Death of Aase (Musopen Symphony).flac</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AGrieg_-_Peer_Gynt_Suite_No._1%2C_Op._46_-_I._Morning_Mood_%28Musopen_Symphony%29.flac">Grieg - Peer Gynt Suite No. 1, Op. 46 - I. Morning Mood (Musopen Symphony).flac</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3ASatie_Gymnopedie_No_1_performed_by_Michael_Laucke.flac">Satie Gymnopedie No 1 performed by Michael Laucke.flac</a>, Public domain</li></ul>
+ <h3>Sound</h3><ul><li><a href="https://commons.wikimedia.org/wiki/File%3AGunshots_8.ogg">Gunshots 8.ogg</a>, Public domain</li><li><a href="https://commons.wikimedia.org/wiki/File%3AElephant_voice_-_trumpeting.ogg">Elephant voice - trumpeting.ogg</a>, CC0</li></ul>
</section>
<script>
@@ -70,10 +72,7 @@ const key = getComputedStyle(document.documentElement).getPropertyValue('--progr
|| 'animebook:progress:' + new URL('.', location.href).pathname;
let done = [];
try { done = JSON.parse(localStorage.getItem(key) || '{}').done || []; } catch {}
-const esc = s => String(s).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/"/g, '&quot;');
-document.getElementById('episodes').innerHTML = EPISODES.map((e, i) => `<li${done.includes(+e.ch.slice(2)) ? ' class="watched"' : ''}>
- <a href="${e.ch}/"><img src="${esc(e.still)}" alt="${esc(e.alt)}" loading="lazy">
- <small>Episode ${i + 1} · ${e.minutes} minute${e.minutes == 1 ? "" : "s"}</small><b>${esc(e.title)}</b><span>${esc(e.line)}</span></a></li>`).join('');
+if (EPISODES.some(e => done.includes(+e.ch.slice(2)))) document.getElementById('seen').hidden = false;
</script>
</body>
</html>
diff --git a/site/shooting-an-elephant/lib/contents.css b/site/shooting-an-elephant/lib/contents.css
index 5b8be35..8c99714 100644
--- a/site/shooting-an-elephant/lib/contents.css
+++ b/site/shooting-an-elephant/lib/contents.css
@@ -13,6 +13,7 @@
}
* { box-sizing: border-box; }
html { scroll-padding-top: 90px; }
+html, body { overflow-x: clip; }
body { margin: 0; min-height: 100svh; background: var(--board); color: var(--chalk); font: 18px/1.5 var(--ui); }
/* Chalkboard: the same grain and vignette as the lesson stage. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
@@ -20,7 +21,7 @@ body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-even
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .92 0 0 0 0 .95 0 0 0 0 .9 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23g)'/%3E%3C/svg%3E"); }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--task); outline-offset: 3px; }
-.kicker { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--quiz); }
+.kicker { margin: -6px 0 24px; font-size: 18px; font-weight: 600; color: var(--quiz); } /* under the title, a subtitle */
/* ---------- cover ---------- */
#cover { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
@@ -30,16 +31,16 @@ a:focus-visible { outline: 3px solid var(--task); outline-offset: 3px; }
body:not(.refsview) #refpage, .refsview #cover, .refsview #contents { display: none; }
#cover > * { animation: rise .8s var(--ease) backwards; }
#cover .mascot { animation: none; margin-bottom: 26px; view-transition-name: guide; }
-#cover .kicker { animation-delay: .9s; }
#cover h1 { animation-delay: 1s; }
+#cover .kicker { animation-delay: 1.06s; }
#cover .lede { animation-delay: 1.12s; }
#cover .acts { animation-delay: 1.24s; }
#cover .meta { animation-delay: 1.36s; }
h1 { margin: 14px 0 18px; font: 500 clamp(44px, 8.4vw, 92px)/1.02 var(--book); letter-spacing: -.01em; view-transition-name: book; }
-h1 i { color: var(--task); font-style: italic; }
+h1 i, .home strong i { font-style: normal; } /* the whole title one face and one colour; <i> left in older covers */
.lede { max-width: 34em; margin: 0 0 34px; color: var(--dim); font-size: clamp(17px, 2.2vw, 20px); text-wrap: balance; }
.acts { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
-.btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 30px; border-radius: 999px; font-weight: 600; font-size: 19px; text-decoration: none;
+.btn { display: inline-flex; align-items: center; gap: 12px; padding: 12px 28px; border-radius: 999px; font-weight: 600; font-size: 19px; text-decoration: none;
transition: transform .25s var(--ease), background-color .25s, border-color .25s; }
.btn[hidden] { display: none; }
.btn:hover { transform: translateY(-2px); }
@@ -47,7 +48,7 @@ h1 i { color: var(--task); font-style: italic; }
.btn.quiet { border: 1.5px solid var(--edge); color: var(--chalk); }
.btn.quiet:hover { border-color: var(--dim); }
.btn svg { width: 15px; height: 15px; fill: currentColor; }
-.meta { margin: 30px 0 0; color: var(--dim); font-size: 15px; letter-spacing: .04em; } /* --faint read below 3:1 */
+.meta { margin: 30px 0 0; color: var(--dim); font-size: 15px; } /* --faint read below 3:1 */
/* Faint chalk notes around the edges of the board. */
.chalk { position: absolute; inset: 0; z-index: -1; pointer-events: none; animation: none !important; }
.chalk span { position: absolute; font: italic 400 clamp(22px, 3vw, 38px) var(--book); color: var(--chalk); opacity: 0; white-space: nowrap;
@@ -77,7 +78,6 @@ h1 i { color: var(--task); font-style: italic; }
.home { display: flex; align-items: center; gap: 12px; text-decoration: none; border-radius: 10px; }
.home .mascot { view-transition-name: guide; }
.home strong { font: 500 22px/1.1 var(--book); view-transition-name: book; }
-.home strong i { color: var(--task); }
.prog { margin-inline-start: auto; color: var(--dim); font-size: 15px; white-space: nowrap; }
.prog b { color: var(--good); font-weight: 600; }
main#contents { padding-bottom: 80px; }
diff --git a/site/shooting-an-elephant/lib/contents.js b/site/shooting-an-elephant/lib/contents.js
index cb2629d..b8aeb88 100644
--- a/site/shooting-an-elephant/lib/contents.js
+++ b/site/shooting-an-elephant/lib/contents.js
@@ -12,7 +12,7 @@ const Contents = (() => {
const TRANSLATIONS = {
en: {
open: 'Open the book', toCover: 'Back to the cover', resume: 'Continue · Chapter {n}', unit: 'Unit {n}', minutes: '{n} min',
- meta: '{chapters}{samples} · {units} · with sound', metaChapters: { one: '{n} chapter', other: '{n} chapters' },
+ meta: '{chapters}{samples}, {units}, with sound', metaChapters: { one: '{n} chapter', other: '{n} chapters' },
metaUnits: { one: '{n} unit', other: '{n} units' }, metaSamples: { one: ' + {n} sample', other: ' + {n} samples' }, samples: 'Sample chapters, another look',
chapterCount: { one: '{n} chapter', other: '{n} chapters' }, finished: '{done} of {n} finished',
doneMark: '✓ Finished · ', lastMark: ' · Last opened',
@@ -23,7 +23,7 @@ const Contents = (() => {
},
ru: {
open: 'Открыть книгу', toCover: 'К обложке', resume: 'Продолжить · Глава {n}', unit: 'Раздел {n}', minutes: '{n} мин',
- meta: '{chapters}{samples} · {units} · со звуком',
+ meta: '{chapters}{samples}, {units}, со звуком',
metaChapters: { one: '{n} глава', few: '{n} главы', many: '{n} глав', other: '{n} главы' },
metaUnits: { one: '{n} раздел', few: '{n} раздела', many: '{n} разделов', other: '{n} раздела' },
metaSamples: { one: ' + {n} пробная', few: ' + {n} пробные', many: ' + {n} пробных', other: ' + {n} пробной' },
@@ -37,7 +37,7 @@ const Contents = (() => {
},
zh: {
open: '打开这本书', toCover: '返回封面', resume: '继续 · 第 {n} 章', unit: '第 {n} 单元', minutes: '{n} 分钟',
- meta: '{chapters}{samples} · {units} · 有配音', metaChapters: '{n} 章', metaUnits: '{n} 个单元',
+ meta: '{chapters}{samples},{units},有配音', metaChapters: '{n} 章', metaUnits: '{n} 个单元',
metaSamples: ' + {n} 个示例章', samples: '示例章,另一种风格',
chapterCount: '{n} 章', finished: '已完成 {done} / {n}',
doneMark: '✓ 已完成 · ', lastMark: ' · 上次打开',
@@ -47,7 +47,7 @@ const Contents = (() => {
},
ja: {
open: '本を開く', toCover: '表紙に戻る', resume: '続きから · 第{n}章', unit: '単元 {n}', minutes: '{n}分',
- meta: '{chapters}{samples} · {units} · 音声つき', metaChapters: '{n}章', metaUnits: '{n}単元',
+ meta: '{chapters}{samples}、{units}、音声つき', metaChapters: '{n}章', metaUnits: '{n}単元',
metaSamples: ' + サンプル{n}章', samples: 'サンプル章(別のスタイル)',
chapterCount: '{n}章', finished: '{n}章中 {done}章 完了',
doneMark: '✓ 完了 · ', lastMark: ' · 最後に開いた章',
@@ -59,7 +59,7 @@ const Contents = (() => {
ar: {
open: 'افتح الكتاب', toCover: 'العودة إلى الغلاف', resume: 'تابع · الفصل {n}', unit: 'الوحدة {n}',
minutes: { one: 'دقيقة', two: 'دقيقتان', few: '{n} دقائق', many: '{n} دقيقة', other: '{n} دقيقة' },
- meta: '{chapters}{samples} · {units} · مع الصوت',
+ meta: '{chapters}{samples}، {units}، مع الصوت',
metaChapters: { one: 'فصل واحد', two: 'فصلان', few: '{n} فصول', many: '{n} فصلاً', other: '{n} فصل' },
metaUnits: { one: 'وحدة واحدة', two: 'وحدتان', few: '{n} وحدات', many: '{n} وحدة', other: '{n} وحدة' },
metaSamples: { one: ' + فصل تجريبي واحد', two: ' + فصلان تجريبيان', few: ' + {n} فصول تجريبية', many: ' + {n} فصلاً تجريبياً', other: ' + {n} فصل تجريبي' },
diff --git a/site/shooting-an-elephant/lib/units.css b/site/shooting-an-elephant/lib/units.css
index 014ce88..c5ff6f0 100644
--- a/site/shooting-an-elephant/lib/units.css
+++ b/site/shooting-an-elephant/lib/units.css
@@ -60,7 +60,7 @@
@keyframes breathe { from { transform: scaleY(1); } to { transform: scaleY(.35); } }
/* The label and the title share a line when they fit; a long title wraps below the label instead of running off. */
.unit h2 .title { min-width: 0; text-wrap: balance; }
-.unit h2 .label { font: 600 14px var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--c); white-space: nowrap; }
+.unit h2 .label { font: 600 16px var(--ui); color: var(--c); white-space: nowrap; }
/* Keep the sketches cheap: each is its own layer, so its loop repaints only itself, and loops pause while their unit is
off screen or under the sticky bar (units.js toggles .live), so the bar's blur is not redrawn every frame. */
.unit-art { will-change: transform; contain: layout style; }
diff --git a/site/three-little-pigs/index.html b/site/three-little-pigs/index.html
index 285cf35..9c53308 100644
--- a/site/three-little-pigs/index.html
+++ b/site/three-little-pigs/index.html
@@ -3,12 +3,12 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
-<title>The Three Little Pigs — how it was made</title>
+<title>The Three Little Pigs: how it was made</title>
<meta name="description" content="An experiment: a picture book animated from a story alone, with an image model for the art and code for the motion. What we tried, what worked, and why it stayed out of the Skill.">
<link rel="canonical" href="https://papermorph.diamonddoge.org/three-little-pigs/">
<meta property="og:type" content="website">
<meta property="og:site_name" content="Papermorph">
-<meta property="og:title" content="The Three Little Pigs — how it was made">
+<meta property="og:title" content="The Three Little Pigs: how it was made">
<meta property="og:description" content="An experiment: a picture book animated from a story alone, with an image model for the art and code for the motion. What we tried, what worked, and why it stayed out of the Skill.">
<meta property="og:url" content="https://papermorph.diamonddoge.org/three-little-pigs/">
<meta property="og:image" content="https://papermorph.diamonddoge.org/assets/bookshelf.webp">
@@ -17,6 +17,7 @@
<style>
: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; }
+ html, body { overflow-x: clip; }
::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; }
@@ -26,7 +27,7 @@
.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; }
+ .tag { display: block; margin: 0 0 14px; color: var(--accent); font-size: 18px; font-weight: 600; } /* a subtitle under the title */
.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; }
@@ -38,15 +39,15 @@
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%; height: auto; 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: #fffdf8; }
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; }
+ .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
+ .stills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.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; }
- .numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0; }
+ .numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 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); }
@@ -54,9 +55,9 @@
code { font-size: .88em; background: #f1e6cf; padding: 1px 5px; border-radius: 4px; }
footer { max-width: 900px; margin: 0 auto; padding: 0 24px 60px; color: var(--soft); font-size: 15px; }
@media (max-width: 760px) {
- header.hero { grid-template-columns: 1fr; padding-top: 28px; }
- .pair, .numbers { grid-template-columns: 1fr 1fr; }
- .stills { grid-template-columns: 1fr 1fr; }
+ header.hero { grid-template-columns: minmax(0, 1fr); padding-top: 28px; }
+ .pair, .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
+ .stills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
</style>
</head>
@@ -66,10 +67,10 @@
<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>
+ <span class="tag">An experiment</span>
<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/"><span>▶ Watch the film</span> <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>
diff --git a/site/three-little-pigs/lib/contents.css b/site/three-little-pigs/lib/contents.css
index 5b8be35..8c99714 100644
--- a/site/three-little-pigs/lib/contents.css
+++ b/site/three-little-pigs/lib/contents.css
@@ -13,6 +13,7 @@
}
* { box-sizing: border-box; }
html { scroll-padding-top: 90px; }
+html, body { overflow-x: clip; }
body { margin: 0; min-height: 100svh; background: var(--board); color: var(--chalk); font: 18px/1.5 var(--ui); }
/* Chalkboard: the same grain and vignette as the lesson stage. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
@@ -20,7 +21,7 @@ body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-even
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .92 0 0 0 0 .95 0 0 0 0 .9 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23g)'/%3E%3C/svg%3E"); }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--task); outline-offset: 3px; }
-.kicker { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--quiz); }
+.kicker { margin: -6px 0 24px; font-size: 18px; font-weight: 600; color: var(--quiz); } /* under the title, a subtitle */
/* ---------- cover ---------- */
#cover { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
@@ -30,16 +31,16 @@ a:focus-visible { outline: 3px solid var(--task); outline-offset: 3px; }
body:not(.refsview) #refpage, .refsview #cover, .refsview #contents { display: none; }
#cover > * { animation: rise .8s var(--ease) backwards; }
#cover .mascot { animation: none; margin-bottom: 26px; view-transition-name: guide; }
-#cover .kicker { animation-delay: .9s; }
#cover h1 { animation-delay: 1s; }
+#cover .kicker { animation-delay: 1.06s; }
#cover .lede { animation-delay: 1.12s; }
#cover .acts { animation-delay: 1.24s; }
#cover .meta { animation-delay: 1.36s; }
h1 { margin: 14px 0 18px; font: 500 clamp(44px, 8.4vw, 92px)/1.02 var(--book); letter-spacing: -.01em; view-transition-name: book; }
-h1 i { color: var(--task); font-style: italic; }
+h1 i, .home strong i { font-style: normal; } /* the whole title one face and one colour; <i> left in older covers */
.lede { max-width: 34em; margin: 0 0 34px; color: var(--dim); font-size: clamp(17px, 2.2vw, 20px); text-wrap: balance; }
.acts { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
-.btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 30px; border-radius: 999px; font-weight: 600; font-size: 19px; text-decoration: none;
+.btn { display: inline-flex; align-items: center; gap: 12px; padding: 12px 28px; border-radius: 999px; font-weight: 600; font-size: 19px; text-decoration: none;
transition: transform .25s var(--ease), background-color .25s, border-color .25s; }
.btn[hidden] { display: none; }
.btn:hover { transform: translateY(-2px); }
@@ -47,7 +48,7 @@ h1 i { color: var(--task); font-style: italic; }
.btn.quiet { border: 1.5px solid var(--edge); color: var(--chalk); }
.btn.quiet:hover { border-color: var(--dim); }
.btn svg { width: 15px; height: 15px; fill: currentColor; }
-.meta { margin: 30px 0 0; color: var(--dim); font-size: 15px; letter-spacing: .04em; } /* --faint read below 3:1 */
+.meta { margin: 30px 0 0; color: var(--dim); font-size: 15px; } /* --faint read below 3:1 */
/* Faint chalk notes around the edges of the board. */
.chalk { position: absolute; inset: 0; z-index: -1; pointer-events: none; animation: none !important; }
.chalk span { position: absolute; font: italic 400 clamp(22px, 3vw, 38px) var(--book); color: var(--chalk); opacity: 0; white-space: nowrap;
@@ -77,7 +78,6 @@ h1 i { color: var(--task); font-style: italic; }
.home { display: flex; align-items: center; gap: 12px; text-decoration: none; border-radius: 10px; }
.home .mascot { view-transition-name: guide; }
.home strong { font: 500 22px/1.1 var(--book); view-transition-name: book; }
-.home strong i { color: var(--task); }
.prog { margin-inline-start: auto; color: var(--dim); font-size: 15px; white-space: nowrap; }
.prog b { color: var(--good); font-weight: 600; }
main#contents { padding-bottom: 80px; }
diff --git a/site/three-little-pigs/lib/contents.js b/site/three-little-pigs/lib/contents.js
index cb2629d..b8aeb88 100644
--- a/site/three-little-pigs/lib/contents.js
+++ b/site/three-little-pigs/lib/contents.js
@@ -12,7 +12,7 @@ const Contents = (() => {
const TRANSLATIONS = {
en: {
open: 'Open the book', toCover: 'Back to the cover', resume: 'Continue · Chapter {n}', unit: 'Unit {n}', minutes: '{n} min',
- meta: '{chapters}{samples} · {units} · with sound', metaChapters: { one: '{n} chapter', other: '{n} chapters' },
+ meta: '{chapters}{samples}, {units}, with sound', metaChapters: { one: '{n} chapter', other: '{n} chapters' },
metaUnits: { one: '{n} unit', other: '{n} units' }, metaSamples: { one: ' + {n} sample', other: ' + {n} samples' }, samples: 'Sample chapters, another look',
chapterCount: { one: '{n} chapter', other: '{n} chapters' }, finished: '{done} of {n} finished',
doneMark: '✓ Finished · ', lastMark: ' · Last opened',
@@ -23,7 +23,7 @@ const Contents = (() => {
},
ru: {
open: 'Открыть книгу', toCover: 'К обложке', resume: 'Продолжить · Глава {n}', unit: 'Раздел {n}', minutes: '{n} мин',
- meta: '{chapters}{samples} · {units} · со звуком',
+ meta: '{chapters}{samples}, {units}, со звуком',
metaChapters: { one: '{n} глава', few: '{n} главы', many: '{n} глав', other: '{n} главы' },
metaUnits: { one: '{n} раздел', few: '{n} раздела', many: '{n} разделов', other: '{n} раздела' },
metaSamples: { one: ' + {n} пробная', few: ' + {n} пробные', many: ' + {n} пробных', other: ' + {n} пробной' },
@@ -37,7 +37,7 @@ const Contents = (() => {
},
zh: {
open: '打开这本书', toCover: '返回封面', resume: '继续 · 第 {n} 章', unit: '第 {n} 单元', minutes: '{n} 分钟',
- meta: '{chapters}{samples} · {units} · 有配音', metaChapters: '{n} 章', metaUnits: '{n} 个单元',
+ meta: '{chapters}{samples},{units},有配音', metaChapters: '{n} 章', metaUnits: '{n} 个单元',
metaSamples: ' + {n} 个示例章', samples: '示例章,另一种风格',
chapterCount: '{n} 章', finished: '已完成 {done} / {n}',
doneMark: '✓ 已完成 · ', lastMark: ' · 上次打开',
@@ -47,7 +47,7 @@ const Contents = (() => {
},
ja: {
open: '本を開く', toCover: '表紙に戻る', resume: '続きから · 第{n}章', unit: '単元 {n}', minutes: '{n}分',
- meta: '{chapters}{samples} · {units} · 音声つき', metaChapters: '{n}章', metaUnits: '{n}単元',
+ meta: '{chapters}{samples}、{units}、音声つき', metaChapters: '{n}章', metaUnits: '{n}単元',
metaSamples: ' + サンプル{n}章', samples: 'サンプル章(別のスタイル)',
chapterCount: '{n}章', finished: '{n}章中 {done}章 完了',
doneMark: '✓ 完了 · ', lastMark: ' · 最後に開いた章',
@@ -59,7 +59,7 @@ const Contents = (() => {
ar: {
open: 'افتح الكتاب', toCover: 'العودة إلى الغلاف', resume: 'تابع · الفصل {n}', unit: 'الوحدة {n}',
minutes: { one: 'دقيقة', two: 'دقيقتان', few: '{n} دقائق', many: '{n} دقيقة', other: '{n} دقيقة' },
- meta: '{chapters}{samples} · {units} · مع الصوت',
+ meta: '{chapters}{samples}، {units}، مع الصوت',
metaChapters: { one: 'فصل واحد', two: 'فصلان', few: '{n} فصول', many: '{n} فصلاً', other: '{n} فصل' },
metaUnits: { one: 'وحدة واحدة', two: 'وحدتان', few: '{n} وحدات', many: '{n} وحدة', other: '{n} وحدة' },
metaSamples: { one: ' + فصل تجريبي واحد', two: ' + فصلان تجريبيان', few: ' + {n} فصول تجريبية', many: ' + {n} فصلاً تجريبياً', other: ' + {n} فصل تجريبي' },
diff --git a/site/three-little-pigs/lib/units.css b/site/three-little-pigs/lib/units.css
index 014ce88..c5ff6f0 100644
--- a/site/three-little-pigs/lib/units.css
+++ b/site/three-little-pigs/lib/units.css
@@ -60,7 +60,7 @@
@keyframes breathe { from { transform: scaleY(1); } to { transform: scaleY(.35); } }
/* The label and the title share a line when they fit; a long title wraps below the label instead of running off. */
.unit h2 .title { min-width: 0; text-wrap: balance; }
-.unit h2 .label { font: 600 14px var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--c); white-space: nowrap; }
+.unit h2 .label { font: 600 16px var(--ui); color: var(--c); white-space: nowrap; }
/* Keep the sketches cheap: each is its own layer, so its loop repaints only itself, and loops pause while their unit is
off screen or under the sticky bar (units.js toggles .live), so the bar's blur is not redrawn every frame. */
.unit-art { will-change: transform; contain: layout style; }
diff --git a/site/time-of-the-magicians/index.html b/site/time-of-the-magicians/index.html
index 6b11067..469c35e 100644
--- a/site/time-of-the-magicians/index.html
+++ b/site/time-of-the-magicians/index.html
@@ -10,6 +10,9 @@
/* chrome only, over the map: the subtitle dark enough to read on the sea (4.5:1), and buttons a finger can hit on a touch screen */
#title span { color: #574c3d; }
@media (pointer: coarse) { #people button, .link { min-height: 32px; } }
+ /* the one way back to the shelf: quiet, on the first card, beside the action */
+ .card .row .shelf { align-self: center; margin-left: auto; padding: 10px 0; color: var(--ink); font: 400 16px/1.2 var(--serif); text-decoration: underline; text-underline-offset: 3px; }
+ .card .row .shelf:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
</style>
</head>
<body>
@@ -43,7 +46,7 @@
<p>Europe, 1919 to 1929: a ruined continent, and four philosophers who changed how we think. Each year the map
plays what happened in Europe; then Wittgenstein, Heidegger, Benjamin and Cassirer walk to where that year took
them. Click one to hear his year.</p>
- <div class="row"><button class="go" id="begin">▶ Begin in 1919</button></div>
+ <div class="row"><button class="go" id="begin">▶ Begin in 1919</button><a class="shelf" href="../">← Back to the bookshelf</a></div>
</section>
<section id="person" class="card" role="dialog" aria-labelledby="person-h" hidden>