Anti-AI-slop design skill for Claude Code, Cursor, and Codex.
CSS
Site: an unknown theme falls back, example cards are links, demo loops respect reduced motion
Youssef45034549a6e9
diff --git a/site/css/base.css b/site/css/base.cssindex efc4a1d..487987b 100644--- a/site/css/base.css+++ b/site/css/base.css@@ -1,7 +1,7 @@/* Hallmark — base: fonts, reset, body *//* — Google Fonts — all theme display & alt faces ——————————— */-@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Instrument+Serif:ital@0;1&family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=Crimson+Pro:ital,wght@0,200..900;1,200..900&family=Newsreader:ital,opsz,wght@0,6..72,200..800;1,6..72,200..800&family=DM+Serif+Display:ital@0;1&family=Anton&family=Space+Grotesk:wght@300;400;500;600;700&family=Bricolage+Grotesque:opsz,[email protected],200..800&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..700&family=Hanken+Grotesk:ital,wght@0,100..900;1,100..900&family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400;1,500&family=IBM+Plex+Mono:ital,wght@0,300;0,400;0,500;0,600;1,400&family=JetBrains+Mono:ital,wght@0,400;0,500;0,700;1,400&display=swap");+@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Instrument+Serif:ital@0;1&family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=Crimson+Pro:ital,wght@0,200..900;1,200..900&family=Newsreader:ital,opsz,wght@0,6..72,200..800;1,6..72,200..800&family=Anton&family=Space+Grotesk:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..700&family=Hanken+Grotesk:ital,wght@0,100..900;1,100..900&family=IBM+Plex+Mono:ital,wght@0,300;0,400;0,500;0,600;1,400&family=JetBrains+Mono:ital,wght@0,400;0,500;0,700;1,400&display=swap");/* — Reset ———————————————————————————————————————————— */*, *::before, *::after { box-sizing: border-box; }diff --git a/site/css/components.css b/site/css/components.cssindex cc9c9e1..b3e0c8f 100644--- a/site/css/components.css+++ b/site/css/components.css@@ -542,7 +542,7 @@outline-offset: 2px;}-.theme-dropdown__dot[aria-pressed="true"] {+.theme-dropdown__dot[aria-selected="true"] {border-color: var(--color-ink);box-shadow: 0 0 0 2px var(--color-paper), 0 0 0 3px var(--color-ink);}diff --git a/site/index.html b/site/index.htmlindex a180160..cf8528a 100644--- a/site/index.html+++ b/site/index.html@@ -57,10 +57,10 @@href="https://fonts.googleapis.com/css2?family=Albert+Sans:wght@400;500;600;700;800&family=Anton&family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,900;1,9..144,400;1,9..144,500&family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500&family=Hanken+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=Inter+Tight:ital,wght@0,500;0,600;0,700;0,800;1,500;1,600;1,700&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;1,6..72,400;1,6..72,500&family=Playfair+Display:ital,wght@1,400;1,500;1,600&family=Public+Sans:wght@400;500;600;700&family=Young+Serif&family=Space+Grotesk:wght@400;500;600;700&family=Archivo:wght@400;500;600;700;800;900&family=Source+Serif+4:opsz,[email protected],400;8..60,600;8..60,700&family=IBM+Plex+Mono:wght@400;500;600&family=Silkscreen:wght@400;700&family=JetBrains+Mono:wght@400;500;600&family=Sora:wght@400;600;700&display=swap" /><link rel="stylesheet" href="https://api.fontshare.com/v2/css?f[]=general-sans@500,600,700&f[]=sentient@400,500&display=swap" />- <link rel="stylesheet" href="css/tokens.css?v=25" />- <link rel="stylesheet" href="css/base.css?v=25" />- <link rel="stylesheet" href="css/components.css?v=25" />- <link rel="stylesheet" href="css/sections.css?v=25" />+ <link rel="stylesheet" href="css/tokens.css?v=26" />+ <link rel="stylesheet" href="css/base.css?v=26" />+ <link rel="stylesheet" href="css/components.css?v=26" />+ <link rel="stylesheet" href="css/sections.css?v=26" /><script>// Load theme before paint to avoid flash. Order: ?theme= → localStorage → default.@@ -68,7 +68,7 @@const url = new URL(window.location.href);const q = url.searchParams.get("theme");const t = q || localStorage.getItem("hallmark-theme");- if (t) document.documentElement.dataset.theme = t;+ if (t && /^[a-z0-9-]{1,24}$/.test(t)) document.documentElement.dataset.theme = t;} catch (e) { }// Mark fonts-ready when document.fonts resolves; safety timeout at 1200 ms.@@ -124,7 +124,7 @@<div class="banner__theme-wrap" data-theme-wrap><button class="banner__theme-indicator" type="button" aria-haspopup="listbox" aria-expanded="false"aria-controls="theme-dropdown" data-theme-trigger>- <span class="banner__ordinal tnum" data-theme-ordinal>01 / 20</span>+ <span class="banner__ordinal tnum" data-theme-ordinal>01 / 23</span><span class="banner__indicator-sep" aria-hidden="true">—</span><span class="banner__theme" data-theme-current>Hum</span><svg class="banner__caret" viewBox="0 0 12 12" width="10" height="10" aria-hidden="true">@@ -134,66 +134,75 @@</button><div class="theme-dropdown" id="theme-dropdown" role="listbox" aria-label="Theme picker" hidden>- <button class="theme-dropdown__dot" type="button" data-theme-btn="hum" aria-label="01 · Hum"+ <button class="theme-dropdown__dot" type="button" role="option" aria-selected="false" data-theme-btn="hum" aria-label="01 · Hum"style="--dot: oklch(97% 0.012 95); --dot-edge: oklch(68% 0.24 18); --num: oklch(30% 0.05 18);"><spanclass="theme-dropdown__num">01</span></button>- <button class="theme-dropdown__dot" type="button" data-theme-btn="specimen" aria-label="02 · Specimen"+ <button class="theme-dropdown__dot" type="button" role="option" aria-selected="false" data-theme-btn="specimen" aria-label="02 · Specimen"style="--dot: oklch(96% 0.018 80); --dot-edge: oklch(70% 0.04 75); --num: oklch(30% 0.05 75);"><spanclass="theme-dropdown__num">02</span></button>- <button class="theme-dropdown__dot" type="button" data-theme-btn="midnight" aria-label="03 · Midnight"+ <button class="theme-dropdown__dot" type="button" role="option" aria-selected="false" data-theme-btn="midnight" aria-label="03 · Midnight"style="--dot: oklch(15% 0.022 250); --dot-edge: oklch(72% 0.16 220); --num: oklch(90% 0.04 220);"><spanclass="theme-dropdown__num">03</span></button>- <button class="theme-dropdown__dot" type="button" data-theme-btn="brutal" aria-label="04 · Brutal"+ <button class="theme-dropdown__dot" type="button" role="option" aria-selected="false" data-theme-btn="brutal" aria-label="04 · Brutal"style="--dot: oklch(98% 0.001 0); --dot-edge: oklch(60% 0.21 27); --num: oklch(30% 0.05 27);"><spanclass="theme-dropdown__num">04</span></button>- <button class="theme-dropdown__dot" type="button" data-theme-btn="garden" aria-label="05 · Garden"+ <button class="theme-dropdown__dot" type="button" role="option" aria-selected="false" data-theme-btn="garden" aria-label="05 · Garden"style="--dot: oklch(95.5% 0.022 92); --dot-edge: oklch(47% 0.13 140); --num: oklch(30% 0.05 140);"><spanclass="theme-dropdown__num">05</span></button>- <button class="theme-dropdown__dot" type="button" data-theme-btn="atelier" aria-label="06 · Atelier"+ <button class="theme-dropdown__dot" type="button" role="option" aria-selected="false" data-theme-btn="atelier" aria-label="06 · Atelier"style="--dot: oklch(94% 0.005 60); --dot-edge: oklch(45% 0.13 60); --num: oklch(30% 0.05 60);"><spanclass="theme-dropdown__num">06</span></button>- <button class="theme-dropdown__dot" type="button" data-theme-btn="newsprint" aria-label="07 · Newsprint"+ <button class="theme-dropdown__dot" type="button" role="option" aria-selected="false" data-theme-btn="newsprint" aria-label="07 · Newsprint"style="--dot: oklch(92% 0.045 50); --dot-edge: oklch(32% 0.10 28); --num: oklch(30% 0.05 28);"><spanclass="theme-dropdown__num">07</span></button>- <button class="theme-dropdown__dot" type="button" data-theme-btn="terminal" aria-label="08 · Terminal"+ <button class="theme-dropdown__dot" type="button" role="option" aria-selected="false" data-theme-btn="terminal" aria-label="08 · Terminal"style="--dot: oklch(11% 0.018 145); --dot-edge: oklch(78% 0.19 138); --num: oklch(90% 0.05 138);"><spanclass="theme-dropdown__num">08</span></button>- <button class="theme-dropdown__dot" type="button" data-theme-btn="manifesto" aria-label="09 · Manifesto"+ <button class="theme-dropdown__dot" type="button" role="option" aria-selected="false" data-theme-btn="manifesto" aria-label="09 · Manifesto"style="--dot: oklch(10% 0.005 60); --dot-edge: oklch(60% 0.22 27); --num: oklch(90% 0.04 27);"><spanclass="theme-dropdown__num">09</span></button>- <button class="theme-dropdown__dot" type="button" data-theme-btn="almanac" aria-label="10 · Almanac"+ <button class="theme-dropdown__dot" type="button" role="option" aria-selected="false" data-theme-btn="almanac" aria-label="10 · Almanac"style="--dot: oklch(84% 0.012 245); --dot-edge: oklch(38% 0.135 250); --num: oklch(30% 0.05 250);"><spanclass="theme-dropdown__num">10</span></button>- <button class="theme-dropdown__dot" type="button" data-theme-btn="sport" aria-label="11 · Sport"+ <button class="theme-dropdown__dot" type="button" role="option" aria-selected="false" data-theme-btn="sport" aria-label="11 · Sport"style="--dot: oklch(98% 0.003 250); --dot-edge: oklch(58% 0.190 35); --num: oklch(30% 0.05 35);"><spanclass="theme-dropdown__num">11</span></button>- <button class="theme-dropdown__dot" type="button" data-theme-btn="studio" aria-label="12 · Studio"+ <button class="theme-dropdown__dot" type="button" role="option" aria-selected="false" data-theme-btn="studio" aria-label="12 · Studio"style="--dot: oklch(96.5% 0.014 95); --dot-edge: oklch(46% 0.140 145); --num: oklch(30% 0.05 145);"><spanclass="theme-dropdown__num">12</span></button>- <button class="theme-dropdown__dot" type="button" data-theme-btn="riso" aria-label="13 · Riso"+ <button class="theme-dropdown__dot" type="button" role="option" aria-selected="false" data-theme-btn="riso" aria-label="13 · Riso"style="--dot: oklch(84% 0.048 30); --dot-edge: oklch(46% 0.140 220); --num: oklch(30% 0.05 220);"><spanclass="theme-dropdown__num">13</span></button>- <button class="theme-dropdown__dot" type="button" data-theme-btn="bloom" aria-label="14 · Bloom"+ <button class="theme-dropdown__dot" type="button" role="option" aria-selected="false" data-theme-btn="bloom" aria-label="14 · Bloom"style="--dot: oklch(97% 0.010 72); --dot-edge: oklch(56% 0.13 35); --num: oklch(30% 0.05 35);"><spanclass="theme-dropdown__num">14</span></button>- <button class="theme-dropdown__dot" type="button" data-theme-btn="coral" aria-label="15 · Coral"+ <button class="theme-dropdown__dot" type="button" role="option" aria-selected="false" data-theme-btn="coral" aria-label="15 · Coral"style="--dot: oklch(96.5% 0.005 50); --dot-edge: oklch(64% 0.165 28); --num: oklch(30% 0.05 28);"><spanclass="theme-dropdown__num">15</span></button>- <button class="theme-dropdown__dot" type="button" data-theme-btn="aurora" aria-label="16 · Aurora"+ <button class="theme-dropdown__dot" type="button" role="option" aria-selected="false" data-theme-btn="aurora" aria-label="16 · Aurora"style="--dot: oklch(11% 0.025 200); --dot-edge: oklch(68% 0.145 172); --num: oklch(90% 0.05 200);"><spanclass="theme-dropdown__num">16</span></button>- <button class="theme-dropdown__dot" type="button" data-theme-btn="editorial" aria-label="17 · Editorial"+ <button class="theme-dropdown__dot" type="button" role="option" aria-selected="false" data-theme-btn="editorial" aria-label="17 · Editorial"style="--dot: oklch(94% 0.020 75); --dot-edge: oklch(60% 0.160 35); --num: oklch(30% 0.05 35);"><spanclass="theme-dropdown__num">17</span></button>- <button class="theme-dropdown__dot" type="button" data-theme-btn="carnival" aria-label="18 · Carnival"+ <button class="theme-dropdown__dot" type="button" role="option" aria-selected="false" data-theme-btn="carnival" aria-label="18 · Carnival"style="--dot: oklch(92% 0.075 85); --dot-edge: oklch(40% 0.13 25); --num: oklch(30% 0.05 25);"><spanclass="theme-dropdown__num">18</span></button>- <button class="theme-dropdown__dot" type="button" data-theme-btn="lumen" aria-label="19 · Lumen"+ <button class="theme-dropdown__dot" type="button" role="option" aria-selected="false" data-theme-btn="lumen" aria-label="19 · Lumen"style="--dot: oklch(15% 0.016 265); --dot-edge: oklch(76% 0.13 60); --num: oklch(90% 0.05 60);"><spanclass="theme-dropdown__num">19</span></button>- <button class="theme-dropdown__dot" type="button" data-theme-btn="cobalt" aria-label="20 · Cobalt"+ <button class="theme-dropdown__dot" type="button" role="option" aria-selected="false" data-theme-btn="cobalt" aria-label="20 · Cobalt"style="--dot: oklch(98.5% 0.004 250); --dot-edge: oklch(58% 0.20 256); --num: oklch(30% 0.05 256);"><spanclass="theme-dropdown__num">20</span></button>+ <button class="theme-dropdown__dot" type="button" role="option" aria-selected="false" data-theme-btn="grid" aria-label="21 · Grid"+ style="--dot: oklch(99% 0.003 255); --dot-edge: oklch(55% 0.21 28); --num: oklch(30% 0.06 28);"><span+ class="theme-dropdown__num">21</span></button>+ <button class="theme-dropdown__dot" type="button" role="option" aria-selected="false" data-theme-btn="ledger" aria-label="22 · Ledger"+ style="--dot: oklch(20% 0.025 255); --dot-edge: oklch(78% 0.12 185); --num: oklch(90% 0.04 185);"><span+ class="theme-dropdown__num">22</span></button>+ <button class="theme-dropdown__dot" type="button" role="option" aria-selected="false" data-theme-btn="arcade" aria-label="23 · Arcade"+ style="--dot: oklch(16% 0.020 300); --dot-edge: oklch(70% 0.24 340); --num: oklch(90% 0.05 340);"><span+ class="theme-dropdown__num">23</span></button></div></div>@@ -213,7 +222,7 @@<aside class="t-tooltip" data-t-tooltip hidden role="status" aria-live="polite"><span class="t-tooltip__arrow" aria-hidden="true"></span><span class="t-tooltip__body">- Press <kbd>T</kbd> to see this page in <strong>24 shapes</strong>.+ Press <kbd>T</kbd> to see this page in <strong>23 shapes</strong>.</span></aside></header>@@ -233,9 +242,9 @@<p class="examples__intro">One-shotted. No shared theme. No shared layout.</p>- <div class="examples-rail" role="list" aria-label="Example landing pages">+ <div class="examples-rail" role="group" aria-label="Example landing pages">- <a class="ex-card" style="--scroll-dur:2.6s" role="listitem" href="examples/hum-07/" target="_blank" rel="noopener" aria-label="Open the Bubble example, a guided sourdough app, Hum, in a new tab">+ <a class="ex-card" style="--scroll-dur:2.6s" href="examples/hum-07/" target="_blank" rel="noopener" aria-label="Open the Bubble example, a guided sourdough app, Hum, in a new tab"><div class="ex-card__thumb" aria-hidden="true"><img src="_tests/_thumbs/hum-07.jpg?v=26" alt="" loading="lazy" width="1600" height="1000" /></div>@@ -245,91 +254,91 @@<!-- Custom / bespoke showcase. One featured bespoke build; the others live undersite/examples/custom-*. Scroll preview via Remotion (see examples/scroll-demos.json);once rendered, swap the <img> for <video data-hover-play src="..." poster="...">. -->- <a class="ex-card" style="--scroll-dur:2.1s" role="listitem" href="examples/custom-04/" target="_blank" rel="noopener" aria-label="Open the Mend Assembly example, a repair-café manifesto poster, custom, in a new tab">+ <a class="ex-card" style="--scroll-dur:2.1s" href="examples/custom-04/" target="_blank" rel="noopener" aria-label="Open the Mend Assembly example, a repair-café manifesto poster, custom, in a new tab"><div class="ex-card__thumb" aria-hidden="true"><img src="_tests/_thumbs/custom-04.jpg?v=26" alt="" loading="lazy" width="1600" height="1000" /></div><p class="ex-card__prompt"><span class="ex-card__prompt-mark">$</span> /hallmark build a repair-café manifesto poster, custom</p></a>- <a class="ex-card" style="--scroll-dur:2.0s" role="listitem" href="examples/garden-01/" target="_blank" rel="noopener" aria-label="Open the Hollowback Apiary example, a small-batch honey farm, Garden, in a new tab">+ <a class="ex-card" style="--scroll-dur:2.0s" href="examples/garden-01/" target="_blank" rel="noopener" aria-label="Open the Hollowback Apiary example, a small-batch honey farm, Garden, in a new tab"><div class="ex-card__thumb" aria-hidden="true"><img src="_tests/_thumbs/garden-01.jpg?v=26" alt="" loading="lazy" width="1600" height="1000" /></div><p class="ex-card__prompt"><span class="ex-card__prompt-mark">$</span> /hallmark build a landing page for a small-batch honey farm</p></a>- <a class="ex-card" style="--scroll-dur:1.8s" role="listitem" href="examples/riso-01/" target="_blank" rel="noopener" aria-label="Open the Off-Register example, an indie risograph print fair, Riso, in a new tab">+ <a class="ex-card" style="--scroll-dur:1.8s" href="examples/riso-01/" target="_blank" rel="noopener" aria-label="Open the Off-Register example, an indie risograph print fair, Riso, in a new tab"><div class="ex-card__thumb" aria-hidden="true"><img src="_tests/_thumbs/riso-01.jpg?v=26" alt="" loading="lazy" width="1600" height="1000" /></div><p class="ex-card__prompt"><span class="ex-card__prompt-mark">$</span> /hallmark build a page for an indie risograph print fair</p></a>- <a class="ex-card" style="--scroll-dur:2.1s" role="listitem" href="examples/press-01/" target="_blank" rel="noopener" aria-label="Open the Press Quaternary example, an experimental type studio, in a new tab">+ <a class="ex-card" style="--scroll-dur:2.1s" href="examples/press-01/" target="_blank" rel="noopener" aria-label="Open the Press Quaternary example, an experimental type studio, in a new tab"><div class="ex-card__thumb" aria-hidden="true"><img src="_tests/_thumbs/press-01.jpg?v=26" alt="" loading="lazy" width="1600" height="1000" /></div><p class="ex-card__prompt"><span class="ex-card__prompt-mark">$</span> /hallmark build a portfolio for an experimental typographer</p></a>- <a class="ex-card" style="--scroll-dur:1.7s" role="listitem" href="examples/tally/" target="_blank" rel="noopener" aria-label="Open the Tally example, a SaaS product page, modern-minimal, in a new tab">+ <a class="ex-card" style="--scroll-dur:1.7s" href="examples/tally/" target="_blank" rel="noopener" aria-label="Open the Tally example, a SaaS product page, modern-minimal, in a new tab"><div class="ex-card__thumb" aria-hidden="true"><img src="_tests/_thumbs/tally.jpg?v=26" alt="" loading="lazy" width="1600" height="1000" /></div><p class="ex-card__prompt"><span class="ex-card__prompt-mark">$</span> /hallmark build a SaaS product page, modern-minimal</p></a>- <a class="ex-card" style="--scroll-dur:2.1s" role="listitem" href="examples/wayfare/" target="_blank" rel="noopener" aria-label="Open the Wayfare example, a travel booking site, atmospheric, in a new tab">+ <a class="ex-card" style="--scroll-dur:2.1s" href="examples/wayfare/" target="_blank" rel="noopener" aria-label="Open the Wayfare example, a travel booking site, atmospheric, in a new tab"><div class="ex-card__thumb" aria-hidden="true"><img src="_tests/_thumbs/wayfare.jpg?v=26" alt="" loading="lazy" width="1600" height="1000" /></div><p class="ex-card__prompt"><span class="ex-card__prompt-mark">$</span> /hallmark build a travel booking site, atmospheric</p></a>- <a class="ex-card" style="--scroll-dur:1.8s" role="listitem" href="examples/bananastudio/" target="_blank" rel="noopener" aria-label="Open the BananaStudio example, a creative studio with playful motion, in a new tab">+ <a class="ex-card" style="--scroll-dur:1.8s" href="examples/bananastudio/" target="_blank" rel="noopener" aria-label="Open the BananaStudio example, a creative studio with playful motion, in a new tab"><div class="ex-card__thumb" aria-hidden="true"><img src="_tests/_thumbs/bananastudio.jpg?v=26" alt="" loading="lazy" width="1600" height="1000" /></div><p class="ex-card__prompt"><span class="ex-card__prompt-mark">$</span> /hallmark build a creative studio with playful motion</p></a>- <a class="ex-card" style="--scroll-dur:1.6s" role="listitem" href="examples/anya/" target="_blank" rel="noopener" aria-label="Open the Anya Reis example, a software architect personal site, in a new tab">+ <a class="ex-card" style="--scroll-dur:1.6s" href="examples/anya/" target="_blank" rel="noopener" aria-label="Open the Anya Reis example, a software architect personal site, in a new tab"><div class="ex-card__thumb" aria-hidden="true"><img src="_tests/_thumbs/anya.jpg?v=26" alt="" loading="lazy" width="1600" height="1000" /></div><p class="ex-card__prompt"><span class="ex-card__prompt-mark">$</span> /hallmark build a software architect personal site</p></a>- <a class="ex-card" style="--scroll-dur:2.0s" role="listitem" href="examples/najm/" target="_blank" rel="noopener" aria-label="Open the NAJM example, a Moroccan fashion brand landing page, in a new tab">+ <a class="ex-card" style="--scroll-dur:2.0s" href="examples/najm/" target="_blank" rel="noopener" aria-label="Open the NAJM example, a Moroccan fashion brand landing page, in a new tab"><div class="ex-card__thumb" aria-hidden="true"><img src="_tests/_thumbs/najm.jpg?v=26" alt="" loading="lazy" width="1600" height="1000" /></div><p class="ex-card__prompt"><span class="ex-card__prompt-mark">$</span> /hallmark build a Moroccan fashion brand landing page</p></a>- <a class="ex-card" style="--scroll-dur:1.4s" role="listitem" href="examples/hyperlane/" target="_blank" rel="noopener" aria-label="Open the Hyperlane example, a developer infrastructure landing page, in a new tab">+ <a class="ex-card" style="--scroll-dur:1.4s" href="examples/hyperlane/" target="_blank" rel="noopener" aria-label="Open the Hyperlane example, a developer infrastructure landing page, in a new tab"><div class="ex-card__thumb" aria-hidden="true"><img src="_tests/_thumbs/hyperlane.jpg?v=26" alt="" loading="lazy" width="1600" height="1000" /></div><p class="ex-card__prompt"><span class="ex-card__prompt-mark">$</span> /hallmark build a developer infrastructure landing page</p></a>- <a class="ex-card" style="--scroll-dur:1.3s" role="listitem" href="examples/cobalt-01/" target="_blank" rel="noopener" aria-label="Open the Distil example, a content-extraction API, Cobalt, in a new tab">+ <a class="ex-card" style="--scroll-dur:1.3s" href="examples/cobalt-01/" target="_blank" rel="noopener" aria-label="Open the Distil example, a content-extraction API, Cobalt, in a new tab"><div class="ex-card__thumb" aria-hidden="true"><img src="_tests/_thumbs/cobalt-01.jpg?v=26" alt="" loading="lazy" width="1600" height="1000" /></div><p class="ex-card__prompt"><span class="ex-card__prompt-mark">$</span> /hallmark build a content-extraction API, Cobalt</p></a>- <a class="ex-card" style="--scroll-dur:1.9s" role="listitem" href="examples/carnival-01/" target="_blank" rel="noopener" aria-label="Open the Cold Snap example, a record-label EP page, Carnival, in a new tab">+ <a class="ex-card" style="--scroll-dur:1.9s" href="examples/carnival-01/" target="_blank" rel="noopener" aria-label="Open the Cold Snap example, a record-label EP page, Carnival, in a new tab"><div class="ex-card__thumb" aria-hidden="true"><img src="_tests/_thumbs/carnival-01.jpg?v=26" alt="" loading="lazy" width="1600" height="1000" /></div><p class="ex-card__prompt"><span class="ex-card__prompt-mark">$</span> /hallmark build a record-label EP page, Carnival</p></a>- <a class="ex-card" style="--scroll-dur:2.0s" role="listitem" href="examples/lumen-01/" target="_blank" rel="noopener" aria-label="Open the Cinder example, serverless GPU inference, Lumen, in a new tab">+ <a class="ex-card" style="--scroll-dur:2.0s" href="examples/lumen-01/" target="_blank" rel="noopener" aria-label="Open the Cinder example, serverless GPU inference, Lumen, in a new tab"><div class="ex-card__thumb" aria-hidden="true"><img src="_tests/_thumbs/lumen-01.jpg?v=26" alt="" loading="lazy" width="1600" height="1000" /></div>@@ -1102,7 +1111,7 @@</div></template>- <script type="module" src="js/main.js?v=25"></script>+ <script type="module" src="js/main.js?v=27"></script></body></html>\ No newline at end of filediff --git a/site/js/main.js b/site/js/main.jsindex 24d9644..46b85f5 100644--- a/site/js/main.js+++ b/site/js/main.js@@ -38,6 +38,15 @@ document.querySelectorAll(".reveal").forEach((el) => el.classList.add("is-in"));// On touch devices, the autoplay attribute already runs the loop.}+/* Reduced motion: hold every autoplaying demo loop on its first frame. */+if (reduced) {+ document.querySelectorAll("video[autoplay]").forEach((video) => {+ video.removeAttribute("autoplay");+ video.loop = false;+ try { video.pause(); video.currentTime = 0; } catch (_) {}+ });+}+/* — Theme registry ————————————————————————————————————— */const THEMES = {hum: "Hum",@@ -801,10 +810,10 @@ const ordinalEl = document.querySelector("[data-theme-ordinal]");const themeKeys = Object.keys(THEMES);const totalThemes = themeKeys.length;-function setPressed(theme) {+function setSelected(theme) {dots.forEach((btn) => {const active = btn.dataset.themeBtn === theme;- btn.setAttribute("aria-pressed", active ? "true" : "false");+ btn.setAttribute("aria-selected", active ? "true" : "false");});const themeName = THEMES[theme] || "Specimen";const genre = THEME_GENRES[theme] || "editorial";@@ -828,11 +837,12 @@ function applyTheme(theme) {const apply = () => {root.dataset.theme = theme;swapArchetypes(theme);- setPressed(theme);+ setSelected(theme);try { localStorage.setItem(STORAGE_KEY, theme); } catch (e) { }};if (!reduced && document.startViewTransition) {- document.startViewTransition(apply);+ const vt = document.startViewTransition(apply);+ if (vt && vt.ready) vt.ready.catch(() => {});} else {apply();}@@ -846,14 +856,15 @@ const stored = (() => {})();const initial = THEMES[queried] ? queried: THEMES[stored] ? stored- : (root.dataset.theme || "hum");+ : THEMES[root.dataset.theme] ? root.dataset.theme+ : "hum";// First paint — populate slots without a transition (no flash).-// Run swapArchetypes BEFORE setPressed so the footer template is materialised-// before setPressed writes the current-theme name into it.+// Run swapArchetypes BEFORE setSelected so the footer template is materialised+// before setSelected writes the current-theme name into it.root.dataset.theme = initial;swapArchetypes(initial);-setPressed(initial);+setSelected(initial);try { localStorage.setItem(STORAGE_KEY, initial); } catch (e) { }dots.forEach((btn) => {@@ -1089,14 +1100,13 @@ dots.forEach((btn) => {lastConfirmed = root.dataset.theme;clearTimeout(previewTimer);previewTimer = setTimeout(() => {+ if (root.dataset.theme !== lastConfirmed) return;if (currentLabel) currentLabel.textContent = THEMES[btn.dataset.themeBtn];}, 80);});btn.addEventListener("mouseleave", () => {clearTimeout(previewTimer);- if (currentLabel && root.dataset.theme === lastConfirmed) {- currentLabel.textContent = THEMES[lastConfirmed];- }+ if (currentLabel) currentLabel.textContent = THEMES[root.dataset.theme];});});