Anti-AI-slop design skill for Claude Code, Cursor, and Codex.
CSS
Banner T+R combined · gallery fit · Salon centered subhead · responsive headings
Youssefddfcd6a2832a
diff --git a/site/_tests/_thumbs/01-tide.png b/site/_tests/_thumbs/01-tide.pngindex 425fc43..b062d77 100644Binary files a/site/_tests/_thumbs/01-tide.png and b/site/_tests/_thumbs/01-tide.png differdiff --git a/site/_tests/_thumbs/02-streampipe.png b/site/_tests/_thumbs/02-streampipe.pngindex 7189c02..49d6312 100644Binary files a/site/_tests/_thumbs/02-streampipe.png and b/site/_tests/_thumbs/02-streampipe.png differdiff --git a/site/_tests/_thumbs/03-maple.png b/site/_tests/_thumbs/03-maple.pngindex 4a4f94c..368fbc9 100644Binary files a/site/_tests/_thumbs/03-maple.png and b/site/_tests/_thumbs/03-maple.png differdiff --git a/site/_tests/_thumbs/04-meridian.png b/site/_tests/_thumbs/04-meridian.pngindex cb2c707..dc8550f 100644Binary files a/site/_tests/_thumbs/04-meridian.png and b/site/_tests/_thumbs/04-meridian.png differdiff --git a/site/_tests/_thumbs/05-tracejam.png b/site/_tests/_thumbs/05-tracejam.pngindex 380b7d3..91bbfcc 100644Binary files a/site/_tests/_thumbs/05-tracejam.png and b/site/_tests/_thumbs/05-tracejam.png differdiff --git a/site/_tests/_thumbs/06-anya.png b/site/_tests/_thumbs/06-anya.pngindex 10ca468..328bf6b 100644Binary files a/site/_tests/_thumbs/06-anya.png and b/site/_tests/_thumbs/06-anya.png differdiff --git a/site/_tests/_thumbs/07-foundry.png b/site/_tests/_thumbs/07-foundry.pngindex d75f8cd..5375575 100644Binary files a/site/_tests/_thumbs/07-foundry.png and b/site/_tests/_thumbs/07-foundry.png differdiff --git a/site/_tests/_thumbs/08-cohort.png b/site/_tests/_thumbs/08-cohort.pngindex 07a0468..982154d 100644Binary files a/site/_tests/_thumbs/08-cohort.png and b/site/_tests/_thumbs/08-cohort.png differdiff --git a/site/css/components.css b/site/css/components.cssindex 681a676..ec7dc58 100644--- a/site/css/components.css+++ b/site/css/components.css@@ -28,8 +28,7 @@position: sticky;top: 0;z-index: var(--z-sticky);- display: grid;- grid-template-columns: auto 1fr auto;+ display: flex;align-items: center;gap: var(--space-lg);padding: 0 var(--page-gutter);@@ -45,6 +44,12 @@color: var(--color-ink);}+/* Spacer pushes the picker + theme-name to the right */+.banner__spacer {+ flex: 1 1 auto;+ min-width: 0;+}+.banner__mark {display: inline-flex;align-items: baseline;@@ -64,19 +69,21 @@letter-spacing: 0.14em;}-/* The active theme name — the centre marker. Lives in the banner so the- page restructure registers as a deliberate event, not a passive repaint. */+/* The active theme name — sits to the LEFT of the theme picker so the+ page restructure registers as a deliberate event, not a passive repaint.+ Smaller text + closer to the picker on desktop; hidden on narrow viewports. */.banner__center {- justify-self: center;font-family: var(--font-display);- font-weight: var(--display-weight, 400);+ font-weight: var(--display-weight, 500);font-style: var(--display-style, normal);- font-size: var(--text-md);- letter-spacing: 0.04em;+ font-size: 0.95rem;+ letter-spacing: -0.005em;text-transform: none;color: var(--color-ink);font-optical-sizing: auto;transition: opacity var(--dur-short) var(--ease-out);+ white-space: nowrap;+ margin-inline-end: var(--space-xs);}[data-theme="manifesto"] .banner__center,@@ -149,63 +156,96 @@margin-inline: 0.25rem;}-.banner__random {+/* Combined shuffle button: icon + T kbd hint inside a single pill.+ Click randomises; the T inside reads as a keyboard hint, not a separate+ pill. Replaces the old .banner__random + .banner__kbd combo. */+.banner__shuffle {appearance: none;display: inline-flex;align-items: center;justify-content: center;- width: 24px;- height: 24px;- padding: 0;+ gap: 0.4rem;+ height: 26px;+ padding: 0 0.6rem 0 0.55rem;background: transparent;border: 1px solid var(--color-rule);- border-radius: var(--radius-pill, 0);+ border-radius: var(--radius-pill, 999px);color: var(--color-muted);cursor: pointer;+ font-family: var(--font-label);+ font-size: 0.625rem;+ letter-spacing: 0.08em;+ text-transform: uppercase;transition: color var(--dur-micro) var(--ease-out),border-color var(--dur-micro) var(--ease-out),+ background var(--dur-micro) var(--ease-out),transform 80ms var(--ease-out);}+.banner__shuffle svg {+ flex-shrink: 0;+ display: block;+}++.banner__shuffle-key {+ display: inline-block;+ font-weight: 500;+ letter-spacing: 0.04em;+ color: var(--color-muted);+ padding-inline-start: 0.4rem;+ border-inline-start: 1px solid var(--color-rule);+ margin-inline-start: 0.05rem;+ height: 14px;+ line-height: 14px;+}+@media (hover: hover) and (pointer: fine) {- .banner__random:hover { color: var(--color-ink); border-color: var(--color-ink); }+ .banner__shuffle:hover {+ color: var(--color-ink);+ border-color: var(--color-ink);+ }+ .banner__shuffle:hover .banner__shuffle-key {+ color: var(--color-ink);+ border-color: var(--color-ink);+ }+ .banner__shuffle:hover svg {+ transform: rotate(15deg);+ transition: transform 200ms var(--ease-out);+ }}-.banner__random:active { transform: rotate(180deg); transition-duration: 220ms; }+.banner__shuffle:active {+ transform: scale(0.96);+ transition-duration: 60ms;+}-.banner__random:focus-visible {+.banner__shuffle:focus-visible {outline: 2px solid var(--color-focus);outline-offset: 2px;}-.banner__kbd {- display: inline-flex;- align-items: center;- justify-content: center;- margin-inline-start: 0.25rem;- padding: 0.1rem 0.4rem;- font-family: var(--font-label);- font-size: 0.625rem;- letter-spacing: 0.08em;- color: var(--color-muted);- border: 1px solid var(--color-rule);- border-radius: 3px;- min-width: 18px;- min-height: 18px;+@media (max-width: 60rem) {+ .banner { gap: var(--space-md); }+ .banner__center { font-size: 0.825rem; }}-@media (max-width: 60rem) {- .banner { grid-template-columns: auto 1fr auto; gap: var(--space-md); }- .banner__center { font-size: var(--text-sm); }- .banner__kbd { display: none; }+@media (max-width: 50rem) {+ .banner__picker { gap: 0.28rem; }+ .banner__dot { width: 14px; height: 14px; }+ .banner__sep { display: none; }}+/* Below 44rem: hide the dot grid (would overflow); keep mark + theme name + shuffle */@media (max-width: 44rem) {.banner__ver { display: none; }+ .banner__picker { display: none; }+ .banner__shuffle-key { display: none; }+ .banner__shuffle { padding: 0 0.5rem; height: 24px; }+}++/* Below 26rem (very small phones): hide center label too — pure click-to-shuffle */+@media (max-width: 26rem) {.banner__center { display: none; }- .banner__picker { gap: 0.3rem; }- .banner__dot { width: 14px; height: 14px; }- .banner__sep { display: none; }}/* — Section label (01 / FOUNDATIONS) —————————————————— */@@ -1733,19 +1773,27 @@.gallery__thumb {grid-area: thumb;display: block;- width: 100%;- margin: calc(-1 * var(--space-lg)) calc(-1 * var(--space-lg)) var(--space-lg);+ /* Width must EXCEED content area by 2*padding so the negative margins+ reach the card's inside-border edge on both sides. width: 100% would+ only fill the content area, leaving padding visible on the right. */+ width: calc(100% + 2 * var(--space-lg));+ margin-inline: calc(-1 * var(--space-lg));+ margin-block-start: calc(-1 * var(--space-lg));+ margin-block-end: var(--space-lg);border-block-end: var(--rule-card, 1px) solid var(--color-rule);background: var(--color-paper-2);overflow: hidden;position: relative;- font-size: 0; /* kill any inline-element gap */+ font-size: 0; /* kill any inline-element gap */+ aspect-ratio: 16 / 10; /* explicit, so the image always fits */}.gallery__thumb img {display: block;width: 100%;- height: auto;+ height: 100%;+ object-fit: cover;+ object-position: top left; /* keep hero region; crop empty right */transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1);}@@ -1887,6 +1935,13 @@opacity: 0.65;}+/* Section 07 lead paragraph + outro — Salon centers all flowing prose */+[data-theme="salon"] .examples__intro,+[data-theme="salon"] .examples__outro {+ text-align: center;+ margin-inline: auto;+}+/* ───────────── NEWSPRINT — justified prose blocks ─────────────Print discipline. Long-form copy gets justified + hyphenated wherethe column is wide enough to render evenly. Headlines staydiff --git a/site/css/sections.css b/site/css/sections.cssindex 53c40f3..02247ad 100644--- a/site/css/sections.css+++ b/site/css/sections.css@@ -50,6 +50,30 @@}}+/* Narrow viewports — let headings wrap freely + cap display sizes so+ a long title fits at 320–480 px without being clipped by body's+ overflow-x: hidden. */+@media (max-width: 30rem) {+ .opening__title,+ .hero__display {+ font-size: clamp(1.75rem, 9vw, 2.75rem) !important;+ max-width: 12ch;+ overflow-wrap: break-word;+ word-wrap: break-word;+ hyphens: auto;+ }+ .section__title {+ font-size: clamp(1.375rem, 5.5vw, 1.875rem) !important;+ max-width: 100%;+ overflow-wrap: break-word;+ }+ .hero__lede,+ .opening__sub {+ font-size: 1rem !important;+ max-width: 100%;+ }+}+/* — 01 · Opening ——————————————————————————————————— */.opening {display: grid;diff --git a/site/index.html b/site/index.htmlindex eb5ca91..b9fdff8 100644--- a/site/index.html+++ b/site/index.html@@ -44,6 +44,8 @@<span class="banner__ver">v0.2</span></a>+ <span class="banner__spacer" aria-hidden="true"></span>+<span class="banner__center" data-theme-current>Specimen</span><div class="banner__picker" role="radiogroup" aria-label="Theme">@@ -64,20 +66,18 @@<button class="banner__dot" type="button" data-theme-btn="riso" aria-label="Riso" style="--dot: oklch(91% 0.034 30); --dot-edge: oklch(58% 0.170 220);"></button><button class="banner__dot" type="button" data-theme-btn="quiet" aria-label="Quiet" style="--dot: oklch(99.5% 0.002 90); --dot-edge: oklch(16% 0.005 240);"></button>- <span class="banner__sep" aria-hidden="true"></span>-- <button class="banner__random" type="button" aria-label="Random theme" title="Random (R)">- <svg viewBox="0 0 16 16" width="14" height="14" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">- <path d="M2 4 L7 4 L13 12 L14 12" />- <path d="M14 12 L12 10 M14 12 L12 14" />- <path d="M2 12 L7 12 L9 9.5" />- <path d="M11 6.5 L13 4 L14 4" />- <path d="M14 4 L12 2 M14 4 L12 6" />- </svg>- </button>-- <span class="banner__kbd" aria-hidden="true">T</span></div>++ <button class="banner__shuffle" type="button" aria-label="Random theme · T cycles · R randomises" title="Click → random · T cycles · R randomises">+ <svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">+ <path d="M16 3h5v5" />+ <path d="M4 20 21 3" />+ <path d="M21 16v5h-5" />+ <path d="m15 15 6 6" />+ <path d="M4 4l5 5" />+ </svg>+ <span class="banner__shuffle-key">T</span>+ </button></header><main class="page">diff --git a/site/js/main.js b/site/js/main.jsindex aac74dd..4af1afb 100644--- a/site/js/main.js+++ b/site/js/main.js@@ -553,14 +553,14 @@ dots.forEach((btn) => {});});-/* — Random button + R shortcut ——————————————————————————— */-const randomBtn = document.querySelector(".banner__random");+/* — Shuffle button + R shortcut ——————————————————————————— */+const shuffleBtn = document.querySelector(".banner__shuffle, .banner__random");function pickRandomTheme() {const keys = Object.keys(THEMES).filter((k) => k !== root.dataset.theme);return keys[Math.floor(Math.random() * keys.length)];}-if (randomBtn) {- randomBtn.addEventListener("click", () => applyTheme(pickRandomTheme()));+if (shuffleBtn) {+ shuffleBtn.addEventListener("click", () => applyTheme(pickRandomTheme()));}/* — Keyboard shortcuts ————————————————————————————————— */