/* Ermahgerd.AI — 2026-09-06. The grid is the interface. Ink is the mortar. Gemini's stack (Tailwind,
   a component kit, Google Fonts) stays on the floor. The three declarations it named are here, on
   the classes the generator already emits: 3px solid ink, a hard offset with zero blur, square corners.
   [MARK] the same turn: the brutal rigid grid is the CSS soul, non-negotiable. The Gemini robot photo
   is out. The drawn tee and mug do the job. */
:root {
  --bone: #f4efe6; --paper: #fffdf9; --ink: #111; --mute: #6b665c; --line: #ded6c6; --hot: #e63c1e; --sun: #ffd200;
  --serif: Georgia, 'Times New Roman', serif; --sans: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --pad: clamp(1.1rem, 5vw, 4rem); --rule: 3px; --bump: 6px;
}
* { box-sizing: border-box; }
html { background: var(--bone); color: var(--ink); font: 17px/1.55 var(--sans); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.sheet { margin: 0; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: var(--rule) solid var(--hot); outline-offset: 3px; }

/* ---- chrome. Opaque. A 3px rule, not glass. ---- */
.sheet-head { position: sticky; top: 0; z-index: 30; display: flex; gap: clamp(.55rem, 1.6vw, 1.1rem); align-items: center;
  padding: .7rem var(--pad); background: var(--bone); border-bottom: var(--rule) solid var(--ink); }
.wordmark { display: inline-flex; align-items: center; gap: .5rem; font-size: 1.05rem; font-weight: 900; letter-spacing: -.035em; text-decoration: none; white-space: nowrap; }
.wordmark svg { width: 1.35em; height: auto; flex: none; color: var(--hot); }
.wordmark:hover svg { color: var(--ink); }
.menu-bar { display: flex; flex: 1; gap: clamp(.55rem, 1.6vw, 1.1rem); align-items: center; }
.menu-bar > a { text-decoration: none; font-weight: 700; font-size: .9rem; white-space: nowrap; }
.menu-bar > a:hover { color: var(--hot); }
.dot { color: var(--mute); font-weight: 700; font-size: .8rem; line-height: 1; user-select: none; }
.nav-cta { margin-left: auto; font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; line-height: 1.2;
  background: var(--hot); color: #fff; padding: .45rem .9rem; border: var(--rule) solid var(--ink); box-shadow: var(--bump) var(--bump) 0 var(--ink); }
.nav-cta:hover { background: var(--ink); color: #fff; }
.nav-cta:active { transform: translate(var(--bump), var(--bump)); box-shadow: 0 0 0 var(--ink); }

/* The drop. A native <details>, so it needs no script, takes the keyboard, and is usable with JS off. */
.drop { position: relative; }
.drop > summary { list-style: none; cursor: pointer; font-weight: 700; font-size: .9rem; padding: .45rem 0; user-select: none; white-space: nowrap; }
.drop > summary::-webkit-details-marker { display: none; }
.drop > summary::after { content: '▾'; margin-left: .3rem; font-size: .7em; opacity: .5; display: inline-block; }
.drop > summary:hover, .drop[open] > summary { color: var(--hot); }
/* THE PANEL HANGS FROM OMG'S LEFT EDGE, at every width. Centring it, then pinning it right on a phone, ran the
   panel off the left once OMG sat mid-line. Anchoring left needs no breakpoint. */
.drop-panel { position: absolute; top: calc(100% + .6rem); left: 0; min-width: 15rem; z-index: 40;
  display: grid; background: var(--paper); border: var(--rule) solid var(--ink); box-shadow: var(--bump) var(--bump) 0 var(--ink); }
.drop-panel a { padding: .55rem .9rem; text-decoration: none; font-size: .88rem; border-bottom: var(--rule) solid var(--ink); text-transform: lowercase; }
.drop-panel a:last-child { border-bottom: 0 }
.drop-panel a:hover { background: var(--ink); color: var(--bone); }
.drop-all { font-weight: 800; text-transform: none !important; background: var(--sun); }
@media (max-width: 34rem) {
  .sheet-head { gap: .45rem; padding-inline: .75rem; }
  .wordmark { font-size: .95rem; gap: .35rem; }
  .menu-bar { gap: .45rem; }
  .dot { font-size: .7rem; }
  .menu-bar > a, .drop > summary { font-size: .8rem; }
  .nav-cta { padding: .4rem .65rem; font-size: .8rem; }
  .drop-panel { min-width: 13rem; }
}
@media (max-width: 26rem) {
  .sheet-head, .menu-bar { gap: .3rem; }
  .sheet-head { padding-inline: .55rem; }
  .wordmark { font-size: .82rem; gap: .28rem; }
  .menu-bar > a, .drop > summary { font-size: .72rem; }
  .dot { font-size: .6rem; }
  .nav-cta { padding: .34rem .5rem; font-size: .72rem; }
}
/* Below 21rem the wordmark keeps the MARK and drops its text. The name is still in the <title>, the hero and every footer. */
@media (max-width: 21rem) { .wordmark > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } }

.button.cue { display: inline-block; margin-top: .4rem; background: none; border: 0; box-shadow: none; color: var(--mute); font-weight: 700; font-size: .9rem; padding: .4rem 0; }
.button.cue:hover, .button.cue:active { background: none; color: var(--hot); transform: none; box-shadow: none; }
.button.cue::after { content: ''; display: block; width: var(--rule); height: 1.6rem; margin: .5rem auto 0; background: var(--hot); }

/* ---- type. The joke is the words. Display stays huge. No webfont. ---- */
.band-top { padding: clamp(2.5rem, 8vw, 5.5rem) var(--pad) .5rem; }
.title-line { line-height: .9; margin: 0; letter-spacing: -.05em; font-weight: 900; text-wrap: balance; }
h1.title-line { font-size: clamp(2.7rem, 10vw, 8rem); }
h2.title-line { font-size: clamp(1.5rem, 4vw, 2.4rem); }
h3.title-line { font-size: 1.25rem; }
/* The moral on a mahgerd is a poster H2. Tags stay H2. Scale stays loud on purpose. */
.flow-section > h2.title-line { font-size: clamp(2.2rem, 7vw, 5.4rem); }
.title-note { display: block; font: italic clamp(1rem, 2.2vw, 1.3rem)/1.35 var(--serif); color: var(--hot); margin-top: .9rem; letter-spacing: 0; text-transform: none; }
.sheet-main { padding: 0 var(--pad) 3rem; }
.text-column .flow-section, .is-home .flow-section { max-width: 40rem; }
.text-column .flow-section:has(> .group-flow) { max-width: none; margin-inline: calc(var(--pad) * -1); }
.flow-section { margin: 1.4rem 0; }
.flow-section:first-child { margin-top: 1.8rem; }
/* A prose body's paragraph breaks are literal newlines (the inline set is link, em, strong, code); pre-line makes them paragraphs. */
.prose-flow p, .prose-flow { margin: 0 0 1rem; font-size: 1.08rem; white-space: pre-line; }
.prose-flow strong { background: var(--sun); padding: .05em .3em; font-weight: 700; }
.prose-flow em { font-family: var(--serif); font-size: 1.1em; }
.pull-quote { margin: 2rem 0; padding: 0 0 0 1.3rem; border-left: 8px solid var(--hot); }
.pull-quote p { margin: 0; font: italic clamp(1.15rem, 2.6vw, 1.6rem)/1.4 var(--serif); white-space: pre-wrap; text-wrap: pretty; }
.quote-hand { display: block; font: .85rem/1.4 var(--sans); color: var(--mute); margin-top: .9rem; letter-spacing: .01em; }

/* ---- THE GRID. Ink behind, gap = the rule, cells sit on paper. Four columns until they cannot. ---- */
.wide-band { padding: 0; border-top: var(--rule) solid var(--ink); }
.wide-band + .wide-band { border-top: 0; }
.band-title { font-size: clamp(1.4rem, 4vw, 2.2rem); margin: 0; padding: 1rem var(--pad); letter-spacing: -.03em; font-weight: 900;
  display: flex; flex-wrap: wrap; gap: .7rem; align-items: baseline; border-bottom: var(--rule) solid var(--ink); background: var(--bone); }
.band-note { font: italic 1rem/1 var(--serif); color: var(--hot); letter-spacing: 0; text-transform: lowercase; font-weight: 400; }
.wall-grid, .wall-rail {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--ink); gap: var(--rule); border: 0; border-bottom: var(--rule) solid var(--ink); padding: 0; margin: 0;
}
.wall-grid:has(> .card:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; background: var(--paper); border: 0; margin: 0; padding-bottom: .9rem; }
a.card { color: inherit; text-decoration: none; cursor: pointer; }
.card:hover { background: var(--sun); }
.card img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--bone); border: 0; border-bottom: var(--rule) solid var(--ink); padding: .75rem; }
.card .shirt-box { width: 100%; aspect-ratio: 1; background: var(--bone); border-bottom: var(--rule) solid var(--ink); padding: 0; }
.card .shirt-box img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border: 0; padding: .75rem; background: none; }
.card-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; margin: .9rem .9rem .4rem; font-weight: 900; font-size: 1.08rem; line-height: 1.18; letter-spacing: -.02em; text-decoration: none; text-wrap: balance; }
.card:hover .card-title { color: var(--ink); }
.card-quote { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; margin: 0 .9rem .7rem; font: italic .95rem/1.35 var(--serif); color: var(--mute); }
.card-mode { margin: auto .9rem 0; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--hot); font-weight: 700; }
.wall-grid > .card:not(:has(img)) { min-height: 13rem; padding-top: .6rem; }
@media (max-width: 62rem) { .wall-grid, .wall-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 40rem) {
  .wall-grid, .wall-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-title { font-size: .92rem; margin: .6rem .6rem .3rem; }
  .card-quote { font-size: .8rem; margin: 0 .6rem .5rem; }
  .card-mode { font-size: .6rem; margin: auto .6rem 0; }
}

/* Mode index: the same mortar, eight stamps. Wall groups also carry this class, so the wall's own grid wins there. */
.group-flow:not(.wall-grid):not(.wall-rail) { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--rule); background: var(--ink); border: var(--rule) solid var(--ink); }
.group-flow:not(.wall-grid):not(.wall-rail) > .button { margin: 0; border: 0; box-shadow: none; text-align: center; background: var(--paper); color: var(--ink); }
.group-flow:not(.wall-grid):not(.wall-rail) > .button:hover { transform: none; background: var(--hot); color: #fff; }
.group-flow:not(.wall-grid):not(.wall-rail) > .button:active { transform: none; box-shadow: none; background: var(--ink); color: var(--bone); }
@media (max-width: 40rem) { .group-flow:not(.wall-grid):not(.wall-rail) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- the garment, as a stamp. No drop-shadow, no tilt. The drawing is the product. ---- */
.art-frame { margin: 0; max-width: none; background: var(--bone); }
.art-frame img { width: 100%; filter: none; }
.art-frame .shirt-box { width: min(100%, 28rem); aspect-ratio: 1; margin-inline: auto; }
.art-frame .shirt-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.art-note { color: var(--mute); font-size: .85rem; margin-top: .4rem; }

/* THE RUPTURE. One shirt. FRONT is a packing stamp. The back tears in through scratches, holds, tears out.
   Same beat on the wall and the hero — a toggle, never a minute on the back. */
.shirt-box { position: relative; display: block; overflow: hidden; isolation: isolate; --front: 6500ms; --back: 5500ms; --delay: 0ms; }
.shirt-stamp { position: absolute; z-index: 5; top: .35rem; left: .35rem; font: 800 .58rem/1 var(--sans); letter-spacing: .22em;
  background: var(--ink); color: var(--bone); padding: .28rem .45rem; pointer-events: none; }
.shirt-box.is-rear .shirt-stamp { background: var(--hot); color: #fff; }
.shirt-box .is-back { opacity: 0; }
.shirt-box.is-rear .is-back { opacity: 1; }
.shirt-box.is-rear .is-front { opacity: 0; }
.shirt-box.is-break { animation: shirt-kick .42s steps(3); box-shadow: 10px 0 0 var(--hot), -8px 0 0 var(--ink); }
.shirt-box.is-break::after { content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: repeating-linear-gradient(98deg, transparent 0 6px, var(--ink) 6px 7px, transparent 7px 15px, var(--hot) 15px 16px);
  mix-blend-mode: multiply; animation: shirt-scratch .42s steps(4) both; }
.shirt-box.is-break .is-front { opacity: 1; transform: translate(-12px, 3px);
  clip-path: polygon(0 0, 100% 0, 100% 28%, 0 34%, 0 48%, 100% 44%, 100% 100%, 0 100%); }
.shirt-box.is-break .is-back { opacity: 1; transform: translate(14px, -4px); filter: contrast(1.35);
  clip-path: polygon(0 30%, 100% 24%, 100% 52%, 0 58%); }
@keyframes shirt-kick { 0% { transform: none } 35% { transform: translateX(-18px) } 70% { transform: translateX(16px) } 100% { transform: none } }
@keyframes shirt-scratch { 0% { transform: translateY(0); opacity: 1 } 55% { transform: translateY(-45%); opacity: 1 } 100% { transform: translateY(25%); opacity: 0 } }

/* Magherd hero: two cells, ink between. Title left, shirt right. Stacked under 40rem, DOM order. */
@media (min-width: 40rem) {
  .band-top:has(.art-frame) { display: grid; grid-template-columns: 1fr 1fr; gap: var(--rule); background: var(--ink);
    border-block: var(--rule) solid var(--ink); padding: 0; max-width: none; margin: 0; align-items: stretch; }
  .band-top:has(.art-frame) > * { background: var(--bone); padding: clamp(1.6rem, 4vw, 3.2rem) var(--pad); }
  .band-top:has(.art-frame) .art-frame { margin: 0; display: grid; place-items: center; }
  .band-top:has(.art-frame) .title-line { font-size: clamp(2.4rem, 5vw, 5.2rem); }
}

/* ---- stamps you press. Hover does not lift. Active meets the shadow. ---- */
.button { display: inline-block; padding: .55rem 1.1rem; border: var(--rule) solid var(--ink); background: var(--ink); color: var(--bone);
  text-decoration: none; font-weight: 700; font-size: .95rem; box-shadow: var(--bump) var(--bump) 0 var(--ink); }
.button:hover { background: var(--hot); color: #fff; }
.button:active { transform: translate(var(--bump), var(--bump)); box-shadow: 0 0 0 var(--ink); }
.button-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.button-row .button { min-width: 3.4rem; text-align: center; }
.cta { background: var(--hot); color: #fff; font-size: 1.05rem; padding: .7rem 1.4rem; }
.cta:hover { background: var(--ink); color: #fff; }
.side-note { margin: 2rem 0; padding: 1.3rem; border: var(--rule) solid var(--ink); background: var(--paper); max-width: 40rem; box-shadow: var(--bump) var(--bump) 0 var(--ink); }
.side-note + .side-note { margin-top: 1rem; }
.side-note .button-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); }
.side-note .button-row .button { text-align: center; }
/* A SECONDARY ACTION IN A CALLOUT IS OUTLINED, NOT FILLED. Was `:only-child`, which held only while a side-note
   contained exactly one row. Scoped with `>` so size buttons inside the shop popover keep their fill. */
.side-note > .button-row .button:not(.cta) { background: var(--paper); color: var(--ink); }
.side-note > .button-row .button:not(.cta):hover { background: var(--hot); color: #fff; }
.side-note .button.cta { display: block; text-align: center; font-size: 1.15rem; padding: .85rem 1.2rem; margin: .2rem 0 .6rem; }
.side-note > .button-row .button.cta { margin: 0; display: grid; place-content: center; }
.side-note > .title-line { font-size: 1.35rem; margin: 0 0 .2rem; }
.side-note > .title-line + .button-row { margin-top: .9rem; }
.side-note .stack-list { margin: .9rem 0 0; padding: 0; list-style: none; font-size: .85rem; color: var(--mute); display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .1rem .8rem; }
.side-note .prose-flow { margin-bottom: .8rem; }
.side-note .prose-flow:last-of-type { margin-bottom: 1rem; }
.stack-list { padding-left: 1.2rem; }

/* ---- the form ---- */
.ask-form { margin: 2rem 0 1rem; padding: 1.4rem; background: var(--paper); border: var(--rule) solid var(--ink); box-shadow: var(--bump) var(--bump) 0 var(--ink); }
.ask-form h2 { margin: 0 0 .9rem; font-size: 1.45rem; letter-spacing: -.02em; }
.ask-form textarea, .ask-form input { width: 100%; font: inherit; padding: .7rem; border: var(--rule) solid var(--ink); background: var(--bone); margin-bottom: .7rem; color: var(--ink); border-radius: 0; }
.ask-form textarea { resize: vertical; min-height: 7rem; }
.ask-form textarea:focus, .ask-form input:focus { outline: none; background: #fff; }
.ask-form button { font: 700 1.05rem var(--sans); padding: .75rem 1.5rem; border: var(--rule) solid var(--ink); background: var(--hot); color: #fff; cursor: pointer; box-shadow: var(--bump) var(--bump) 0 var(--ink); }
.ask-form button:hover { background: var(--ink); }
.ask-form button:active { transform: translate(var(--bump), var(--bump)); box-shadow: 0 0 0 var(--ink); }
.is-home .ask-form:focus-within { box-shadow: var(--bump) var(--bump) 0 var(--hot); }

.sheet-foot { padding: 2.2rem var(--pad) 3rem; border-top: var(--rule) solid var(--ink); color: var(--mute); font-size: .88rem; background: var(--bone); }
.sheet-foot .prose-flow { max-width: 38rem; }
.sheet-foot .title-line { font-size: clamp(1.3rem, 3.2vw, 2rem); letter-spacing: -.025em; color: var(--ink); margin: 0 0 1.4rem; max-width: 22ch; }
.sheet-foot { display: flex; flex-direction: column; }
.sheet-foot > .title-line { order: 1; }
.sheet-foot > .prose-flow { order: 2; }
.sheet-foot > .foot-nav { order: 3; flex: none; margin-top: 1rem; color: var(--ink); }
.sheet-foot > .foot-links { order: 4; }
.sheet-foot .drop-panel { top: auto; bottom: calc(100% + .6rem); }
.foot-links { display: flex; gap: 1.2rem; margin-top: .85rem; }
.foot-link { font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: .28em; text-decoration-thickness: 2px; }
.foot-link:hover { color: var(--hot); }

/* THE HOME CASE. [MARK] 2026-09-07: the hero is the catalog in motion, not a manifesto. The wall stays a grid.
   Two copies of `rail` sit in band-top so a CSS translate of -100% loops. The plea is the same heading the footer
   already carries, so a model still gets the words. The bed tears; the shirts do not. Hover pauses so a thumb can hit one. */
.sheet:has(> main.is-home) > .band-top {
  position: relative; display: flex; overflow: hidden; max-width: none; margin: 0; padding: 0;
  background: var(--ink); border-bottom: var(--rule) solid var(--ink); min-height: min(82vw, 32rem);
}
.sheet:has(> main.is-home) > .band-top .wall-rail {
  display: flex; flex: 0 0 auto; width: max-content; gap: var(--rule); padding-right: var(--rule);
  background: var(--ink); border: 0; animation: cabinet-move 48s linear infinite; will-change: transform;
}
.sheet:has(> main.is-home) > .band-top:hover .wall-rail,
.sheet:has(> main.is-home) > .band-top:focus-within .wall-rail { animation-play-state: paused }
.sheet:has(> main.is-home) > .band-top .card {
  width: min(82vw, 30rem); flex: none; padding: 0; background: var(--bone);
}
.sheet:has(> main.is-home) > .band-top .card img {
  aspect-ratio: 1; object-fit: contain; padding: 1.1rem; border: 0; background: var(--bone);
}
.sheet:has(> main.is-home) > .band-top .card-title,
.sheet:has(> main.is-home) > .band-top .card-quote,
.sheet:has(> main.is-home) > .band-top .card-mode {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
}
.sheet:has(> main.is-home) > .band-top .card:hover { background: var(--sun) }
.sheet:has(> main.is-home) > .band-top .card:hover img { background: var(--sun) }
@keyframes cabinet-move { to { transform: translateX(-100%) } }

/* A MOVING CASE IN ANY WIDE BAND. [MARK] 2026-09-07: the why page needs tiles and rotating galleries, not a text column.
   A `wide` group flagged `rail` carries each card TWICE (serve.ts `belt`), so a -50% translate loops with one rail and the
   band stays an ordinary block: title, then the belt, then whatever else shares the run. Adjacent wide rows merge into one
   section, so a band must never need a grid of its own. Smaller cards than the home hero: a gallery, not the marquee. */
.wide-band:has(> .wall-rail) { overflow: hidden; background: var(--ink); border-bottom: var(--rule) solid var(--ink); }
.wide-band > .wall-rail { display: flex; width: max-content; gap: var(--rule); padding-right: var(--rule); border: 0;
  background: var(--ink); animation: cabinet-belt 40s linear infinite; will-change: transform; }
@keyframes cabinet-belt { to { transform: translateX(-50%) } }
.wide-band:hover > .wall-rail, .wide-band:focus-within > .wall-rail { animation-play-state: paused; }
.wide-band > .wall-rail .card { width: min(64vw, 19rem); flex: none; padding: 0; background: var(--bone); }
.wide-band > .wall-rail .card img { aspect-ratio: 1; object-fit: contain; padding: .8rem; border: 0; background: var(--bone); }
.wide-band > .wall-rail .card-title, .wide-band > .wall-rail .card-quote, .wide-band > .wall-rail .card-mode { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.wide-band > .wall-rail .card:hover, .wide-band > .wall-rail .card:hover img { background: var(--sun); }

/* TILES THAT ARE NOT SHIRTS. A wide group of headings is a row of posters; a wide group of quotes is a wall of testimony;
   an image in a wide band is a banner. Same mortar as the wall, so the page is one grid with different things in the cells. */
/* In the wide slot a group without a rail/grid flag is a bare <div> (the slot rule replaces the site-wide class), and a heading
   inside it still takes the slot's band-title rule. So the tiles are styled by what the div HOLDS, and the band chrome is reset. */
.wide-band > div:has(> .band-title), .wide-band > div:has(> .pull-quote), .wide-band > div:has(> .button) { display: grid; gap: var(--rule); background: var(--ink); border-bottom: var(--rule) solid var(--ink); }
.wide-band > div:has(> .band-title) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wide-band > div > .band-title { margin: 0; padding: clamp(1.4rem, 3vw, 2.6rem) clamp(1rem, 2.4vw, 2rem); background: var(--paper); border-bottom: 0;
  font-size: clamp(1.35rem, 2.6vw, 2.3rem); line-height: 1; letter-spacing: -.035em; text-wrap: balance; display: grid; align-content: end; min-height: 11rem; }
.wide-band > div > .band-title:nth-child(2n) { background: var(--bone); }
.wide-band > div > .band-title:last-child { background: var(--hot); color: #fff; }
.wide-band > div:has(> .pull-quote) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wide-band > div > .pull-quote { margin: 0; padding: 1.5rem clamp(1rem, 2.4vw, 1.8rem) 1.4rem; background: var(--paper); border-left: 0; display: flex; flex-direction: column; }
.wide-band > div > .pull-quote p { font-size: 1.02rem; line-height: 1.45; }
.wide-band > div > .pull-quote .quote-hand { margin-top: auto; padding-top: 1rem; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--hot); }
/* The taxonomy as tiles: eight stamps, four across, counts on. */
.wide-band > div:has(> .button) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wide-band > div > .button { margin: 0; border: 0; box-shadow: none; background: var(--paper); color: var(--ink); text-align: center; padding: clamp(1.2rem, 2.6vw, 2rem) 1rem; font-size: clamp(.95rem, 1.6vw, 1.15rem); text-transform: lowercase; }
.wide-band > div > .button:hover { background: var(--hot); color: #fff; }
.wide-band > div > .button:active { transform: none; background: var(--ink); color: var(--bone); }
.wide-band > .art-frame { margin: 0; padding: clamp(1rem, 3vw, 2.5rem) var(--pad); background: var(--bone); border-bottom: var(--rule) solid var(--ink); }
.wide-band > .art-frame img { width: min(100%, 88rem); margin-inline: auto; }
@media (max-width: 40rem) {
  .wide-band > div:has(> .band-title), .wide-band > div:has(> .button) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wide-band > div > .band-title { min-height: 8rem; }
  .wide-band > div:has(> .pull-quote) { grid-template-columns: 1fr; }
}

/* The plea break. Same scratch as the shirt. Comes through, holds, goes. Pointers stay on the garments. */
.sheet:has(> main.is-home) > .band-top::before,
.sheet:has(> main.is-home) > .band-top::after {
  content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none;
}
.sheet:has(> main.is-home) > .band-top::before {
  background: var(--ink); opacity: 0; animation: cabinet-veil 16s linear infinite;
}
.sheet:has(> main.is-home) > .band-top::after {
  background: repeating-linear-gradient(98deg, transparent 0 6px, var(--ink) 6px 7px, transparent 7px 15px, var(--hot) 15px 16px);
  mix-blend-mode: multiply; opacity: 0; animation: cabinet-scratch 16s steps(4) infinite;
}
.sheet:has(> main.is-home) > .band-top > .plea-hit {
  position: absolute; inset: 0; z-index: 5; display: grid; place-content: center; margin: 0;
  max-width: none; pointer-events: none; text-align: center; text-transform: uppercase;
  font: 900 clamp(1.6rem, 7vw, 4.4rem)/.88 var(--sans); letter-spacing: .04em; color: #fff;
  text-wrap: balance; padding: 1.2rem; opacity: 0; animation: cabinet-plea 16s linear infinite;
}
.sheet:has(> main.is-home) > .band-top > .plea-hit .title-note { display: none }
@keyframes cabinet-veil { 0%, 68%, 90%, 100% { opacity: 0 } 73%, 86% { opacity: .72 } }
@keyframes cabinet-scratch { 0%, 68%, 76%, 100% { opacity: 0; transform: none } 70% { opacity: 1; transform: translateY(0) } 73% { opacity: 1; transform: translateY(-40%) } }
@keyframes cabinet-plea { 0%, 70%, 90%, 100% { opacity: 0 } 74%, 86% { opacity: 1 } }

main.is-home > .flow-section > h1.title-line {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
}

/* A 3px reading rail. */
body.sheet::before { content: ''; position: fixed; top: 0; left: 0; height: var(--rule); z-index: 40;
  width: calc(var(--scroll-progress, 0) * 100%); background: var(--hot); }

.flow-section > .button[href^="http"] { background: none; color: var(--ink); border: 0; box-shadow: none; border-bottom: var(--rule) solid var(--hot); padding: 0 0 .15rem; font-size: .95rem; }
.flow-section > .button[href^="http"]:hover, .flow-section > .button[href^="http"]:active { color: var(--hot); transform: none; box-shadow: none; background: none; }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .18s ease both }
::view-transition-new(root) { animation: vt-in .28s cubic-bezier(.2,.8,.2,1) both }
@keyframes vt-out { to { opacity: 0 } }
@keyframes vt-in { from { opacity: 0 } }
.art-frame .shirt-box { view-transition-name: shirt }

html { scroll-padding-top: 5rem; }
@media (min-width: 62rem) { .text-column .side-note:first-of-type { position: sticky; top: 5.4rem; } }

/* THE SIZE PICKER IS A NATIVE POPOVER. The closed state must outrank `.button-row { display: flex }`,
   or the picker renders inline on every mahgerd. Found by [MARK] on a phone. */
.sizes-modal:not(:popover-open) { display: none; }
.sizes-modal:popover-open { display: grid; gap: .55rem; place-content: center; justify-items: stretch;
  width: min(24rem, calc(100vw - 2rem)); padding: 1.6rem; border: var(--rule) solid var(--ink); background: var(--paper);
  box-shadow: var(--bump) var(--bump) 0 var(--ink); }
.sizes-modal::backdrop { background: rgba(17,17,17,.55); }
.sizes-modal .title-line { font-size: 1.5rem; margin: 0 0 .3rem; }
.sizes-modal .title-note { font-size: .9rem; margin-top: .25rem; }
.sizes-modal .button { text-align: center; padding: .9rem; font-size: 1.1rem; }
.sizes-modal { grid-template-columns: repeat(auto-fit, minmax(4.2rem, 1fr)); }
.sizes-modal > .title-line { grid-column: 1 / -1; }
.sizes-modal > .button.shut { grid-column: 1 / -1; margin-top: .4rem; }
.button.shut { background: none; color: var(--mute); border: 0; box-shadow: none; padding: .3rem; font-size: .85rem; }
.button.shut:hover, .button.shut:active { background: none; color: var(--hot); transform: none; box-shadow: none; }
@supports not selector(:popover-open) { .sizes-modal { display: flex; flex-wrap: wrap; gap: .5rem } .button.shut { display: none } }

.shop-modal:popover-open { grid-template-columns: 1fr; justify-items: stretch; place-content: start stretch; text-align: left;
  width: min(30rem, calc(100vw - 2rem)); max-height: min(86dvh, 46rem); overflow: auto; gap: .5rem; }
.shop-modal .button-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(4.2rem, 1fr)); gap: .5rem; margin: .2rem 0 .5rem; }
.shop-modal .button-row > .title-line { grid-column: 1 / -1; font-size: 1.02rem; margin: .4rem 0 .1rem; }
.shop-modal .button-row:has(> a.button:only-of-type) { grid-template-columns: 1fr; }
.shop-modal > .title-line { margin-bottom: .1rem; font-size: 1.5rem; }
.shop-modal .prose-flow { font-size: .9rem; color: var(--mute); margin: .2rem 0; }
.shop-modal .stack-list { margin: .2rem 0 .4rem; padding: 0; list-style: none; font-size: .8rem; color: var(--mute);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .1rem .8rem; }
.shop-modal > .button:not(.shut) { text-align: left; background: none; border: 0; box-shadow: none; color: var(--mute); font-size: .85rem; padding: .3rem 0; }
.shop-modal > .button:not(.shut):hover, .shop-modal > .button:not(.shut):active { background: none; color: var(--hot); transform: none; box-shadow: none; }
@supports not selector(:popover-open) { .shop-modal { display: block } }

.spec-table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: .95rem; }
.spec-table td { border-bottom: var(--rule) solid var(--ink); padding: .55rem .4rem .55rem 0; vertical-align: top; }
.spec-table tr:last-child td { border-bottom: 0; }
.spec-table td:first-child { width: 34%; font-weight: 700; color: var(--mute); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }

.sizes-modal, .bring-modal { --w: 24rem; }
.bring-modal { --w: 34rem; }
.bring-modal.sizes-modal:popover-open { display: block; grid-template-columns: none; width: min(var(--w), calc(100vw - 1.6rem)); }
.bring-modal:popover-open { display: block; width: min(var(--w), calc(100vw - 1.6rem)); padding: 1.6rem;
  border: var(--rule) solid var(--ink); background: var(--paper); box-shadow: var(--bump) var(--bump) 0 var(--ink); max-height: 90dvh; overflow: auto; }
.bring-modal:not(:popover-open) { display: none; }
.bring-modal::backdrop { background: rgba(17,17,17,.55); }
.bring-modal .title-line { font-size: clamp(1.6rem, 5vw, 2.2rem); margin: 0 0 .2rem; }
.bring-modal .title-note { font-size: .9rem; margin-top: .3rem; }
.bring-modal .ask-form { margin: 1.2rem 0 0; box-shadow: none; border: 0; padding: 0; background: none; }
.bring-modal .ask-form h2 { display: none; }

.band-top, .sheet-main, .sheet-foot { max-width: 88rem; margin-inline: auto; }
.wide-band { max-width: none; margin: 0; }
@media (min-width: 62rem) {
  .sheet-head > .wordmark { margin-left: max(0px, calc((100vw - 88rem) / 2 - var(--pad))); }
  .sheet-head > .menu-bar { margin-right: max(0px, calc((100vw - 88rem) / 2 - var(--pad))); }
  .text-column .flow-section:has(.prose-flow), .text-column .side-note { max-width: 46rem; }
}

/* Closed popover is the only child of its aside: the aside's border still drew. display:contents removes the box. */
.side-note:has(> [popover]:only-child) { display: contents; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  body.sheet::before { display: none }
  .shirt-box.is-break, .shirt-box.is-break .is-front, .shirt-box.is-break .is-back { transform: none; clip-path: none; filter: none; box-shadow: none }
  .sheet:has(> main.is-home) > .band-top { flex-wrap: wrap; overflow: visible; min-height: 0 }
  /* REDUCE MOTION IS A GRID, NOT A RAIL. Found 2026-09-07: `width: 50%` on a card inside a `max-content` rail resolved against
     the 1000px images — one 5,200px card on a 52,031px page, a blank slab for anyone with the OS toggle on. The rail takes the
     wall's grid at full width; the second copy stays hidden (its rule is more specific than the grid, so order does not matter). */
  .sheet:has(> main.is-home) > .band-top .wall-rail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); flex: 1 1 100%; width: 100%; min-width: 0; }
  .sheet:has(> main.is-home) > .band-top .wall-rail:nth-of-type(2) { display: none }
  .sheet:has(> main.is-home) > .band-top .card { width: auto }
  .wide-band:has(> .wall-rail) { overflow-x: auto } /* a belt you scroll instead of one that moves */
  .sheet:has(> main.is-home) > .band-top > .plea-hit {
    position: static; flex: 1 1 100%; opacity: 1; color: var(--ink); font-size: clamp(1.3rem, 4vw, 2rem); padding: 1.2rem var(--pad);
  }
}
