:root {
  --dusk: #1b1310;        /* espresso desk, matches the site ground */
  --lamp: #e8b98a;
  --vellum: #f3ead6;
  --sheet: #fbf6eb;
  --sheet-2: #f4ebda;
  --ink: #1b1612;
  --ink-soft: #3a322a;
  --muted: #6a5f53;
  --oxblood: #a5391a;     /* copper family, tuned to the site accent */
  --cloth: #66271a;
  --teal: #2f5b4a;
  --gold: #c08a4e;
  --display: "Frank Ruhl Libre", "David Libre", "Times New Roman", serif;
  --body: "Heebo", "Segoe UI", sans-serif;
  --latin: "Fraunces", Georgia, serif;
  --mark: "Karantina", "Frank Ruhl Libre", serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --pw: min(26rem, calc((100vw - 5.5rem) / 2));
  --ph: min(37.5rem, calc(100dvh - 10.6rem));
  --mast: 3.7rem;   /* fixed masthead height; the desk fills the rest of the viewport */
  --rule: rgba(27, 22, 18, .12);
  --rule-soft: rgba(27, 22, 18, .07);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  height: 100%;
  background: var(--dusk);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.02rem;
  line-height: 1.62;
  overflow: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
button, input, select {
  font: inherit;
  color: inherit;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
}
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 3px; }
::selection { color: var(--sheet); background: var(--oxblood); }

.skip {
  position: absolute;
  right: 1rem;
  top: -5rem;
  z-index: 80;
  padding: .55rem .9rem;
  background: var(--lamp);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}
.skip:focus { top: 1rem; }

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(70vw 50vh at 50% 18%, rgba(228, 196, 138, .16), transparent 55%),
    radial-gradient(40vw 36vh at 8% 88%, rgba(43, 88, 83, .18), transparent 62%),
    linear-gradient(180deg, #1b1310 0%, #241a15 100%);
}
.atmosphere .grain {
  position: absolute;
  inset: 0;
  opacity: .12;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.mast {
  position: relative;
  z-index: 20;
  color: var(--vellum);
}
.mast-inner {
  width: min(calc(var(--pw) * 2 + 3rem), calc(100vw - 1.2rem));
  margin: 0 auto;
  height: var(--mast);
  padding: .3rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  line-height: 1.15;
  min-height: 44px;
  flex: none;
}
.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  flex: none;
  border-radius: .8rem;
  background: #120c0a;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(232, 185, 138, .22), 0 8px 18px -10px rgba(0, 0, 0, .8);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-name { display: block; }
.brand b { font-family: var(--latin); font-size: .98rem; }
.brand small { display: block; font-size: .64rem; color: var(--lamp); letter-spacing: .12em; }
.brand:hover b { color: var(--lamp); }
.mast nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .1rem .7rem;
}
.mast nav button {
  color: rgba(243, 234, 214, .78);
  font-size: .76rem;
  font-weight: 500;
  min-height: 36px;
}
.mast nav button:hover,
.mast nav button.is-on { color: var(--lamp); }

.desk {
  position: relative;
  z-index: 1;
  height: calc(100dvh - var(--mast));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  align-content: center;
  gap: .7rem;
  padding: 0 1.6rem .4rem;
  overflow: visible;
}
.desk::after {
  content: "";
  position: absolute;
  inset: auto 8% 4% 8%;
  height: 18%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 0, 0, .45), transparent 70%);
}

.hint {
  margin: 0;
  color: rgba(243, 234, 214, .62);
  font-size: .82rem;
  text-align: center;
}

.stage {
  direction: ltr;
  position: relative;
  z-index: 1;
  width: max-content;
  max-width: calc(100vw - 1.6rem);
  height: calc(var(--ph) + 1.4rem);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  perspective: 1800px;
  perspective-origin: 50% 46%;
}

.book {
  --stack-l: 14px;
  --stack-r: 6px;
  direction: ltr;
  position: relative;
  width: calc(var(--pw) * 2);
  height: var(--ph);
  overflow: visible;
  transform-style: preserve-3d;
  transform-origin: center center;
  transform: translateX(0) rotateX(5deg) rotateY(0);
  touch-action: pan-y pinch-zoom;
}
.book.is-grabbing,
.book.is-grabbing * { cursor: grabbing; }
.book.closed {
  transform: translateX(25%) rotateX(5deg) rotateY(-10deg);
}
.book.portrait {
  width: var(--pw);
}
.book.portrait.closed {
  transform: translateX(0) rotateX(5deg) rotateY(-10deg);
}
.book.opening { will-change: transform; }
.book.is-grabbing { user-select: none; -webkit-user-select: none; }

.book-shade {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: -22px;
  height: 28px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, rgba(0, 0, 0, .55), transparent 72%);
  filter: blur(6px);
}

.board {
  position: absolute;
  top: -9px;
  bottom: -9px;
  width: 18px;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .25), transparent 40%),
    linear-gradient(#4a1c14, var(--cloth) 40%, #2c110c);
  box-shadow: 0 10px 18px rgba(0, 0, 0, .28);
}
.board-left {
  left: -15px;
  border-radius: 4px 0 0 4px;
}
.board-right {
  right: -15px;
  border-radius: 0 4px 4px 0;
}
.book.closed .board-right,
.book.opening .board-right { visibility: hidden; }
.book.closed .board-left { left: -8px; }

.block {
  position: absolute;
  top: 7px;
  bottom: 7px;
  pointer-events: none;
  z-index: 2;
  background: repeating-linear-gradient(
    180deg,
    #f3e6cc 0 2px,
    #e2d2b4 2px 3px
  );
  box-shadow: inset 0 0 0 1px rgba(90, 60, 30, .12);
}
.block-left {
  left: -11px;
  width: var(--stack-l);
  border-radius: 1px 0 0 1px;
}
.block-right {
  right: -11px;
  width: var(--stack-r);
  border-radius: 0 1px 1px 0;
}
.book.closed .block-right,
.book.opening .block-right { visibility: hidden; }
.book.closed .block-left {
  left: -13px;
  width: 15px;
}

.spine {
  position: absolute;
  top: -9px;
  bottom: -9px;
  z-index: 7;
  pointer-events: none;
  background:
    linear-gradient(90deg, #2a100c, var(--cloth) 46%, #7a3224 86%, #2a100c);
  box-shadow: 2px 0 10px rgba(0, 0, 0, .35);
}
.book.closed .spine {
  left: calc(50% - 3px);
  width: 16px;
  border-radius: 0 5px 5px 0;
}
.book:not(.closed) .spine {
  left: calc(50% - 2.5px);
  width: 5px;
  border-radius: 1px;
  opacity: .4;
  box-shadow: none;
  background: linear-gradient(90deg, rgba(42, 16, 12, .65), rgba(92, 36, 24, .4), rgba(42, 16, 12, .65));
}
.book.portrait .spine,
.book.portrait .gutter { display: none; }
.book.portrait.closed .board-right { visibility: visible; }
.book.portrait .board-right { right: -12px; }

.pages {
  position: absolute;
  inset: 0;
  overflow: visible;
  transform-style: preserve-3d;
}

.spread {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  direction: ltr;
  transform-style: preserve-3d;
  background: transparent;
}
.book.closed .slot-right,
.book.opening .slot-right { visibility: hidden; }
.book.closed .gutter,
.book.opening .gutter { visibility: hidden; }
.book.portrait.opening .slot-right { visibility: visible; }
.book.portrait .spread { grid-template-columns: 1fr; }

.page {
  position: relative;
  grid-row: 1;
  overflow: hidden;
  background: var(--sheet);
  background-image:
    linear-gradient(180deg, rgba(255, 252, 245, .55), transparent 16%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23p)' opacity='.07'/%3E%3C/svg%3E");
}
.slot-left { grid-column: 1; }
.slot-right { grid-column: 2; }
.book.portrait .slot-left { display: none; }
.book.portrait .slot-right { grid-column: 1; }
.slot-right {
  box-shadow: inset 13px 0 16px -13px rgba(70, 40, 20, .16), 10px 18px 32px rgba(0, 0, 0, .25);
}
.slot-left {
  box-shadow: inset -13px 0 16px -13px rgba(70, 40, 20, .16), -10px 18px 32px rgba(0, 0, 0, .25);
}
.slot-left::after,
.slot-right::before {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  z-index: 5;
  pointer-events: none;
  opacity: .18;
  transition: opacity .2s var(--ease);
}
.slot-left::after {
  left: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(40, 22, 10, .3) 49%, transparent 50%);
  cursor: grab;
}
.slot-right::before {
  right: 0;
  bottom: 0;
  background: linear-gradient(-135deg, rgba(40, 22, 10, .3) 49%, transparent 50%);
}
.book:not(.closed) .slot-left:hover::after,
.book:not(.closed) .slot-right:hover::before { opacity: .55; }
.book.is-turning .slot-left::after,
.book.is-turning .slot-right::before { opacity: 0; }

.gutter {
  position: absolute;
  grid-column: 1 / -1;
  grid-row: 1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 17px;
  margin-left: -8.5px;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(40, 24, 12, .17), rgba(40, 24, 12, 0) 42%, rgba(40, 24, 12, 0) 58%, rgba(40, 24, 12, .17));
}
.book.portrait .gutter { display: none; }

.measure {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 50%;
  z-index: -2;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
}
.book.portrait .measure { width: 100%; }

.cast {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, transparent 5%, #28190c 48%, #28190c 52%, transparent 95%);
}
.book.is-turning .cast { will-change: transform, opacity; }

.flipper {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  z-index: 10;
  transform-style: preserve-3d;
  pointer-events: none;
}
.flipper.is-idle { display: none; }
.flipper.forward { left: 0; }
.flipper.backward { left: 50%; }
.book.portrait .flipper { width: 100%; left: 0; }
/* Real articles are parked here while inert, temporary surfaces draw the curl. */
.flip-face { display: none; }
.leaf-strip {
  position: absolute;
  top: 0;
  height: 100%;
  transform-style: preserve-3d;
  will-change: transform;
}
.leaf-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  contain: paint;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: var(--sheet);
}
.leaf-front { transform: translateZ(.05px); }
.leaf-content { position: absolute; top: 0; height: 100%; }
.leaf-content .sheet { scrollbar-width: none; }
.leaf-light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, #3e291a, #6c5337);
  opacity: 0;
  will-change: opacity;
}

.hardcover {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--pw);
  z-index: 12;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--vellum);
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y pinch-zoom;
  transform-origin: right center;
  transform: translateZ(2px);
  transform-style: preserve-3d;
  /* A button's UA overflow/containment must not flatten its two 3D faces. */
  overflow: visible;
}
.book.opening .hardcover { will-change: transform; pointer-events: none; }
.book:not(.closed):not(.opening) .hardcover { display: none; }

.cover-front,
.cover-lining {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.cover-front {
  transform: translateZ(.8px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12% 11% 10%;
  text-align: center;
  background:
    radial-gradient(80% 50% at 50% 0%, rgba(228, 196, 138, .28), transparent 50%),
    linear-gradient(145deg, #7a3424, var(--cloth) 42%, #3a140f);
  box-shadow:
    inset 0 0 0 2px rgba(184, 146, 74, .55),
    inset 10px 0 18px rgba(0, 0, 0, .18),
    0 0 0 1px rgba(228, 196, 138, .2);
}
.cover-lining {
  transform: rotateY(180deg) translateZ(.8px);
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(184, 146, 74, .18), transparent 40%),
    repeating-linear-gradient(45deg, #ead9b8 0 12px, #e2d0ac 12px 24px);
  box-shadow: inset 0 0 0 10px var(--cloth);
}
.cover-lining:has(.sheet) { background: var(--sheet); box-shadow: none; }
.cover-mark {
  font-family: var(--latin);
  letter-spacing: .18em;
  font-size: .78rem;
  color: var(--gold);
}
.cover-kicker {
  font-family: var(--body);
  font-size: .82rem;
  letter-spacing: .01em;
  color: rgba(243, 234, 214, .72);
}
.cover-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.15;
}
.cover-foot {
  font-size: .82rem;
  color: rgba(243, 234, 214, .72);
}

.book-ui {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  z-index: 4;
}
.pager {
  min-width: 8rem;
  margin: 0;
  text-align: center;
  color: var(--lamp);
  font-family: var(--latin);
  font-size: 1rem;
  direction: ltr;
  unicode-bidi: isolate;
}


.sheet {
  position: absolute;
  inset: 0;
  padding: 1.15rem 1.55rem 1.5rem;
  overflow: hidden;
  color: var(--ink);
  direction: rtl;
  scrollbar-width: thin;
  scrollbar-color: rgba(138, 47, 30, .35) transparent;
}
.sheet {
  display: flex;
  flex-direction: column;
  padding-bottom: .95rem;
}
.sheet::after { content: none; }
/* Nothing in the type block may stretch just because the page is a flex column. */
.sheet > * { flex: none; }

/* Running foot: chapter on one side, folio on the other, hairline above.
   The foot is what closes the type block at the bottom of every page. */
.running {
  position: relative;
  margin-top: auto;   /* pushes the foot to the page edge when the text is short */
  padding-top: .45rem;
  background: var(--sheet);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .8rem;
  border-top: 1px solid var(--rule-soft);
  font-size: .68rem;
  color: var(--muted);
  pointer-events: none;
}
.running .rf-chapter { display: flex; align-items: baseline; gap: .38rem; }
.running .rf-chapter i {
  font-family: var(--latin);
  font-style: normal;
  font-weight: 700;
  color: var(--oxblood);
  letter-spacing: .02em;
}
.running .rf-folio { font-family: var(--latin); font-weight: 600; }
.sheet[data-chapter="home"] .running .rf-chapter i { color: var(--muted); }
.slot-left .sheet,
.flip-front .sheet,
.flip-back .sheet,
.slot-right .sheet { position: absolute; }

.kicker {
  font-family: var(--body);
  font-size: .76rem;
  letter-spacing: .01em;
  color: var(--oxblood);
  font-weight: 600;
}
.kicker-center { text-align: center; }

.issue { text-align: center; }
.issue-meta {
  font-family: var(--body);
  font-size: .78rem;
  letter-spacing: .01em;
  color: var(--muted);
}
.issue h1 {
  margin: .45rem 0 .7rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.15;
}
.deck {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.deck + .deck { margin-top: .55rem; }

.contents { text-align: center; }
.contents h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  margin: .3rem 0 .8rem;
}
.contents ol { list-style: none; padding: 0; display: grid; gap: .12rem; text-align: start; }
.contents button {
  width: 100%;
  display: grid;
  grid-template-columns: 2.1rem 1fr auto;
  gap: .5rem;
  align-items: baseline;
  padding: .18rem 0;
  text-align: start;
}
.contents em {
  font-family: var(--mark);
  font-style: normal;
  font-size: 1.35rem;
  color: var(--oxblood);
}
.contents strong { font-weight: 700; }
.contents span { color: var(--muted); font-size: .86rem; }

.chapter-head { text-align: center; margin-bottom: .9rem; }
/* Only the first page of a chapter opens with the numeral. The rest continue. */
.sheet:not(.is-opener) .chapter-head .num {
  font-family: var(--latin);
  font-weight: 700;
  font-size: .7rem;
  line-height: 1;
  letter-spacing: .18em;
  color: var(--muted);
  margin-bottom: .4rem;
}
.sheet.is-opener .chapter-head { margin-bottom: 1.1rem; }
.sheet.is-opener .chapter-head::after {
  content: "";
  display: block;
  width: 2.6rem;
  height: 2px;
  margin: .7rem auto 0;
  background: var(--oxblood);
  opacity: .55;
}
.num {
  display: block;
  font-family: var(--mark);
  font-size: 2.35rem;
  line-height: .8;
  color: rgba(138, 47, 30, .18);
}
.sheet h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.1vw, 2.05rem);
  line-height: 1.14;
  letter-spacing: -.01em;
  padding-inline: .15rem;
}
.sheet h3 {
  font-family: var(--display);
  font-size: 1.12rem;
  margin: .7rem 0 .4rem;
  text-align: center;
}
.lead {
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
  margin-bottom: .5rem;
  color: var(--ink-soft);
}
.sheet p { margin-bottom: .65rem; }
.sheet p:last-child { margin-bottom: 0; }

.drop::first-letter {
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.4rem;
  float: right;
  line-height: .8;
  padding: .12rem 0 0 .2rem;
  color: var(--oxblood);
}

.pull {
  text-align: center;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.22rem;
  line-height: 1.35;
  color: var(--oxblood);
  margin: .9rem auto;
}

.ornament {
  display: flex;
  justify-content: center;
  gap: .35rem;
  margin: .8rem 0;
  color: var(--gold);
  font-size: .62rem;
  letter-spacing: .4em;
}

.shot { margin: .55rem 0 .4rem; }
.shot img {
  width: 100%;
  height: 11.2rem;
  object-fit: cover;
  object-position: center;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(27, 22, 18, .08);
}
.sheet-photo .shot img { height: calc(var(--ph) - 5.2rem); object-fit: contain; }
.shot figcaption {
  margin-top: .4rem;
  text-align: center;
  font-family: var(--display);
  font-style: italic;
  font-size: .88rem;
  color: var(--muted);
}

.note {
  background: transparent;
  padding: .6rem 0 0;
  margin: .7rem 0 0;
  border-top: 1px solid rgba(138, 47, 30, .25);
  color: var(--ink-soft);
  font-size: .95rem;
}
.note strong { color: var(--ink); }

.steps { list-style: none; padding: 0; display: grid; gap: .7rem; }
.steps li {
  display: grid;
  grid-template-columns: 1.7rem 1fr auto;
  gap: .55rem;
  align-items: start;
}
.steps b { font-family: var(--mark); font-size: 1.45rem; color: var(--oxblood); line-height: 1; }
.steps h3 { font-size: 1rem; margin: 0 0 .15rem; text-align: start; }
.steps p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.cash {
  font-family: var(--latin);
  font-weight: 700;
  font-size: .9rem;
  color: var(--teal);
  white-space: nowrap;
}

.pair { display: grid; gap: .55rem; margin: .6rem 0; }
.pair article { background: var(--sheet-2); padding: .7rem .8rem; }
.pair h3 { font-size: 1rem; margin-bottom: .2rem; text-align: start; }
.pair p { margin: 0; color: var(--ink-soft); font-size: .92rem; }

.ledger {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
  margin: .4rem 0;
}
.ledger th, .ledger td {
  padding: .38rem .25rem;
  text-align: start;
  vertical-align: top;
}
.ledger th {
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.ledger td:last-child,
.ledger th:last-child {
  text-align: end;
  font-family: var(--latin);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--teal);
}
.ledger tbody tr:nth-child(odd) td { background: rgba(244, 235, 218, .45); }
.ledger small { display: block; font-family: var(--body); font-weight: 400; color: var(--muted); font-size: .72rem; }

.tips { list-style: none; padding: 0; display: grid; gap: .55rem; }
.tips li {
  padding-right: .8rem;
  background: linear-gradient(var(--oxblood), var(--oxblood)) right .3rem / 3px 1rem no-repeat;
}
.tips b { display: block; margin-bottom: .1rem; }

/* Front matter carries less text than a chapter page; nudging it down keeps
   the block optically centred instead of stranded at the top. */
.compact-issue { padding-top: 2.4rem; }
.short-contents { padding-top: 3rem; }
.compact-issue .opening-shot { margin-top: 1rem; }
.opening-shot img { height: 11.4rem; }
.product-shot img { height: 7.4rem; object-fit: contain; background: #fff; }
.scene-shot img { height: 10.9rem; }
.material-shot img { height: 6.4rem; }

.price-line {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .65rem;
  align-items: center;
  margin: .6rem 0;
  padding: .55rem .7rem;
  border-block: 1px solid rgba(138, 47, 30, .22);
}
.price-line strong {
  color: var(--oxblood);
  font-family: var(--latin);
  font-size: 1.4rem;
  direction: ltr;
}
.price-line span { color: var(--muted); font-size: .76rem; line-height: 1.35; }
.price-note {
  margin: -.2rem 0 .5rem;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.4;
}
.price-note b { color: var(--ink-soft); font-weight: 700; }
.source-note { text-align: center; font-size: .78rem; }
.source-note a,
.end-note a { color: var(--oxblood); font-weight: 700; text-underline-offset: 3px; }

.gear-list,
.spec-list,
.flow-list,
.fault-order,
.field-check {
  list-style: none;
  padding: 0;
  margin: .5rem 0;
  display: grid;
}
.gear-list { gap: 0; }
.gear-list li,
.spec-list li {
  display: grid;
  grid-template-columns: minmax(6rem, .78fr) 1.5fr;
  gap: .55rem;
  align-items: baseline;
  padding: .42rem .1rem;
  background: transparent;
  border-bottom: 1px solid var(--rule-soft);
}
.gear-list li:last-child,
.spec-list li:last-child { border-bottom: 0; }
.gear-list b,
.spec-list strong { font-family: var(--display); }
.gear-list span,
.spec-list span { color: var(--ink-soft); font-size: .86rem; line-height: 1.45; }
.compact-gear { gap: 0; }
.compact-gear li { padding-block: .3rem; }

.spec-list { gap: 0; }
.spec-list li {
  padding-right: .65rem;
  border-right: 2px solid rgba(43, 88, 83, .55);
}

.flow-list { gap: .7rem; }
.flow-list li {
  display: grid;
  grid-template-columns: 2.1rem 1fr;
  gap: .55rem;
  align-items: start;
}
.flow-list b {
  font-family: var(--mark);
  font-size: 1.7rem;
  line-height: 1;
  color: var(--oxblood);
}
.flow-list strong,
.flow-list span { display: block; }
.flow-list strong { font-family: var(--display); }
.flow-list span { color: var(--ink-soft); font-size: .9rem; }
.compact-tips { gap: .42rem; font-size: .92rem; }
.compact-tips b { display: inline; }

.color-lines { display: grid; gap: .45rem; }
.color-lines p {
  display: grid;
  grid-template-columns: .8rem 4.2rem 1fr;
  gap: .45rem;
  align-items: start;
  margin: 0;
  font-size: .88rem;
}
.color-lines i { width: .65rem; height: 1.45rem; display: block; }
.color-lines .amber { background: #c16629; }
.color-lines .green { background: #5c7b55; }
.color-lines .violet { background: #6c4a86; }
.color-lines span { color: var(--ink-soft); }

.fault-order { gap: .42rem; }
.fault-order li {
  display: grid;
  grid-template-columns: 1.45rem 1fr;
  gap: .5rem;
  align-items: center;
  font-size: .9rem;
}
.fault-order b {
  display: grid;
  place-items: center;
  height: 1.45rem;
  background: var(--ink);
  color: var(--sheet);
  font-family: var(--latin);
}
.fault-cards { gap: .7rem; }
.fault-cards article { padding-bottom: .55rem; border-bottom: 1px solid rgba(138, 47, 30, .2); }

.field-check { gap: 0; }
.field-check li {
  position: relative;
  font-size: .89rem;
  border-bottom: 1px solid var(--rule-soft);
}
.field-check li:last-child { border-bottom: 0; }
.end-note { margin-top: .7rem; text-align: center; font-family: var(--display); }
.check-actions + .end-note { margin-top: .6rem; font-size: .9rem; line-height: 1.4; }
.check-shot { margin-block: .35rem .15rem; }
.check-shot img { height: 4.4rem; }
.check-shot figcaption { margin-top: .2rem; }
.check-shot + .end-note { margin-top: .25rem; font-size: .88rem; line-height: 1.35; }

.places { display: grid; gap: .55rem; }
.places article h3 {
  font-size: 1.05rem;
  margin-bottom: .15rem;
  text-align: start;
}
.places p { margin: 0; color: var(--ink-soft); }

.picks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem;
  margin: .55rem 0;
}
.picks button {
  min-height: 40px;
  padding: .35rem .65rem;
  background: var(--sheet-2);
}
.picks button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--sheet);
}

.swatches { display: flex; justify-content: center; gap: .35rem; margin-bottom: .55rem; }
.swatches i { width: 1.8rem; height: 1.8rem; display: block; }

.recipe { display: grid; gap: .4rem; }
.recipe article { background: var(--sheet-2); padding: .55rem .7rem; }
.recipe h4 { font-size: .9rem; margin-bottom: .15rem; }
.recipe p { margin: 0; color: var(--ink-soft); font-size: .88rem; }

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem .7rem;
  margin: .5rem 0;
}
.fields .wide { grid-column: 1 / -1; }
.field label { display: block; font-size: .78rem; font-weight: 600; margin-bottom: .15rem; }
.field input,
.field select {
  width: 100%;
  min-height: 40px;
  padding: .3rem .5rem;
  border: 0;
  background: var(--sheet-2);
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231b1612' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left .6rem center;
  padding-left: 1.6rem;
}

.result {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: .5rem;
  text-align: center;
  margin: .5rem 0;
  background: var(--ink);
  color: var(--sheet);
  padding: .85rem .5rem;
}
.result span { display: block; font-size: .72rem; color: var(--lamp); margin-bottom: .15rem; }
.result b { font-family: var(--latin); font-size: 1.25rem; }
.result-note { grid-column: 1 / -1; font-size: .86rem; color: var(--vellum); }

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin: .55rem 0; }
.btn {
  min-height: 42px;
  padding: .45rem .95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.btn-ink { background: var(--ink); color: var(--sheet); }
.btn-ghost { background: rgba(243, 234, 214, .14); color: var(--vellum); }
.sheet .btn-ghost { background: var(--sheet-2); color: var(--ink); }
.book-ui .btn-ghost { background: rgba(243, 234, 214, .12); }
.btn:hover { filter: brightness(1.08); }

.cases { display: grid; gap: .35rem; }
.cases details { background: var(--sheet-2); padding: .1rem .7rem; }
.cases summary {
  min-height: 40px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  font-size: .95rem;
}
.cases .body { padding: 0 0 .7rem; }
.cases .tag { display: inline-block; margin-bottom: .3rem; font-size: .74rem; color: var(--oxblood); font-weight: 700; }
.cases ol { padding-right: 1rem; margin: 0; }
.cases li { margin-bottom: .2rem; }

.check-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .7rem;
  padding-bottom: .35rem;
  border-bottom: 1px solid rgba(138, 47, 30, .25);
}
.check-lede { margin: 0; font-size: .82rem; color: var(--muted); }
.count {
  font-family: var(--latin);
  font-size: 1.2rem;
  color: var(--teal);
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
}
.checks { list-style: none; padding: 0; display: grid; }
.checks label {
  display: grid;
  grid-template-columns: 1.15rem 1fr;
  gap: .55rem;
  align-items: start;
  padding: .38rem .1rem;
  cursor: pointer;
}
.checks input {
  position: absolute;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  opacity: 0;
}
.box {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: .18rem;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px rgba(43, 88, 83, .45);
  color: transparent;
  display: grid;
  place-items: center;
  font-size: .78rem;
  line-height: 1;
  transition: background .16s var(--ease), box-shadow .16s var(--ease);
}
.checks label:hover .box { box-shadow: inset 0 0 0 1.5px var(--teal); }
.checks input:checked + .box {
  background: var(--teal);
  box-shadow: inset 0 0 0 1.5px var(--teal);
  color: var(--sheet);
}
.checks input:focus-visible + .box { outline: 2px solid var(--oxblood); outline-offset: 2px; }
.checks .txt { transition: color .16s var(--ease); }
.checks li.is-checked .txt { color: rgba(106, 95, 83, .8); }
.check-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .75rem;
  padding-top: .65rem;
  border-top: 1px solid var(--rule-soft);
}
.check-actions .btn { min-height: 33px; padding: .28rem .85rem; font-size: .89rem; }
.sheet .btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  box-shadow: inset 0 0 0 1px var(--rule);
}

.site-end, .sheet-end { text-align: center; padding-top: 18%; }
.site-end a { color: var(--oxblood); font-weight: 700; }

.toast {
  position: fixed;
  z-index: 50;
  bottom: 1.1rem;
  left: 50%;
  transform: translate(-50%, 120%);
  background: var(--ink);
  color: var(--sheet);
  padding: .65rem 1rem;
  opacity: 0;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 860px) {
  :root {
    --pw: min(24.5rem, calc(100vw - 2.4rem));
    /* Phones: the page takes what the viewport gives, the hint is gone. */
    --ph: min(40rem, calc(100dvh - 8.6rem));
    --mast: 3.3rem;
  }
  .stage {
    width: min(calc(var(--pw) + 2rem), calc(100vw - 1.2rem));
    justify-content: center;
  }
  .desk { padding-inline: .9rem; gap: .5rem; }
  .hint { display: none; }
  .book-ui { gap: .4rem; max-width: 100%; }
  .pager { min-width: 5rem; }
  .mast nav { display: none; }
  .mast-inner { padding-inline: .25rem; }
  .brand-mark { width: 2.1rem; height: 2.1rem; border-radius: .7rem; }
  .fields, .result, .steps li { grid-template-columns: 1fr; }

  /* One page at a time on a phone: a tighter vertical rhythm and a wider
     text column, so the fitted type lands larger, not smaller. */
  .book.portrait .sheet { padding: .9rem 1.05rem .75rem; }
  .book.portrait .chapter-head { margin-bottom: .55rem; }
  .book.portrait .sheet.is-opener .chapter-head { margin-bottom: .65rem; }
  .book.portrait .sheet.is-opener .chapter-head::after { margin-top: .4rem; }
  .book.portrait .num { font-size: 2rem; }
  .book.portrait .sheet h2 { font-size: 1.62rem; }
  .book.portrait .lead { margin-bottom: .35rem; line-height: 1.45; }
  .book.portrait .sheet p { margin-bottom: .5rem; }
  .book.portrait .compact-issue { padding-top: 1.2rem; }
  .book.portrait .short-contents { padding-top: 1.6rem; }
  .book.portrait .opening-shot img { height: 10.6rem; }
  .book.portrait .scene-shot img { height: 8.2rem; }
  .book.portrait .product-shot img { height: 6rem; }
  .book.portrait .gear-list li,
  .book.portrait .spec-list li { padding-block: .26rem; }
  .book.portrait .alt-list li { padding-block: .12rem; }
  .book.portrait .value-list { gap: .36rem; }
  .book.portrait .flow-list { gap: .5rem; }
  .book.portrait .compact-tips { gap: .32rem; }
  .book.portrait .color-lines { gap: .36rem; }
  .book.portrait .fault-order { gap: .32rem; }
  .book.portrait .fault-cards { gap: .5rem; }
  .book.portrait .pull { margin: .6rem auto; }
  .book.portrait .sub-head { margin: .36rem 0 .14rem; }
  .book.portrait .note { margin-top: .5rem; padding-top: .45rem; }
  .book.portrait .note-inline { margin-top: .25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .book, .hardcover, .flipper, .stage { transition: none !important; }
}

/* The printable checklist. Hidden on screen; it is the only thing that
   reaches paper, so print never has to unwind the 3D book layout. */
.printout { display: none; }

@page { size: A4 portrait; margin: 16mm 18mm; }

@media print {
  .atmosphere, .mast, .book-ui, .hint, .hardcover, .skip, .toast, .actions, .board, .block, .spine, .book-shade { display: none !important; }
  html, body { overflow: visible; background: #fff; font-size: 11pt; }
  .desk { display: block; height: auto; padding: 0; perspective: none; }
  .desk::after, .gutter { display: none !important; }
  .page { background: #fff; box-shadow: none; }
  .slot-left::after, .slot-right::before { display: none; }
  .book, .spread, .pages { position: static; width: auto; height: auto; transform: none; filter: none; display: block; perspective: none; }
  .cast, .flipper { display: none !important; }
  .bindery { display: block; position: static; width: auto; height: auto; overflow: visible; }
  .slot-left, .slot-right { visibility: visible !important; box-shadow: none; }
  .sheet {
    position: relative;
    page-break-after: always;
    overflow: visible;
    height: auto;
  }

  /* Save as PDF from page 12: only the standalone sheet is printed. */
  body.printing > *:not(.printout) { display: none !important; }
  body.printing .printout { display: block; }
}

.printout {
  direction: rtl;
  color: #12100e;
  font-family: var(--body);
  line-height: 1.5;
}
.po-head { padding-bottom: .5rem; border-bottom: 2px solid #12100e; }
.po-brand {
  font-family: var(--latin);
  font-size: 9pt;
  letter-spacing: .04em;
  color: #5b5147;
}
.po-head h1 {
  margin: .15rem 0 .1rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 22pt;
  line-height: 1.1;
}
.po-sub { font-size: 10pt; color: #5b5147; }
.po-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 1.2rem;
  margin: .9rem 0 1.1rem;
}
.po-fields p { display: grid; gap: .2rem; margin: 0; }
.po-fields span { font-size: 8.5pt; color: #5b5147; }
.po-fields i { display: block; height: 1.1rem; border-bottom: 1px solid #b9b0a4; }
.po-list { list-style: none; padding: 0; margin: 0; }
.po-list li {
  display: grid;
  grid-template-columns: 1.05rem 1fr;
  gap: .6rem;
  align-items: start;
  padding: .45rem .1rem;
  font-size: 11.5pt;
  border-bottom: 1px solid #ddd6ca;
  break-inside: avoid;
}
.po-list i {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: .1rem;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 9pt;
  border: 1.2px solid #12100e;
}
.po-list li.is-checked i { background: #12100e; color: #fff; }
.po-list li.is-checked span { color: #5b5147; }
.po-notes { margin-top: 1.1rem; break-inside: avoid; }
.po-notes p { margin: 0 0 .5rem; font-size: 9pt; color: #5b5147; }
.po-notes i { display: block; height: 1.35rem; border-bottom: 1px solid #ddd6ca; }
.po-foot {
  margin-top: 1.2rem;
  padding-top: .5rem;
  border-top: 1px solid #ddd6ca;
  font-size: 8.5pt;
  color: #5b5147;
  text-align: center;
}


/* ─── round 2 additions ─── */

/* Why this printer, as three short reasons rather than a price tag. */
.value-list { list-style: none; padding: 0; margin: .2rem 0 .7rem; display: grid; gap: .5rem; }
.value-list li {
  display: grid;
  grid-template-columns: 8.4rem 1fr;
  gap: .55rem;
  align-items: baseline;
  padding-bottom: .38rem;
  border-bottom: 1px solid var(--rule-soft);
}
.value-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.value-list b { font-family: var(--display); font-size: .95rem; }
.value-list span { color: var(--ink-soft); font-size: .88rem; line-height: 1.45; }

/* Importer contact line, in place of the old price block. */
.contact-line {
  margin-top: .45rem;
  padding: .5rem .7rem;
  background: rgba(165, 57, 26, .06);
  border: 1px solid rgba(165, 57, 26, .22);
  border-radius: .5rem;
  font-size: .92rem;
  line-height: 1.5;
}
.contact-line b { font-family: var(--display); }
.contact-line a {
  font-family: var(--latin);
  font-weight: 700;
  font-size: 1.06rem;
  color: var(--oxblood);
  text-decoration: none;
  border-bottom: 1px solid rgba(165, 57, 26, .4);
}
.contact-line span { display: block; margin-top: .2rem; font-size: .78rem; color: var(--muted); }
/* Marks a value that still has to be filled in. Remove the class once it is. */
.todo-slot { background: rgba(200, 160, 40, .28); border-radius: .2rem; padding: 0 .2rem; }

/* A quiet aside that names the product without turning the page into an ad. */
.note-inline {
  margin-top: .3rem;
  padding-inline-start: .7rem;
  border-inline-start: 2px solid rgba(165, 57, 26, .35);
  font-size: .88rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.note-inline a { color: var(--oxblood); text-decoration: none; border-bottom: 1px solid rgba(165, 57, 26, .35); }

/* Closing call to action on the last page. */
.end-cta {
  margin-top: .5rem;
  font-size: .9rem;
  line-height: 1.5;
  color: var(--ink-soft);
  text-align: center;
}
.end-cta a { color: var(--oxblood); text-decoration: none; }
.end-cta a b { font-family: var(--latin); }

/* The guide is parked off-screen rather than display:none, so search engines
   and AI crawlers weight the ten unmounted pages like ordinary body text. */
.bindery {
  position: fixed;
  top: 0;
  /* Far outside the viewport (not merely clipped): the browser's lazy-load
     margin is measured from the viewport, so images on parked pages are
     not fetched until their page is mounted or preloaded by app.js. */
  inset-inline-start: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  pointer-events: none;
  opacity: 0;
  z-index: -1;
}
@media print {
  .bindery {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
    opacity: 1;
  }
  .running { position: static; margin-top: 1rem; }
}

/* The checklist page carries the most rows; shave the row and closing gaps so
   the buttons and the sign-off stay inside the page instead of scrolling. */
.field-check .checks label { padding-block: .12rem; }
.check-head { margin-bottom: 0; }
.check-actions { margin-top: .35rem; }
.check-actions + .end-cta { margin-top: .35rem; }

/* Page 4 separates two subjects: the other models, then the kit itself.
   Latin model names sit in their own cell so bidi never scrambles the line. */
.alt-list { list-style: none; padding: 0; margin: .1rem 0 .5rem; display: grid; gap: 0; }
.alt-list li {
  display: grid;
  grid-template-columns: 8.6rem 1fr;
  gap: .55rem;
  align-items: baseline;
  padding-block: .22rem;
  border-bottom: 1px solid var(--rule-soft);
}
.alt-list li:last-child { border-bottom: 0; }
.alt-list b { font-family: var(--latin); font-weight: 700; font-size: .92rem; text-align: start; }
.alt-list span { color: var(--ink-soft); font-size: .88rem; line-height: 1.45; }

.sub-head {
  font-family: var(--display);
  font-weight: 700;
  font-size: .96rem;
  text-align: start;
  margin: .5rem 0 .22rem;
  padding-bottom: .22rem;
  border-bottom: 1px solid var(--rule);
}

/* No page scrolls, in either mode: the type block is fitted to the page by
   app.js (zoom). The two exceptions below are graceful fallbacks only. */
.book.portrait .sheet { overflow: hidden; }
.sheet .type { display: block; min-width: 0; }
.sheet.is-tight,
.no-fit .sheet { overflow: hidden auto; }

/* Closing chapter: the number leads, the title follows, the red line closes. */
.kicker-under { margin-top: .35rem; }

/* Now that the running foot occupies real space at the foot of every page,
   claw back the same amount from the page furniture so nothing is clipped. */
.sheet { padding-top: 1rem; }
.running { padding-top: .35rem; font-size: .66rem; }
.gear-list li, .spec-list li { padding-block: .34rem; }
.gear-list, .spec-list, .flow-list, .fault-order, .field-check { margin-block: .4rem; }
.sub-head { margin: .42rem 0 .18rem; }
.alt-list li { padding-block: .18rem; }
.field-check .checks label { padding-block: .08rem; }
.shot { margin: .45rem 0 .35rem; }

.check-actions { margin-top: .28rem; }
.check-actions + .end-cta { margin-top: .28rem; }

/* Closing page: the count line and the sign-off share the last band. */
.sheet[data-chapter="go"] .check-head { margin-bottom: 0; }
.sheet[data-chapter="go"] .count { font-size: 1.35rem; }
.sheet[data-chapter="go"] .end-cta { font-size: .86rem; }

/* Chapter openers had the roomiest heads; the foot needs part of that room. */
.sheet.is-opener .chapter-head { margin-bottom: .8rem; }
.sheet.is-opener .chapter-head::after { margin: .5rem auto 0; }
.sheet[data-chapter="go"] .checks label { padding-block: .04rem; }

/* Opening photo: a taller box so the 3:2 frame keeps the printed magnets and the
   trimmer instead of being cropped twice. */
.opening-shot img { height: 13.8rem; object-position: 50% 72%; }

/* Karantina sits tall in its line box; at line-height .8 the numeral's top was
   trimmed by the page edge now that the sheet no longer scrolls. */
.chapter-head { padding-top: .2rem; }
.num { line-height: .95; }
.sheet:not(.is-opener) .chapter-head .num { line-height: 1.1; }
