/* Steven Bremel, version 13: Stamp Album */

:root {
  --albumw: 1180px;
  --bg: #0d0c0b;
  --leaf: #151618;
  --pencil: rgba(228, 222, 206, .6);
  --pencil-strong: rgba(238, 233, 220, .9);
  --gold: #d4b062;
  --gum: #ebe1c2;
  --graphite: #4a4945;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  --leather: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='l'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.32' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .38 -.08'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23l)'/%3E%3C/svg%3E");
  --watermark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='42' height='34'%3E%3Ctext x='6' y='21' font-family='Georgia,serif' font-size='12' font-style='italic' fill='%23000' fill-opacity='.045'%3ESB%3C/text%3E%3C/svg%3E");
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--bg);
  background-image: radial-gradient(90% 60% at 50% 0%, #24211d 0%, rgba(13, 12, 11, 0) 70%);
  background-repeat: no-repeat;
  color: #e9e4d8;
  font-family: 'Old Standard TT', Georgia, serif;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html.en-lock, html.en-lock body { overflow: hidden; }

/* ---------- stamp size, shared by the album, the loupe and the enlarge view ---------- */

.ctx { --sw: min(44vw, 176px); }
@media (min-width: 600px) { .ctx { --sw: 190px; } }
@media (min-width: 860px) { .ctx { --sw: 200px; } }
@media (min-width: 1120px) { .ctx { --sw: 206px; } }
@media (min-width: 1360px) { .ctx { --sw: 214px; } }

/* ---------- the cover ---------- */

.cover { max-width: var(--albumw); margin: 0 auto; padding: 22px 16px 0; }
.board {
  position: relative;
  overflow: hidden;
  border-radius: 7px 7px 3px 3px;
  background-color: #3a1518;
  background-image: var(--leather), radial-gradient(120% 160% at 28% 0%, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0) 55%), linear-gradient(180deg, #46191c, #2c0f12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 -3px 8px rgba(0, 0, 0, .45), 0 16px 34px rgba(0, 0, 0, .55);
}
.cover .board {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  min-height: 176px;
  padding: 32px 40px 30px 92px;
}
.board::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 50px;
  background:
    repeating-linear-gradient(180deg, rgba(0, 0, 0, 0) 0 34px, rgba(0, 0, 0, .35) 34px 36px, rgba(255, 255, 255, .07) 36px 37px, rgba(0, 0, 0, 0) 37px 70px),
    linear-gradient(90deg, #1f0a0c, #3b1518 70%, #280c0f);
  box-shadow: 1px 0 0 rgba(255, 255, 255, .06), 2px 0 0 rgba(0, 0, 0, .45);
}
.cover .board::after {
  content: '';
  position: absolute;
  inset: 11px 11px 11px 62px;
  border: 1px solid rgba(212, 176, 98, .5);
  border-radius: 3px;
  box-shadow: inset 0 0 0 4px rgba(0, 0, 0, 0), inset 0 0 0 5px rgba(212, 176, 98, .22);
  pointer-events: none;
}
.label { position: relative; z-index: 1; }
.foil {
  margin: 0;
  font-family: 'Old Standard TT', Georgia, serif;
  font-weight: 700;
  font-size: clamp(30px, 5.2vw, 60px);
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #d9b45f;
  background: linear-gradient(180deg, #f6e4a6 0%, #d3a648 44%, #f2d68b 60%, #a6782a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .7));
}
.foil-line { margin: 12px 0 0; font-style: italic; font-size: clamp(16px, 1.7vw, 20px); color: #d8b66b; }
.count {
  position: relative; z-index: 1;
  margin: 0;
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(216, 182, 107, .88);
}
.back-cover { max-width: var(--albumw); margin: 30px auto 48px; padding: 0 16px; }
.board-end { height: 56px; border-radius: 3px 3px 7px 7px; }

/* ---------- pages ---------- */

.album { max-width: var(--albumw); margin: 0 auto; padding: 0 16px; }
.page { padding-top: 26px; }
.leaf {
  position: relative;
  padding: 40px 34px 58px 80px;
  border-radius: 2px 5px 5px 2px;
  background-color: var(--leaf);
  background-image:
    radial-gradient(130% 70% at 15% 0%, rgba(255, 255, 255, .045), rgba(255, 255, 255, 0) 60%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .016) 0 1px, rgba(0, 0, 0, 0) 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .18) 0 1px, rgba(0, 0, 0, 0) 1px 4px);
  box-shadow: 1px 1px 0 #26272a, 3px 3px 0 #0b0b0c, 4px 4px 0 #222326, 6px 6px 0 #0b0b0c, 0 22px 44px rgba(0, 0, 0, .6);
}
.hinge {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 48px;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(90deg, #0a0a0b 0, #1d1e21 55%, #141517 100%);
  box-shadow: 1px 0 0 rgba(255, 255, 255, .05);
}
.hinge::after {
  content: '';
  position: absolute;
  left: 22px; top: 16px; bottom: 16px;
  width: 4px;
  background: radial-gradient(circle at 50% 50%, #050505 0 1.3px, rgba(255, 255, 255, .08) 1.6px 2px, rgba(0, 0, 0, 0) 2.2px) 0 0 / 4px 20px repeat-y;
}
.folio { position: absolute; right: 30px; bottom: 18px; margin: 0; font: 300 15px/1 'Kalam', cursive; color: var(--pencil); }

/* ---------- clear strips and pockets ---------- */

.strip { position: relative; padding: calc(var(--sw) * .12) 0 calc(var(--sw) * .07); }
.strip + .strip { margin-top: calc(var(--sw) * .06); }
.pockets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(var(--per, 4), minmax(0, 1fr));
  column-gap: 16px;
}
.pocket {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: calc(var(--sw) * 1.475);
}
.pocket.up { z-index: 3; }
.pocket .stamp { transform: rotate(var(--tilt, 0deg)); }
.film {
  position: absolute;
  z-index: 2;
  left: -12px; right: -12px; bottom: 0;
  height: calc(var(--sw) * .86);
  pointer-events: none;
  border-top: 1px solid rgba(255, 255, 255, .26);
  border-bottom: 3px solid rgba(255, 255, 255, .05);
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0) 0 16%, rgba(255, 255, 255, .07) 21%, rgba(255, 255, 255, 0) 27% 57%, rgba(255, 255, 255, .045) 61%, rgba(255, 255, 255, 0) 66%),
    linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02) 22%, rgba(210, 225, 235, .035) 82%, rgba(255, 255, 255, .07));
  box-shadow: 0 -1px 0 rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 -6px 8px -6px rgba(255, 255, 255, .14);
}
.space { position: relative; width: var(--sw); height: calc(var(--sw) * 1.475); display: flex; align-items: center; justify-content: center; }
.space svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.space path { fill: none; stroke: var(--pencil); stroke-width: 1.1; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.space span { font: 300 20px/1 'Kalam', cursive; color: var(--pencil); transform: rotate(-4deg) translateY(-30%); }

/* ---------- the stamp ---------- */

.stamp { position: relative; width: var(--sw); flex: none; touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
.shade {
  position: absolute;
  left: 7%; right: 7%; top: 8%; bottom: 4%;
  border-radius: 6px;
  box-shadow: 0 22px 30px 4px rgba(0, 0, 0, .7);
  opacity: 0;
  transform: translateY(2%);
  transition: opacity .45s, transform .45s;
  pointer-events: none;
}
.lift { position: relative; perspective: 1100px; transition: transform .48s cubic-bezier(.2, .8, .2, 1); }
.piece { position: relative; transform-style: preserve-3d; transition: transform .72s cubic-bezier(.3, .7, .2, 1); }
.face {
  position: relative;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: rotateY(0deg);
  filter: drop-shadow(0 1px 1.2px rgba(0, 0, 0, .6));
  transition: visibility 0s linear .13s;
}
/* the face turned away is hidden at the midpoint of the turn, so nothing shows through */
.face[inert] { visibility: hidden; }
.by-hand .face { transition: none; }
.face.back { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform: rotateY(180deg); display: flex; flex-direction: column; }
.stamp.is-lifted .lift { transform: translateY(calc(var(--sw) * -.2)) scale(1.06); }
.stamp.is-lifted .shade { opacity: .9; transform: translateY(9%) scale(1.03); }
@media (hover: hover) and (pointer: fine) {
  .pocket:hover .stamp:not(.is-lifted) .lift { transform: translateY(-3px); }
}

.paper {
  --r: calc(var(--sw) * .021);
  --t: calc(var(--sw) * .061);
  position: relative;
  background-color: var(--paper, #f3ecda);
  background-image: var(--grain);
  -webkit-mask:
    radial-gradient(circle var(--r) at 50% 50%, rgba(0, 0, 0, 0) 92%, #000) calc(var(--t) / -2) calc(var(--t) / -2) / var(--t) var(--t) round,
    linear-gradient(#000 0 0) 50% 50% / calc(100% - var(--r) * 2) calc(100% - var(--r) * 2) no-repeat;
  mask:
    radial-gradient(circle var(--r) at 50% 50%, rgba(0, 0, 0, 0) 92%, #000) calc(var(--t) / -2) calc(var(--t) / -2) / var(--t) var(--t) round,
    linear-gradient(#000 0 0) 50% 50% / calc(100% - var(--r) * 2) calc(100% - var(--r) * 2) no-repeat;
}
.sheet { padding: 4.5%; }
.tab { height: calc(var(--sw) * .27); display: flex; align-items: center; justify-content: center; padding: 0 9%; text-align: center; }
.tab-title {
  display: block;
  font-family: 'Old Standard TT', Georgia, serif;
  font-style: italic;
  font-size: calc(var(--sw) * .071);
  line-height: 1.12;
  color: var(--ink);
  text-decoration: none;
}
.tab-title:hover { text-decoration: underline; text-underline-offset: 2px; }
.tab-title:focus-visible { outline-offset: 1px; }

.engr { display: block; width: 100%; height: auto; aspect-ratio: 160 / 196; color: var(--ink); }
.engr .i { fill: currentColor; }
.engr .i2 { fill: var(--ink2); }
.engr .p { fill: var(--paper); }
.engr .l { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.engr .l2 { fill: none; stroke: var(--ink2); }
.engr .lp { fill: none; stroke: var(--paper); stroke-linecap: round; stroke-linejoin: round; }
.engr text { font-family: 'Old Standard TT', Georgia, serif; }
.engr .mt { fill: currentColor; }
.engr .ct { fill: var(--paper); font-weight: 700; }
.engr .kd { fill: currentColor; font-weight: 700; }
.engr .dn { fill: var(--paper); font-family: 'Bodoni Moda', 'Old Standard TT', serif; font-weight: 800; }
.engr .qm { font-family: 'Bodoni Moda', 'Old Standard TT', serif; font-weight: 800; }
.engr .tx { font-weight: 700; }
.cancel {
  position: absolute;
  left: 4.5%;
  top: calc(var(--sw) * .045);
  width: 91%;
  height: auto;
  aspect-ratio: 160 / 196;
  overflow: visible;
  pointer-events: none;
  opacity: .8;
}
.cancel .c { fill: none; stroke: currentColor; }
.cancel .f, .cancel text { fill: currentColor; }
.cancel text { font-family: 'Old Standard TT', Georgia, serif; font-weight: 700; }
.cancel .big { font-family: 'Bodoni Moda', 'Old Standard TT', serif; font-weight: 800; }

.grip {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: grab;
  -webkit-tap-highlight-color: transparent;
}
.grip:focus-visible { outline: 2px solid var(--gold); outline-offset: -5px; }
html.is-dragging, html.is-dragging * { cursor: grabbing !important; -webkit-user-select: none; user-select: none; }

/* the back: gum, a pencilled note, a hinge left by an earlier collector */
.gum {
  background-color: var(--gum);
  background-image: var(--watermark), linear-gradient(160deg, rgba(255, 255, 255, .4), rgba(255, 255, 255, 0) 42%, rgba(120, 100, 40, .07));
}
.face.back .sheet { flex: 1; display: flex; flex-direction: column; padding: 9% 10% 8%; color: #3a3935; }
.face.back .tab { flex: none; }
.b-head { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 8px; font: 300 14px/1.2 'Kalam', cursive; color: var(--graphite); }
.b-tag {
  position: relative; z-index: 1;
  margin: auto 0;
  padding: 6px 0;
  font: 400 max(16px, calc(var(--sw) * .082))/1.24 'Kalam', cursive;
  color: #33322e;
}
.b-read {
  position: relative; z-index: 3;
  font: 400 max(15px, calc(var(--sw) * .078))/1.2 'Kalam', cursive;
  color: #24231f;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.hinge-bit {
  position: absolute; z-index: 1;
  left: 34%; top: 4%;
  width: 32%; height: 12%;
  background: rgba(255, 255, 255, .3);
  border: 1px solid rgba(0, 0, 0, .05);
  transform: rotate(-2deg);
}
.setoff { position: absolute; left: 4.5%; right: 4.5%; top: calc(var(--sw) * .045); opacity: .14; pointer-events: none; color: var(--ink); }

/* ---------- the tongs ---------- */

.tongs {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: calc(var(--sw) * -.93);
  width: calc(var(--sw) * .2);
  height: var(--sw);
  margin-left: calc(var(--sw) * -.1);
  transform-origin: 50% 98%;
  transform: translate(calc(var(--sw) * .55), calc(var(--sw) * -.45)) rotate(40deg);
  opacity: 0;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .3s;
  pointer-events: none;
  filter: drop-shadow(3px 7px 5px rgba(0, 0, 0, .55));
}
.tongs.in { transform: rotate(16deg); opacity: 1; }
.tongs svg { display: block; width: 100%; height: 100%; }

/* ---------- the loupe ---------- */

.loupe {
  position: fixed;
  left: 0; top: 0;
  z-index: 50;
  width: 190px; height: 190px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s;
}
.loupe.on { opacity: 1; }
.loupe-view, .en-view {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 50%;
  background-color: var(--leaf);
  background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, .02) 0 2px, rgba(0, 0, 0, 0) 2px 7px);
}
.loupe-glass {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 7px solid #24211e;
  pointer-events: none;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 30%),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0) 62%, rgba(0, 0, 0, .28));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 0 0 1px #000, 0 12px 30px rgba(0, 0, 0, .6);
}
.loupe .loupe-glass::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 9px; height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .35);
}
.ctx .strip.in-loupe { position: absolute; left: 0; top: 0; margin: 0; transform-origin: 0 0; will-change: transform; }
html.loupe-on .leaf, html.loupe-on .leaf * { cursor: none !important; }

/* ---------- tap to enlarge ---------- */

.enlarge {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 16px;
  background: rgba(8, 8, 8, .88);
  opacity: 0;
  transition: opacity .25s;
}
.enlarge[hidden] { display: none; }
.enlarge.on { opacity: 1; }
.en-lens { position: relative; width: min(86vw, 62vh, 520px); aspect-ratio: 1 / 1; border-radius: 50%; touch-action: none; cursor: move; }
.en-stamp { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.en-close {
  min-height: 44px;
  padding: 8px 26px;
  border: 1px solid var(--pencil);
  border-radius: 999px;
  background: transparent;
  color: var(--pencil-strong);
  font: 400 17px/1 'Kalam', cursive;
  cursor: pointer;
}

/* ---------- pencil notes beside each stamp ---------- */

.note { display: none; }
.n-loupe svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; flex: none; }

@media (min-width: 600px) and (hover: none), (min-width: 600px) and (pointer: coarse) {
  .note { display: block; position: absolute; z-index: 4; top: calc(var(--sw) * -.04); left: calc(50% + var(--sw) / 2 - 22px); }
  .note .n-no, .note .n-title, .note .n-kind, .n-loupe span { display: none; }
  .n-loupe {
    display: grid; place-items: center;
    width: 40px; height: 40px; padding: 0;
    border: 1px solid var(--pencil);
    border-radius: 50%;
    background: rgba(18, 18, 20, .82);
    color: var(--pencil-strong);
    cursor: pointer;
  }
}

/* ---------- reading width tablets ---------- */

@media (min-width: 600px) and (max-width: 859px) {
  .leaf { padding: 32px 24px 54px 62px; }
  .hinge { width: 38px; }
  .hinge::after { left: 17px; }
}

/* ---------- phone: one stamp to a strip, notes beside it ---------- */

@media (max-width: 599px) {
  .cover { padding: 12px 12px 0; }
  .cover .board { min-height: 0; padding: 22px 18px 20px 50px; gap: 10px; }
  .board::before { width: 28px; }
  .cover .board::after { inset: 7px 7px 7px 36px; }
  .foil { font-size: clamp(24px, 6.6vw, 34px); }
  .foil-line { margin-top: 8px; }
  .count { width: 100%; font-size: 12px; letter-spacing: .18em; }
  .album { padding: 0 12px; }
  .page { padding-top: 18px; }
  .leaf { padding: 20px 12px 46px 32px; }
  .hinge { width: 20px; }
  .hinge::after { left: 8px; }
  .folio { right: 16px; bottom: 14px; }
  .film { left: -6px; right: -6px; }
  .strip { padding-top: calc(var(--sw) * .1); }
  .pockets { column-gap: 0; }
  .pocket { display: grid; grid-template-columns: var(--sw) minmax(0, 1fr); column-gap: 14px; align-items: end; justify-content: stretch; }
  .note {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    align-self: start;
    min-width: 0;
    padding-top: calc(var(--sw) * .08);
  }
  .n-no { font: 300 15px/1.25 'Kalam', cursive; color: var(--pencil); }
  .n-title { font: 400 clamp(18px, 5.3vw, 21px)/1.15 'Kalam', cursive; color: var(--pencil-strong); text-decoration: none; overflow-wrap: anywhere; }
  .n-kind { font: 300 15px/1.3 'Kalam', cursive; color: var(--pencil); }
  .n-loupe {
    display: inline-flex; align-items: center; gap: 7px;
    margin-top: 10px;
    min-height: 40px;
    padding: 4px 15px 4px 11px;
    border: 1px solid var(--pencil);
    border-radius: 999px;
    background: rgba(18, 18, 20, .6);
    color: var(--pencil-strong);
    font: 400 16px/1 'Kalam', cursive;
    cursor: pointer;
  }
  .space span { font-size: 18px; }
}

/* ---------- the fallback chapter page ---------- */

.ch-top {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 16px 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.ch-home {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold);
}
.ch-home:hover { text-decoration: underline; text-underline-offset: 4px; }
.ch-basket { font: 300 16px/1 'Kalam', cursive; color: var(--pencil); }
.ch-main { max-width: 980px; margin: 14px auto 56px; padding: 0 16px; }
.ctx.ch-leaf { --sw: min(54vw, 232px); padding: 34px 34px 40px 80px; }
.ch-strip { position: relative; display: flex; justify-content: center; padding: calc(var(--sw) * .12) 0 calc(var(--sw) * .07); }
.ch-strip #ch-stamp { position: relative; z-index: 1; }
.ch-strip #ch-stamp:has(.is-lifted) { z-index: 3; }
.exhibit {
  position: relative;
  margin-top: 34px;
  padding: 44px clamp(22px, 6vw, 68px) 50px;
  border-radius: 2px;
  background-color: #f2ecdd;
  background-image: var(--grain);
  color: #1f1d1a;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 16px 32px rgba(0, 0, 0, .45);
}
.exhibit::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(31, 29, 26, .28);
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0), inset 0 0 0 4px rgba(31, 29, 26, .12);
  pointer-events: none;
}
.ex-no { margin: 0; font: 300 17px/1.3 'Kalam', cursive; color: #55534d; }
.ex-kind { margin-left: 12px; }
.ex-title { margin: 6px 0 12px; font-weight: 700; font-size: clamp(34px, 6vw, 58px); line-height: 1.04; }
.ex-tag { margin: 0 0 18px; font-style: italic; font-size: clamp(19px, 2.2vw, 23px); line-height: 1.35; color: #3b3934; }
.ex-lede { margin: 0 0 8px; font-size: clamp(19px, 2vw, 22px); line-height: 1.5; }
.ex-sec h2, .ex-dh {
  margin: 30px 0 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(31, 29, 26, .2);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 27px);
}
.ex-sec p { margin: 0; font-size: 18px; line-height: 1.62; max-width: 62ch; }
.mount { position: relative; margin: 34px 0 10px; max-width: 640px; padding: 10px; background: #fbf8f0; box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
.mount img { display: block; width: 100%; height: auto; }
.mount figcaption { margin-top: 10px; font: 300 16px/1.35 'Kalam', cursive; color: #4b4943; }
.pc { position: absolute; width: 22px; height: 22px; background: #1b1a18; z-index: 1; }
.pc.tl { left: 0; top: 0; clip-path: polygon(0 0, 100% 0, 0 100%); }
.pc.tr { right: 0; top: 0; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.pc.bl { left: 0; bottom: 0; clip-path: polygon(0 0, 100% 100%, 0 100%); }
.pc.br { right: 0; bottom: 0; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.ex-posters { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 20px; }
.mount.poster { width: 290px; max-width: 100%; margin: 14px 0 0; }
.mount.poster figcaption { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.p-title { font-weight: 400; color: #1f1d1a; }
.ex-add {
  margin-top: 10px;
  min-height: 40px;
  padding: 6px 16px;
  border: 1px solid #1f1d1a;
  border-radius: 2px;
  background: transparent;
  color: #1f1d1a;
  font: 700 14px/1 'Old Standard TT', Georgia, serif;
  letter-spacing: .06em;
  cursor: pointer;
}
.ex-stickers { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.ex-stickers li {
  padding: 12px 18px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .12);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .15);
  font: 400 21px/1.2 'Kalam', cursive;
  transform: rotate(-1.5deg);
}
.ex-stickers li:nth-child(2n) { transform: rotate(1.8deg); }
.ex-details { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 24px; }
.ex-details li { position: relative; padding-left: 18px; font-size: 17px; line-height: 1.45; }
.ex-details li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: #8a867c; }
.ex-buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(31, 29, 26, .2);
}
.ex-ed, .ex-price { margin: 0; font-size: 17px; }
.ex-price { font-weight: 700; }
.ex-btn {
  min-height: 44px;
  padding: 10px 20px;
  border: 0;
  border-radius: 2px;
  background: #1f1d1a;
  color: #f2ecdd;
  font: 700 15px/1 'Old Standard TT', Georgia, serif;
  letter-spacing: .08em;
  cursor: pointer;
}
.ex-done { margin: 0; font: 400 17px/1 'Kalam', cursive; color: #3b5a33; min-height: 1em; }
.ch-nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 14px 24px; margin-top: 30px; }
.ch-back, .ch-next { font: 400 19px/1.3 'Kalam', cursive; color: var(--pencil-strong); text-decoration: none; }
.ch-back:hover, .ch-next:hover { text-decoration: underline; text-underline-offset: 4px; }
.ch-next { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.nx-label { font-weight: 300; font-size: 15px; color: var(--pencil); }

@media (max-width: 599px) {
  .ctx.ch-leaf { --sw: min(58vw, 220px); padding: 22px 12px 30px 32px; }
  .exhibit { margin-top: 24px; padding: 34px 20px 40px; }
  .exhibit::before { inset: 8px; }
  .ch-top { padding: 14px 12px 0; }
  .ch-main { padding: 0 12px; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .piece, .lift, .shade, .tongs, .loupe, .enlarge, .face { transition: none !important; }
}
