/* Q.E.D. ─ the sheet.
   Built to his design picture: a black poster field, one accent, one grey halftone mass, a
   50.5% column split, a display lockup at ten times the body size, letterspaced mono labels and
   curly brace annotations. The accent and the materials are his own X plates: gold on stone. */

@font-face {
  font-family: "Panchang";
  src: url("/fonts/Panchang-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Panchang";
  src: url("/fonts/Panchang-Semibold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Panchang";
  src: url("/fonts/Panchang-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Sligoil";
  src: url("/fonts/Sligoil-Micro.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Sligoil";
  src: url("/fonts/Sligoil-MicroBold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --ink: #080808;
  --ink-deep: #000000;
  --panel: #0e0e0e;
  --slot: #050505;
  --gold: #e89830;
  --gold-pale: #f0c070;
  --gold-deep: #8a5a18;
  --cream: #f8e8c8;
  --stone: #8a8a8a;
  --stone-dim: #5e5e5e;
  --stone-edge: #3a3a3a;
  --white: #ffffff;

  --display: "Panchang", "Trebuchet MS", sans-serif;
  --mono: "Sligoil", ui-monospace, "Cascadia Mono", monospace;

  --sheet: min(1640px, 92vw);
  --split: 50.5%;
  --gutter: clamp(24px, 2.6vw, 52px);
  --air: clamp(56px, 7vw, 124px);
  --block-w: 64px;
  --block-h: 44px;
}

* { box-sizing: border-box; }
html { background: var(--ink); scrollbar-gutter: stable; overflow-x: clip; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font: 400 19px/1.62 var(--mono);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; }
p { margin: 0; }
b { font-weight: 700; color: var(--cream); }

.grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: url("/img/grain.png") repeat;
  background-size: 160px 160px;
  opacity: 0.7;
  animation: drift 24s steps(4) infinite;
}
@keyframes drift {
  0% { background-position: 0 0; }
  25% { background-position: -37px 23px; }
  50% { background-position: 19px -41px; }
  75% { background-position: -11px -17px; }
  100% { background-position: 0 0; }
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 20;
  background: var(--gold); color: #000; padding: 14px 24px;
  font: 700 17px/1 var(--mono); text-decoration: none;
}
.skip:focus { left: 16px; top: 16px; }

.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.sheet { position: relative; z-index: 1; width: var(--sheet); margin: 0 auto; }

/* ── the top block: the mark at the left, the index at the right ───────── */
.top {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: var(--gutter);
  align-items: start;
  padding: clamp(26px, 3.2vw, 46px) 0 0;
}
.mark { display: inline-block; width: fit-content; line-height: 0; }
.mark img {
  width: 208px; height: auto;
  image-rendering: pixelated;
}
.mark:focus-visible { outline: 3px solid var(--gold); outline-offset: 8px; }

.index {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: flex-end;
}
.index a {
  display: inline-flex; align-items: baseline; gap: 10px;
  min-height: 52px; padding: 7px clamp(10px, 0.7vw, 14px);
  font: 500 clamp(16px, 1.05vw, 19px)/1.2 var(--display);
  letter-spacing: 0.08em;
  color: var(--gold); text-decoration: none;
  border: 14px solid transparent;
  border-image: url("/img/key-plate.png") 7 fill / 14px / 0 stretch;
  image-rendering: pixelated;
}
.index a i { font: 400 16px/1 var(--mono); font-style: normal; color: var(--stone-dim); letter-spacing: 0.14em; }
.index a:hover { color: var(--gold-pale); }
.index a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.index a[aria-current="page"] {
  color: #000;
  border-image: url("/img/key-plate-lit.png") 7 fill / 14px / 0 stretch;
}
.index a[aria-current="page"] i { color: rgba(0, 0, 0, 0.55); }

/* ── the poster ────────────────────────────────────────────────────────── */
.poster > * { position: relative; z-index: 1; }
.poster {
  position: relative;
  display: grid;
  grid-template-columns: var(--split) 1fr;
  column-gap: var(--gutter);
  padding-bottom: var(--air);
}
.poster > .mass {
  position: absolute;
  left: calc(-1 * (100vw - 100%) / 2); top: clamp(30px, 4vw, 80px);
  width: calc(47% + (100vw - 100%) / 2); height: clamp(540px, 60vw, 1140px);
  background: url("/img/halftone-column.png") no-repeat left top;
  background-size: 100% 100%;
  opacity: 0.75;
  z-index: 0;
  animation: breathe 38s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(14px, -10px, 0) scale(1.015); }
}


.col-right { grid-column: 2; }

.micro {
  font: 700 16px/1.5 var(--mono);
  letter-spacing: 0.3em;
  color: var(--stone);
}
.marked { margin-top: clamp(34px, 4.2vw, 76px); display: flex; gap: 16px; align-items: flex-start; font-size: 21px; line-height: 1.5; color: var(--white); }
.tri { width: 26px; height: 16px; margin-top: 11px; flex: 0 0 auto; image-rendering: pixelated; }

.count-block { padding-top: clamp(22px, 2.4vw, 38px); }
.count {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(76px, 8.2vw, 148px);
  line-height: 0.92;
  letter-spacing: -0.015em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.count-sub { margin-top: 10px; font-size: 20px; color: var(--white); }
.cta { margin-top: 26px; }
.key.lit {
  color: #000;
  border-image: url("/img/key-plate-lit.png") 7 fill / 14px / 0 stretch;
}
.key.lit:hover { color: #000; filter: brightness(1.08); }
.head-keys { margin-top: 24px; }
.rules-keys { margin-bottom: 28px; }
.risk { margin-bottom: var(--air); font-size: 16px; line-height: 1.6; color: var(--stone-dim); max-width: 80ch; }

.lockup {
  grid-column: 1 / -1;
  margin-top: clamp(30px, 3.4vw, 56px);
  width: fit-content;
  max-width: 100%;
  background: var(--ink);
  padding: clamp(36px, 3.2vw, 60px) clamp(33px, 2.4vw, 44px);
}
.lockup h1 {
  font-size: clamp(54px, 9.4vw, 172px);
  line-height: 0.93;
  letter-spacing: -0.02em;
  color: var(--gold);
}
.strap {
  grid-column: 1 / -1;
  width: fit-content; max-width: 100%;
  background: var(--ink);
  padding: 20px clamp(33px, 2.2vw, 40px) 24px;
  margin-top: clamp(14px, 1.4vw, 24px);
  font-family: var(--display); font-weight: 500;
  font-size: clamp(24px, 2.5vw, 44px);
  letter-spacing: 0.04em;
  color: var(--gold);
}
.strap span { color: var(--stone); font-family: var(--mono); font-size: clamp(17px, 1.2vw, 22px); letter-spacing: 0.06em; }

.modules { margin-top: clamp(30px, 3.4vw, 58px); display: grid; gap: 4px; }
.mod {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 18px;
  min-height: 56px;
  padding: 12px 22px;
  text-decoration: none;
  border-bottom: 1px solid #1c1c1c;
}
.mod:last-child { border-bottom: 0; }
.mod .mod-no { font: 400 16px/1 var(--mono); color: var(--stone-dim); letter-spacing: 0.14em; }
.mod .mod-name {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(18px, 1.2vw, 23px);
  color: var(--gold);
  letter-spacing: 0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mod .mod-note { font: 400 16px/1.4 var(--mono); color: var(--stone); white-space: nowrap; }
.mod:hover .mod-name { color: var(--gold-pale); }
.mod:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.split {
  grid-column: 1 / -1;
  margin-top: clamp(40px, 5vw, 90px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  background: #1c1c1c;
}
.split-cell {
  background: var(--ink);
  padding: 30px 34px 34px;
  display: flex; flex-direction: column; gap: 8px;
}
.split-cell b {
  font-family: var(--display); font-weight: 700; font-size: clamp(34px, 3vw, 54px);
  color: var(--cream); line-height: 1;
}
.split-cell span { font-size: 18px; color: var(--stone); line-height: 1.45; }

/* ── the wall ──────────────────────────────────────────────────────────── */
.seal-art {
  width: min(480px, 100%); height: auto;
  image-rendering: pixelated;
  margin-bottom: var(--air);
}
.wall-head { padding-bottom: 26px; }
.wall-head h2 { font-size: clamp(30px, 3.2vw, 50px); color: var(--cream); }
.wall-head p { margin-top: 10px; font-size: 19px; color: var(--stone); }

.wall { display: grid; gap: clamp(24px, 2.6vw, 44px); margin-bottom: var(--air); }
.course { display: grid; gap: 14px; }
.course-head { padding: 0 2px; display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.course-head .mod-no { font: 400 16px/1 var(--mono); color: var(--stone-dim); letter-spacing: 0.14em; }
.course-head h3 { font-size: clamp(20px, 1.7vw, 28px); color: var(--gold); }
.course-head .mod-note { font: 400 17px/1 var(--mono); color: var(--stone); }
.bricks { display: flex; flex-wrap: wrap; gap: 4px; }
.brick {
  width: var(--block-w); height: var(--block-h);
  padding: 0; border: 0; background: transparent;
  image-rendering: pixelated;
  cursor: pointer;
  position: relative;
}
.brick img { width: 100%; height: 100%; image-rendering: pixelated; }
.brick:hover img, .brick:focus-visible img {
  transform: scale(1.09);
  filter: drop-shadow(0 0 7px rgba(232, 152, 48, 0.9));
}
.brick img { transition: transform 120ms steps(2), filter 120ms steps(2); }
.brick:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* the lemma card the wall and the board open */
dialog.card {
  width: min(760px, 92vw);
  max-height: 92vh; overflow-y: auto; overscroll-behavior: contain;
  border: 16px solid transparent;
  border-image: url("/img/frame-plate.png") 8 fill / 16px / 0 stretch;
  image-rendering: pixelated;
  color: var(--cream);
  padding: 0;
}
dialog.card > * { image-rendering: auto; }
dialog.card::backdrop { background: rgba(0, 0, 0, 0.82); }
.card-strip {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  background: var(--gold); color: #000;
  padding: 12px 28px;
  font: 700 17px/1.4 var(--mono); letter-spacing: 0.16em;
  min-height: 48px;
}
.card-body { padding: 32px; display: grid; gap: 18px; }
.card-body h3 { font-size: 28px; color: var(--cream); }
.card-body .sig {
  background: var(--slot); border: 1px solid #1c1c1c;
  padding: 20px 24px;
  font: 400 16px/1.6 var(--mono); color: var(--stone);
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.card-rows { display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; font-size: 18px; }
.card-rows dt { color: var(--stone); }
.card-rows dd { margin: 0; color: var(--cream); overflow-wrap: anywhere; }
.card-rows a, .feed-line a, .panel-body a:not(.key) { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.card-rows a:hover, .feed-line a:hover, .panel-body a:not(.key):hover { color: var(--gold-pale); }
.card-close {
  background: none; border: 0; color: #000; font: 700 17px/1 var(--mono);
  cursor: pointer; padding: 10px 6px; letter-spacing: 0.1em;
}
.card-close:focus-visible { outline: 3px solid #000; outline-offset: 2px; }

/* ── the seal ──────────────────────────────────────────────────────────── */
.seal {
  margin-bottom: var(--air);
  margin-top: calc(-0.4 * var(--air));
  border: 16px solid transparent;
  border-image: url("/img/frame-plate.png") 8 fill / 16px / 0 stretch;
  image-rendering: pixelated;
}
.seal > * { image-rendering: auto; }
.seal-strip {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  min-height: 52px; padding: 12px 28px;
  background: var(--gold); color: #000;
  font: 700 17px/1.4 var(--mono); letter-spacing: 0.18em;
}
.seal-strip em { font-style: normal; font-weight: 400; letter-spacing: 0.08em; }
.seal-body { padding: 32px; display: grid; gap: 20px; }
.slot {
  border: 10px solid transparent;
  border-image: url("/img/sunken-line.png") 5 fill / 10px / 0 stretch;
  image-rendering: pixelated;
  padding: 14px 16px;
  font: 400 clamp(16px, 1.3vw, 22px)/1.5 var(--mono);
  color: var(--cream);
  overflow-wrap: anywhere;
  user-select: all;
  min-height: 64px;
}
.slot { image-rendering: pixelated; }
.slot::first-line { image-rendering: auto; }
.slot.empty { color: var(--stone-dim); user-select: none; }
.keys { display: flex; flex-wrap: wrap; gap: 12px; }
.key {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  text-align: center;
  min-height: 56px; padding: 7px 16px;
  font: 700 17px/1 var(--mono); letter-spacing: 0.06em;
  color: var(--cream); text-decoration: none;
  border: 14px solid transparent;
  border-image: url("/img/key-plate.png") 7 fill / 14px / 0 stretch;
  image-rendering: pixelated;
  cursor: pointer;
}
.key > * { image-rendering: auto; }
.key img { width: 20px; height: 20px; }
.key:hover { color: var(--gold-pale); }
.key:active { transform: translate(2px, 2px); }
.key:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.key[aria-disabled="true"], .key:disabled {
  color: var(--stone-dim); opacity: 0.55; cursor: default; pointer-events: none;
}
.key.done, .key:focus-visible.done {
  color: #000;
  border-image: url("/img/key-plate-lit.png") 7 fill / 14px / 0 stretch;
}
.seal-note { font-size: 18px; color: var(--stone); line-height: 1.6; max-width: 70ch; }

/* ── the other views ───────────────────────────────────────────────────── */
.head { padding: clamp(20px, 2.4vw, 40px) 0 clamp(26px, 3vw, 48px); max-width: 108ch; }
.head h2 {
  margin-top: 14px;
  font-size: clamp(34px, 4.4vw, 76px);
  line-height: 1.02; letter-spacing: -0.01em;
  color: var(--gold);
}
.lede { margin-top: 20px; font-size: 20px; line-height: 1.66; color: var(--white); max-width: 86ch; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 22px; }
.filters button {
  min-height: 52px; padding: 7px 12px;
  font: 500 18px/1.2 var(--display); letter-spacing: 0.08em;
  color: var(--gold);
  border: 14px solid transparent;
  border-image: url("/img/key-plate.png") 7 fill / 14px / 0 stretch;
  image-rendering: pixelated;
  cursor: pointer;
}
.filters button:hover { color: var(--gold-pale); }
.filters button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.filters button[aria-pressed="true"] {
  color: #000;
  border-image: url("/img/key-plate-lit.png") 7 fill / 14px / 0 stretch;
}

.board { margin-bottom: var(--air); }
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px 160px 170px;
  align-items: center;
  gap: 20px;
  width: 100%;
  min-height: 72px;
  padding: 16px 24px;
  text-align: left;
  background: #101010;
  border: 0; border-bottom: 1px solid #1c1c1c;
  color: var(--cream);
  font: inherit;
  cursor: pointer;
}
.row:nth-child(odd) { background: #0c0c0c; }
.row:hover { background: #161616; }
.row:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.row .r-id { font: 400 16px/1.3 var(--mono); color: var(--stone-dim); letter-spacing: 0.06em; min-width: 0; overflow-wrap: anywhere; }
.row .r-name { font: 400 18px/1.4 var(--mono); color: var(--cream); overflow-wrap: anywhere; }
.row .r-name span { display: block; font-size: 16px; color: var(--stone); margin-top: 4px; }
.row .r-tag {
  justify-self: start;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 62px; min-height: 48px; padding: 2px 6px;
  font: 700 16px/1 var(--mono); letter-spacing: 0.1em;
  color: var(--cream);
  border: 12px solid transparent;
  border-image: url("/img/tag-plate.png") 6 fill / 12px / 0 stretch;
  image-rendering: pixelated;
}
.row .r-price { font: 400 18px/1.3 var(--mono); color: var(--gold); min-width: 0; overflow-wrap: anywhere; }
.row .r-price.none { color: var(--stone-dim); }
.row .r-state { font: 400 17px/1.3 var(--mono); color: var(--stone); min-width: 0; overflow-wrap: anywhere; }
.row.closed .r-state { color: var(--gold-pale); }
.row-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px 160px 170px;
  gap: 20px; padding: 0 24px 12px;
  font: 700 16px/1.3 var(--mono); letter-spacing: 0.2em; color: var(--stone-dim);
}

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; margin-bottom: var(--air); }
.two-wide { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.bind, .mine, .feed, .pot { display: grid; gap: 18px; align-content: start; }
.panel {
  border: 16px solid transparent;
  border-image: url("/img/frame-plate.png") 8 fill / 16px / 0 stretch;
  image-rendering: pixelated;
}
.panel > * { image-rendering: auto; }
.panel-strip {
  min-height: 48px; padding: 12px 28px;
  background: #171717; border-bottom: 1px solid var(--stone-edge);
  font: 700 16px/1.4 var(--mono); letter-spacing: 0.18em; color: var(--stone);
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.panel-body { padding: 30px 32px 32px; display: grid; gap: 18px; }
.panel-body p { font-size: 19px; color: var(--cream); max-width: 84ch; }
.panel-body .muted { color: var(--stone); }
.steps-two { display: grid; gap: 14px; }

.feed-line {
  display: grid; grid-template-columns: 180px 1fr auto; gap: 24px;
  align-items: baseline;
  padding: 20px 24px;
  background: #0c0c0c; border-bottom: 1px solid #1c1c1c;
}
.feed-line time { font: 400 17px/1.4 var(--mono); color: var(--stone-dim); }
.feed-line p { font-size: 19px; }
.feed-line a { color: var(--gold); }

.steps { list-style: none; margin: 0 0 var(--air); padding: 0; display: grid; gap: 2px; background: #1c1c1c; }
.steps li {
  background: var(--ink);
  display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 32px;
  padding: 32px;
}
.step-no {
  grid-row: 1 / span 2;
  width: 2.4em;
  font-family: var(--display); font-weight: 700; font-size: clamp(40px, 3.6vw, 64px);
  color: var(--gold); line-height: 0.9;
}
.steps h3 { font-size: clamp(24px, 2vw, 34px); color: var(--cream); }
.steps p { font-size: 19px; color: var(--stone); line-height: 1.66; max-width: 88ch; }

.rules-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: #1c1c1c; margin-bottom: var(--air); }
.rule-cell { background: var(--ink); padding: 32px; display: grid; gap: 14px; align-content: start; }
.rule-cell h3 { font-size: 26px; color: var(--gold); }
.rule-cell p { font-size: 19px; color: var(--stone); line-height: 1.66; }
.weights { display: flex; flex-wrap: wrap; gap: 10px; }
.weight {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 10px 18px;
  background: #171717; border: 1px solid var(--stone-edge);
  font: 400 17px/1 var(--mono); color: var(--cream);
}
.weight b { color: var(--gold); }

.pot-rows { display: grid; grid-template-columns: max-content 1fr; gap: 12px 24px; font-size: 19px; }
.pot-rows dt { color: var(--stone); }
.pot-rows dd { margin: 0; color: var(--cream); text-align: right; font-variant-numeric: tabular-nums; }

.empty-note {
  padding: 28px 32px; background: #0c0c0c; border: 1px solid #1c1c1c;
  font-size: 19px; color: var(--stone);
}

/* ── widths ────────────────────────────────────────────────────────────── */
@media (max-width: 1540px) {
  .mark img { width: 156px; height: auto; }
  :root { --gutter: 20px; }
  .index { gap: 8px; }
  .index a { padding: 7px 8px; font-size: 17px; gap: 8px; letter-spacing: 0.01em; }
  .index a i { font-size: 16px; }
}
@media (max-width: 1180px) {
  :root { --split: 46%; --block-w: 52px; --block-h: 36px; }
  .row, .row-head { grid-template-columns: minmax(0, 1fr) 84px 136px 150px; }
}
@media (max-width: 900px) {
  :root { --sheet: min(1640px, 90vw); --block-w: 44px; --block-h: 30px; }
  .top, .poster { grid-template-columns: 1fr; }
  .col-right, .lockup, .strap, .split { grid-column: 1; }
  .top { gap: 22px; }
  .index { justify-content: flex-start; }
  .index a { flex: 1 1 40%; justify-content: center; }
  .poster > .mass {
    left: calc(-1 * (100vw - 100%) / 2); top: 0; width: 100vw; height: 100%;
    background-size: 100% auto; background-repeat: repeat-y;
    opacity: 0.2;
  }
  .count-block { padding-top: 26px; }
  .lockup { margin-top: 30px; }
  .split { grid-template-columns: 1fr; }
  .mod { grid-template-columns: auto minmax(0, 1fr); row-gap: 4px; }
  .mod .mod-name { white-space: normal; overflow: visible; }
  .mod .mod-note { grid-column: 2; white-space: normal; }
  .rules-grid { grid-template-columns: 1fr; }
  .steps li { grid-template-columns: 1fr; gap: 10px; }
  .step-no { grid-row: auto; }
  .row-head { display: none; }
  .row { grid-template-columns: auto auto minmax(0, 1fr); gap: 10px 14px; padding: 18px 20px; align-items: center; }
  .row .r-name { grid-column: 1 / -1; }
  .row .r-tag { justify-self: start; min-height: 40px; min-width: 52px; }
  .row .r-price { justify-self: start; }
  .row .r-state { justify-self: end; text-align: right; }
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * (100vw - 100%) / 2); padding: 0 calc((100vw - 100%) / 2) 18px; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: 0 0 auto; white-space: nowrap; }
  .index a { min-height: 44px; padding: 4px 8px; border-width: 10px; border-image-width: 10px; }
  .strap span { display: block; margin-top: 6px; }
  .feed-line { grid-template-columns: 1fr; gap: 8px; }
  .two, .two-wide { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .mark img { width: 156px; height: auto; }
}
@media (max-width: 420px) {
  :root { --sheet: min(1640px, 88vw); --block-w: 36px; --block-h: 25px; }
  body { font-size: 18px; }
  .seal-body, .panel-body, .rule-cell, .steps li { padding: 26px 30px; }
  .step-no { font-size: 30px; }
  .steps h3, .rule-cell h3 { font-size: 23px; }
  .card-body { padding: 24px 22px; }
  .card-body h3 { font-size: 21px; line-height: 1.3; }
  .card-rows { grid-template-columns: 1fr; gap: 2px 0; font-size: 17px; }
  .card-rows dd { margin-bottom: 10px; }
  .keys { gap: 10px; }
  .mark img { width: 120px; height: auto; }
  .seal-strip, .panel-strip, .card-strip { flex-wrap: wrap; row-gap: 4px; padding: 12px 20px; letter-spacing: 0.1em; }
  .key { width: 100%; }
  .index a i { display: none; }
  .index a { flex: 1 1 40%; white-space: nowrap; font-size: 16px; }
  .strap { white-space: nowrap; padding: 16px 20px 18px; font-size: 21px; }
  .strap span { font-size: 16px; }
  .lockup { padding: 28px 22px; }
}

@media (max-width: 360px) {
  .index a { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  /* the mass carries its animation on `.poster > .mass`, so the stop has to match that */
  .grain, .poster > .mass { animation: none; }
  .brick img { transition: none; }
  * { scroll-behavior: auto; }
}
