/* WBOTY - the catalogue. One violet ink on near-black, set like a printed mail-order list. */
:root {
  --bg: #0c0912;
  --bg-2: #120d1a;
  --bg-3: #1a1324;
  --rule: rgba(196, 170, 255, .13);
  --rule-2: rgba(196, 170, 255, .3);
  --bone: #ece6f6;
  --dim: #aa9fbe;
  --faint: #8a809f;
  --ink: #8f5cff;
  --ink-light: #b8a0ff;
  --on-ink: #0c0912;
  --display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; scrollbar-gutter: stable; scrollbar-color: #3a2a5c var(--bg); }
html:has(.slip[open]) { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--bone);
  font: 400 14.5px/1.6 var(--mono);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
}
::selection { background: var(--ink); color: var(--on-ink); }
a { color: var(--ink-light); text-decoration: none; }
a:hover { color: var(--bone); }
h1, h2, h3, p { margin: 0; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink-light); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.i { display: inline-flex; width: 16px; height: 16px; flex: none; }
.i svg { width: 100%; height: 100%; }
.slash { color: var(--faint); margin: 0 8px; }

/* running heads: small caps label with a rule running to the edge */
.label-head {
  display: flex; align-items: center; gap: 14px;
  font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .18em; color: var(--dim);
}
.label-head::after { content: ""; flex: 1; height: 1px; background: var(--rule-2); }
.label-head .lh-count { color: var(--faint); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  padding: 10px 14px; background: var(--ink); color: var(--on-ink); font-weight: 600;
}
.skip:focus { top: 12px; color: var(--on-ink); }

/* ---------- Masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  border-bottom: 2px solid var(--bone);
}
.masthead-inner { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 24px; height: 60px; }
.wordmark { font: 900 30px/1 var(--display); letter-spacing: .06em; color: var(--bone); padding: 8px 0; }
.wordmark:hover { color: var(--ink-light); }
.nav { display: flex; gap: 2px; justify-self: end; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--dim);
}

/* ---------- Thanks banner ---------- */
.thanks { background: var(--ink); color: var(--on-ink); padding: 14px 0; font-size: 14px; }
.thanks strong { font-weight: 600; margin-right: 6px; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(28px, 4vw, 44px) 0 clamp(48px, 7vw, 96px); border-bottom: 1px solid var(--rule-2); }
/* looping background video behind the top section: no controls, can't be clicked,
   with a violet-black tint over it so the text stays easy to read */
.hero-media { position: absolute; inset: 0; z-index: -1; pointer-events: none; user-select: none; background: var(--bg); }
/* tuned so the headline stays at least 4.5:1 against the brightest frame of the clip */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.65); }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 9, 18, .7) 0%, rgba(12, 9, 18, .25) 30%, rgba(12, 9, 18, .3) 72%, var(--bg) 100%),
    linear-gradient(90deg, rgba(12, 9, 18, .1) 0%, rgba(12, 9, 18, .25) 100%);
}
.dateline {
  display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap;
  padding: 9px 0; margin-bottom: clamp(28px, 5vw, 56px);
  border-top: 2px solid var(--bone); border-bottom: 1px solid var(--rule-2);
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .18em; color: var(--dim);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.hero-type { container-type: inline-size; min-width: 0; }
.hero h1 {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(52px, 20.5cqi, 188px); line-height: .82; letter-spacing: -.01em;
}
.hero h1 .line { display: block; white-space: nowrap; }

.hero-index { border-top: 2px solid var(--bone); padding: 14px 16px 18px; background: rgba(12, 9, 18, .88); }
.hero .dateline { padding-left: 10px; padding-right: 10px; background: rgba(12, 9, 18, .75); }
.index-head {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .18em; color: var(--dim);
  padding-bottom: 10px; border-bottom: 1px solid var(--rule-2);
}
.toc { list-style: none; margin: 0; padding: 0; }
.toc button {
  --fg: var(--bone); --fg-2: var(--ink-light); --fg-3: var(--dim); --dots: var(--rule-2);
  display: grid; grid-template-columns: 40px auto 1fr auto; align-items: baseline; gap: 10px;
  width: 100%; min-height: 46px; padding: 11px 4px;
  background: none; border: 0; border-bottom: 1px solid var(--rule); cursor: pointer; text-align: left;
  font-size: 14px; color: var(--fg);
}
.toc .toc-no { font: 800 18px/1 var(--display); color: var(--fg-2); letter-spacing: .04em; }
.toc .toc-dots { border-bottom: 1px dotted var(--dots); transform: translateY(-4px); min-width: 12px; }
.toc .toc-count { color: var(--fg-3); }
.toc button:focus-visible { outline-offset: -2px; }
.toc button:focus-visible { --fg: var(--on-ink); --fg-2: var(--on-ink); --fg-3: var(--on-ink); --dots: rgba(12, 9, 18, .5); background: var(--ink); }
.hero-note { margin-top: 18px; color: var(--dim); font: 400 15px/1.55 var(--serif); }
.hero-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 18px; min-height: 52px; padding: 0 18px;
  background: var(--ink); color: var(--on-ink);
  font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .14em;
}
.hero-cta .i { transform: rotate(90deg); }

/* ---------- Catalogue ---------- */
.catalogue { padding: clamp(48px, 7vw, 88px) 0 clamp(48px, 7vw, 88px); }
/* "Catalogue" heading set in the same type and size as the product names */
.cat-title { align-items: baseline; font: 800 clamp(30px, 3.3vw, 44px)/.92 var(--display); letter-spacing: .01em; color: var(--bone); }
.cat-title .lh-count { font: 500 12px/1 var(--mono); letter-spacing: .18em; }
.cat-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 16px 24px; margin-top: 24px; }
.search {
  display: flex; align-items: center; gap: 12px;
  width: 260px; max-width: 100%; height: 46px;
  border-bottom: 2px solid var(--rule-2);
}
.search:focus-within { border-color: var(--ink); }
.search-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .18em; color: var(--dim); }
.search input { flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: 0; color: var(--bone); font-size: 16px; }
.search input::placeholder { color: var(--faint); font-style: italic; }
.search input::-webkit-search-cancel-button { filter: invert(.7) sepia(1) hue-rotate(220deg); cursor: pointer; }
.search-key {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border: 1px solid var(--rule-2);
  font: 500 12px/1 var(--mono); color: var(--dim);
}
.search:focus-within .search-key { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  min-height: 44px; padding: 0 12px;
  background: transparent; border: 1px solid var(--rule-2); cursor: pointer;
  font-size: 11.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--dim);
}
.chip .count { margin-left: 6px; color: var(--faint); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.chip[aria-pressed="true"] .count { color: var(--on-ink); font-weight: 400; }

/* one grid for the column header, chapter heads and item rows, so every edge lines up */
.cols, .card, .chapter {
  display: grid;
  grid-template-columns: 76px 56px auto minmax(32px, 1fr) 110px 28px;
  align-items: center; column-gap: 16px; padding-left: 12px; padding-right: 12px;
}
.cols {
  margin-top: 32px; padding-bottom: 10px;
  border-bottom: 2px solid var(--bone);
  font-size: 11px; text-transform: uppercase; letter-spacing: .18em; color: var(--faint);
}
.cols span:nth-child(2) { grid-column: span 2; }
.cols span:nth-child(4) { text-align: right; }

/* the number column only grows past the row grid for long numerals (VII. and up on phones) */
.chapter { grid-template-columns: minmax(76px, max-content) minmax(0, 1fr) auto; align-items: baseline; margin-top: 44px; padding-bottom: 10px; border-bottom: 1px solid var(--rule-2); }
.list > .chapter:first-child { margin-top: 18px; }
.chapter .ch-no { font: 900 34px/.9 var(--display); color: var(--ink); letter-spacing: .02em; white-space: nowrap; }
.chapter .ch-name { font: 800 24px/1 var(--display); text-transform: uppercase; letter-spacing: .03em; color: var(--bone); }
.chapter .ch-count { font: 400 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--dim); }

.card {
  --fg: var(--bone); --fg-2: var(--dim); --fg-3: var(--faint); --dots: var(--rule-2); --tag: var(--ink-light);
  width: 100%; min-height: 76px; padding-top: 14px; padding-bottom: 14px;
  background: transparent; border: 0; border-bottom: 1px solid var(--rule);
  color: var(--fg); text-align: left; cursor: pointer;
}
.c-no { font-size: 12.5px; color: var(--fg-3); letter-spacing: .06em; white-space: nowrap; }
/* product picture from Komerza, with the first letter underneath until it loads */
.c-thumb {
  position: relative; display: grid; place-items: center;
  width: 56px; height: 56px; overflow: hidden;
  background: var(--bg-3); border: 1px solid var(--rule-2);
}
.c-thumb .mono { font: 900 26px/1 var(--display); color: var(--ink-light); text-transform: uppercase; }
.c-thumb img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s ease;
  pointer-events: none; -webkit-user-drag: none; -webkit-touch-callout: none; user-select: none;
}
.c-thumb img.is-wide { object-fit: contain; }
.c-thumb.has-img img { opacity: 1; }
.c-thumb.has-img .mono { visibility: hidden; }
.card.is-out .c-thumb img { filter: grayscale(1); }
.card.is-out .c-thumb.has-img img { opacity: .55; }
.card:focus-visible .c-thumb { border-color: var(--on-ink); }
.c-name { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; min-width: 0; }
.c-title { font: 800 clamp(30px, 3.3vw, 44px)/.92 var(--display); text-transform: uppercase; letter-spacing: .01em; overflow-wrap: anywhere; }
.c-tag, .stock {
  padding: 3px 7px 2px; border: 1px solid var(--tag); color: var(--tag);
  font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; white-space: nowrap;
}
.c-tag.quiet { border-style: dashed; }
.stock:not(.out):not(.soon) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.c-lead { align-self: center; height: 0; border-bottom: 2px dotted var(--dots); margin-top: 10px; }
.price { justify-self: end; font-size: 16px; font-weight: 600; color: var(--fg); }
.price small { font-size: 11px; color: var(--fg-3); margin-right: 4px; font-weight: 400; text-transform: uppercase; }
.c-go { display: inline-flex; justify-content: flex-end; color: var(--fg-3); }
.c-go .i { width: 18px; height: 18px; }
.card.is-out .c-title { color: var(--fg-2); }
.card.is-out .price { color: var(--fg-3); text-decoration: line-through; text-decoration-thickness: 1px; }
.card:focus-visible {
  --fg: var(--on-ink); --fg-2: var(--on-ink); --fg-3: var(--on-ink); --dots: rgba(12, 9, 18, .45); --tag: var(--on-ink);
  background: var(--ink); outline: none; box-shadow: inset 6px 0 0 var(--bone), inset 0 0 0 2px var(--bone);
}

.empty { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 36px 12px; border-bottom: 1px solid var(--rule); color: var(--dim); font: 400 15px/1.55 var(--serif); }
.empty .why { opacity: .6; }
.empty-reset {
  min-height: 44px; padding: 0 16px; background: var(--ink); border: 0; color: var(--on-ink); cursor: pointer;
  font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .14em;
}

/* ---------- How to order: a clip-out coupon ---------- */
.how { padding: clamp(48px, 7vw, 88px) 0; border-top: 1px solid var(--rule-2); }
.coupon { position: relative; margin-top: 30px; padding: clamp(22px, 3vw, 34px); border: 2px dashed var(--rule-2); }
.rite { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: rite; }
.rite li { counter-increment: rite; padding: 0 clamp(16px, 3vw, 32px); border-left: 1px solid var(--rule-2); }
.rite li:first-child { padding-left: 0; border-left: 0; }
.rite li::before { content: "0" counter(rite); display: block; margin-bottom: 10px; font-size: 12px; letter-spacing: .14em; color: var(--faint); }
.rite-word { display: block; font: 900 clamp(34px, 4.2vw, 56px)/.9 var(--display); text-transform: uppercase; }
.rite li:last-child .rite-word { color: var(--ink); }
.rite-text { display: block; margin-top: 12px; max-width: 34ch; color: var(--dim); font: 400 15px/1.55 var(--serif); }

/* ---------- Questions & answers ---------- */
.faq-section { padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); border-top: 1px solid var(--rule-2); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq-side { position: sticky; top: 92px; }
/* Telegram and Discord under the Q&A heading: logos in violet ink, with the
   plane and the Discord face cut out to the page colour */
.social {
  display: flex; align-items: center; gap: 14px; width: fit-content; min-height: 48px; margin-top: 10px;
  padding: 0; background: none; border: 0; color: var(--ink); font: inherit; text-align: left; cursor: pointer;
}
.faq-side .label-head + .social, .faq-help + .social { margin-top: 18px; }
.social-logo { width: 44px; height: 44px; flex: none; }
.social-cut { fill: var(--bg); }
.social-cut-line { fill: none; stroke: var(--bg); stroke-width: 1.9; }
.social-text { display: flex; flex-direction: column; gap: 5px; }
.social-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: var(--bone); }
.social-handle { font-size: 12.5px; color: var(--dim); }
.social:focus-visible { outline-offset: 4px; }
.faq-help { margin-top: 18px; color: var(--dim); font: 400 15px/1.55 var(--serif); max-width: 32ch; }
.faq-help a { display: inline-block; padding: 10px 0; color: var(--ink-light); text-decoration: underline; text-underline-offset: 3px; }
.faq { border-top: 2px solid var(--bone); counter-reset: q; }
.faq details { border-bottom: 1px solid var(--rule-2); counter-increment: q; }
.faq summary {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) 20px; align-items: center; gap: 12px;
  min-height: 60px; padding: 14px 4px; cursor: pointer; list-style: none;
  font-size: 15px; font-weight: 500; color: var(--bone);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q." counter(q, decimal-leading-zero); font-size: 12px; color: var(--faint); letter-spacing: .06em; }
.faq details[open] summary::before { color: var(--ink-light); }
.faq summary:focus-visible { outline-offset: -2px; }
.faq .pm { position: relative; width: 14px; height: 14px; justify-self: end; }
.faq .pm::before, .faq .pm::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: var(--ink-light); }
.faq .pm::after { transform: rotate(90deg); }
.faq details[open] .pm::after { transform: none; }
.faq details p { position: relative; padding: 0 32px 22px 68px; color: var(--dim); font: 400 15px/1.6 var(--serif); max-width: 72ch; }
.faq details p::before { content: "A."; position: absolute; left: 4px; top: 2px; font: 400 12px/1.6 var(--mono); letter-spacing: .06em; color: var(--ink-light); }

/* ---------- Colophon: the violet back cover ---------- */
.colophon { background: var(--ink); color: var(--on-ink); padding-top: clamp(28px, 4vw, 48px); overflow: hidden; }
.colophon .wrap { container-type: inline-size; }
.colophon-end { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .2em; padding-bottom: 12px; border-bottom: 2px solid var(--on-ink); }
.colophon-mark {
  margin: clamp(14px, 2vw, 24px) 0 0 -.025em;
  font: 900 37cqi/.76 var(--display); letter-spacing: -.01em; text-transform: uppercase;
  color: var(--on-ink); user-select: none;
}
.colophon-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px 32px; flex-wrap: wrap;
  margin-top: clamp(18px, 3vw, 30px); padding: 14px 0 22px; border-top: 1px solid rgba(12, 9, 18, .35);
}
.colophon .fine { color: var(--on-ink); font-size: 12.5px; max-width: 60ch; }
.colophon-nav { display: flex; flex-wrap: wrap; gap: 0 6px; }
.colophon-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; color: var(--on-ink); }
.colophon :focus-visible { outline-color: var(--on-ink); }
.colophon ::selection { background: var(--on-ink); color: var(--ink); }

/* ---------- Order form (product dialog) ---------- */
.slip {
  width: min(540px, calc(100% - 24px)); max-height: calc(100% - 24px);
  margin: auto; padding: 24px 28px 22px;
  background: var(--bg-2); color: var(--bone);
  border: 1px solid var(--rule-2); border-top: 4px solid var(--ink);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .85);
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
}
.slip:not([open]) { display: none; }
.slip::backdrop { background: rgba(6, 4, 10, .84); }
.slip[open] { animation: slip-in .2s ease-out; }
@keyframes slip-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.slip-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.slip-meta { padding-top: 10px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .16em; color: var(--dim); }
.slip-meta .slash { margin: 0 8px; }
.slip-close {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; background: transparent; border: 1px solid var(--rule-2); color: var(--dim); cursor: pointer;
}
.slip h3 { margin-top: 16px; font: 900 clamp(48px, 9vw, 72px)/.86 var(--display); text-transform: uppercase; letter-spacing: -.005em; overflow-wrap: anywhere; }
.slip h3:focus { outline: none; }
.slip-badge {
  display: inline-block; margin-top: 12px; padding: 3px 7px 2px; border: 1px solid var(--ink-light); color: var(--ink-light);
  font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em;
}
.slip-desc { margin-top: 16px; color: var(--dim); font: 400 15.5px/1.55 var(--serif); overflow-wrap: anywhere; }
.slip-desc p + p { margin-top: 10px; }
.slip-desc strong { color: var(--bone); font-weight: 600; }
.options { border: 0; margin: 22px 0 0; padding: 0; display: grid; gap: 6px; }
.options legend { padding: 0; margin-bottom: 10px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .16em; color: var(--faint); }
.option { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 14px; border: 1px solid var(--rule-2); cursor: pointer; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option .radio { position: relative; width: 16px; height: 16px; border: 1px solid var(--dim); flex: none; }
.option .label { flex: 1; font-size: 14px; }
.option .opt-price { font-weight: 600; font-size: 14px; }
.option:has(input:checked) { border-color: var(--ink); background: rgba(143, 92, 255, .12); }
.option input:checked + .radio { border-color: var(--ink-light); }
.option input:checked + .radio::after { content: ""; position: absolute; inset: 3px; background: var(--ink-light); }
.option input:focus-visible + .radio { outline: 2px solid var(--ink-light); outline-offset: 3px; }
.option:has(input:disabled) { cursor: not-allowed; background: none; border-style: dashed; color: var(--faint); }
.option input:disabled + .radio { border-color: var(--faint); }
.option input:disabled + .radio::after { content: none; }
/* tear-off line with punched notches above the total */
.slip-total {
  position: relative; display: flex; align-items: baseline; gap: 10px;
  margin-top: 26px; padding-top: 22px; border-top: 2px dashed var(--rule-2);
  font-size: 12px; text-transform: uppercase; letter-spacing: .16em; color: var(--dim);
}
.slip-total::before, .slip-total::after { content: ""; position: absolute; top: -10px; width: 18px; height: 18px; border-radius: 50%; background: #07050b; }
.slip-total::before { left: -38px; }
.slip-total::after { right: -38px; }
.slip-total .leader { flex: 1; border-bottom: 1px dotted var(--rule-2); transform: translateY(-4px); }
.d-price { font: 800 34px/1 var(--display); letter-spacing: .01em; color: var(--bone); text-transform: none; }
.slip-total:has(.stamp:not([hidden])) .d-price { color: var(--faint); text-decoration: line-through; text-decoration-thickness: 2px; }
.stamp {
  position: absolute; left: 30%; top: calc(50% + 11px); pointer-events: none;
  padding: 6px 12px 4px; border: 3px double var(--ink-light); color: var(--ink-light); background: var(--bg-2);
  font: 900 28px/1 var(--display); text-transform: uppercase; letter-spacing: .08em;
  transform: translateY(-50%) rotate(-8deg);
}
.stamp:not([hidden]) { animation: stamp-in .24s cubic-bezier(.2, 1.6, .4, 1) .1s both; }
@keyframes stamp-in { from { opacity: 0; transform: translateY(-50%) rotate(-8deg) scale(1.8); } }
.buy {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 18px; min-height: 56px; padding: 0 18px;
  background: var(--ink); color: var(--on-ink); border: 1px solid var(--ink);
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em;
}
.buy::after { content: "\2192"; font-size: 18px; letter-spacing: 0; }
.buy[aria-disabled="true"] { background: transparent; border-color: var(--rule-2); color: var(--faint); pointer-events: none; }
.buy[aria-disabled="true"]::after { content: none; }
.slip-note { margin-top: 12px; color: var(--faint); font-size: 12px; }

/* ---------- Hover effects only where a real pointer can hover (no sticky taps on phones) ---------- */
@media (hover: hover) {
  .nav a:hover { color: var(--bone); background: var(--bg-3); }
  .wordmark:hover { color: var(--ink-light); }
  .toc button:hover { --fg: var(--on-ink); --fg-2: var(--on-ink); --fg-3: var(--on-ink); --dots: rgba(12, 9, 18, .5); background: var(--ink); }
  .hero-cta:hover, .buy:hover, .empty-reset:hover { background: var(--bone); border-color: var(--bone); color: var(--on-ink); }
  .chip:hover { color: var(--bone); border-color: var(--ink-light); }
  .chip[aria-pressed="true"]:hover { color: var(--on-ink); }
  .card:hover { --fg: var(--on-ink); --fg-2: var(--on-ink); --fg-3: var(--on-ink); --dots: rgba(12, 9, 18, .45); --tag: var(--on-ink); background: var(--ink); }
  .card:hover .c-go { transform: translateX(4px); }
  .card:hover .c-thumb { border-color: var(--on-ink); }
  .faq summary:hover { color: var(--ink-light); }
  .colophon-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
  .social:hover { color: var(--ink-light); }
  .social:hover .social-label { text-decoration: underline; text-underline-offset: 4px; }
  .social { transition: color .12s ease; }
  .option:hover { border-color: var(--ink-light); }
  .option:has(input:disabled):hover { border-color: var(--rule-2); }
  .slip-close:hover { color: var(--on-ink); background: var(--ink); border-color: var(--ink); }
  .card, .chip, .toc button, .hero-cta, .buy, .c-go { transition: background .12s ease, color .12s ease, border-color .12s ease, transform .15s ease; }
}
@media (hover: none) { .search-key { display: none; } }

/* ---------- Narrow screens ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .cols, .card { grid-template-columns: 56px 48px auto minmax(24px, 1fr) 100px 24px; column-gap: 12px; }
  .c-thumb { width: 48px; height: 48px; }
  .c-thumb .mono { font-size: 22px; }
  .chapter { grid-template-columns: minmax(56px, max-content) minmax(0, 1fr) auto; column-gap: 12px; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-side { position: static; }
}
@media (max-width: 760px) {
  .nav a:not([href="#catalogue"]):not([data-support]) { display: none; }
  .nav a { padding: 0 10px; }
  .hero { padding: 20px 0 40px; }
  .dateline { margin-bottom: 24px; }
  .catalogue { padding-top: 36px; }
  .cat-tools { grid-template-columns: minmax(0, 1fr); margin-top: 16px; }
  .cat-tools .search { order: -1; }
  /* one swipeable row of chapter tabs; the fade on the right shows there is more */
  .chips {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 calc(var(--gutter) + 40px) 0 var(--gutter);
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent);
  }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .search { width: 100%; }
  .cols { display: none; }
  .card {
    grid-template-columns: 26px 44px minmax(0, 1fr) auto;
    column-gap: 10px; padding: 14px 6px; min-height: 0; align-items: start;
  }
  .c-thumb { width: 44px; height: 44px; }
  .c-thumb .mono { font-size: 20px; }
  .chapter { grid-template-columns: minmax(36px, max-content) minmax(0, 1fr) auto; column-gap: 0; padding-left: 6px; padding-right: 6px; }
  .c-no { padding-top: 9px; font-size: 12px; }
  .c-no-l, .c-lead, .c-go { display: none; }
  .c-title, .cat-title { font-size: 26px; }
  .price { padding-top: 6px; }
  .chapter .ch-no { font-size: 28px; padding-right: 6px; }
  .chapter .ch-name { font-size: 20px; }
  .rite { grid-template-columns: 1fr; }
  .rite li, .rite li:first-child { padding: 18px 0; border-left: 0; border-top: 1px solid var(--rule-2); }
  .rite li:first-child { border-top: 0; padding-top: 4px; }
  .faq details p { padding: 0 8px 20px 68px; }
  .slip { padding: 20px 18px 18px; }
  .slip-total::before { left: -28px; }
  .slip-total::after { right: -28px; }
  .stamp { font-size: 24px; left: 26%; }
}
@media (max-width: 420px) {
  .faq summary { grid-template-columns: 40px minmax(0, 1fr) 16px; }
  .faq details p { padding-left: 56px; }
  .chip { padding: 0 10px; letter-spacing: .06em; font-size: 11.5px; }
  .chip .count { margin-left: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
