/* Magazine sample — multi-page components (chrome, reader, work, about, stack) */

:root {
  --c-fe: #c2582a; --c-be: #6b8c2a; --c-tl: #b8862b; --c-sys: #8c3553; --c-other: #9a8472;
}
:root[data-theme='dark'] {
  --c-fe: #e08b55; --c-be: #9bb854; --c-tl: #d9a94a; --c-sys: #c46a8a; --c-other: #8f7b69;
}

html { scrollbar-gutter: stable; }
html.is-locked { overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Shared buttons & links */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; text-decoration: none;
  padding: 12px 18px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  font: 500 11px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase;
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s var(--ease-out);
}
.btn:hover { background: var(--terra); border-color: var(--terra); transform: translateY(-2px); }
.btn--ghost { background: none; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.linkish, button.ad__link {
  border: 0; background: none; color: inherit; cursor: pointer; text-decoration: none;
  font: 500 11px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat; background-position: 0 100%; background-size: 100% 1px;
  padding: 0 0 4px; transition: background-size 0.4s var(--ease-out), color 0.3s;
}
.linkish:hover, button.ad__link:hover { color: var(--terra); background-size: 0 1px; background-position: 100% 100%; }
.ad__links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px !important; }
.ad__links .ad__link { margin-top: 0; }
.continued a { color: var(--terra); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.continued a:hover { color: var(--ink); }
.continued--left { text-align: left; margin-top: 28px; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { border: 1px solid var(--rule); padding: 6px 10px; font-size: 13px; }
.display--xl { font-size: clamp(84px, 17vw, 300px); line-height: 0.84; letter-spacing: -0.045em; }
.display--lg { font-size: clamp(50px, 7.6vw, 128px); line-height: 0.94; }

/* ------------------------------------------------------------------ */
/* Running head additions                                              */
/* ------------------------------------------------------------------ */

.runhead__mast { text-decoration: none; }
.runhead__nav { display: flex; gap: 18px; }
.runhead__nav a { text-decoration: none; color: var(--muted); padding: 4px 0; position: relative; transition: color 0.3s; }
.runhead__nav a:hover { color: var(--ink); }
.runhead__nav a[aria-current] { color: var(--ink); }
.runhead__nav a[aria-current]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--terra); }
.runhead__btn {
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper); border-radius: 999px;
  padding: 7px 12px; font: inherit; letter-spacing: inherit; cursor: pointer; transition: background 0.3s, border-color 0.3s;
}
.runhead__btn:hover { background: var(--terra); border-color: var(--terra); }

/* ------------------------------------------------------------------ */
/* Contents menu                                                       */
/* ------------------------------------------------------------------ */

.menu, .reader { position: fixed; inset: 0; z-index: 90; }
.menu[hidden], .reader[hidden] { display: none; }
.menu__backdrop, .reader__backdrop {
  position: absolute; inset: 0; background: color-mix(in srgb, var(--choc) 55%, transparent);
  opacity: 0; transition: opacity 0.4s;
}
.is-open > .menu__backdrop, .is-open > .reader__backdrop { opacity: 1; }
.menu__sheet {
  position: absolute; inset: 0 0 auto; max-height: 100vh; overflow: auto;
  padding: 18px var(--gutter) 28px; background: var(--paper); border-bottom: 3px double var(--ink);
  transform: translate3d(0, -102%, 0); transition: transform 0.6s var(--ease-out);
}
.menu.is-open .menu__sheet { transform: none; }
.menu__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.menu__head .kicker { margin: 0; }
.menu__close, .reader__close {
  border: 0; background: none; color: var(--ink); cursor: pointer; padding: 6px 0;
  font: 500 11px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase;
}
.menu__close:hover, .reader__close:hover { color: var(--terra); }
.menu__list { list-style: none; margin: 0; padding: 0; }
.menu__list li {
  border-bottom: 1px solid var(--rule);
  opacity: 0; transform: translate3d(0, -10px, 0);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); transition-delay: calc(0.15s + var(--i) * 60ms);
}
.menu.is-open .menu__list li { opacity: 1; transform: none; }
.menu__list a { display: grid; grid-template-columns: clamp(56px, 8vw, 110px) 1fr auto; gap: 16px; align-items: baseline; padding: 16px 0; text-decoration: none; }
.menu__num { font: 400 clamp(32px, 4vw, 56px)/0.9 var(--serif); color: var(--terra); }
.menu__label { display: block; font: 400 clamp(26px, 3.4vw, 48px)/1 var(--serif); transition: transform 0.4s var(--ease-out); }
.menu__dek { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.menu__arrow { font-size: 22px; opacity: 0.3; transition: 0.4s var(--ease-out); }
.menu__list a:hover .menu__label { transform: translateX(8px); }
.menu__list a:hover .menu__arrow { opacity: 1; transform: translateX(4px); }
.menu__list a[aria-current] .menu__label { font-style: italic; color: var(--terra); }
.menu__foot { margin: 18px 0 0; font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }

/* ------------------------------------------------------------------ */
/* Reader — an open magazine on the table                              */
/* ------------------------------------------------------------------ */

.reader { display: grid; place-items: center; }
.reader__backdrop { background: color-mix(in srgb, var(--choc) 86%, transparent); }
:root[data-theme='dark'] .reader__backdrop { background: color-mix(in srgb, #060403 94%, transparent); }
:root[data-theme='dark'] .bk { box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 240, 220, 0.08); }
.reader__frame {
  position: relative; display: flex; flex-direction: column; align-items: stretch; width: min-content;
  opacity: 0; transform: translate3d(0, 40px, 0) scale(0.97);
  transition: opacity 0.45s var(--ease-out), transform 0.8s var(--ease-out);
}
.reader.is-open .reader__frame { opacity: 1; transform: none; }
.reader__bar, .reader__foot { color: var(--on-choc); }
.reader__bar {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 20px; align-items: end; padding: 8px 2px 14px;
}
.reader__title { margin: 0; display: flex; flex-direction: column; min-width: 0; }
.reader__title .kicker { margin: 0 0 3px; color: var(--clay); }
.reader__title [data-reader-title] { font: 600 21px/1.1 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reader__tabs { grid-column: 1 / -1; grid-row: 2; display: flex; justify-content: center; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-top: 12px; border-top: 1px solid color-mix(in srgb, var(--on-choc) 18%, transparent); }
.reader__tabs { position: relative; }
.reader__tabs button {
  position: relative; z-index: 1; flex: none; border: 0; background: none; color: color-mix(in srgb, var(--on-choc) 62%, transparent);
  cursor: pointer; border-radius: 999px; padding: 7px 11px; font: 500 10.5px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
  transition: color 0.35s var(--ease-out);
}
.reader__tabs button span { color: var(--clay); margin-right: 2px; transition: color 0.35s var(--ease-out); }
.reader__tabs button:hover:not([aria-current]) { color: var(--on-choc); }
.reader__tabs button[aria-current] { color: var(--choc); }
.reader__tabs button[aria-current] span { color: var(--terra); }
/* One pill for the whole open spread, sliding as pages turn. */
.reader__tabmark {
  position: absolute; left: 0; top: 12px; bottom: 0; width: 0; opacity: 0; border-radius: 999px; background: var(--on-choc);
  transition: transform 0.55s var(--ease-out), width 0.55s var(--ease-out), opacity 0.3s;
}
.reader__tabs.is-instant .reader__tabmark, .reader__tabs.is-instant button { transition: none; }
.reader__close {
  justify-self: end; border: 0; background: none; color: var(--on-choc); cursor: pointer; padding: 6px 0;
  font: 500 11px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase;
}
.reader__close:hover { color: var(--clay); }
.reader__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 4px 8px; }
.reader__foot button {
  border: 0; background: none; color: var(--on-choc); cursor: pointer; padding: 8px 0;
  font: 500 11px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; transition: color 0.2s, opacity 0.2s;
}
.reader__foot button:hover:not(:disabled) { color: var(--clay); }
.reader__foot button:disabled { opacity: 0.25; cursor: default; }
.reader__folio { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.reader__folio [data-reader-folio] { font: italic 400 15px/1.2 var(--serif); }
.reader__hint { font: 500 9.5px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: color-mix(in srgb, var(--on-choc) 45%, transparent); }

/* The book itself */
.bk {
  position: relative; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.bk.is-dragging { cursor: grabbing; }
.bk.is-edge-next { cursor: e-resize; }
.bk.is-edge-prev { cursor: w-resize; }
.bk__spread { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; }
.bk.is-single .bk__spread { grid-template-columns: 1fr; }
.bk__page {
  position: relative; overflow: hidden; background: var(--paper); color: var(--ink);
  padding: clamp(22px, 3.4vw, 42px) clamp(22px, 3vw, 40px) 52px;
  display: flex; flex-direction: column;
}
.bk__page--l { background: linear-gradient(90deg, var(--paper) 88%, color-mix(in srgb, var(--paper) 92%, #000) 100%); }
.bk__page--r { background: linear-gradient(90deg, color-mix(in srgb, var(--paper) 93%, #000) 0, var(--paper) 10%); }
.bk.is-single .bk__page--r { background: var(--paper); }
.bk__page.is-tint { background-color: var(--paper-2); background-image: none; }
.bk__page.is-blank { display: grid; place-items: center; }
.bk__inner { flex: 1; min-height: 0; overflow: auto; scrollbar-width: none; }
.bk__inner::-webkit-scrollbar { display: none; }
.bk__folio {
  position: absolute; left: clamp(22px, 3vw, 40px); right: clamp(22px, 3vw, 40px); bottom: 18px; margin: 0;
  display: flex; justify-content: space-between; font: 500 9.5px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.bk__page--r .bk__folio { flex-direction: row-reverse; }
.bk__spine {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 80px; transform: translateX(-50%); pointer-events: none; z-index: 5;
  background: linear-gradient(90deg, transparent, rgba(30, 18, 8, 0.06) 40%, rgba(30, 18, 8, 0.2) 50%, rgba(30, 18, 8, 0.06) 60%, transparent);
}
.bk.is-single .bk__spine { display: none; }

/* Curl layers (shared by the reader and the flipbook) */
.curl-fx { position: absolute; top: 0; bottom: 0; overflow: hidden; pointer-events: none; z-index: 4; display: none; }
.curl-shade {
  position: absolute; left: 0; top: 0; height: 6000px; transform-origin: 0 0;
  background: linear-gradient(90deg, rgba(20, 12, 6, 0.34), rgba(20, 12, 6, 0.1) 45%, rgba(20, 12, 6, 0));
}
.curl-leafwrap { position: absolute; inset: 0; pointer-events: none; z-index: 6; display: none; filter: drop-shadow(-6px 8px 14px rgba(20, 12, 6, 0.32)); }
.is-turning > .curl-fx, .is-turning > .curl-leafwrap { display: block; }
.curl-leaf { position: absolute; top: 0; transform-origin: 0 0; overflow: hidden; background: var(--paper); }
.curl-leaf.is-blank { background: var(--paper-2); }
.curl-leaf > .curl-clone { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; margin: 0; }
.curl-light {
  position: absolute; left: 0; top: 0; height: 6000px; transform-origin: 0 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(20, 12, 6, 0.26) 0, rgba(255, 250, 240, 0.28) 14px, rgba(255, 250, 240, 0.1) 22%, rgba(20, 12, 6, 0) 46%, rgba(20, 12, 6, 0.12) 100%);
}
:root[data-theme='dark'] .curl-light {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.45) 0, rgba(255, 240, 220, 0.12) 14px, rgba(255, 240, 220, 0.04) 22%, rgba(0, 0, 0, 0) 46%, rgba(0, 0, 0, 0.2) 100%);
}

/* Page typography */
.pg-plate { margin: 0 0 20px; border: 1px solid var(--ink); background: var(--paper-2); overflow: hidden; }
.pg-plate img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.pg-plate.is-mark img { object-fit: contain; padding: 10%; }
.pg-plate.is-empty { aspect-ratio: 16 / 10; display: grid; place-items: center; font: italic 400 120px/1 var(--serif); color: var(--terra); background: repeating-linear-gradient(135deg, transparent 0 12px, color-mix(in srgb, var(--rule) 60%, transparent) 12px 13px); }
.pg-title { margin: 0; font: 400 clamp(38px, 4.4vw, 60px)/0.95 var(--serif); letter-spacing: -0.03em; }
.pg-title--md { font-size: clamp(32px, 3.4vw, 46px); line-height: 1; }
.pg-dek { margin: 14px 0 0; font: italic 400 clamp(15px, 1.25vw, 17px)/1.5 var(--serif); color: var(--ink-soft); }
.pg-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 16px 0 0; font-size: 12.5px; color: var(--muted); }
.pg-gap { margin-top: 22px; }
.pg-brief { margin: 4px 0 0; display: grid; gap: 12px; }
.pg-brief div { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding-top: 12px; border-top: 1px solid var(--rule); }
.pg-brief dt { font: 500 9.5px/1.9 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--terra); }
.pg-brief dd { margin: 0; font-size: 14px; line-height: 1.55; }
.pg-prose { font-size: 14.5px; line-height: 1.65; }
.pg-prose p { margin: 0 0 0.9em; }
.pg-prose ul { margin: 0 0 0.9em; padding-left: 1.1em; }
.pg-prose--lead p:first-child::first-letter { float: left; font: 400 3.6em/0.8 var(--serif); margin: 0.06em 0.08em 0 0; color: var(--terra); }
.pg-prose code { font-size: 0.9em; background: var(--paper-2); padding: 1px 4px; }
.pg-devlog h3 { font: 600 20px/1.2 var(--serif); margin: 0 0 0.6em; }
.pg-devlog strong { color: var(--terra); font-weight: 500; }
.pg-h { margin: 0 0 18px; font: 400 clamp(26px, 2.6vw, 34px)/1.08 var(--serif); letter-spacing: -0.01em; }
.pg-decisions { list-style: none; margin: 0; padding: 0; counter-reset: dec; }
.pg-decisions li { counter-increment: dec; position: relative; padding: 12px 0 12px 46px; border-top: 1px solid var(--rule); font-size: 14.5px; line-height: 1.55; }
.pg-decisions li::before { content: counter(dec, decimal-leading-zero); position: absolute; left: 0; top: 8px; font: 400 26px/1 var(--serif); color: var(--terra); }
.pg-quote { margin: 6px 0 0; padding: 16px 0 0; border-top: 1px solid var(--ink); font: italic 400 clamp(19px, 1.8vw, 24px)/1.35 var(--serif); color: var(--ink); }
.pg-rail { margin: 22px 0 0; display: grid; gap: 12px; padding: 16px; background: var(--paper-2); border-left: 3px solid var(--terra); }
.pg-rail dt { font: 500 9.5px/1.3 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.pg-rail dd { margin: 3px 0 0; font: 400 15px/1.35 var(--serif); }
.bk__page.is-tint .pg-rail, .bk__page.is-tint .pg-prose code { background: var(--paper); }
.pg-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin: 22px 0 0; }
.pg-turn { margin: 22px 0 0; font: italic 400 15px/1.3 var(--serif); color: var(--terra); }
.pg-fin { margin: 24px 0 0; text-align: center; font-size: 14px; color: var(--terra); }
.pg-next {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%; margin-top: 20px; padding: 14px 0 0;
  border: 0; border-top: 3px double var(--ink); background: none; color: var(--ink); cursor: pointer; text-align: left;
  font: 400 22px/1.1 var(--serif); transition: color 0.25s;
}
.pg-next .kicker { margin: 0; }
.pg-next:hover { color: var(--terra); }

/* ------------------------------------------------------------------ */
/* Edition toggle — the press stamp                                     */
/* ------------------------------------------------------------------ */

.stamp {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 30px;
  padding: 6px 13px 6px 9px; border: 1px dashed var(--terra); border-radius: 999px;
  background: color-mix(in srgb, var(--terra) 6%, transparent); color: var(--ink); cursor: pointer;
  font: 600 10px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase;
  transform-origin: center; transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease-out);
}
.stamp:hover { background: color-mix(in srgb, var(--terra) 13%, transparent); border-style: solid; transform: rotate(-1.5deg) scale(1.03); }
.stamp__seal {
  position: relative; flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--terra);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--terra) 22%, transparent);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.stamp__seal::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; border: 1px dotted color-mix(in srgb, var(--paper) 80%, transparent); }
.stamp:hover .stamp__seal { transform: rotate(35deg); }
.stamp.is-stamping { animation: stamp-press 0.38s cubic-bezier(0.34, 1.56, 0.64, 1); }
.stamp.is-stamping .stamp__seal { transform: scale(1.5); box-shadow: 0 0 12px var(--terra); }
@keyframes stamp-press {
  0% { transform: scale(1) rotate(0); }
  25% { transform: scale(0.86, 0.8) rotate(-4deg); border-style: solid; }
  60% { transform: scale(1.06, 1.08) rotate(1.5deg); }
  100% { transform: scale(1) rotate(0); }
}
:root[data-theme='dark'] .stamp { background: color-mix(in srgb, var(--terra) 12%, transparent); border-color: color-mix(in srgb, var(--terra) 60%, transparent); }
:root[data-theme='dark'] .stamp:hover { border-color: var(--ink); }

.regmark { position: fixed; z-index: 200; width: 38px; height: 38px; pointer-events: none; transform: translate(-50%, -50%); animation: regmark 0.5s var(--ease-out) forwards; }
.regmark svg { width: 100%; height: 100%; fill: none; stroke: var(--terra); stroke-width: 1.2; }
@keyframes regmark { from { transform: translate(-50%, -50%) scale(0.4); opacity: 1; } to { transform: translate(-50%, -50%) scale(1.6) rotate(45deg); opacity: 0; } }

.press-roll {
  position: fixed; left: 0; right: 0; top: 0; z-index: 199; pointer-events: none;
  display: flex; justify-content: center; align-items: center; gap: 12px; padding: 9px 16px;
  border-top: 1px solid var(--terra); border-bottom: 3px double var(--terra);
  background: linear-gradient(180deg, color-mix(in srgb, var(--terra) 28%, var(--paper)), color-mix(in srgb, var(--terra) 8%, var(--paper)));
  box-shadow: 0 8px 22px rgba(20, 12, 6, 0.3);
  font: 600 10px/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink);
  animation: press-roll 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.press-roll span { color: var(--terra); font-size: 14px; }
@keyframes press-roll { from { transform: translateY(-100%); } to { transform: translateY(100vh); } }

::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 1; }
html.is-press-rolling::view-transition-new(root) { animation: press-reveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
@keyframes press-reveal { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

/* ------------------------------------------------------------------ */
/* Next-in-issue card                                                  */
/* ------------------------------------------------------------------ */

.next { margin-top: clamp(64px, 9vw, 120px); }
.next a {
  position: relative; display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; align-items: center;
  padding: clamp(24px, 3vw, 40px) clamp(0px, 2vw, 24px); text-decoration: none; overflow: hidden;
  border-top: 3px double var(--ink); border-bottom: 1px solid var(--ink); transition: color 0.4s;
}
.next a::before { content: ''; position: absolute; inset: 0; background: var(--ink); transform: scaleY(0); transform-origin: 50% 100%; transition: transform 0.55s var(--ease-out); z-index: -1; }
.next a:hover, .next a:focus-visible { color: var(--paper); }
.next a:hover::before, .next a:focus-visible::before { transform: scaleY(1); }
.next .kicker { grid-column: 1; margin: 0; }
.next__title { grid-column: 1; font: 400 clamp(36px, 5.4vw, 80px)/1 var(--serif); letter-spacing: -0.02em; }
.next__title em { color: var(--terra); }
.next a:hover .next__title em { color: var(--clay); }
.next__dek { grid-column: 1; color: var(--muted); font-size: 15px; }
.next a:hover .next__dek { color: var(--clay); }
.next__arrow { grid-column: 2; grid-row: 1 / span 3; font: 400 clamp(40px, 6vw, 90px)/1 var(--serif); transition: transform 0.5s var(--ease-out); }
.next a:hover .next__arrow { transform: translateX(12px); }

/* ------------------------------------------------------------------ */
/* Work — opener                                                       */
/* ------------------------------------------------------------------ */

.opener { min-height: 92vh; min-height: 92svh; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 120px; }
.opener__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; margin-top: 28px; padding-top: 24px; border-top: 3px double var(--ink); }
.opener__dek { margin: 0; font: italic 400 clamp(19px, 1.8vw, 25px)/1.45 var(--serif); color: var(--ink-soft); max-width: 36ch; }
.opener__meta { list-style: none; margin: 0; padding: 0; display: flex; justify-content: flex-end; gap: clamp(20px, 3vw, 48px); }
.opener__meta li { font: 500 10.5px/1.3 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.opener__meta span { display: block; font: 400 clamp(48px, 5vw, 76px)/0.9 var(--serif); letter-spacing: -0.02em; color: var(--terra); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.opener__hint {
  align-self: flex-start; margin-top: 36px; text-decoration: none; padding-bottom: 6px; border-bottom: 1px solid var(--ink);
  font: 500 11px/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase;
}
.opener__hint span { display: inline-block; animation: nudge-x 1.8s var(--ease) infinite; }
@keyframes nudge-x { 50% { transform: translateX(5px); } }

/* ------------------------------------------------------------------ */
/* Work — flipbook                                                     */
/* ------------------------------------------------------------------ */

.flip { padding: 0; }
.flip::before, .flip::after { display: none; }
.flip__pin { position: relative; overflow: hidden; padding: 76px 0 24px; }
.flip.is-pinned .flip__pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; }
.flip__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 0 var(--gutter) 14px; }
.flip__bar .kicker { margin: 0; }
.flip__ctrl { display: flex; align-items: center; gap: 14px; }
.flip__btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--ink); background: none; color: var(--ink);
  cursor: pointer; font-size: 16px; transition: background 0.3s, color 0.3s, opacity 0.3s;
}
.flip__btn:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.flip__btn:disabled { opacity: 0.25; cursor: default; }
.flip__count { margin: 0; font: italic 400 17px/1 var(--serif); color: var(--muted); font-variant-numeric: tabular-nums; }
.flip__count b { font: 600 22px/1 var(--serif); font-style: normal; color: var(--terra); }
.flip__meter { justify-self: end; width: min(200px, 100%); height: 2px; background: var(--rule); }
.flip__meter span { display: block; height: 100%; background: var(--terra); transform-origin: 0 50%; transform: scaleX(0); }

.flip__track {
  --sw: min(calc(var(--pin-w, 100vw) - 2 * var(--gutter)), 1320px);
  display: flex; gap: var(--gutter); width: max-content;
  padding: 6px calc((var(--pin-w, 100vw) - var(--sw)) / 2) 10px;
  flex: 1; min-height: 0; outline: none; will-change: transform;
}
.flip__track:focus-visible { outline: 2px solid var(--terra); outline-offset: 6px; }
.spread {
  position: relative; flex: none; width: var(--sw);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--paper); border: 1px solid var(--ink); box-shadow: var(--shadow);
}
.flip.is-pinned .flip__track {
  position: relative; display: block; flex: none; margin: 0 auto; padding: 0;
  box-shadow: 0 40px 70px -40px rgba(20, 12, 6, 0.75), 0 0 0 1px var(--ink);
}
.flip.is-pinned .spread { position: absolute; inset: 0; width: auto; background: none; border: 0; box-shadow: none; }
.flip.is-pinned .spread__page--l { border-right: 0; background: linear-gradient(90deg, var(--paper-2) 90%, color-mix(in srgb, var(--paper-2) 90%, #000) 100%); }
.flip.is-pinned .spread__page--r { background: linear-gradient(90deg, color-mix(in srgb, var(--paper) 92%, #000) 0, var(--paper) 9%); }
.spread__page { position: relative; display: flex; flex-direction: column; min-height: 0; padding: clamp(18px, 2.4vw, 36px); }
.spread__page--l { background: var(--paper-2); border-right: 1px solid var(--rule); }
.spread__page--r { overflow: auto; scrollbar-width: none; background: var(--paper); }
.spread__num {
  position: absolute; top: clamp(4px, 1vh, 14px); left: clamp(12px, 1.6vw, 24px); z-index: 1;
  font: 400 clamp(70px, 13vh, 150px)/0.9 var(--serif); letter-spacing: -0.04em; color: var(--terra);
  text-shadow: 0 0 0 var(--paper-2);
}
.spread__plate { flex: 1; min-height: 0; margin: clamp(56px, 10vh, 110px) 0 0; overflow: hidden; border: 1px solid var(--ink); background: var(--paper); }
.spread__plate img { width: 100%; height: 100%; object-fit: cover; }
.spread__plate.is-mark img { object-fit: contain; padding: 14%; transform: none; }
.spread__folio { display: flex; justify-content: space-between; margin: 12px 0 0; font: 500 10px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.spread__page--r .spread__folio { margin-top: auto; padding-top: 12px; }
.spread__title { margin: 0; font: 400 clamp(40px, 3vw + 3vh, 92px)/0.9 var(--serif); letter-spacing: -0.035em; }
.spread__dek { margin: 14px 0 0; font: italic 400 clamp(16px, 0.6vw + 1vh, 20px)/1.45 var(--serif); color: var(--ink-soft); }
.spread__brief { margin: clamp(14px, 2.4vh, 26px) 0 0; display: grid; gap: clamp(8px, 1.4vh, 14px); }
.spread__brief div { display: grid; grid-template-columns: 82px 1fr; gap: 12px; padding-top: clamp(8px, 1.4vh, 14px); border-top: 1px solid var(--rule); }
.spread__brief dt { font: 500 10px/1.8 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--terra); }
.spread__brief dd { margin: 0; font-size: clamp(13px, 0.3vw + 0.9vh, 15px); line-height: 1.5; }
.spread__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: clamp(12px, 2vh, 22px) 0 0; font-size: 12px; color: var(--muted); }
.spread__actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin: clamp(14px, 2.4vh, 24px) 0 0; }
.endpage { justify-content: center; gap: 20px; background: var(--ink) !important; color: var(--paper); }
.endpage .kicker { color: var(--clay); margin: 0; }
.endpage__title { margin: 0; font: 400 clamp(32px, 3.2vw, 54px)/1.04 var(--serif); letter-spacing: -0.02em; }
.endpage__title em { color: var(--clay); }
.endpage .linkish { align-self: flex-start; }
.endpage .spread__folio { position: absolute; left: clamp(18px, 2.4vw, 36px); right: clamp(18px, 2.4vw, 36px); bottom: clamp(18px, 2.4vw, 36px); color: var(--clay); }
.indexpage__list { list-style: none; margin: 6px 0 0; padding: 0; }
.indexpage__list li { border-top: 1px solid var(--rule); }
.indexpage__list li:last-child { border-bottom: 1px solid var(--rule); }
.indexpage__list button {
  width: 100%; display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: baseline; padding: clamp(10px, 1.8vh, 16px) 0;
  border: 0; background: none; color: var(--ink); cursor: pointer; text-align: left; transition: color 0.2s, padding 0.3s var(--ease-out);
}
.indexpage__list button:hover { color: var(--terra); padding-left: 6px; }
.indexpage__num { font: 500 11px/1 var(--sans); letter-spacing: 0.16em; color: var(--terra); }
.indexpage__title { font: 400 clamp(22px, 2vw, 30px)/1.1 var(--serif); }
.indexpage__pg { font: italic 400 14px/1 var(--serif); color: var(--muted); }

/* Swipe mode (narrow or short screens) */
.flip:not(.is-pinned) .flip__track {
  width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 6px var(--gutter) 18px; --sw: min(86vw, 640px);
}
.flip:not(.is-pinned) .flip__track::-webkit-scrollbar { display: none; }
.flip:not(.is-pinned) .spread { scroll-snap-align: center; grid-template-columns: 1fr; }
.flip:not(.is-pinned) .spread__page--l { border-right: 0; border-bottom: 1px solid var(--rule); }
.flip:not(.is-pinned) .spread__plate { flex: none; aspect-ratio: 16 / 10; margin-top: 64px; }
.flip:not(.is-pinned) .flip__spine { display: none; }
.flip:not(.is-pinned) .endpage { min-height: 240px; }
.flip:not(.is-pinned) .flip__meter { display: none; }

/* Filters + classifieds */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.filters button {
  border: 1px solid var(--rule); background: none; color: var(--ink); cursor: pointer; border-radius: 999px;
  padding: 9px 14px; font: 500 11px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; transition: 0.25s;
}
.filters button sup { margin-left: 4px; color: var(--terra); font-size: 9px; }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed='true'] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filters button[aria-pressed='true'] sup { color: var(--clay); }
.classifieds { transition: opacity 0.25s, transform 0.25s var(--ease-out); }
.classifieds.is-swapping { opacity: 0; transform: translate3d(0, 10px, 0); }
.classifieds.is-single { column-count: 3; }
.classifieds.is-single .dept__head { column-span: all; }
.classifieds--flat .ad { margin: 0 18px 16px; }
.archive--excerpt .continued { margin-top: 32px; }

/* ------------------------------------------------------------------ */
/* About                                                               */
/* ------------------------------------------------------------------ */

.about-open { padding-top: clamp(110px, 12vw, 160px); }
.about-open__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.about-open__intro { margin: 32px 0 0; max-width: 62ch; font: 400 clamp(17px, 1.4vw, 20px)/1.6 var(--serif); color: var(--ink-soft); }
.about-open__art { margin: 0; }
.about-open__art .plate__frame img { aspect-ratio: 4 / 5; object-fit: cover; }
.about-open__art figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); }
.about-open__art figcaption b { color: var(--terra); font-weight: 500; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; margin-right: 6px; }
.stamps { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.stamps li {
  padding: 7px 12px; border: 1.5px solid var(--terra); color: var(--terra);
  font: 600 11px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; rotate: -2deg;
}
.stamps li:nth-child(2) { rotate: 1.5deg; }
.stamps li:nth-child(3) { rotate: -0.5deg; }

.origin__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); }
.origin__body { font-size: 18px; line-height: 1.7; }
.origin__body p { margin: 0; }

.interview__head { display: grid; grid-template-columns: auto 1fr; gap: 8px 40px; align-items: end; padding-bottom: 24px; border-bottom: 3px double var(--ink); }
.interview__head .kicker { grid-column: 1 / -1; }
.interview__dek { margin: 0; justify-self: end; max-width: 30ch; color: var(--ink-soft); }
.notes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; }
.notes li { border-bottom: 1px solid var(--rule); }
.notes li:nth-child(odd) { border-right: 1px solid var(--rule); }
.note {
  width: 100%; height: 100%; display: grid; gap: 12px; align-content: start; text-align: left;
  padding: clamp(24px, 3vw, 40px); border: 0; background: none; color: inherit; font: inherit; cursor: pointer;
  position: relative; overflow: hidden; transition: background 0.35s;
}
.note:hover { background: var(--paper-2); }
.note__num { font: 400 clamp(48px, 5vw, 72px)/0.85 var(--serif); color: var(--terra); }
.note__q { font: 600 clamp(22px, 2.2vw, 30px)/1.15 var(--serif); }
.note__a { color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
.note__a b { font: 600 15px var(--serif); color: var(--terra); }
.note__more { font: 500 11px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; margin-top: 6px; }
.note__more span { display: inline-block; transition: transform 0.4s var(--ease-out); }
.note:hover .note__more span { transform: translate(4px, -4px); }

.sheet { background: var(--choc); color: var(--on-choc); overflow: hidden; }
.sheet .kicker { color: var(--clay); margin: 0; }
.sheet__head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-bottom: 36px; }
.sheet__note { margin: 0; font: italic 400 18px/1.3 var(--serif); color: color-mix(in srgb, var(--on-choc) 70%, transparent); }
.sheet__strip { display: flex; gap: clamp(18px, 2.4vw, 32px); width: max-content; padding: 12px 0 24px; will-change: transform; }
.frame {
  margin: 0; width: clamp(210px, 24vw, 340px); padding: 12px 12px 16px; background: #f6f0e6; color: #2a1d13;
  rotate: var(--r); box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.7); transition: rotate 0.5s var(--ease-out), scale 0.5s var(--ease-out), opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.frame:hover { rotate: 0deg; scale: 1.04; }
.frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.frame figcaption { margin-top: 10px; font: italic 400 16px/1.2 var(--serif); }
.frame figcaption b { font: 600 11px/1 var(--sans); letter-spacing: 0.12em; color: #a0522d; margin-right: 4px; font-style: normal; }
.frame figcaption span { display: block; margin-top: 3px; font: 400 12px/1.3 var(--sans); font-style: normal; color: #7a5c42; }

.ledger__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 24px; border-bottom: 3px double var(--ink); }
.ledger__figs { display: flex; gap: clamp(20px, 4vw, 56px); margin: 0; }
.ledger__figs dt { font: 500 10px/1.3 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.ledger__figs dd { margin: 6px 0 0; font: 400 clamp(36px, 4vw, 60px)/0.9 var(--serif); color: var(--terra); font-variant-numeric: tabular-nums; }
.ledger__figs dd span { font: inherit; }
.ledger__wrap { overflow-x: auto; margin-top: 32px; padding-bottom: 10px; scrollbar-width: thin; }
.ledger__grid { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 13px); grid-auto-columns: 13px; gap: 3px; width: max-content; margin: 0 auto; }
.ledger__grid i, .ledger__key i { display: block; border-radius: 2px; }
.ledger__grid i { transform: scale(0); transition: transform 0.5s var(--ease-out); transition-delay: calc(var(--w) * 14ms); }
.ledger__wrap.is-in .ledger__grid i { transform: none; }
.l0 { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.l1 { background: color-mix(in srgb, var(--terra) 32%, transparent); }
.l2 { background: color-mix(in srgb, var(--terra) 56%, transparent); }
.l3 { background: color-mix(in srgb, var(--terra) 80%, transparent); }
.l4 { background: var(--terra); }
.ledger__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 16px 0 0; font-size: 12px; color: var(--muted); }
.ledger__key { display: inline-flex; align-items: center; gap: 3px; }
.ledger__key i { width: 11px; height: 11px; }

.outro { text-align: center; }
.outro .kicker { margin-bottom: 20px; }
.outro__line { margin: 0 auto; max-width: 20ch; font: 400 clamp(34px, 5.2vw, 80px)/1.02 var(--serif); letter-spacing: -0.02em; }
.outro__line em { color: var(--terra); }
.outro__dek { margin: 24px auto 32px; max-width: 52ch; color: var(--ink-soft); font-size: 17px; }
.outro .next { text-align: left; }

/* ------------------------------------------------------------------ */
/* Stack — supplement                                                  */
/* ------------------------------------------------------------------ */

.supp-open { padding-top: clamp(96px, 11vw, 140px); }
.supp-open__band {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px;
  padding: 10px 14px; background: var(--ink); color: var(--paper);
  font: 500 10.5px/1.2 var(--sans); letter-spacing: 0.24em; text-transform: uppercase;
}
.supp-open__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); margin-top: 28px; padding-top: 24px; border-top: 3px double var(--ink); }
.supp-open__dek { margin: 0; font: 400 clamp(17px, 1.5vw, 21px)/1.6 var(--serif); color: var(--ink-soft); }
.supp-open__meta { margin: 0; display: grid; gap: 14px; }
.supp-open__meta div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.supp-open__meta dt { font: 500 10px/1.8 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--terra); }
.supp-open__meta dd { margin: 0; font-size: 14px; }

.tools__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); gap: clamp(28px, 4vw, 56px); align-items: start; }
.tools__depts { display: grid; grid-template-columns: 1fr 1fr; }
.dept-card { padding: 26px clamp(0px, 2vw, 28px) 30px 0; border-top: 3px double var(--ink); }
.dept-card:nth-child(even) { padding-left: clamp(16px, 2vw, 28px); border-left: 1px solid var(--rule); }
.dept-card header { margin-bottom: 18px; }
.dept-card__code { font: 500 11px/1 var(--sans); letter-spacing: 0.22em; color: var(--terra); }
.dept-card h2 { margin: 8px 0 4px; font: 400 clamp(28px, 2.6vw, 38px)/1 var(--serif); }
.dept-card header p { margin: 0; font: italic 400 14px/1.3 var(--serif); color: var(--muted); }
.dept-card .kicker { margin: 18px 0 8px; color: var(--muted); }
.dept-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.tools__primary { gap: 2px 18px !important; }
.tools__main { margin-top: 12px !important; }
.tool {
  border: 0; border-bottom: 1px solid transparent; background: none; color: var(--ink); cursor: pointer;
  padding: 2px 0; font: 400 15px/1.35 var(--sans); transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.tool sup { margin-left: 3px; font: 500 9.5px/1 var(--sans); color: var(--terra); }
.tool[data-empty] sup { color: var(--muted); }
.tool--primary { font: 400 clamp(26px, 2.4vw, 36px)/1.1 var(--serif); letter-spacing: -0.01em; }
.tool--primary sup { font-size: 11px; }
.tool--small { font-size: 13px; color: var(--ink-soft); }
.tool:hover, .tool.is-active { color: var(--terra); border-bottom-color: currentColor; }
.tool[aria-pressed='true'] { background: var(--terra); color: var(--paper); border-bottom-color: var(--terra); padding: 2px 6px; }
.tool[aria-pressed='true'] sup { color: var(--paper); }

.xref { position: sticky; top: 84px; padding: 22px; border: 1px solid var(--ink); background: var(--paper-2); }
.xref__title { margin: 0; font: 400 clamp(28px, 2.4vw, 36px)/1.05 var(--serif); color: var(--terra); }
.xref__dek { margin: 10px 0 14px; font-size: 13.5px; color: var(--ink-soft); }
.xref__list { list-style: none; margin: 0; padding: 0; }
.xref__list li { border-top: 1px solid var(--rule); animation: xref-in 0.4s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 45ms); }
.xref__list button {
  width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0;
  border: 0; background: none; color: var(--ink); cursor: pointer; text-align: left; font: 400 17px/1.2 var(--serif); transition: color 0.2s, padding 0.3s var(--ease-out);
}
.xref__list button:hover { color: var(--terra); padding-left: 6px; }
.xref__list small { font: 500 9.5px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
@keyframes xref-in { from { opacity: 0; transform: translate3d(0, 6px, 0); } }

.field__card {
  display: grid; grid-template-columns: minmax(160px, 260px) 1fr; gap: clamp(24px, 5vw, 64px); align-items: center;
  padding: clamp(24px, 4vw, 56px); border: 1px solid var(--ink); background: var(--paper-2);
}
.field__sketch { width: 100%; mix-blend-mode: multiply; will-change: transform; }
:root[data-theme='dark'] .field__sketch { mix-blend-mode: screen; filter: invert(1) sepia(0.4); opacity: 0.8; }
.field__body { margin: 22px 0 0; max-width: 58ch; font: 400 clamp(17px, 1.5vw, 21px)/1.6 var(--serif); color: var(--ink-soft); }
.field__tag { margin: 18px 0 0; font: 500 11px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--terra); }

/* Centerfold */
.cf { overflow-x: clip; }
.cf__head { max-width: 920px; margin: 0 auto; text-align: center; }
.cf__dek { margin: 20px auto 0; max-width: 60ch; color: var(--ink-soft); }
.cf__fold { position: relative; margin-top: clamp(32px, 5vw, 56px); perspective: 2600px; opacity: 1; transform: none; }
.cf__sheet { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, 1fr); border: 1px solid var(--ink); background: var(--paper); box-shadow: var(--shadow); }
.cf__map { padding: clamp(8px, 2vw, 24px); position: sticky; top: 64px; align-self: start; }
.cf__map svg { display: block; width: 100%; height: auto; overflow: visible; }
.cf__panel { padding: clamp(20px, 3vw, 36px); border-left: 1px solid var(--rule); }
.cf__name { margin: 0; font: 400 clamp(32px, 3vw, 46px)/1 var(--serif); letter-spacing: -0.01em; }
.cf__info { margin: 12px 0 18px; color: var(--ink-soft); font-size: 14px; }
.cf__pairs { margin: 0 0 18px; font: italic 400 16px/1.5 var(--serif); }
.cf__legend { list-style: none; margin: 28px 0 0; padding: 16px 0 0; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; color: var(--muted); }
.cf__legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; background: var(--c); }
.c-fe { --c: var(--c-fe); } .c-be { --c: var(--c-be); } .c-tl { --c: var(--c-tl); } .c-sys { --c: var(--c-sys); } .c-other { --c: var(--c-other); }

.cf__flap {
  position: absolute; top: 0; bottom: 0; width: 50%; z-index: 3; display: grid; place-items: center;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(255, 255, 255, 0.06) 14px 15px),
    var(--terra);
  color: var(--paper); border: 1px solid var(--ink); backface-visibility: hidden;
  transition: transform 1.5s cubic-bezier(0.65, 0, 0.2, 1) 0.25s, visibility 0s linear 1.8s;
}
.cf__flap span { font: italic 400 clamp(28px, 3.6vw, 56px)/1 var(--serif); }
.cf__flap--l { left: 0; transform-origin: 0 50%; }
.cf__flap--r { right: 0; transform-origin: 100% 50%; }
.cf__fold.is-in .cf__flap--l { transform: rotateY(-178deg); visibility: hidden; }
.cf__fold.is-in .cf__flap--r { transform: rotateY(178deg); visibility: hidden; }

.cf-ring { fill: none; stroke: var(--rule); stroke-dasharray: 2 6; }
.cf-center { font: 400 40px var(--serif); fill: var(--ink); }
.cf-center--sub { font: 500 15px var(--sans); letter-spacing: 0.2em; text-transform: uppercase; fill: var(--muted); }
.cf-edge { fill: none; stroke: var(--muted); stroke-opacity: 0.32; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke 0.25s, stroke-opacity 0.25s; }
.cf__fold.is-in .cf-edge { animation: draw 1.4s var(--ease-out) backwards; animation-delay: calc(1.3s + var(--i) * 22ms); }
@keyframes draw { from { stroke-dashoffset: 1; } }
.cf-node { cursor: pointer; outline: none; transition: opacity 0.25s; }
.cf__fold.is-in .cf-node { animation: node-in 0.6s var(--ease-out) backwards; animation-delay: calc(1.1s + var(--i) * 28ms); }
@keyframes node-in { from { opacity: 0; } }
.cf-node circle { fill: var(--c); stroke: var(--paper); stroke-width: 2; transition: stroke 0.2s, stroke-width 0.2s; }
.cf-node text { fill: var(--ink); font: 500 19px var(--sans); }
.cf-node:hover circle, .cf-node:focus-visible circle, .cf-node.is-active circle { stroke: var(--ink); stroke-width: 3; }
.cf-node.is-active text { font-weight: 700; fill: var(--terra); }
svg.is-focus .cf-edge { stroke-opacity: 0.05; }
svg.is-focus .cf-edge.is-hot { stroke: var(--terra); stroke-opacity: 0.9; }
svg.is-focus .cf-node { opacity: 0.25; }
svg.is-focus .cf-node.is-active, svg.is-focus .cf-node.is-near { opacity: 1; }

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 1180px) {
  .runhead__nav { display: none; }
}

@media (max-width: 860px) {
  .reader__bar { padding-bottom: 10px; }
  .reader__tabs { justify-content: flex-start; }
  .reader__foot { padding-top: 10px; }
  .reader__hint { display: none; }
  .opener__grid, .about-open__grid, .origin__grid, .supp-open__grid, .tools__grid { grid-template-columns: 1fr; }
  .opener__meta { justify-content: flex-start; }
  .notes { grid-template-columns: 1fr; }
  .notes li:nth-child(odd) { border-right: 0; }
  .interview__head { grid-template-columns: 1fr; }
  .interview__dek { justify-self: start; }
  .classifieds.is-single { column-count: 2; }
  .tools__depts { grid-template-columns: 1fr; }
  .dept-card:nth-child(even) { padding-left: 0; border-left: 0; }
  .xref { position: sticky; top: auto; bottom: 12px; max-height: 42vh; overflow: auto; box-shadow: var(--shadow); }
  .cf__sheet { grid-template-columns: 1fr; }
  .cf__panel { border-left: 0; border-top: 1px solid var(--rule); }
  .cf__map { position: static; }
  .field__card { grid-template-columns: 1fr; }
  .field__sketch { max-width: 180px; }
}

@media (max-width: 560px) {
  .runhead__btn { padding: 7px 10px; }
  .stamp__label { display: none; }
  .stamp { padding: 7px; min-height: 30px; }
  .runhead__right { gap: 10px; }
  .classifieds.is-single, .classifieds--flat { column-count: 1; }
  .classifieds--flat .ad { margin: 0 0 16px; }
  .flip__bar { grid-template-columns: 1fr auto; }
  .ledger__figs { gap: 18px; }
  .cf-node text { font-size: 26px; }
  .next a { padding-inline: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cf__flap { display: none; }
  .ledger__grid i { transform: none; }
  .menu__list li { opacity: 1; transform: none; }
}
.still .cf__flap { display: none; }
.still .ledger__grid i, .still .menu__list li { opacity: 1; transform: none; }
.still .reader__frame { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ */
/* Scrollbar — a stitched bookmark ribbon on a paper track             */
/* ------------------------------------------------------------------ */

::-webkit-scrollbar { width: 14px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper-2); box-shadow: inset 1px 0 0 var(--rule); }
::-webkit-scrollbar-thumb {
  border: 3px solid var(--paper-2); border-radius: 999px; background-clip: padding-box;
  background-image:
    repeating-linear-gradient(180deg, color-mix(in srgb, var(--paper) 75%, transparent) 0 3px, transparent 3px 7px),
    linear-gradient(180deg, var(--clay), var(--terra));
  background-size: 1px 100%, 100% 100%;
  background-position: center, center;
  background-repeat: no-repeat;
}
::-webkit-scrollbar-thumb:hover {
  background-image:
    repeating-linear-gradient(180deg, color-mix(in srgb, var(--paper) 75%, transparent) 0 3px, transparent 3px 7px),
    linear-gradient(180deg, var(--terra), color-mix(in srgb, var(--terra) 70%, var(--ink)));
}
::-webkit-scrollbar-corner { background: var(--paper-2); }
@supports (-moz-appearance: none) {
  html { scrollbar-color: var(--terra) var(--paper-2); }
}

/* ------------------------------------------------------------------ */
/* Cursor — ink drop + trailing registration ring, labels in context   */
/* ------------------------------------------------------------------ */

html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor input, html.has-cursor textarea, html.has-cursor select, html.has-cursor [contenteditable='true'] { cursor: text !important; }
.cur { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; transition: opacity 0.25s; }
.cur.is-hidden, .cur.is-text { opacity: 0; }
.cur > span { position: fixed; left: 0; top: 0; width: 0; height: 0; will-change: transform; }
.cur > span > i { position: absolute; left: 0; top: 0; display: block; transition: scale 0.3s var(--ease-out), opacity 0.25s; }

/* Ink drop, centred on the pointer */
.cur__drop > i {
  width: 10px; height: 14px; margin: -7px 0 0 -5px; background: var(--terra);
  border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%; rotate: -35deg;
}

/* Registration ring: circle + four ticks, centred on its own trailing point */
.cur__ring > i {
  width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%;
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out), margin 0.35s var(--ease-out), background 0.3s, rotate 0.5s var(--ease-out), scale 0.3s var(--ease-out), opacity 0.25s;
  border: 1px solid color-mix(in srgb, var(--terra) 60%, transparent);
}
.cur__ring > i::after {
  content: ''; position: absolute; inset: -1px; border-radius: 50%; opacity: 0.8;
  background:
    linear-gradient(var(--terra), var(--terra)) 50% 0 / 1px 6px no-repeat,
    linear-gradient(var(--terra), var(--terra)) 50% 100% / 1px 6px no-repeat,
    linear-gradient(var(--terra), var(--terra)) 0 50% / 6px 1px no-repeat,
    linear-gradient(var(--terra), var(--terra)) 100% 50% / 6px 1px no-repeat;
}
.cur.is-link .cur__drop > i { scale: 0.55; }
.cur.is-link .cur__ring > i { width: 52px; height: 52px; margin: -26px 0 0 -26px; background: color-mix(in srgb, var(--terra) 12%, transparent); rotate: 45deg; }

/* Label pill, centred on the pointer */
.cur__label > i {
  translate: -50% -50%; scale: 0; padding: 9px 13px; border-radius: 999px; white-space: nowrap; font-style: normal;
  background: var(--ink); color: var(--paper); box-shadow: 0 10px 24px -10px rgba(20, 12, 6, 0.6);
  font: 600 10px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase;
}
.cur.is-label .cur__label > i { scale: 1; }
.cur.is-label .cur__drop > i, .cur.is-label .cur__ring > i { scale: 0; opacity: 0; }

/* Press: the drop squashes like the stamp, the ring tightens in place */
.cur.is-down .cur__drop > i { animation: cur-press 0.32s cubic-bezier(0.34, 1.56, 0.64, 1); }
.cur.is-down .cur__ring > i { scale: 0.82; }
.cur.is-down.is-label .cur__label > i { scale: 0.9; }
@keyframes cur-press { 30% { scale: 1.35 0.7; } 70% { scale: 0.9 1.15; } }

/* ------------------------------------------------------------------ */
/* Context menu — the Quick Index slip                                  */
/* ------------------------------------------------------------------ */

.ctx {
  position: fixed; z-index: 150; width: 272px; padding: 8px; outline: none;
  background: var(--paper); color: var(--ink); border: 1px solid var(--ink);
  box-shadow: 5px 5px 0 -1px var(--paper-2), 5px 5px 0 0 var(--ink), 0 28px 50px -24px rgba(20, 12, 6, 0.6);
  opacity: 0; transform: scale(0.97); clip-path: inset(0 0 100% 0);
  transition: opacity 0.18s, transform 0.4s var(--ease-out), clip-path 0.42s var(--ease-out);
}
.ctx[data-dir='up'] { clip-path: inset(100% 0 0 0); }
.ctx.is-open { opacity: 1; transform: none; clip-path: inset(-30px -30px -60px -30px); }
.ctx[hidden] { display: none; }
.ctx > :not(.ctx__marker) { transition: opacity 0.14s; }
.ctx.is-swapping > :not(.ctx__marker) { opacity: 0; }
.ctx__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 6px 8px 9px; border-bottom: 3px double var(--ink); }
.ctx__kicker { font: 500 9.5px/1.2 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--terra); }
.ctx__folio { font: italic 400 13px/1 var(--serif); color: var(--muted); white-space: nowrap; }
.ctx__where { margin: 9px 8px 2px; font-size: 11.5px; color: var(--muted); }
.ctx__where em { font: italic 400 13.5px var(--serif); color: var(--ink); }
.ctx__title { margin: 12px 8px 0; font: 400 28px/1 var(--serif); letter-spacing: -0.01em; }
.ctx__meta { margin: 5px 8px 6px; font-size: 11.5px; color: var(--muted); }
.ctx__group { padding: 6px 0; }
.ctx__group + .ctx__group { border-top: 1px solid var(--rule); }
.ctx__item {
  position: relative; z-index: 1; width: 100%; display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px;
  padding: 7px 8px; border: 0; background: none; color: var(--ink); text-decoration: none; text-align: left; outline: none;
  font: 400 13.5px/1.2 var(--sans); transition: color 0.18s;
}
.ctx.is-open .ctx__item { animation: ctx-in 0.35s var(--ease-out) backwards; animation-delay: calc(0.05s + var(--i, 0) * 22ms); }
@keyframes ctx-in { from { opacity: 0; transform: translate3d(0, -5px, 0); } }
.ctx__lead { display: grid; place-items: center; font: 500 10px/1 var(--sans); letter-spacing: 0.08em; color: var(--terra); transition: color 0.18s; }
.ctx__lead svg, .ctx__tail svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.ctx__tail svg { width: 12px; height: 12px; }
.ctx__tail { color: var(--muted); font-size: 12px; transition: color 0.18s; }
.ctx__item[aria-current] .ctx__label { font: italic 400 15px/1.1 var(--serif); }
.ctx__dot { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--terra); }
.ctx__marker {
  position: absolute; left: 8px; right: 8px; top: 0; height: 0; z-index: 0; opacity: 0; border-radius: 2px; background: var(--ink);
  transition: transform 0.24s var(--ease-out), height 0.24s var(--ease-out), opacity 0.18s;
}
.ctx__item.is-active { color: var(--paper); }
.ctx__item.is-active .ctx__lead, .ctx__item.is-active .ctx__tail { color: var(--clay); }
.ctx__item.is-active .ctx__dot { background: var(--clay); }
.ctx__item.is-done .ctx__lead { color: var(--c-be); }

/* Flipbook drag */
.flip.is-pinned .flip__track { touch-action: pan-y; user-select: none; -webkit-user-select: none; }

@media (prefers-reduced-motion: reduce) {
  .ctx { clip-path: none !important; transform: none; }
}

/* ------------------------------------------------------------------ */
/* Contents menu — puzzle page entry                                   */
/* ------------------------------------------------------------------ */

.menu__puzzle {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; width: 100%; margin-top: 14px; padding: 14px 0 0;
  border: 0; border-top: 3px double var(--ink); background: none; color: var(--ink); cursor: pointer; text-align: left;
  font: 400 clamp(20px, 2.4vw, 28px)/1.1 var(--serif); transition: color 0.25s;
}
.menu__puzzle span { font-size: 0.8em; color: var(--terra); margin-right: 8px; }
.menu__puzzle em { font-size: 15px; color: var(--muted); }
.menu__puzzle kbd, .ctx__tail kbd { font: 500 10px/1 var(--sans); padding: 3px 5px; border: 1px solid var(--rule); border-radius: 3px; color: var(--muted); }
.menu__puzzle:hover { color: var(--terra); }

/* ------------------------------------------------------------------ */
/* The Puzzle Page                                                      */
/* ------------------------------------------------------------------ */

.pz { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: clamp(0px, 3vw, 40px); }
.pz[hidden] { display: none; }
.pz__backdrop { position: absolute; inset: 0; background: color-mix(in srgb, var(--choc) 82%, transparent); opacity: 0; transition: opacity 0.4s; }
.pz.is-open .pz__backdrop { opacity: 1; }
.pz__sheet {
  position: relative; width: min(1080px, 100%); max-height: 100%; overflow: auto; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--ink); box-shadow: 8px 8px 0 -1px var(--paper-2), 8px 8px 0 0 var(--ink), 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  padding: clamp(18px, 3vw, 36px); opacity: 0; transform: translate3d(0, 30px, 0) rotate(-0.6deg);
  transition: opacity 0.4s var(--ease-out), transform 0.7s var(--ease-out);
}
.pz.is-open .pz__sheet { opacity: 1; transform: none; }
.pz__head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; border-bottom: 3px double var(--ink); }
.pz__head .kicker { margin: 0; }
.pz__close { border: 0; background: none; color: var(--ink); cursor: pointer; font: 500 11px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; }
.pz__close:hover { color: var(--terra); }
.pz__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); gap: clamp(20px, 3vw, 40px); margin-top: 22px; min-height: 0; }
.pz__title { margin: 0; font: 400 clamp(38px, 4.6vw, 64px)/0.95 var(--serif); letter-spacing: -0.03em; }
.pz__title em { color: var(--terra); }
.pz__dek { margin: 12px 0 18px; color: var(--ink-soft); font-size: 14.5px; }
.pz-grid { width: min(170px, 50%); float: right; margin: 0 0 12px 16px; }
.pz-cell { fill: var(--paper); stroke: var(--ink); stroke-width: 1; }
.pz-grid { filter: drop-shadow(3px 3px 0 var(--paper-2)); }
.pz-letter { font: 400 13px var(--serif); fill: var(--terra); text-anchor: middle; }
.pz.is-open .pz-letter { animation: pz-ink 0.4s var(--ease-out) backwards; animation-delay: calc(0.3s + var(--i) * 12ms); }
@keyframes pz-ink { from { opacity: 0; } }
.pz__clues { clear: both; }
.pz__clues .kicker { margin: 14px 0 6px; }
.pz__clues ol { list-style: none; margin: 0; padding: 0; }
.pz__clues button {
  width: 100%; display: grid; grid-template-columns: 22px auto 1fr; gap: 8px; align-items: baseline; padding: 6px 0; text-align: left;
  border: 0; border-top: 1px solid var(--rule); background: none; color: var(--ink); cursor: pointer; font-size: 13.5px; transition: color 0.2s, padding 0.3s var(--ease-out);
}
.pz__clues button:hover { color: var(--terra); padding-left: 4px; }
.pz__clues b { font: 400 16px var(--serif); color: var(--terra); }
.pz__clues code, .pz__out, .pz__prompt input { font-family: ui-monospace, 'Cascadia Code', 'SFMono-Regular', Consolas, monospace; }
.pz__clues code { font-size: 12.5px; background: var(--paper-2); padding: 1px 5px; }
.pz__clues span { color: var(--muted); font-size: 12.5px; }
.pz__console {
  display: flex; flex-direction: column; min-height: 420px; max-height: 70vh; background: var(--choc); color: var(--on-choc);
  border: 1px solid var(--ink); box-shadow: inset 0 0 0 6px color-mix(in srgb, var(--on-choc) 4%, transparent);
}
.pz__out { flex: 1; overflow: auto; overscroll-behavior: contain; padding: 18px 20px 8px; font-size: 12.5px; line-height: 1.6; scrollbar-width: thin; }
.pz__line { margin: 0; white-space: pre; width: max-content; min-width: 100%; animation: pz-line 0.3s var(--ease-out) backwards; animation-delay: calc(var(--i) * 24ms); }
.pz__out::-webkit-scrollbar-track, .pz__out::-webkit-scrollbar-corner { background: var(--choc); box-shadow: none; }
.pz__out::-webkit-scrollbar-thumb { border-color: var(--choc); }
.pz__line.is-cmd { color: var(--clay); margin-top: 10px; }
.pz__line.is-note { color: color-mix(in srgb, var(--on-choc) 60%, transparent); font-style: italic; }
@keyframes pz-line { from { opacity: 0; transform: translate3d(0, 3px, 0); } }
.pz__prompt { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-top: 1px solid color-mix(in srgb, var(--on-choc) 18%, transparent); }
.pz__prompt label { font: 600 12px/1 var(--sans); letter-spacing: 0.14em; color: var(--clay); white-space: nowrap; }
.pz__prompt input { flex: 1; min-width: 0; border: 0; background: none; color: var(--on-choc); font-size: 14px; caret-color: var(--clay); outline: none; }
.pz__prompt input::placeholder { color: color-mix(in srgb, var(--on-choc) 35%, transparent); }
.pz__prompt:focus-within { box-shadow: inset 0 2px 0 var(--clay); }
.pz__foot { display: flex; gap: 16px; flex-wrap: wrap; margin: 0; padding: 8px 20px 12px; font: 500 9.5px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: color-mix(in srgb, var(--on-choc) 45%, transparent); }

/* ------------------------------------------------------------------ */
/* Misprint (404)                                                       */
/* ------------------------------------------------------------------ */

.misprint { min-height: 100vh; min-height: 100svh; padding-top: clamp(110px, 12vw, 160px); }
.misprint__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.misprint__dek { margin: 44px 0 0; max-width: 34ch; font: italic 400 clamp(19px, 1.8vw, 24px)/1.45 var(--serif); color: var(--ink-soft); }
.misprint__notice { margin-top: 32px; padding: 20px 22px; border: 1px solid var(--ink); background: var(--paper-2); rotate: -0.6deg; }
.misprint__notice p { margin: 0; font-size: 14.5px; }
.misprint__notice .kicker { margin-bottom: 8px; }
.misprint__notice code { font-size: 13px; background: var(--paper); padding: 1px 5px; word-break: break-all; }
.misprint__sig { margin-top: 12px !important; font: italic 400 18px var(--serif) !important; }

@media (max-width: 860px) {
  .pz { padding: 0; }
  .pz__sheet { height: 100%; }
  .pz__grid, .misprint__grid { grid-template-columns: minmax(0, 1fr); }
  .pz__console { order: -1; min-height: 300px; max-height: 50vh; }
}

/* No-JavaScript fallback */
.noscript { max-width: 640px; padding: 96px var(--gutter); }
.noscript h1 { margin: 0 0 16px; font: 400 clamp(48px, 9vw, 96px)/0.9 var(--serif); letter-spacing: -0.03em; }
.noscript p { color: var(--ink-soft); }

/* ------------------------------------------------------------------ */
/* The Press Room — axonometric cutaway fold-out                        */
/* ------------------------------------------------------------------ */

.pr { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: clamp(0px, 3vw, 40px); }
.pr[hidden] { display: none; }
.pr__backdrop { position: absolute; inset: 0; background: color-mix(in srgb, var(--choc) 82%, transparent); opacity: 0; transition: opacity 0.4s; }
.pr.is-open .pr__backdrop { opacity: 1; }
.pr__sheet {
  position: relative; width: min(1280px, 100%); max-height: 100%; overflow: auto; overscroll-behavior: contain;
  background: var(--paper); border: 1px solid var(--ink); box-shadow: 8px 8px 0 -1px var(--paper-2), 8px 8px 0 0 var(--ink), 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  padding: clamp(16px, 2.6vw, 32px); opacity: 0; transform: translate3d(0, 30px, 0) rotate(0.5deg);
  transition: opacity 0.4s var(--ease-out), transform 0.7s var(--ease-out);
}
.pr.is-open .pr__sheet { opacity: 1; transform: none; }
.pr__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 12px; border-bottom: 3px double var(--ink); }
.pr__head .kicker { margin: 0; }
.pr__close { flex: none; border: 0; background: none; color: var(--ink); cursor: pointer; font: 500 11px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; }
.pr__close:hover { color: var(--terra); }

.pr__body { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: clamp(18px, 2.6vw, 36px); margin-top: 18px; align-items: start; }
.pr__title { margin: 0; font: 400 clamp(36px, 4.2vw, 58px)/0.95 var(--serif); letter-spacing: -0.03em; }
.pr__title em { color: var(--terra); }
.pr__dek { margin: 12px 0 16px; color: var(--ink-soft); font-size: 14px; }

/* Numbered key, cutaway-spread style */
.pr-key { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.pr-key button {
  display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 10px; align-items: center; width: 100%; padding: 7px 0;
  border: 0; border-bottom: 1px solid var(--rule); background: none; color: var(--ink); text-align: left; cursor: pointer; transition: color 0.2s, background-color 0.2s;
}
.pr-key b {
  grid-row: span 2; display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--ink); border-radius: 50%;
  font: 600 11px/1 var(--sans); transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.pr-key__k { font: 500 9px/1.2 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--terra); }
.pr-key__l { font: 400 15px/1.25 var(--serif); }
.pr-key button:hover, .pr-key button.is-hot { color: var(--terra); }
.pr-key button:hover b, .pr-key button.is-hot b { background: var(--terra); border-color: var(--terra); color: var(--paper); }
.pr-key button.is-locked .pr-key__l { color: var(--muted); }
.pr__status { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 12px 0 0; font: 500 10px/1.4 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

.pr__plan { position: relative; margin: 0; padding: 12px; min-width: 0; }
.pr__crop { position: absolute; width: 12px; height: 12px; border-color: var(--ink); border-style: solid; border-width: 0; }
.pr__crop--tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.pr__crop--tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.pr__crop--bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.pr__crop--br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.pr__stage { position: relative; aspect-ratio: 940 / 640; overflow: hidden; touch-action: manipulation; }
.pr__world { position: absolute; inset: 0; transform-origin: 0 0; }
.pr__svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.pr__caption { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; min-height: 3.2em; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--rule); }
.pr__cap-k { font: 500 10.5px/1.3 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--terra); }
.pr__cap-t { font: italic 400 16px/1.35 var(--serif); color: var(--ink); max-width: 70ch; }

/* Pins: the numbered callouts are the real controls */
.pr-pin {
  position: absolute; display: grid; place-items: center; width: 26px; height: 26px; margin: -13px 0 0 -13px; padding: 0;
  border: 1px solid var(--ink); border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; text-decoration: none;
  font: 600 11.5px/1 var(--sans); box-shadow: 2px 2px 0 var(--ink); transition: background-color 0.2s, color 0.2s, transform 0.25s var(--ease-out);
  transform: scale(var(--pin-s, 1));
}
.pr-pin:hover, .pr-pin.is-hot { background: var(--terra); border-color: var(--terra); color: var(--paper); transform: translateY(-2px) scale(var(--pin-s, 1)); }
.pr-pin:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }
.pr-pin[aria-disabled="true"] { border-style: dashed; cursor: not-allowed; }
.callout line { stroke: var(--ink); stroke-width: 1; }
.callout circle { fill: var(--ink); }
.callout.is-hot line { stroke: var(--terra); stroke-width: 1.5; }
.callout.is-hot circle { fill: var(--terra); }

/* Drawing tokens */
.pr__svg {
  --pr-line: #2a1d13; --pr-shade: #2a1d13;
  --pr-floor: #ecdfc9; --pr-wall: #f1e8d9; --pr-wood: #d9bf98; --pr-wood-dark: #a77b52; --pr-sheet: #fbf7ef;
  --pr-metal: #cfc4b3; --pr-machine: #6e5948; --pr-press: #8c4a2b; --pr-chair: #e8dcc8; --pr-cork: #c99c6c;
  --pr-rug: #e3cfb0; --pr-brass: #c9a15a; --pr-water: #a9bdb4; --pr-pot: #b8653d; --pr-leaf: #7f8a5a; --pr-sky: #f6e7cc; --pr-screen: #241a12;
}
:root[data-theme="dark"] .pr__svg {
  --pr-line: #0b0705; --pr-shade: #000;
  --pr-floor: #2a1f16; --pr-wall: #33261b; --pr-wood: #6b4f35; --pr-wood-dark: #4a3221; --pr-sheet: #e9dfcf;
  --pr-metal: #5d5145; --pr-machine: #3b2f26; --pr-press: #7a3e22; --pr-chair: #4a3b2d; --pr-cork: #6e4c2f;
  --pr-rug: #3a2a1d; --pr-brass: #b48b45; --pr-water: #4f6660; --pr-pot: #8c4a2b; --pr-leaf: #59603d; --pr-sky: #151c2b; --pr-screen: #0d0a07;
}
.pr__svg path, .pr__svg rect, .pr__svg ellipse, .pr__svg circle, .pr__svg line { stroke-linejoin: round; stroke-linecap: round; }
.pl * { vector-effect: non-scaling-stroke; }

/* materials: top face lit, left face mid, right face shaded */
.f-t, .f-l, .f-r { stroke: var(--pr-line); stroke-width: 1; }
.f-t { fill: var(--c); }
.f-l { fill: color-mix(in srgb, var(--c) 82%, var(--pr-shade)); }
.f-r { fill: color-mix(in srgb, var(--c) 66%, var(--pr-shade)); }
.m-wood { --c: var(--pr-wood); }
.m-dark { --c: var(--pr-wood-dark); }
.m-metal { --c: var(--pr-metal); }
.m-machine { --c: var(--pr-machine); }
.m-press { --c: var(--pr-press); }
.m-roller { --c: #2a1d13; }
.m-ink { --c: #3a2a1e; }
.m-chair { --c: var(--pr-chair); }
.m-paper { --c: var(--pr-sheet); }
.m-brass { --c: var(--pr-brass); }
.m-pot { --c: var(--pr-pot); }
.m-bin { --c: var(--pr-metal); }
.m-water .f-l, .m-water .f-r { fill: var(--pr-water); fill-opacity: 0.75; }
.m-glass .f-t { fill: none; }
.m-glass .f-l, .m-glass .f-r { fill: none; }

.sh { fill: var(--pr-shade); opacity: 0.12; stroke: none; }
.floor { fill: var(--pr-floor); stroke: var(--pr-line); stroke-width: 1.2; }
.pl-plank { stroke: var(--pr-line); stroke-width: 0.6; opacity: 0.16; }
.wall { stroke: var(--pr-line); stroke-width: 1.2; }
.wall--y { fill: var(--pr-wall); }
.wall--x { fill: color-mix(in srgb, var(--pr-wall) 88%, var(--pr-shade)); }
.cut { fill: url(#pr-cut); stroke: var(--pr-line); stroke-width: 1.2; }
.cut-bg { fill: var(--paper); }
.cut-line { stroke: var(--ink); stroke-width: 1.4; opacity: 0.6; }
.pl-rail { stroke: var(--terra); stroke-width: 1.2; opacity: 0.6; }
.pl-skirt { stroke: var(--pr-line); stroke-width: 2.4; opacity: 0.5; }
.pl-rug { fill: var(--pr-rug); stroke: var(--pr-line); stroke-width: 1; }
.pl-rug-edge { fill: none; stroke: var(--terra); stroke-width: 1; stroke-dasharray: 2 4; opacity: 0.8; }
.pl-office { fill: color-mix(in srgb, var(--pr-floor) 86%, var(--pr-shade)); }
.glass { fill: color-mix(in srgb, var(--pr-sky) 55%, transparent); stroke: var(--pr-line); stroke-width: 1.2; }
.pl-mull { stroke: var(--pr-line); stroke-width: 1.2; }
.pl-door { fill: color-mix(in srgb, var(--terra) 18%, transparent); stroke: var(--terra); stroke-width: 2; }
.pl-door.is-solid { fill: var(--pr-wood-dark); stroke: var(--pr-line); stroke-width: 1.2; }
.pl-door-glass { fill: none; stroke: var(--terra); stroke-width: 1; }
.pl-panel { fill: none; stroke: var(--pr-line); stroke-width: 1; opacity: 0.55; }
.pl-slot { fill: var(--pr-brass); stroke: var(--pr-line); stroke-width: 1; }
.pl-knob { fill: var(--pr-brass); stroke: var(--pr-line); stroke-width: 1; }
.pl-mat { fill: var(--terra); opacity: 0.55; stroke: var(--pr-line); stroke-width: 1; }
.pl-stencil { font-family: var(--sans); font-weight: 700; letter-spacing: 0.06em; fill: var(--pr-line); text-anchor: middle; opacity: 0.7; }
.pl-stencil.is-light { fill: var(--pr-sheet); opacity: 0.85; }
.pl-lock { fill: var(--terra); }
.pl-lock-loop { fill: none; stroke: var(--terra); stroke-width: 1.4; }

.pl-sheet { fill: var(--pr-sheet); stroke: var(--pr-line); stroke-width: 1; }
.pl-line { fill: none; stroke: var(--pr-line); stroke-width: 1; opacity: 0.7; }
.pl-type { stroke: #8a6a4e; stroke-width: 1.3; }
.pl-terra { stroke: #a0522d; stroke-width: 1.6; }
.pl-terra-line { fill: none; stroke: #a0522d; stroke-width: 1.4; }
.pl-terra-fill { fill: #a0522d; }
.pl-ink { fill: #2a1d13; }
.pl-handle { fill: var(--pr-line); }
.pl-card { fill: var(--pr-sheet); stroke: var(--pr-line); stroke-width: 0.8; }
.pl-file { fill: var(--pr-sheet); stroke: var(--pr-line); stroke-width: 0.8; }
.pl-file.is-out { fill: #a0522d; }
.pl-frame { fill: var(--pr-wood-dark); stroke: var(--pr-line); stroke-width: 1.2; }
.pl-cork { fill: var(--pr-cork); stroke: var(--pr-line); stroke-width: 1; }
.pl-commit { fill: #a0522d; opacity: 0.75; }
.pl-pin { fill: #a0522d; stroke: var(--pr-line); stroke-width: 0.6; }
.pl-pin.is-ink { fill: #2a1d13; }
.pl-string { fill: none; stroke: #a0522d; stroke-width: 1; }
.pl-sky { fill: var(--pr-sky); stroke: var(--pr-line); stroke-width: 1; }
.pl-sun { fill: #e5a55e; }
.pl-cloud { fill: none; stroke: #fff; stroke-width: 2.4; opacity: 0.8; }
.pl-moon { fill: #efe2c3; }
.pl-star { fill: #efe2c3; }
.pl-skyline { fill: color-mix(in srgb, var(--pr-machine) 55%, var(--pr-sky)); }
:root[data-theme="dark"] .pl-skyline { fill: #0b0d14; }
.pl-lit { fill: #e5a55e; }
.pl-mullion { stroke: var(--pr-wood-dark); stroke-width: 2.4; }
.pl-sill { fill: var(--pr-wood); stroke: var(--pr-line); stroke-width: 1; }
.pr-night { display: none; }
:root[data-theme="dark"] .pr-night { display: inline; }
:root[data-theme="dark"] .pr-day { display: none; }
.pl-clock { fill: var(--pr-sheet); stroke: var(--pr-line); stroke-width: 1.6; }
.pl-tick { stroke: #2a1d13; stroke-width: 1; }
.pl-hand { stroke: #2a1d13; stroke-width: 2; }
.pl-hand.is-min { stroke: #a0522d; stroke-width: 1.4; }
.pl-pivot { fill: #2a1d13; }
.pl-clock-txt { font-family: var(--sans); font-weight: 600; fill: #7a5c42; text-anchor: middle; letter-spacing: 0.02em; }
.pl-cover { fill: var(--pr-sheet); }
.pl-cover-t { font-family: var(--serif); fill: #2a1d13; }
.pl-cover-t.is-terra { fill: #a0522d; font-style: italic; }
.pl-cover-img { fill: #c4956a; opacity: 0.6; }

.pl-screen { fill: var(--pr-screen); stroke: var(--pr-line); stroke-width: 1; }
.pl-glitch { stroke: #d9885c; stroke-width: 1.4; }
.pl-glitch.is-dim { opacity: 0.45; }
.pl-mono { font-family: ui-monospace, Consolas, monospace; fill: #e5a55e; }
.pl-key-bed { fill: #3a2a1e; stroke: var(--pr-line); stroke-width: 1; }
.pl-key-bed + .pl-line, .pl-key-bed ~ .pl-line { stroke: #8a6a4e; }
.pl-cable { fill: none; stroke: #2a1d13; stroke-width: 1.6; }
.pl-fish { fill: #c8643a; }
.pl-weed { fill: none; stroke: #6f7a49; stroke-width: 1.4; }
.pl-bubble { fill: none; stroke: #fff; stroke-width: 0.8; opacity: 0.8; }
.pl-gravel { fill: #b49a78; }
.pl-photo { fill: #c4956a; opacity: 0.7; }
.pl-photo.is-now, .pl-thumb.is-now { fill: #a0522d; opacity: 1; }
.pl-thumb { fill: #6e5948; }
.pl-thread { fill: none; stroke: #a0522d; stroke-width: 1; }
.pl-phone { fill: #2a1d13; }
.pl-ring-bg { fill: none; stroke: #5a4331; stroke-width: 1.6; }
.pl-ring { fill: none; stroke: #d9885c; stroke-width: 2; }
.tomato__body { fill: #b8462a; stroke: var(--pr-line); stroke-width: 1; }
.tomato__band { fill: none; stroke: #f3ece0; stroke-width: 0.8; opacity: 0.7; }
.tomato__leaf { fill: #6f7a49; stroke: var(--pr-line); stroke-width: 0.6; }
.miso__body, .miso__head { fill: #d8b48a; stroke: var(--pr-line); stroke-width: 1; }
.miso__tail { fill: none; stroke: #a87b4f; stroke-width: 3; }
.miso__stripe { fill: none; stroke: #a87b4f; stroke-width: 1.4; }
.miso__eye { fill: none; stroke: #2a1d13; stroke-width: 1; }
.miso__z { font: italic 600 9px var(--serif); fill: var(--terra); animation: pr-z 3s ease-in-out infinite; }
.miso__z.is-2 { font-size: 7px; animation-delay: 1.5s; }
@keyframes pr-z { 0%, 100% { opacity: 0; transform: translateY(2px); } 40%, 60% { opacity: 1; transform: none; } }

.pl-key { fill: var(--pr-sheet); stroke: var(--pr-line); stroke-width: 0.8; }
.pl-gleam { stroke: #f3ece0; stroke-width: 1; opacity: 0.35; }
.pl-gauge { fill: var(--pr-sheet); stroke: var(--pr-line); stroke-width: 1; }
.pl-dial { fill: var(--pr-sheet); stroke: var(--pr-line); stroke-width: 1.2; }
.pl-needle { stroke: #a0522d; stroke-width: 1.4; }
.pl-wheel { fill: none; stroke: #2a1d13; stroke-width: 3; }
.pl-spoke { stroke: #2a1d13; stroke-width: 1.6; }
.pl-hub { fill: #c9a15a; stroke: #2a1d13; stroke-width: 1; }

.balls circle { fill: var(--pr-sheet); stroke: var(--pr-line); stroke-width: 1; }
.leaves path { fill: var(--pr-leaf); stroke: var(--pr-line); stroke-width: 1; }

/* The courier */
.you__leg { fill: #3a2a1e; }
.you__shoe { fill: #1e150e; }
.you__coat { fill: #5a4331; stroke: var(--pr-line); stroke-width: 1; }
.you__strap { stroke: #2a1d13; stroke-width: 2; }
.you__bag { fill: #a77b52; stroke: var(--pr-line); stroke-width: 1; }
.you__flap { fill: #8c5f3a; stroke: var(--pr-line); stroke-width: 1; }
.you__scarf { fill: #b8562f; stroke: var(--pr-line); stroke-width: 0.8; }
.you__head { fill: #d9b38c; stroke: var(--pr-line); stroke-width: 1; }
.you__cap { fill: #2a1d13; }
.you__eye { fill: #2a1d13; }
.you__tag rect, .you__tag path { fill: var(--choc); }
.you__tag text { font: 600 10px var(--sans); letter-spacing: 0.08em; fill: var(--on-choc); text-anchor: middle; }
:root[data-theme="dark"] .you__tag rect, :root[data-theme="dark"] .you__tag path { fill: var(--terra); }
:root[data-theme="dark"] .you__tag text { fill: var(--paper); }
.you__bob { animation: pr-breathe 2.6s ease-in-out infinite; }
.you__leg path:first-child { fill: #3a2a1e; }
.you__leg { transform-box: fill-box; transform-origin: 50% 0; }
.you.is-walking .you__bob { animation: pr-bounce 0.36s ease-in-out infinite; }
.you.is-walking .you__leg.is-l { animation: pr-step 0.36s ease-in-out infinite alternate; }
.you.is-walking .you__leg.is-r { animation: pr-step 0.36s ease-in-out infinite alternate-reverse; }
@keyframes pr-step { from { transform: rotate(16deg); } to { transform: rotate(-16deg); } }
@keyframes pr-bounce { 50% { transform: translateY(-2px); } }

/* Proximity prompt, floats over the courier */
.pr-prompt {
  position: absolute; scale: var(--pin-s, 1); transform-origin: 50% 100%; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px 5px 5px; transform: translate(-50%, -100%);
  border: 1px solid var(--ink); background: var(--paper); color: var(--ink); box-shadow: 2px 2px 0 var(--ink); cursor: pointer; white-space: nowrap;
  font: 500 10.5px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; animation: pr-pop 0.25s var(--ease-out);
}
.pr-prompt[hidden] { display: none; }
.pr-prompt kbd { display: grid; place-items: center; width: 18px; height: 18px; background: var(--terra); color: var(--paper); font: 700 10px/1 var(--sans); border-radius: 2px; }
.pr-prompt:hover { background: var(--terra); color: var(--paper); border-color: var(--terra); }
@media (pointer: coarse) { .pr-prompt kbd { display: none; } .pr-prompt { padding: 7px 10px; } }
@keyframes pr-pop { from { opacity: 0; transform: translate(-50%, -80%); } }
@keyframes pr-breathe { 50% { transform: translateY(-1.5px); } }

/* Highlight: the hot object lifts; the rest of the room recedes */
.pr-obj { cursor: pointer; transition: opacity 0.3s; }
.pr.has-hot .pr-obj:not(.is-hot) { opacity: 0.5; }
.pr-obj.is-hot { filter: drop-shadow(0 0 1px #a0522d) drop-shadow(0 0 1px #a0522d); }
.pr-obj.is-rattle { animation: pr-rattle 0.4s; }
@keyframes pr-rattle { 20%, 60% { transform: translateX(-3px); } 40%, 80% { transform: translateX(3px); } }

.menu__puzzle + .menu__puzzle { margin-top: 0; border-top: 1px solid var(--rule); }

@media (max-width: 900px) {
  .pr__body { grid-template-columns: 1fr; }
  .pr__intro { display: contents; }
  .pr__title { order: 1; } .pr__dek { order: 2; } .pr__plan { order: 3; } .pr-key { order: 4; } .pr__status { order: 5; }
  .pr__dek { margin-bottom: 0; }
  .pr-key { columns: 2 220px; column-gap: 24px; }
  .pr-key li { break-inside: avoid; }
}
@media (max-width: 560px) {
  .pr__plan { padding: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .you__bob, .miso__z, .pr-obj.is-rattle, .you.is-walking .you__bob, .you.is-walking .you__leg, .pr-prompt { animation: none !important; }
  .miso__z { opacity: 1; }
  .pr__sheet { transition: opacity 0.2s; transform: none; }
}
.still .you__bob, .still .miso__z { animation: none; opacity: 1; }
.glows ellipse { fill: url(#pr-glow); mix-blend-mode: screen; }
.glow-a { stop-color: #f0b46a; stop-opacity: 0.5; }
.glow-b { stop-color: #e5a55e; stop-opacity: 0; }
.you__tag { transition: opacity 0.2s; }
.pr.has-near .you__tag { opacity: 0; }

/* Press Room cards: a clipping pulled out over the drawing */
.pr-card {
  position: absolute; z-index: 4; top: 12px; right: 12px; bottom: 12px; width: min(380px, calc(100% - 24px)); overflow: auto; overscroll-behavior: contain;
  padding: 22px 22px 20px; background: var(--paper); border: 1px solid var(--ink); box-shadow: 6px 6px 0 -1px var(--paper-2), 6px 6px 0 0 var(--ink), 0 24px 50px -24px rgba(0, 0, 0, 0.55);
}
.pr-card[hidden] { display: none; }
/* the issue's ribbon scrollbar, slimmed to fit a clipping */
.pr-card::-webkit-scrollbar { width: 10px; }
.pr-card::-webkit-scrollbar-track { background: var(--paper); box-shadow: inset 1px 0 0 var(--rule); }
.pr-card::-webkit-scrollbar-thumb { border: 2px solid var(--paper); }
.pr-card::-webkit-scrollbar-button { display: none; }
@supports (-moz-appearance: none) {
  .pr-card { scrollbar-width: thin; scrollbar-color: var(--terra) var(--paper); }
}
.pr-card.is-in { animation: pr-card-in 0.42s var(--ease-out); }
@keyframes pr-card-in { from { opacity: 0; transform: translate3d(24px, 0, 0) rotate(1.2deg); } }
.pr-card__x {
  position: absolute; top: 8px; right: 10px; width: 30px; height: 30px; border: 0; background: none; color: var(--ink); cursor: pointer;
  font: 400 24px/1 var(--serif); transition: color 0.2s, transform 0.25s var(--ease-out);
}
.pr-card__x:hover { color: var(--terra); transform: rotate(90deg); }
.pr-card__k { margin: 0 34px 6px 0; font: 500 10px/1.3 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--terra); }
.pr-card__t { margin: 0 0 12px; padding-bottom: 10px; border-bottom: 3px double var(--ink); font: 400 clamp(26px, 2.6vw, 32px)/1 var(--serif); letter-spacing: -0.02em; outline: none; }
.pr-card__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin: 0 0 12px; border: 1px solid var(--ink); background: var(--paper-2); }
.pr-card__dek { margin: 0 0 12px; font: italic 400 16px/1.4 var(--serif); color: var(--ink); }
.pr-card__note { margin: 8px 0 0; font: 500 10px/1.5 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.pr-card__dl { margin: 0 0 12px; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }
.pr-card__dl dt { margin-top: 8px; font: 500 9.5px/1.3 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--terra); }
.pr-card__dl dd { margin: 2px 0 0; }
.pr-card__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule); }
.pr-card__sign { margin: 14px 0 0; font: italic 400 17px/1.4 var(--serif); color: var(--terra); }
.pr-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 13px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  font: 600 10.5px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease-out);
}
.pr-btn:hover { background: var(--terra); border-color: var(--terra); color: var(--paper); transform: translateY(-1px); }
.pr-btn.is-ghost { background: none; color: var(--ink); }
.pr-btn.is-ghost:hover { background: var(--terra); color: var(--paper); }
.pr-btn.is-sm { padding: 6px 9px; font-size: 9.5px; }
.pr-chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; list-style: none; }
.pr-chips li { padding: 4px 7px; border: 1px solid var(--rule); font: 500 10.5px/1 var(--sans); color: var(--ink-soft); }
.pr-files { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.pr-files button {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%; padding: 8px 0; border: 0; border-bottom: 1px solid var(--rule);
  background: none; color: var(--ink); text-align: left; cursor: pointer; transition: color 0.2s, padding 0.2s;
}
.pr-files button:hover, .pr-files button:focus-visible { color: var(--terra); padding-left: 4px; }
.pr-files__t { font: 400 16px/1.25 var(--serif); }
.pr-files__m { flex: none; font: 500 9.5px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.pr-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 14px; padding: 0; list-style: none; }
.pr-stats li { font: 500 9.5px/1.35 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.pr-stats b { display: block; margin-bottom: 4px; font: 400 30px/1 var(--serif); letter-spacing: -0.02em; color: var(--terra); text-transform: none; }
.pr-heat { display: grid; grid-template-rows: repeat(7, 1fr); grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; }
.pr-heat i { aspect-ratio: 1; background: var(--paper-2); border: 1px solid var(--rule); }
.pr-heat .lv1 { background: color-mix(in srgb, var(--terra) 30%, var(--paper)); border-color: transparent; }
.pr-heat .lv2 { background: color-mix(in srgb, var(--terra) 55%, var(--paper)); border-color: transparent; }
.pr-heat .lv3 { background: color-mix(in srgb, var(--terra) 80%, var(--paper)); border-color: transparent; }
.pr-heat .lv4 { background: var(--terra); border-color: transparent; }
.pr-bars { list-style: none; margin: 0; padding: 0; }
.pr-bars li { display: grid; grid-template-columns: minmax(0, 9em) 1fr 1.6em; gap: 10px; align-items: center; padding: 4px 0; font-size: 13px; color: var(--ink-soft); }
.pr-bars span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-bars i { height: 8px; width: var(--w); background: repeating-linear-gradient(135deg, var(--terra) 0 3px, color-mix(in srgb, var(--terra) 70%, var(--paper)) 3px 5px); }
.pr-bars b { font: 400 15px/1 var(--serif); color: var(--ink); text-align: right; }
.pr-tty {
  margin: 0; padding: 14px 16px; background: var(--choc); color: var(--on-choc); border: 1px solid var(--ink);
  font: 13px/1.7 ui-monospace, 'Cascadia Code', Consolas, monospace; white-space: pre-wrap;
}
.pr-tty span { color: var(--clay); animation: pr-blink 1s steps(1) infinite; }
@keyframes pr-blink { 50% { opacity: 0; } }
.pr-mail { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; padding: 12px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.pr-mail a { font: 400 18px/1.2 var(--serif); color: var(--ink); text-decoration-color: var(--terra); text-underline-offset: 3px; word-break: break-all; }
.pr-mail a:hover { color: var(--terra); }
.pr-errata { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.pr-errata li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 13.5px; line-height: 1.45; color: var(--ink-soft); }
.pr-errata b { font-weight: 600; color: var(--ink); }
.pr-errata__box { display: grid; place-items: center; width: 18px; height: 18px; margin-top: 1px; border: 1px solid var(--ink); font: 700 11px/1 var(--sans); color: var(--paper); }
.pr-errata li.is-found .pr-errata__box { background: var(--terra); border-color: var(--terra); }
.pr-errata li.is-found span:last-child { text-decoration: line-through; text-decoration-color: var(--terra); }
.pr-cut { margin: 0; padding: 0 0 0 1.1em; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.pr-cut li { margin: 0 0 8px; }
.pr-cut li::marker { color: var(--terra); }
.pr-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pr.has-card .pr__caption { opacity: 0.5; }

/* Office unlocked, the binned draft smoothed out */
.pr-draft { display: none; }
.pr.has-draft .pr-draft { display: inline; }
.pl-proof { fill: none; stroke: #a0522d; stroke-width: 1.4; }
.pr.is-unlocked .pl-lock, .pr.is-unlocked .pl-lock-loop { display: none; }
.pr.is-unlocked .pl-door { fill: color-mix(in srgb, var(--terra) 34%, transparent); }
.pr.is-unlocked .pr-pin[data-pr-spot="office"] { border-style: solid; }

/* Errata: misprints planted in the issue's margins */
.erratum {
  position: absolute; z-index: 3; display: grid; place-items: center; padding: 4px; border: 0; background: none; color: var(--ink);
  cursor: pointer; line-height: 1; transition: opacity 0.3s;
}
.erratum:focus-visible { outline: 2px dashed var(--terra); outline-offset: 2px; }
.erratum:hover:not(.is-found) { outline: 1px dashed color-mix(in srgb, var(--terra) 60%, transparent); outline-offset: 2px; }
.erratum.is-found { cursor: default; }
.erratum__stamp {
  position: absolute; left: 50%; top: 100%; padding: 2px 4px; border: 1px solid var(--terra); color: var(--terra); white-space: nowrap;
  font: 700 8px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; opacity: 0; transform: translate(-50%, 4px) rotate(-8deg) scale(1.3);
  transition: opacity 0.3s, transform 0.4s var(--ease-out); pointer-events: none;
}
.erratum.is-found .erratum__stamp { opacity: 1; transform: translate(-50%, 2px) rotate(-8deg); }
.erratum--sort { top: clamp(22px, 4vw, 52px); right: 18%; }
.erratum__glyph { display: block; font: 400 30px/1 var(--serif); transform: rotate(180deg); opacity: 0.8; transition: transform 0.6s var(--ease-out); }
.erratum--sort.is-found .erratum__glyph { transform: none; color: var(--terra); }
.erratum--blot { top: clamp(18px, 3vw, 40px); left: 14%; width: 40px; }
.erratum--blot svg { width: 34px; display: block; }
.erratum__ink { fill: var(--ink); opacity: 0.72; transition: opacity 0.5s; }
.erratum--blot.is-found .erratum__ink { opacity: 0.1; }
.erratum--plate { top: clamp(18px, 3vw, 40px); right: 8%; width: 44px; }
.erratum--plate svg { width: 36px; display: block; overflow: visible; }
.erratum__plate { fill: none; stroke: var(--ink); stroke-width: 1.2; transition: transform 0.6s var(--ease-out); }
.erratum__plate.is-ghost { stroke: var(--terra); transform: translate(4px, 3px); }
.erratum--plate.is-found .erratum__plate.is-ghost { transform: none; }
.erratum--folio { top: clamp(20px, 3vw, 40px); right: var(--gutter); }
.erratum__folio { font: 500 11px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.erratum__folio b { font-weight: 600; color: var(--ink); }
.erratum__folio .is-right { display: none; margin-left: 6px; color: var(--terra); }
.erratum--folio.is-found .is-wrong { text-decoration: line-through; text-decoration-color: var(--terra); color: var(--muted); }
.erratum--folio.is-found .is-right { display: inline; }

/* Toast: a proof slip that slides up from the bottom */
.err-toast {
  position: fixed; z-index: 130; left: 50%; bottom: 20px; display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px);
  padding: 10px 12px 10px 10px; background: var(--paper); color: var(--ink); border: 1px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  font-size: 13.5px; line-height: 1.35; opacity: 0; transform: translate(-50%, 16px); pointer-events: none;
  transition: opacity 0.3s, transform 0.4s var(--ease-out);
}
.err-toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.err-toast__mark { display: grid; place-items: center; flex: none; width: 28px; height: 28px; background: var(--terra); color: var(--paper); font: 700 14px/1 var(--sans); }
.err-toast__txt b { font-weight: 600; }
.err-toast__go { flex: none; border: 0; border-left: 1px solid var(--rule); padding: 4px 0 4px 12px; background: none; color: var(--terra); cursor: pointer; font: 600 10.5px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }

@media (max-width: 900px) {
  .pr-card {
    position: fixed; top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 78vh; z-index: 100;
    border-width: 3px 0 0; border-style: double; box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, 0.5);
  }
  @keyframes pr-card-in { from { opacity: 0; transform: translate3d(0, 40px, 0); } }
}
@media (prefers-reduced-motion: reduce) {
  .pr-card.is-in, .pr-tty span { animation: none; }
  .erratum__glyph, .erratum__plate, .erratum__stamp, .err-toast, .erratum__ink { transition: none; }
}
#contact-sheet .erratum__plate:not(.is-ghost) { stroke: var(--on-choc); }
