Skip to content

Anti-AI-slop design skill for Claude Code, Cursor, and Codex.

CSS

Marketing site refinement — titles, footer, Section 03 + 05 reworks

Youssefc6f3b6cda3d1
diff --git a/site/css/components.css b/site/css/components.css
index d1ccb09..ee190cb 100644
--- a/site/css/components.css
+++ b/site/css/components.css
@@ -452,89 +452,6 @@
.banner__theme-indicator .banner__theme { display: none; }
}
-/* — Chapter rail — sticky outline on wide viewports ————————
- Vertical list of section coordinates pinned to the left margin.
- Highlights the current section as you scroll. Hidden below 80rem
- (1280px) where there's no margin space for it. */
-.chapter-rail {
- position: fixed;
- top: 50%;
- left: max(var(--space-sm), calc((100vw - 76rem) / 2 - 7rem));
- transform: translateY(-50%);
- z-index: 5;
- pointer-events: auto;
-}
-
-.chapter-rail__list {
- list-style: none;
- margin: 0;
- padding: 0;
- display: grid;
- gap: 0.55rem;
-}
-
-.chapter-rail__list a {
- display: grid;
- grid-template-columns: 1.6em 1fr;
- align-items: baseline;
- gap: 0.55rem;
- text-decoration: none;
- color: var(--color-rule-2);
- padding: 0.15rem 0.4rem 0.15rem 0;
- font-family: var(--font-label);
- font-size: 0.625rem;
- letter-spacing: var(--tracking-label);
- text-transform: uppercase;
- transition: color var(--dur-micro) var(--ease-out);
-}
-
-@media (hover: hover) and (pointer: fine) {
- .chapter-rail__list a:hover {
- color: var(--color-ink-2);
- }
-}
-
-.chapter-rail__list a:focus-visible {
- outline: 2px solid var(--color-focus);
- outline-offset: 2px;
-}
-
-.chapter-rail__list a.is-current {
- color: var(--color-ink);
-}
-
-.chapter-rail__num {
- font-family: var(--font-serif);
- font-style: italic;
- text-transform: none;
- font-size: 0.8125rem;
- font-weight: 500;
- letter-spacing: 0;
- color: var(--color-rule-2);
- text-align: end;
- transition: color var(--dur-micro) var(--ease-out);
-}
-
-.chapter-rail__list a.is-current .chapter-rail__num {
- color: var(--color-accent);
-}
-
-.chapter-rail__name {
- /* The name itself is small mono — only the active section's name
- gets visible weight; the others fade. */
- opacity: 0.6;
- transition: opacity var(--dur-micro) var(--ease-out);
-}
-
-.chapter-rail__list a.is-current .chapter-rail__name,
-.chapter-rail__list a:hover .chapter-rail__name {
- opacity: 1;
-}
-
-@media (max-width: 80rem) {
- .chapter-rail { display: none; }
-}
-
/* — Section label (01 / FOUNDATIONS) —————————————————— */
.section-label {
font-family: var(--font-label);
@@ -1877,23 +1794,76 @@
font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
font-size: 0.95rem;
line-height: 1.65;
- animation: easter-fade-in 240ms ease-out both;
+ /* Smoother arrival — fade + tiny scale-in. Feels like the page
+ gently steps aside rather than a hard cut. */
+ animation: easter-arrive 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.easter[hidden] { display: none; }
.easter[data-state="closing"] {
- animation: easter-fade-out 360ms ease-in forwards;
+ animation: easter-leave 360ms cubic-bezier(0.7, 0, 0.84, 0) forwards;
+}
+
+@keyframes easter-arrive {
+ from {
+ opacity: 0;
+ backdrop-filter: blur(0);
+ -webkit-backdrop-filter: blur(0);
+ transform: scale(1.015);
+ }
+ to {
+ opacity: 1;
+ backdrop-filter: blur(0);
+ -webkit-backdrop-filter: blur(0);
+ transform: scale(1);
+ }
+}
+
+@keyframes easter-leave {
+ from { opacity: 1; transform: scale(1); }
+ to { opacity: 0; transform: scale(0.985); }
+}
+
+/* Reduced motion — opacity only, no scale. */
+@media (prefers-reduced-motion: reduce) {
+ .easter {
+ animation: easter-fade-in 200ms ease-out both;
+ }
+ .easter[data-state="closing"] {
+ animation: easter-fade-out 200ms ease-in forwards;
+ }
+ @keyframes easter-fade-in { from { opacity: 0; } to { opacity: 1; } }
+ @keyframes easter-fade-out { from { opacity: 1; } to { opacity: 0; } }
+}
+
+/* Page-shrink under the easter overlay — runs on the <body> while
+ the easter is open. The page recedes slightly, making the easter
+ feel like a brief teleport. */
+body.easter-open > main,
+body.easter-open > header,
+body.easter-open > footer {
+ transform: scale(0.985);
+ filter: blur(2px);
+ transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1),
+ filter 420ms cubic-bezier(0.16, 1, 0.3, 1);
+ transform-origin: center center;
}
-@keyframes easter-fade-in {
- from { opacity: 0; }
- to { opacity: 1; }
+body:not(.easter-open) > main,
+body:not(.easter-open) > header,
+body:not(.easter-open) > footer {
+ transition: transform 360ms cubic-bezier(0.7, 0, 0.84, 0),
+ filter 360ms cubic-bezier(0.7, 0, 0.84, 0);
}
-@keyframes easter-fade-out {
- from { opacity: 1; }
- to { opacity: 0; }
+@media (prefers-reduced-motion: reduce) {
+ body.easter-open > main,
+ body.easter-open > header,
+ body.easter-open > footer {
+ transform: none;
+ filter: none;
+ }
}
.easter__panel {
@@ -2987,22 +2957,53 @@
/* ───────── Ft5 — Editorial colophon (the unified footer) ────────
The publisher's signature page. Same shape across every theme;
theme variation comes from typography rendering, not layout.
- Typeset prose paragraphs, no link farm, generous line-height. */
+
+ Layout: 3-column grid on desktop — wordmark left, prose centre,
+ links + year right. Stacks single-column on mobile. Spans full
+ page width. */
.foot--colophon {
- display: grid;
- gap: var(--space-md);
+ display: flex !important;
+ align-items: stretch;
+ flex-direction: row;
+ flex-wrap: nowrap;
+ gap: var(--space-2xl);
padding-block: var(--space-2xl) var(--space-xl);
border-block-start: var(--rule-hair) solid var(--color-rule);
- max-width: 64ch;
margin: 0;
+ width: 100%;
}
-.foot__sig {
+.foot__col { margin: 0; }
+
+.foot__col--mark {
+ flex: 0 0 auto;
+ min-width: 8rem;
display: flex;
- align-items: baseline;
- gap: var(--space-xs);
+ flex-direction: column;
+ gap: var(--space-2xs);
+}
+
+.foot__col--prose {
+ flex: 1 1 auto;
+ min-width: 0;
+ display: flex;
+ flex-direction: column;
+ gap: var(--space-md);
+}
+
+.foot__col--meta {
+ flex: 0 0 auto;
+ min-width: 7rem;
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
+ align-items: flex-end;
+ text-align: end;
+ gap: var(--space-md);
+}
+
+.foot__sig {
margin: 0;
- margin-block-end: var(--space-sm);
font-family: var(--font-display);
font-weight: var(--display-weight, 500);
font-style: var(--display-style, normal);
@@ -3025,6 +3026,7 @@
}
.foot__sig-ver {
+ margin: 0;
font-family: var(--font-mono);
font-size: 0.6875rem;
font-weight: 400;
@@ -3049,12 +3051,7 @@
max-width: 60ch;
}
-.foot__set em {
- font-style: normal;
- font-weight: 500;
- color: var(--color-ink);
-}
-
+.foot__set em,
.foot__set strong {
font-style: normal;
font-weight: 500;
@@ -3093,27 +3090,45 @@
}
.foot--colophon .foot__links {
- display: flex;
- flex-wrap: wrap;
- align-items: center;
- gap: var(--space-sm);
+ display: grid;
+ gap: var(--space-2xs);
+ justify-items: end;
margin: 0;
- margin-block-start: var(--space-sm);
font-family: var(--font-label);
font-size: var(--text-xs);
letter-spacing: var(--tracking-label);
text-transform: uppercase;
color: var(--color-muted);
- /* Reset legacy .foot__links rules from the masthead variant. */
- flex-wrap: nowrap;
}
-.foot--colophon .foot__sep {
- /* Inline dot separator instead of vertical bar. */
- width: auto;
- height: auto;
- background: transparent;
- color: var(--color-rule-2);
+.foot--colophon .foot__links .link {
+ color: var(--color-ink);
+}
+
+.foot__year {
+ margin: 0;
+ font-family: var(--font-mono);
+ font-size: 0.6875rem;
+ letter-spacing: 0.06em;
+ color: var(--color-muted);
+ font-feature-settings: "tnum" 1;
+}
+
+@media (max-width: 60rem) {
+ .foot--colophon {
+ flex-direction: column;
+ gap: var(--space-lg);
+ }
+ .foot__col--meta {
+ align-items: flex-start;
+ text-align: start;
+ }
+ .foot--colophon .foot__links {
+ justify-items: start;
+ grid-auto-flow: column;
+ grid-auto-columns: max-content;
+ gap: var(--space-md);
+ }
}
/* ───────────── SLOT REVEALS ─────────────
diff --git a/site/css/sections.css b/site/css/sections.css
index 0263fb7..bfa4ef5 100644
--- a/site/css/sections.css
+++ b/site/css/sections.css
@@ -623,6 +623,32 @@
letter-spacing: var(--tracking-display);
color: var(--color-ink);
margin: 0;
+ display: flex;
+ align-items: baseline;
+ flex-wrap: wrap;
+ gap: 0.4em;
+}
+
+.skill-row__title-meta {
+ font-family: var(--font-serif);
+ font-style: italic;
+ font-weight: 400;
+ font-size: 0.5em;
+ letter-spacing: 0;
+ color: var(--color-muted);
+}
+
+[data-theme="brutal"] .skill-row__title-meta,
+[data-theme="manifesto"] .skill-row__title-meta,
+[data-theme="terminal"] .skill-row__title-meta,
+[data-theme="sport"] .skill-row__title-meta,
+[data-theme="almanac"] .skill-row__title-meta,
+[data-theme="quiet"] .skill-row__title-meta,
+[data-theme="bloom"] .skill-row__title-meta {
+ font-family: var(--font-mono);
+ font-style: normal;
+ text-transform: uppercase;
+ letter-spacing: 0.04em;
}
[data-theme="manifesto"] .skill-row__title,
@@ -661,15 +687,17 @@
}
}
-.skill-row__body--study {
+/* Full-width body — no right info column. Used by Refine + Redesign
+ so the before/after diptych takes the whole row width. */
+.skill-row__body--full {
grid-template-columns: 1fr;
+ padding-inline-start: 4rem;
}
-/* Mobile — only show one study example. Two stacked DNA cards (image
- + 10-field key/value table each) eat too much vertical scroll on
- phones; one example is enough to make the point. */
-@media (max-width: 48rem) {
- .skill-row__body--study .study-card + .study-card { display: none; }
+@media (max-width: 60rem) {
+ .skill-row__body--full {
+ padding-inline-start: 0;
+ }
}
.skill-row__demo {
@@ -771,55 +799,172 @@
object-position: top left;
}
-/* Row III — Audit demo: target image with overlay punch-list flags */
-.skill-row__demo--audit > .fig-corners {
- display: block;
+/* Row III — Audit demo: a CSS-only inline slop hero. Built deliberately
+ to LOOK like every default AI hero — purple-pink gradient, centered,
+ Inter, ✨ badge, gradient pill CTA. Lives outside theme tokens
+ intentionally — it's the negative example. The checklist on the
+ right names every tell + its fix. */
+.skill-row__demo--audit { aspect-ratio: 16 / 10; }
+
+.audit-slop {
position: relative;
- aspect-ratio: 16 / 10;
+ width: 100%;
+ height: 100%;
+ display: grid;
+ place-items: center;
+ text-align: center;
+ background: linear-gradient(135deg, #a855f7 0%, #ec4899 55%, #f59e0b 100%);
+ border-radius: 14px;
overflow: hidden;
- border: var(--rule-card, 1px) solid var(--color-rule);
+ font-family: "Inter", system-ui, sans-serif;
+ color: #ffffff;
+ /* Deliberate AI-hero clichés: gradient corners, centered, Inter. */
}
-.skill-row__demo--audit img {
- width: 100%;
- height: 100%;
- object-fit: cover;
- object-position: top left;
+.audit-slop::before {
+ content: "";
+ position: absolute;
+ inset: -20%;
+ background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.18) 0%, transparent 50%),
+ radial-gradient(circle at 80% 80%, rgba(255,255,255,0.10) 0%, transparent 60%);
+ pointer-events: none;
+}
+
+.audit-slop__inner {
+ position: relative;
+ display: grid;
+ gap: 0.6rem;
+ justify-items: center;
+ padding: var(--space-md);
+ max-width: 28ch;
}
-.audit-flags {
+.audit-slop__badge {
+ display: inline-block;
+ padding: 0.22rem 0.7rem;
+ font-family: "Inter", system-ui, sans-serif;
+ font-size: 0.625rem;
+ font-weight: 600;
+ letter-spacing: 0.06em;
+ text-transform: uppercase;
+ color: #ffffff;
+ background: rgba(255,255,255,0.18);
+ border: 1px solid rgba(255,255,255,0.28);
+ border-radius: 999px;
+ backdrop-filter: blur(6px);
+ -webkit-backdrop-filter: blur(6px);
+}
+
+.audit-slop__title {
+ margin: 0;
+ font-family: "Inter", system-ui, sans-serif;
+ font-weight: 700;
+ font-size: clamp(1.1rem, 2.4vw + 0.4rem, 2rem);
+ line-height: 1.1;
+ letter-spacing: -0.025em;
+ background: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0.78) 100%);
+ -webkit-background-clip: text;
+ -webkit-text-fill-color: transparent;
+ background-clip: text;
+}
+
+.audit-slop__lede {
+ margin: 0;
+ font-family: "Inter", system-ui, sans-serif;
+ font-size: 0.8125rem;
+ font-weight: 400;
+ line-height: 1.4;
+ color: rgba(255,255,255,0.92);
+}
+
+.audit-slop__cta {
+ display: inline-block;
+ margin-block-start: 0.4rem;
+ padding: 0.55rem 1.1rem;
+ font-family: "Inter", system-ui, sans-serif;
+ font-size: 0.75rem;
+ font-weight: 600;
+ letter-spacing: 0.005em;
+ background: linear-gradient(135deg, #ffffff 0%, #fef3c7 100%);
+ color: #6b21a8;
+ border-radius: 999px;
+ user-select: none;
+}
+
+/* Audit checklist — replaces the old 4-row info panel. Each row reads:
+ ✗ <problem> → <fix>. Slop is muted; fix is ink. */
+.audit-check {
list-style: none;
margin: 0;
- padding: 0;
- position: absolute;
- inset: 0;
- pointer-events: none;
+ padding: var(--space-md) var(--space-lg);
+ display: grid;
+ gap: 0;
+ background: var(--color-paper);
+ border: var(--rule-card, 1px) solid var(--color-rule);
}
-.audit-flag {
- position: absolute;
- top: var(--top);
- left: var(--left);
- transform: translate(-50%, -50%);
+[data-theme="atelier"] .audit-check,
+[data-theme="salon"] .audit-check {
+ border: 0;
+ background: transparent;
+ padding: 0;
+ border-block-start: var(--rule-hair) solid var(--color-rule);
}
-.audit-flag__num {
+[data-theme="brutal"] .audit-check,
+[data-theme="manifesto"] .audit-check { border-width: 2px; }
+
+.audit-check__row {
display: grid;
- place-items: center;
- width: 1.75rem;
- height: 1.75rem;
- border-radius: 50%;
- background: var(--color-accent);
- color: var(--color-paper);
- font-family: var(--font-mono);
+ grid-template-columns: 1.2rem 1fr 1.2rem 1fr;
+ gap: 0.6rem;
+ align-items: baseline;
+ padding-block: var(--space-sm);
+ border-block-end: var(--rule-hair) solid var(--color-rule);
font-size: 0.8125rem;
+ line-height: 1.4;
+}
+
+.audit-check__row:last-child { border-block-end: 0; }
+
+.audit-check__cross {
+ font-family: var(--font-mono);
font-weight: 600;
- line-height: 1;
- box-shadow: 0 0 0 3px var(--color-paper), 0 1px 6px oklch(0% 0 0 / 0.18);
+ color: var(--color-accent);
+ text-align: center;
}
-[data-theme="manifesto"] .audit-flag__num,
-[data-theme="brutal"] .audit-flag__num { border-radius: 0; }
+.audit-check__problem {
+ font-family: var(--font-body);
+ color: var(--color-muted);
+ text-decoration: line-through;
+ text-decoration-thickness: 1px;
+ text-decoration-color: var(--color-rule-2);
+}
+
+.audit-check__arrow {
+ font-family: var(--font-mono);
+ color: var(--color-rule-2);
+ text-align: center;
+}
+
+.audit-check__fix {
+ font-family: var(--font-body);
+ color: var(--color-ink);
+ font-weight: 500;
+}
+
+@media (max-width: 36rem) {
+ .audit-check__row {
+ grid-template-columns: 1.2rem 1fr;
+ gap: 0.4rem 0.6rem;
+ }
+ .audit-check__arrow { display: none; }
+ .audit-check__fix {
+ grid-column: 2;
+ font-size: 0.875rem;
+ }
+}
/* Rows IV & V — Diptych: before / after side-by-side thumbnails */
.skill-row__demo--diptych {
@@ -1506,6 +1651,127 @@ html[data-theme="almanac"] body {
max-width: 45ch;
}
+/* — 05 · Foundations — eight compact cards in a 4×2 desktop grid.
+ Each card pairs a hand-drawn monoline SVG (currentColor stroke,
+ theme-aware) with a one-word title and a single line of body
+ copy. Stacks cleanly on mobile. */
+
+.found__intro {
+ margin: 0 0 var(--space-2xl);
+ font-family: var(--font-serif);
+ font-style: italic;
+ font-size: var(--text-md);
+ line-height: var(--lh-snug);
+ color: var(--color-ink-2);
+ max-width: 60ch;
+}
+
+[data-theme="brutal"] .found__intro,
+[data-theme="manifesto"] .found__intro,
+[data-theme="terminal"] .found__intro,
+[data-theme="sport"] .found__intro,
+[data-theme="almanac"] .found__intro,
+[data-theme="quiet"] .found__intro,
+[data-theme="bloom"] .found__intro,
+[data-theme="riso"] .found__intro {
+ font-family: var(--font-body);
+ font-style: normal;
+}
+
+.found-cards {
+ list-style: none;
+ margin: 0;
+ padding: 0;
+ display: grid;
+ grid-template-columns: repeat(4, minmax(0, 1fr));
+ gap: var(--rule-hair);
+ background: var(--color-rule);
+ border: var(--rule-hair) solid var(--color-rule);
+}
+
+.found-card {
+ background: var(--color-paper);
+ padding: var(--space-lg) var(--space-md);
+ display: grid;
+ gap: var(--space-sm);
+ align-content: start;
+ min-height: 12rem;
+}
+
+.found-card__icon {
+ display: block;
+ width: 48px;
+ height: 48px;
+ color: var(--color-ink);
+ margin-block-end: var(--space-xs);
+}
+
+.found-card__icon svg {
+ display: block;
+ width: 100%;
+ height: 100%;
+}
+
+.found-card__name {
+ margin: 0;
+ font-family: var(--font-display);
+ font-weight: var(--display-weight, 500);
+ font-style: var(--display-style, normal);
+ font-size: var(--text-lg);
+ line-height: var(--lh-tight);
+ letter-spacing: var(--tracking-tight);
+ color: var(--color-ink);
+ font-optical-sizing: auto;
+}
+
+[data-theme="manifesto"] .found-card__name,
+[data-theme="brutal"] .found-card__name,
+[data-theme="sport"] .found-card__name {
+ text-transform: uppercase;
+}
+
+[data-theme="terminal"] .found-card__name {
+ font-family: var(--font-mono);
+ font-style: normal;
+}
+
+.found-card__body {
+ margin: 0;
+ font-family: var(--font-body);
+ font-size: 0.875rem;
+ line-height: var(--lh-relaxed);
+ color: var(--color-ink-2);
+ max-width: 28ch;
+}
+
+[data-theme="atelier"] .found-card,
+[data-theme="salon"] .found-card {
+ background: transparent;
+}
+
+[data-theme="atelier"] .found-cards,
+[data-theme="salon"] .found-cards {
+ background: transparent;
+ border: 0;
+ gap: var(--space-md);
+ border-block-start: var(--rule-hair) solid var(--color-rule);
+ border-block-end: var(--rule-hair) solid var(--color-rule);
+ padding-block: var(--space-lg);
+}
+
+@media (max-width: 60rem) {
+ .found-cards {
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+ }
+}
+
+@media (max-width: 36rem) {
+ .found-cards {
+ grid-template-columns: 1fr;
+ }
+ .found-card { min-height: auto; }
+}
+
/* — Section pull-arrow ————————————————————————————————————
Editorial "continued on p. 12" cue at the end of each section.
Italic serif label + arrow, biased left or right per section
diff --git a/site/index.html b/site/index.html
index 6d5309c..ef63d91 100644
--- a/site/index.html
+++ b/site/index.html
@@ -139,18 +139,6 @@
</aside>
</header>
- <!-- CHAPTER RAIL — sticky outline visible on wide viewports only.
- Highlights current section as you scroll. Hidden below 80rem. -->
- <aside class="chapter-rail" aria-label="Page outline">
- <ol class="chapter-rail__list">
- <li><a href="#examples" data-chapter-link="examples"><span class="chapter-rail__num">II</span><span class="chapter-rail__name">Examples</span></a></li>
- <li><a href="#skills" data-chapter-link="skills"><span class="chapter-rail__num">III</span><span class="chapter-rail__name">Skills</span></a></li>
- <li><a href="#anti-patterns" data-chapter-link="anti-patterns"><span class="chapter-rail__num">IV</span><span class="chapter-rail__name">Anti-patterns</span></a></li>
- <li><a href="#s5-foundations" data-chapter-link="foundations"><span class="chapter-rail__num">V</span><span class="chapter-rail__name">Foundations</span></a></li>
- <li><a href="#install" data-chapter-link="install"><span class="chapter-rail__num">VI</span><span class="chapter-rail__name">Install</span></a></li>
- </ol>
- </aside>
-
<main class="page">
<!-- 01 · HERO SLOT — archetype swaps per theme -->
@@ -163,7 +151,7 @@
<span class="num">02</span><span class="divider">⁄</span><span>Examples</span>
</p>
<h2 class="section__title" id="s2">
- Different briefs. Different bones.
+ Worked examples.
</h2>
</header>
@@ -338,7 +326,7 @@
<span class="num">03</span><span class="divider">⁄</span><span>Skills</span>
</p>
<h2 class="section__title" id="s-skills">
- Five things Hallmark does. One ruleset underneath.
+ What it does.
</h2>
</header>
@@ -353,7 +341,7 @@
<header class="skill-row__head">
<span class="skill-row__num num--roman" aria-hidden="true">I</span>
<div class="skill-row__head-body">
- <h3 class="skill-row__title">Build</h3>
+ <h3 class="skill-row__title">Build <span class="skill-row__title-meta">(default)</span></h3>
<p class="skill-row__lede">Ask for a page. Get a page that doesn't look generated. Hallmark picks a macrostructure first, then dresses it — and refuses to repeat the same shape twice.</p>
</div>
</header>
@@ -388,46 +376,28 @@
</div>
</header>
- <div class="skill-row__body skill-row__body--study">
- <div class="study-grid">
- <article class="study-card">
- <div class="study-card__media">
- <img class="study-card__img" src="_tests/_thumbs/01-tide.png" alt="Tide — Letter macrostructure on warm cream paper" loading="lazy" decoding="async" />
- <span class="study-card__badge">01 · Tide</span>
- </div>
- <ol class="study-card__dna">
- <li class="dna__row"><span class="dna__k">Macrostructure</span><span class="dna__v">Letter</span></li>
- <li class="dna__row"><span class="dna__k">Hero archetype</span><span class="dna__v">H5 Letter · salutation + body + signoff</span></li>
- <li class="dna__row"><span class="dna__k">Display role</span><span class="dna__v">italic editorial serif</span></li>
- <li class="dna__row"><span class="dna__k">Body role</span><span class="dna__v">italic editorial serif (same family, smaller weight)</span></li>
- <li class="dna__row"><span class="dna__k">Label role</span><span class="dna__v">small-caps grotesque</span></li>
- <li class="dna__row"><span class="dna__k">Paper band</span><span class="dna__v">light · warm cream</span></li>
- <li class="dna__row"><span class="dna__k">Accent hue</span><span class="dna__v">warm orange · ≤ 3% footprint</span></li>
- <li class="dna__row"><span class="dna__k">Density</span><span class="dna__v">generous · single-column letter</span></li>
- <li class="dna__row"><span class="dna__k">Pairing logic</span><span class="dna__v">single family carrying the page; mono labels for register</span></li>
- <li class="dna__row"><span class="dna__k">Rhythm</span><span class="dna__v">left-biased · varied padding · letter-format intimacy</span></li>
- </ol>
- </article>
-
- <article class="study-card">
- <div class="study-card__media">
- <img class="study-card__img" src="_tests/_thumbs/05-tracejam.png" alt="Tracejam — Workbench macrostructure on dark charcoal" loading="lazy" decoding="async" />
- <span class="study-card__badge">02 · Tracejam</span>
- </div>
- <ol class="study-card__dna">
- <li class="dna__row"><span class="dna__k">Macrostructure</span><span class="dna__v">Workbench</span></li>
- <li class="dna__row"><span class="dna__k">Hero archetype</span><span class="dna__v">H3 Stat-Led · trace number + sticky panel</span></li>
- <li class="dna__row"><span class="dna__k">Display role</span><span class="dna__v">soft geometric sans · 600</span></li>
- <li class="dna__row"><span class="dna__k">Body role</span><span class="dna__v">soft geometric sans · 400</span></li>
- <li class="dna__row"><span class="dna__k">Label role</span><span class="dna__v">monospace · uppercase</span></li>
- <li class="dna__row"><span class="dna__k">Paper band</span><span class="dna__v">dark · cool charcoal</span></li>
- <li class="dna__row"><span class="dna__k">Accent hue</span><span class="dna__v">cyan · phosphor-bright · 8% footprint</span></li>
- <li class="dna__row"><span class="dna__k">Density</span><span class="dna__v">medium · sticky-panel observability layout</span></li>
- <li class="dna__row"><span class="dna__k">Pairing logic</span><span class="dna__v">sans display + body, mono labels carry the technical register</span></li>
- <li class="dna__row"><span class="dna__k">Rhythm</span><span class="dna__v">three-step walkthrough · sticky right panel · medium padding</span></li>
- </ol>
- </article>
- </div>
+ <div class="skill-row__body">
+ <figure class="skill-row__demo skill-row__demo--build">
+ <span class="brief-pill" aria-label="Example brief">"Paste a design you admire."</span>
+ <span class="brief-arrow" aria-hidden="true">↓</span>
+ <span class="fig-corners brief-output">
+ <span class="fig-corners__bl"></span><span class="fig-corners__br"></span>
+ <img src="_tests/_thumbs/01-tide.png" alt="Tide — Letter macrostructure on warm cream paper" loading="lazy" decoding="async" width="1024" height="640" />
+ </span>
+ </figure>
+
+ <ol class="skill-row__list">
+ <li class="dna__row"><span class="dna__k">Invocation</span><span class="dna__v"><code>hallmark study &lt;screenshot&gt;</code></span></li>
+ <li class="dna__row"><span class="dna__k">Macrostructure</span><span class="dna__v">Letter</span></li>
+ <li class="dna__row"><span class="dna__k">Hero archetype</span><span class="dna__v">H5 Letter · salutation + body + signoff</span></li>
+ <li class="dna__row"><span class="dna__k">Display role</span><span class="dna__v">italic editorial serif</span></li>
+ <li class="dna__row"><span class="dna__k">Body role</span><span class="dna__v">same family, smaller weight</span></li>
+ <li class="dna__row"><span class="dna__k">Label role</span><span class="dna__v">small-caps grotesque</span></li>
+ <li class="dna__row"><span class="dna__k">Paper band</span><span class="dna__v">light · warm cream</span></li>
+ <li class="dna__row"><span class="dna__k">Accent hue</span><span class="dna__v">warm orange · ≤ 3% footprint</span></li>
+ <li class="dna__row"><span class="dna__k">Rhythm</span><span class="dna__v">left-biased · letter-format intimacy</span></li>
+ <li class="dna__row"><span class="dna__k">Refuses</span><span class="dna__v">to ID fonts · to copy pixels</span></li>
+ </ol>
</div>
</li>
@@ -442,24 +412,48 @@
</header>
<div class="skill-row__body">
- <figure class="skill-row__demo skill-row__demo--audit">
- <span class="fig-corners">
- <span class="fig-corners__bl"></span><span class="fig-corners__br"></span>
- <img src="_tests/_thumbs/verb-audit.png" alt="Audited target page — generic AI-slop landing" loading="lazy" decoding="async" width="1024" height="640" />
- <ol class="audit-flags" aria-label="Punch list overlaid on the target">
- <li class="audit-flag" style="--top:24%; --left:50%"><span class="audit-flag__num tnum">1</span></li>
- <li class="audit-flag" style="--top:51%; --left:48%"><span class="audit-flag__num tnum">2</span></li>
- <li class="audit-flag" style="--top:67%; --left:50%"><span class="audit-flag__num tnum">3</span></li>
- </ol>
- </span>
+ <figure class="skill-row__demo skill-row__demo--audit" aria-label="Sample AI-default landing hero">
+ <div class="audit-slop">
+ <div class="audit-slop__inner">
+ <span class="audit-slop__badge">✨ NEW</span>
+ <h4 class="audit-slop__title">Build the future of work.</h4>
+ <p class="audit-slop__lede">The all-in-one platform for modern teams.</p>
+ <span class="audit-slop__cta">Get started free →</span>
+ </div>
+ </div>
</figure>
- <ol class="skill-row__list">
- <li class="dna__row"><span class="dna__k">Invocation</span><span class="dna__v"><code>hallmark audit &lt;target&gt;</code></span></li>
- <li class="dna__row"><span class="dna__k"><span class="tnum">1</span> · Display</span><span class="dna__v">Inter-as-display · the AI-default tell</span></li>
- <li class="dna__row"><span class="dna__k"><span class="tnum">2</span> · Hierarchy</span><span class="dna__v">centred everything · no asymmetry</span></li>
- <li class="dna__row"><span class="dna__k"><span class="tnum">3</span> · Accent</span><span class="dna__v">purple-to-blue gradient · over-applied</span></li>
- <li class="dna__row"><span class="dna__k">Returns</span><span class="dna__v">ranked findings, not edits</span></li>
+ <ol class="audit-check">
+ <li class="audit-check__row">
+ <span class="audit-check__cross" aria-hidden="true">✗</span>
+ <span class="audit-check__problem">Purple-to-pink gradient hero</span>
+ <span class="audit-check__arrow" aria-hidden="true">→</span>
+ <span class="audit-check__fix">Solid surface, single accent</span>
+ </li>
+ <li class="audit-check__row">
+ <span class="audit-check__cross" aria-hidden="true">✗</span>
+ <span class="audit-check__problem">Inter as display + body</span>
+ <span class="audit-check__arrow" aria-hidden="true">→</span>
+ <span class="audit-check__fix">Pair distinctive display + body</span>
+ </li>
+ <li class="audit-check__row">
+ <span class="audit-check__cross" aria-hidden="true">✗</span>
+ <span class="audit-check__problem">Centered everything</span>
+ <span class="audit-check__arrow" aria-hidden="true">→</span>
+ <span class="audit-check__fix">Bias the layout, break symmetry</span>
+ </li>
+ <li class="audit-check__row">
+ <span class="audit-check__cross" aria-hidden="true">✗</span>
+ <span class="audit-check__problem">Sparkle ✨ emoji as badge</span>
+ <span class="audit-check__arrow" aria-hidden="true">→</span>
+ <span class="audit-check__fix">Pick an icon library, or drop it</span>
+ </li>
+ <li class="audit-check__row">
+ <span class="audit-check__cross" aria-hidden="true">✗</span>
+ <span class="audit-check__problem">Gradient pill CTA</span>
+ <span class="audit-check__arrow" aria-hidden="true">→</span>
+ <span class="audit-check__fix">Solid fill or outline, single hue</span>
+ </li>
</ol>
</div>
</li>
@@ -474,7 +468,7 @@
</div>
</header>
- <div class="skill-row__body">
+ <div class="skill-row__body skill-row__body--full">
<figure class="skill-row__demo skill-row__demo--diptych">
<figure class="diptych__half" data-state="before">
<span class="fig-corners">
@@ -491,13 +485,6 @@
<figcaption class="diptych__cap">After refine</figcaption>
</figure>
</figure>
-
- <ol class="skill-row__list">
- <li class="dna__row"><span class="dna__k">Invocation</span><span class="dna__v"><code>hallmark refine &lt;target&gt;</code></span></li>
- <li class="dna__row"><span class="dna__k">Preserves</span><span class="dna__v">layout · copy · brand</span></li>
- <li class="dna__row"><span class="dna__k">Touches</span><span class="dna__v">type pairing · accent · spacing · proof</span></li>
- <li class="dna__row"><span class="dna__k">Returns</span><span class="dna__v">smallest possible diff</span></li>
- </ol>
</div>
</li>
@@ -511,7 +498,7 @@
</div>
</header>
- <div class="skill-row__body">
+ <div class="skill-row__body skill-row__body--full">
<figure class="skill-row__demo skill-row__demo--diptych">
<figure class="diptych__half" data-state="before">
<span class="fig-corners">
@@ -528,14 +515,6 @@
<figcaption class="diptych__cap">Long document</figcaption>
</figure>
</figure>
-
- <ol class="skill-row__list">
- <li class="dna__row"><span class="dna__k">Invocation</span><span class="dna__v"><code>hallmark redesign &lt;target&gt;</code></span></li>
- <li class="dna__row"><span class="dna__k">Preserves</span><span class="dna__v">copy · brand · information architecture</span></li>
- <li class="dna__row"><span class="dna__k">Replaces</span><span class="dna__v">macrostructure · heading placement · rhythm</span></li>
- <li class="dna__row"><span class="dna__k">Mood</span><span class="dna__v"><code>--mood &lt;name&gt;</code> optional override</span></li>
- <li class="dna__row"><span class="dna__k">Returns</span><span class="dna__v">structurally different page from same brief</span></li>
- </ol>
</div>
</li>
@@ -826,17 +805,139 @@
</section>
</template>
- <!-- 05 · FOUNDATIONS — vertical list + active panel (CSS-only tabs) -->
- <section class="section reveal" style="--i:4" aria-labelledby="s5-foundations">
+ <!-- 05 · FOUNDATIONS — eight compact cards in a 4×2 grid. Each
+ card holds a hand-drawn SVG icon, one-word title, and a single
+ line of description. Replaces the radio-tab Foundations panel
+ (preserved in <template id="section-05-archive-foundations-tabs">
+ below). -->
+ <section class="section reveal" style="--i:4" id="foundations" aria-labelledby="s5-foundations">
<header class="section__head">
<p class="section-label">
<span class="num">05</span><span class="divider">⁄</span><span>Foundations</span>
</p>
<h2 class="section__title" id="s5-foundations">
- Five things Hallmark holds the line on.
+ Foundations.
</h2>
</header>
+ <p class="found__intro">Eight rules that hold across every theme. None of them are settings.</p>
+
+ <ul class="found-cards" role="list">
+
+ <li class="found-card">
+ <span class="found-card__icon" aria-hidden="true">
+ <svg viewBox="0 0 48 48" fill="none" stroke-linecap="round" stroke-linejoin="round">
+ <text x="3" y="36" font-family="'Fraunces', 'Tiempos', serif" font-style="italic" font-size="34" font-weight="500" fill="currentColor">A</text>
+ <text x="22" y="42" font-family="'Geist', 'Inter', sans-serif" font-size="22" font-weight="600" fill="currentColor">a</text>
+ </svg>
+ </span>
+ <h3 class="found-card__name">Type</h3>
+ <p class="found-card__body">Pair a display face with a body face. Never one font doing both jobs.</p>
+ </li>
+
+ <li class="found-card">
+ <span class="found-card__icon" aria-hidden="true">
+ <svg viewBox="0 0 48 48" fill="currentColor">
+ <circle cx="9" cy="24" r="4.5"/>
+ <circle cx="20" cy="24" r="4.5" opacity="0.7"/>
+ <circle cx="31" cy="24" r="4.5" opacity="0.4"/>
+ <circle cx="42" cy="24" r="4.5" fill="none" stroke="currentColor" stroke-width="1.5"/>
+ </svg>
+ </span>
+ <h3 class="found-card__name">Colour</h3>
+ <p class="found-card__body">OKLCH palettes. One anchor hue. The accent stays under five percent.</p>
+ </li>
+
+ <li class="found-card">
+ <span class="found-card__icon" aria-hidden="true">
+ <svg viewBox="0 0 48 48" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round">
+ <line x1="4" y1="26" x2="44" y2="26"/>
+ <line x1="8" y1="22" x2="8" y2="30"/>
+ <line x1="16" y1="24" x2="16" y2="28"/>
+ <line x1="24" y1="18" x2="24" y2="32"/>
+ <line x1="32" y1="24" x2="32" y2="28"/>
+ <line x1="40" y1="22" x2="40" y2="30"/>
+ </svg>
+ </span>
+ <h3 class="found-card__name">Space</h3>
+ <p class="found-card__body">A named scale. Multiples of four. No arbitrary 17-pixel paddings.</p>
+ </li>
+
+ <li class="found-card">
+ <span class="found-card__icon" aria-hidden="true">
+ <svg viewBox="0 0 48 48" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M 6 32 Q 18 32 24 24 T 40 14"/>
+ <path d="M 34 14 L 40 14 L 40 20"/>
+ </svg>
+ </span>
+ <h3 class="found-card__name">Motion</h3>
+ <p class="found-card__body">Exponential ease-out. Reduced-motion alternative for every animation.</p>
+ </li>
+
+ <li class="found-card">
+ <span class="found-card__icon" aria-hidden="true">
+ <svg viewBox="0 0 48 48" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round">
+ <path d="M 11 16 Q 7 19 7 24 Q 7 28 11 28"/>
+ <path d="M 17 16 Q 13 19 13 24 Q 13 28 17 28"/>
+ <path d="M 31 16 Q 27 19 27 24 Q 27 28 31 28"/>
+ <path d="M 37 16 Q 33 19 33 24 Q 33 28 37 28"/>
+ </svg>
+ </span>
+ <h3 class="found-card__name">Voice</h3>
+ <p class="found-card__body">Distinct register per theme. Never the SaaS-default neutral middle.</p>
+ </li>
+
+ <li class="found-card">
+ <span class="found-card__icon" aria-hidden="true">
+ <svg viewBox="0 0 48 48" fill="none" stroke="currentColor" stroke-width="1.5">
+ <rect x="6" y="12" width="14" height="26"/>
+ <rect x="22" y="18" width="20" height="20"/>
+ </svg>
+ </span>
+ <h3 class="found-card__name">Layout</h3>
+ <p class="found-card__body">Bias the page. Asymmetric is intentional. Centred everything is a tell.</p>
+ </li>
+
+ <li class="found-card">
+ <span class="found-card__icon" aria-hidden="true">
+ <svg viewBox="0 0 48 48" fill="none" stroke="currentColor" stroke-linecap="round">
+ <line x1="6" y1="14" x2="42" y2="14" stroke-width="3.5"/>
+ <line x1="6" y1="25" x2="32" y2="25" stroke-width="2"/>
+ <line x1="6" y1="36" x2="22" y2="36" stroke-width="1.2"/>
+ </svg>
+ </span>
+ <h3 class="found-card__name">Hierarchy</h3>
+ <p class="found-card__body">Display, body, label. A weight ladder you can read in two seconds.</p>
+ </li>
+
+ <li class="found-card">
+ <span class="found-card__icon" aria-hidden="true">
+ <svg viewBox="0 0 48 48" fill="none" stroke="currentColor" stroke-width="1.5">
+ <rect x="6" y="6" width="36" height="36"/>
+ <circle cx="24" cy="24" r="3" fill="currentColor"/>
+ </svg>
+ </span>
+ <h3 class="found-card__name">Restraint</h3>
+ <p class="found-card__body">Better nothing than bad something. The strongest fail-state is silence.</p>
+ </li>
+
+ </ul>
+
+ <a class="section__pull" href="#install" aria-label="Continue to Install section">
+ <span class="section__pull-label">Install in your editor</span>
+ <span class="section__pull-arrow" aria-hidden="true">→</span>
+ </a>
+ </section>
+
+ <!-- DEPRECATED: original Section 05 (Foundations radio tabs) — replaced
+ by the 8-card grid above. Wrapped in <template> so the markup stays
+ in this file but doesn't render. To revert: change the opening
+ <template> to <section class="section reveal" style="--i:4"
+ aria-labelledby="s5-foundations"> and the closing </template> to
+ </section>, then remove the new 8-card section above. -->
+ <template id="section-05-archive-foundations-tabs">
+ <section class="section reveal" style="--i:4" aria-labelledby="s5-foundations">
+
<input type="radio" name="found-toggle" id="f-type" class="found-toggle__input" checked />
<input type="radio" name="found-toggle" id="f-colour" class="found-toggle__input" />
<input type="radio" name="found-toggle" id="f-space" class="found-toggle__input" />
@@ -952,7 +1053,8 @@
<span class="section__pull-label">Install in your editor</span>
<span class="section__pull-arrow" aria-hidden="true">→</span>
</a>
- </section>
+ </section>
+ </template>
<!-- 06 · INSTALL — one command, every harness -->
<section class="section reveal" style="--i:5" id="install" aria-labelledby="s6">
@@ -961,7 +1063,7 @@
<span class="num">06</span><span class="divider">⁄</span><span>Install</span>
</p>
<h2 class="section__title" id="s6">
- One command. Works in every harness.
+ Install.
</h2>
</header>
@@ -1014,18 +1116,13 @@
<aside class="easter" data-easter-egg hidden role="dialog" aria-modal="true" aria-label="A note from Hallmark">
<div class="easter__panel">
<ol class="easter__lines" aria-live="polite">
- <li class="easter__line easter__line--cmd"><span class="easter__prompt">$</span> hallmark observe</li>
- <li class="easter__line">
- <span class="easter__arrow">&gt;</span>
- <span class="easter__num" data-easter-cycles>1.0</span>× in
- <span class="easter__num" data-easter-seconds>3.2</span>s.
- </li>
+ <li class="easter__line easter__line--cmd"><span class="easter__prompt">$</span> hallmark.observe()</li>
<li class="easter__line easter__line--punchline" data-easter-punchline>
- <span class="easter__arrow">&gt;</span> <span data-easter-line>chill, designer.</span><span class="easter__cursor" aria-hidden="true"></span>
+ <span class="easter__arrow">&gt;</span> <span data-easter-line>theme connoisseur.</span><span class="easter__cursor" aria-hidden="true"></span>
</li>
</ol>
<p class="easter__hint">
- <span>returning to the page in a moment</span>
+ <span>back in a moment</span>
</p>
</div>
</aside>
@@ -1178,29 +1275,33 @@
Per-theme typography still re-renders this block. -->
<template id="footer-colophon">
<div class="foot foot--colophon">
- <p class="foot__sig">
- <span class="foot__wordmark">Hallmark</span><span class="foot__sig-ver tnum">·&nbsp;v1.0</span>
- </p>
-
- <p class="foot__set">
- Set in <em>Fraunces</em> (display), <em>The Future</em> (body), and <em>The Future Mono</em> (label). Currently rendered in <strong data-theme-current-foot>Specimen</strong>.
- </p>
-
- <p class="foot__catalog">
- Twenty-three named themes across four genres. Twenty-one macrostructures. Forty component archetypes. Sixty slop-test gates plus a six-axis pre-emit critique.
- </p>
+ <div class="foot__col foot__col--mark">
+ <p class="foot__sig">
+ <span class="foot__wordmark">Hallmark</span>
+ </p>
+ <p class="foot__sig-ver tnum">v1.0</p>
+ </div>
- <p class="foot__credit">
- Built v1.0 in 2026. Powered by <span class="foot__powered-mark">Together&nbsp;AI</span>. MIT licensed.
- </p>
+ <div class="foot__col foot__col--prose">
+ <p class="foot__set">
+ Set in <em>Fraunces</em> (display), <em>The Future</em> (body), and <em>The Future Mono</em> (label). Currently rendered in <strong data-theme-current-foot>Specimen</strong>.
+ </p>
+ <p class="foot__catalog">
+ Twenty-three named themes across four genres. Twenty-one macrostructures. Forty component archetypes. Sixty slop-test gates plus a six-axis pre-emit critique.
+ </p>
+ <p class="foot__credit">
+ Built v1.0 in 2026. Powered by <span class="foot__powered-mark">Together&nbsp;AI</span>. MIT licensed.
+ </p>
+ </div>
- <p class="foot__links">
- <a href="https://github.com/Luffixos/hallmark" class="link">Source</a>
- <span class="foot__sep" aria-hidden="true">·</span>
- <a href="#install" class="link">Install</a>
- <span class="foot__sep" aria-hidden="true">·</span>
- <a href="#top" class="link">Top</a>
- </p>
+ <div class="foot__col foot__col--meta">
+ <p class="foot__links">
+ <a href="https://github.com/Luffixos/hallmark" class="link">Source</a>
+ <a href="#install" class="link">Install</a>
+ <a href="#top" class="link">Top</a>
+ </p>
+ <p class="foot__year tnum">2026</p>
+ </div>
</div>
</template>
diff --git a/site/js/main.js b/site/js/main.js
index 31ce474..b97f5b3 100644
--- a/site/js/main.js
+++ b/site/js/main.js
@@ -890,11 +890,13 @@ const EASTER_VISIBLE_MS = 3400; // total time the overlay stays up
const EASTER_FADE_MS = 360; // matches the fade-out animation
const EASTER_COOLDOWN_MS = 15000;
const EASTER_PUNCHLINES = [
- "chill, designer.",
+ "theme connoisseur.",
+ "easy on the keys.",
+ "speed-run noted.",
+ "calm down, designer.",
+ "showing off, are we?",
"you've seen them all.",
- "seventeen is plenty.",
- "pick. build. ship.",
- "easy on the keyboard.",
+ "pick one. ship.",
"one theme will do.",
];
const tStamps = [];
@@ -905,29 +907,25 @@ let easterFadeTimer = null;
function showEasterEgg() {
if (!easterEl || easterOpen) return;
- const now = performance.now();
- const span = (now - tStamps[0]) / 1000;
- const cycles = (tStamps.length / Object.keys(THEMES).length).toFixed(1);
// Re-mount the lines so the staggered fade-in animation re-runs each
- // time. Populate live values + a random punchline after replacement
- // so we don't write into a detached node.
+ // time. Populate the punchline after replacement so we don't write
+ // into a detached node.
const lines = easterEl.querySelector(".easter__lines");
if (lines) {
const fresh = lines.cloneNode(true);
lines.parentNode.replaceChild(fresh, lines);
}
- const cyclesEl = easterEl.querySelector("[data-easter-cycles]");
- const secondsEl = easterEl.querySelector("[data-easter-seconds]");
const lineEl = easterEl.querySelector("[data-easter-line]");
- if (cyclesEl) cyclesEl.textContent = cycles;
- if (secondsEl) secondsEl.textContent = span.toFixed(1);
if (lineEl) lineEl.textContent = EASTER_PUNCHLINES[Math.floor(Math.random() * EASTER_PUNCHLINES.length)];
delete easterEl.dataset.state;
easterEl.hidden = false;
easterOpen = true;
document.body.style.overflow = "hidden";
+ // Toggle body class so the page-shrink + blur animation runs in sync
+ // with the easter overlay's arrival. CSS handles the rest.
+ document.body.classList.add("easter-open");
clearTimeout(easterDismissTimer);
clearTimeout(easterFadeTimer);
@@ -939,6 +937,9 @@ function hideEasterEgg() {
clearTimeout(easterDismissTimer);
clearTimeout(easterFadeTimer);
easterEl.dataset.state = "closing";
+ // Drop the body class first so the page un-blurs / scales back in
+ // tandem with the overlay leaving.
+ document.body.classList.remove("easter-open");
easterFadeTimer = setTimeout(() => {
easterEl.hidden = true;
delete easterEl.dataset.state;
@@ -1069,51 +1070,6 @@ if (statesBtn && statesReadout) {
});
}
-/* — Chapter rail — IntersectionObserver to highlight current section
- The rail is hidden via CSS below 80rem; we still wire the observer
- regardless so the highlight is correct if the user resizes up. */
-(() => {
- const railLinks = document.querySelectorAll(".chapter-rail [data-chapter-link]");
- if (!railLinks.length || !("IntersectionObserver" in window)) return;
-
- const sections = Array.from(railLinks).map((a) => {
- const id = a.getAttribute("href").slice(1);
- return { link: a, section: document.getElementById(id) };
- }).filter((x) => x.section);
-
- const visible = new Set();
-
- const setCurrent = () => {
- let activeId = null;
- let topMost = Infinity;
- for (const id of visible) {
- const sec = document.getElementById(id);
- if (!sec) continue;
- const top = sec.getBoundingClientRect().top;
- if (top < topMost) { topMost = top; activeId = id; }
- }
- railLinks.forEach((a) => a.classList.remove("is-current"));
- if (activeId) {
- const link = document.querySelector(`.chapter-rail a[href="#${activeId}"]`);
- if (link) link.classList.add("is-current");
- }
- };
-
- const railIO = new IntersectionObserver((entries) => {
- for (const e of entries) {
- const id = e.target.id;
- if (e.isIntersecting) visible.add(id);
- else visible.delete(id);
- }
- setCurrent();
- }, {
- rootMargin: "-25% 0px -55% 0px",
- threshold: 0,
- });
-
- sections.forEach((s) => railIO.observe(s.section));
-})();
-
/* — Tab-click scroll-jump fix —————————————————————————————
The CSS-only radio tab pattern in Section 04 (Without/With) and
Section 05 (Foundations) places the radio inputs at top:0 of their