@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Pirata+One&display=swap');

:root {
  color-scheme: dark;
  --ink: #f6e9e4;
  --muted: #cbb8b9;
  --paper: #0b090a;
  --line: #58202d;
  --red: #ad1635;
  --light-red: #ff929e;
  --heading: 'Pirata One', Georgia, serif;
  --label: 'DM Sans', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font: 16px/1.55 var(--label);
  background: var(--paper);
}
button, a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--light-red); outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(1260px, calc(100% - 96px)); margin-inline: auto; }

.site-header, footer { background: #080607; }
.site-header { border-bottom: 1px solid var(--line); }
.header-row, footer .wrap {
  min-height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font: 30px/1 var(--heading);
  text-decoration: none;
}
.logo img { width: 49px; height: 40px; object-fit: contain; }
nav { display: flex; align-items: center; gap: clamp(15px, 4vw, 46px); }
nav a, footer a, .text-link { text-decoration-thickness: 1px; text-underline-offset: 5px; }
nav a { text-decoration: none; font-size: 14px; color: var(--muted); }
nav a:hover, footer a:hover, .text-link:hover { color: var(--light-red); }

.hero {
  background:
    radial-gradient(ellipse at 76% 54%, #400b1c 0%, transparent 56%),
    radial-gradient(ellipse at 10% 18%, #210a10 0%, transparent 48%),
    repeating-linear-gradient(119deg, #ae45570b 0 1px, transparent 1px 5px),
    #0d090b;
  border-bottom: 4px double var(--line);
}
.specimen {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: clamp(30px, 7vw, 108px);
  padding-block: clamp(42px, 6vw, 88px);
}
.specimen-copy { max-width: 460px; }
.specimen-id {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  color: var(--light-red);
  font: 700 .75rem/1.4 var(--label);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.specimen-id::before { content: ''; width: 24px; height: 1px; background: currentColor; }
h1, h2 { font-family: var(--heading); font-weight: 400; }
h1 {
  margin: 8px 0 12px;
  font-size: clamp(105px, 14.5vw, 206px);
  line-height: .83;
  letter-spacing: -.025em;
  text-shadow: 0 4px 30px #0906078c;
}
.specimen-description { max-width: 29ch; margin: 24px 0 27px; color: var(--muted); font-size: 1.05rem; }
.display-notice {
  width: fit-content;
  margin: 0 0 12px;
  padding: 3px 9px 3px 10px;
  border-left: 2px solid var(--light-red);
  background: #34101c;
  color: #f3cbd2;
  font-size: .81rem;
  font-weight: 700;
}
.product-price { display: flex; align-items: baseline; gap: 13px; margin: 0 0 19px; }
.product-price del { color: var(--muted); }
.product-price strong { color: var(--ink); font-size: 1.75rem; font-weight: 600; }
.product-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.button, .close {
  display: inline-block;
  min-height: 44px;
  padding: 10px 17px;
  text-decoration: none;
  border: 1px solid #a2646d;
  background: transparent;
  font-weight: 600;
}
.button.accent {
  background: linear-gradient(180deg, #bd2240, var(--red) 52%, #871129);
  border-color: #dc526b;
  color: #fff4f3;
  box-shadow: inset 0 0 0 3px #44091573;
}
.button:hover, .close:hover { background: #67202d; }
.button.accent:hover { background: #bf2443; }
.specimen .button { min-width: 148px; text-align: center; }

.specimen-display { min-width: 0; }
.frame-light { position: relative; isolation: isolate; }
.frame-light::before {
  content: '';
  position: absolute;
  inset: 12px;
  z-index: -1;
  border-radius: 8px;
  box-shadow: 0 0 45px 10px #e11940a0;
  opacity: .27;
}
@media (prefers-reduced-motion: no-preference) {
  .frame-light::before { animation: frame-pulse 7s ease-in-out infinite; }
}
@keyframes frame-pulse {
  0%, 100% { opacity: .18; }
  50% { opacity: .44; }
}

.portrait {
  --arch-shape: polygon(50% 0%, 64% 9%, 75% 17%, 84% 26%, 91% 35%, 96% 45%, 99% 56%, 100% 67%, 100% 100%, 0 100%, 0 67%, 1% 56%, 4% 45%, 9% 35%, 16% 26%, 25% 17%, 36% 9%);
  --frame-width: clamp(13px, 2.4vw, 25px);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1.02;
  padding: var(--frame-width);
  overflow: hidden;
  border: 1px solid #713344;
  border-radius: 3px;
  background:
    repeating-linear-gradient(97deg, #dab6a609 0 1px, transparent 1px 5px, #07030538 5px 7px, transparent 7px 12px),
    linear-gradient(145deg, #432831 0%, #1b0d14 22%, #38202a 48%, #120a0d 85%);
  box-shadow:
    0 15px 28px #000b,
    inset 0 1px 1px #e3aa9e75,
    inset 0 -2px 2px #000c,
    inset 0 0 0 4px #170d14,
    inset 0 0 0 5px #a161675c;
}
.portrait::before {
  content: '';
  position: absolute;
  inset: var(--frame-width);
  z-index: -2;
  border: 1px solid #0c0609;
  background:
    repeating-linear-gradient(45deg, #ba556010 0 1px, transparent 1px 10px),
    repeating-linear-gradient(-45deg, #ba556010 0 1px, transparent 1px 10px),
    radial-gradient(ellipse at 49% 54%, #410f20 2%, #210c16 59%, #130a10 100%);
  box-shadow: inset 0 3px 15px #030204, 0 0 0 1px #b27c7970, 0 0 0 3px #11080e;
}
.portrait-arch {
  position: absolute;
  inset: 5.5% 13% 10%;
  z-index: -1;
  clip-path: var(--arch-shape);
  background: linear-gradient(143deg, #edb3aa 0%, #81404c 18%, #371422 42%, #b56f78 66%, #391423 84%, #a3636b);
}
.portrait-arch::before, .portrait-arch::after {
  content: '';
  position: absolute;
  clip-path: var(--arch-shape);
}
.portrait-arch::before { inset: 2px; background: linear-gradient(137deg, #1b0c13, #673343 55%, #160910); }
.portrait-arch::after {
  inset: 7px 6px 5px;
  background:
    linear-gradient(90deg, transparent calc(50% - .5px), #ee6a8126 50%, transparent calc(50% + .5px)),
    repeating-linear-gradient(45deg, #09030765 0 1px, #f061761c 1px 2px, transparent 2px 32px),
    repeating-linear-gradient(-45deg, #09030765 0 1px, #f061761c 1px 2px, transparent 2px 32px),
    radial-gradient(ellipse at 47% 44%, #963c51 0%, #58162c 52%, #190811 100%);
  transition: filter .3s ease;
}
.portrait-rose {
  position: absolute;
  top: 15%;
  left: 50%;
  width: 11%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border: 1px solid #d264788f;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #481021, 0 0 0 4px #ac465568;
  background:
    radial-gradient(circle at center, #e28487 0 5%, #5b142b 6% 14%, transparent 15%),
    radial-gradient(ellipse at 50% 31%, transparent 0 20%, #b4576d 21% 23%, transparent 24%) center / 58% 100% no-repeat,
    radial-gradient(ellipse at 50% 69%, transparent 0 20%, #b4576d 21% 23%, transparent 24%) center / 58% 100% no-repeat,
    radial-gradient(ellipse at 31% 50%, transparent 0 20%, #b4576d 21% 23%, transparent 24%) center / 100% 58% no-repeat,
    radial-gradient(ellipse at 69% 50%, transparent 0 20%, #b4576d 21% 23%, transparent 24%) center / 100% 58% no-repeat,
    #310c1b;
}
.portrait::after {
  content: '';
  position: absolute;
  inset: 8px;
  pointer-events: none;
  border: 1px solid #9f3d557a;
  background:
    radial-gradient(circle at 0 0, #e3909c 0 2%, transparent 4% 40%, #a6485c 41% 43%, transparent 44% 58%, #a6485c 59% 61%, transparent 62%) top left / 42px 42px no-repeat,
    radial-gradient(circle at 100% 0, #e3909c 0 2%, transparent 4% 40%, #a6485c 41% 43%, transparent 44% 58%, #a6485c 59% 61%, transparent 62%) top right / 42px 42px no-repeat,
    radial-gradient(circle at 0 100%, #e3909c 0 2%, transparent 4% 40%, #a6485c 41% 43%, transparent 44% 58%, #a6485c 59% 61%, transparent 62%) bottom left / 42px 42px no-repeat,
    radial-gradient(circle at 100% 100%, #e3909c 0 2%, transparent 4% 40%, #a6485c 41% 43%, transparent 44% 58%, #a6485c 59% 61%, transparent 62%) bottom right / 42px 42px no-repeat;
}
.portrait img {
  display: block;
  width: 88%;
  height: 87%;
  align-self: end;
  z-index: 0;
  min-height: 0;
  object-fit: contain;
  filter: drop-shadow(0 15px 12px #160910c9);
  transition: transform .25s ease, filter .3s ease;
}
.portrait:hover img { transform: scale(1.03); }
.portrait.is-dimmed .portrait-arch::after { filter: brightness(.51) saturate(1.3); }
.portrait.is-dimmed img { filter: brightness(.8) sepia(.14) drop-shadow(0 12px 12px #15020dee); }
.portrait-caption {
  z-index: 1;
  padding: 4px 13px;
  border: 1px solid #8b3d52;
  background: #1c090f;
  color: #f5dbe0;
  font-size: .75rem;
  letter-spacing: .06em;
}

.display-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 12px;
}
.display-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 7px 9px;
  background: #150d11;
  border: 1px solid #623040;
  color: var(--ink);
  font-size: .82rem;
}
.display-control:hover, .display-control[aria-pressed="true"] {
  background: #35101d;
  border-color: #a95164;
}
.light-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff9c9c;
  box-shadow: 0 0 7px #fc1b4d;
}
[aria-pressed="true"] .light-indicator { background: #5c3441; box-shadow: none; }
.tag-indicator {
  width: 9px;
  height: 13px;
  border: 1px solid #f19cac;
  border-radius: 4px 4px 1px 1px;
  transform: rotate(24deg);
}
.collection-tag {
  width: min(100% - 24px, 286px);
  height: 112px;
  margin: 19px auto 0;
  perspective: 760px;
}
.tag-turn {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .64s cubic-bezier(.42, .08, .29, 1);
}
.collection-tag.is-flipped .tag-turn { transform: rotateY(180deg); }
.tag-face {
  position: absolute;
  inset: 0;
  isolation: isolate;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 10px 14px 10px 58px;
  color: #321a15;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.tag-face::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  clip-path: polygon(12% 0, 99% 1%, 100% 96%, 97% 100%, 12% 99%, 0 72%, 0 27%);
  background:
    radial-gradient(ellipse at 4% 16%, #5c221763, transparent 32%),
    radial-gradient(ellipse at 93% 98%, #813c2963, transparent 44%),
    radial-gradient(ellipse at 65% 38%, #fff2d366, transparent 60%),
    repeating-linear-gradient(108deg, #572d191e 0 1px, transparent 1px 4px, #ffebc730 4px 5px, transparent 5px 8px),
    linear-gradient(115deg, #a87a4d, #d4af7c 23%, #e1c799 57%, #b68655);
  box-shadow: inset 0 0 0 1px #6e432d, inset 0 0 13px #623b2e75;
}
.tag-face::after {
  content: '';
  position: absolute;
  inset: 7px 8px 7px 45px;
  z-index: -1;
  border: 1px solid #8948476e;
  pointer-events: none;
}
.tag-back { transform: rotateY(180deg); padding: 10px 58px 10px 16px; text-align: right; }
.tag-back::before { transform: scaleX(-1); }
.tag-back::after { inset: 7px 45px 7px 8px; }
.tag-face strong { font: clamp(1.3rem, 4.5vw, 1.58rem)/1.06 var(--heading); }
.tag-face span { font-size: .72rem; line-height: 1.32; }
.tag-face .tag-label { color: #672e28; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.tag-eyelet {
  position: absolute;
  top: 50%;
  left: 18px;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  border: 2px solid #693e2a;
  border-radius: 50%;
  background: #170c0d;
  box-shadow: 0 0 0 1px #eecba15c, inset 0 1px 1px #080606;
}
.tag-cord {
  position: absolute;
  z-index: 1;
  top: calc(50% - 9px);
  left: -17px;
  width: 43px;
  height: 17px;
  transform: rotate(13deg);
  border: 2px solid #a5805a;
  border-left-color: #765942;
  border-bottom-color: #77573e;
  border-radius: 50%;
  box-shadow: 0 1px #1b1010, inset 0 1px #ead1aa49;
}
.tag-back .tag-eyelet { left: auto; right: 18px; }
.tag-back .tag-cord { left: auto; right: -17px; transform: rotate(-13deg); }
}

.notes { padding-block: clamp(42px, 7vw, 82px); }
.notes-card {
  color: var(--ink);
  background:
    linear-gradient(118deg, #360b18, #190a0e 56%, #19090f);
  border: 1px solid #713044;
  outline: 1px solid #7b3547;
  outline-offset: -7px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 50px;
  align-items: start;
  padding: clamp(24px, 4.5vw, 60px);
}
.notes h2 { margin: 0 0 9px; font-size: clamp(42px, 6vw, 72px); line-height: 1; }
.notes dl { margin: 0; display: grid; gap: 0; border-top: 1px solid #79394c; }
.notes dl div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 9px; padding-block: 9px; border-bottom: 1px solid #79394c; }
.notes dt { color: var(--light-red); font-size: .75rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.notes dd { margin: 0; }

.ledger-section { padding-bottom: clamp(35px, 7vw, 82px); }
.ledger-intro {
  display: grid;
  grid-template-columns: clamp(96px, 22%, 168px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 54px);
  padding: clamp(16px, 3.5vw, 38px);
  background: radial-gradient(ellipse at 10% 50%, #421421, transparent 66%), #170c12;
  border: 1px solid var(--line);
}
.ledger-intro img { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 12px #050305); }
.ledger-cover-button { position: relative; isolation: isolate; padding: 0; border: 0; background: transparent; }
.ledger-cover-button::before {
  content: '';
  position: absolute;
  inset: 6% 9%;
  z-index: -1;
  border-radius: 14%;
  box-shadow: 0 0 24px 7px #c7334d83;
  pointer-events: none;
}
.ledger-cover-button img {
  filter: drop-shadow(0 10px 12px #050305) drop-shadow(0 0 5px #9e354c);
}
.ledger-cover-button:hover img, .ledger-cover-button:focus-visible img {
  filter: brightness(1.12) drop-shadow(0 9px 10px #050305) drop-shadow(0 0 11px #e6677e);
}
.ledger-intro h2 { margin: 0; font-size: clamp(37px, 6vw, 70px); line-height: .98; }
.ledger-intro p { max-width: 36ch; margin: 13px 0 16px; color: var(--muted); }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
footer p { margin: 0; }
footer .motto { font-family: Georgia, serif; font-style: italic; }

dialog {
  width: min(510px, calc(100% - 28px));
  max-height: calc(100svh - 26px);
  padding: clamp(17px, 4vw, 28px);
  color: var(--ink);
  background: #1e0c12;
  border: 1px solid #b14b64;
}
dialog::backdrop { background: #0b0709d9; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dialog-head h2 { margin: 0; font-size: 49px; line-height: 1; }
.detail-image { display: block; width: 100%; height: min(34vh, 280px); object-fit: contain; background: radial-gradient(ellipse, #831e38, #16070e); border: 1px solid var(--line); }
dialog .product-price { margin-bottom: 8px; }
.checkout-caption { margin: 8px 0 0; color: var(--muted); font-size: .83rem; }
.order-summary { margin-top: 15px; padding: 13px 15px; border: 1px solid #79394c; background: #14090e; }
.order-summary h3 { margin: 0 0 8px; font: 400 1.6rem/1.1 var(--heading); }
.order-total { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.order-summary .button { margin-top: 12px; }

.ledger-dialog { width: min(850px, calc(100% - 22px)); }
.ledger-dialog .dialog-head {
  position: sticky;
  top: 0;
  z-index: 2;
  padding-bottom: 5px;
  background: #1e0c12;
}
.ledger-index { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ledger-stage {
  --ledger-closed-shift: -23%;
  --ledger-reveal-start: 50%;
  position: relative;
  perspective: 1450px;
  overflow: clip;
}
.ledger-desk { position: relative; transform-style: preserve-3d; }
.ledger-spread {
  position: relative;
  color: #341a15;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  min-height: 406px;
  background: url('Morwens Open Ledger.webp') center / 100% 100% no-repeat, #271018;
  padding: 37px 7% 91px;
}
.ledger-plate { text-align: center; padding-right: 22px; }
.ledger-plate img { display: block; width: 100%; height: min(28vw, 235px); object-fit: contain; filter: drop-shadow(0 6px 6px #7f452d73); }
.ledger-plate p { margin: 5px 0 0; color: #682d27; text-transform: uppercase; font-size: .74rem; font-weight: 700; letter-spacing: .11em; }
.ledger-page { padding-left: clamp(16px, 4vw, 41px); }
.ledger-page h3, .leaf-front h3 { font: 400 clamp(38px, 6vw, 61px)/.95 var(--heading); margin: 0 0 12px; }
.ledger-page p, .ledger-page blockquote, .leaf-front p, .leaf-front blockquote { font: 1.03rem/1.55 Georgia, serif; }
.ledger-page p, .leaf-front p { margin: 0 0 12px; }
.ledger-page blockquote, .leaf-front blockquote { margin: 0; color: #672d26; border-top: 1px solid #9b5b497c; padding-top: 8px; font-style: italic; }

.ledger-corner {
  position: absolute;
  bottom: 7%;
  display: grid;
  align-items: end;
  width: 49px;
  height: 49px;
  padding: 0 7px 3px;
  border: 0;
  color: #632919;
  background: transparent;
  font-size: 1.27rem;
  font-weight: 700;
  isolation: isolate;
}
.ledger-corner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  clip-path: polygon(100% 0, 96% 53%, 100% 100%, 0 100%);
  background: linear-gradient(135deg, #d19b64 45%, #f5d9a6 60%, #ba7946 95%);
  box-shadow: inset 0 -2px 3px #6b362357;
}
.ledger-corner-previous { left: 5.5%; justify-items: start; }
.ledger-corner-previous::before { transform: scaleX(-1); }
.ledger-corner-next { right: 5.5%; justify-items: end; }
.ledger-corner:hover:not([aria-disabled="true"])::before { filter: brightness(1.13); }
.ledger-corner[aria-disabled="true"] { opacity: .4; cursor: default; }
.ledger-corner:focus-visible { outline-color: #702635; outline-offset: 0; }

.ledger-rig, .ledger-leaf {
  position: absolute;
  left: 50%;
  pointer-events: none;
}
.ledger-rig {
  z-index: 4;
  inset-block: 3.2% 6.2%;
  width: 46%;
  transform-style: preserve-3d;
}
.ledger-cover, .ledger-leaf {
  transform-style: preserve-3d;
  transform-origin: left center;
}
.ledger-cover, .ledger-board, .ledger-endpaper, .ledger-page-block, .ledger-cast-shadow {
  position: absolute;
  inset: 0;
}
.ledger-cover { transform: rotateY(0deg); }
.ledger-board, .ledger-endpaper, .leaf-face {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.ledger-board {
  overflow: hidden;
  border-radius: 4% 4% 4% 3%;
  background: #321813;
  box-shadow: 6px 10px 19px #0a0409a6;
  transform: translateZ(3px);
}
.ledger-board img { display: block; width: 100%; height: 100%; object-fit: fill; }
.ledger-board::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #1c0909b3, transparent 10%, transparent 91%, #09030366);
}
.ledger-endpaper {
  transform: rotateY(180deg) translateZ(3px);
  border: clamp(7px, 1.35vw, 15px) solid #4b2418;
  border-radius: 4% 3% 3% 4%;
  background:
    linear-gradient(90deg, #5b2d1fb3, transparent 17%, transparent 84%, #693d264d),
    repeating-linear-gradient(115deg, #67413126 0 1px, transparent 1px 5px),
    radial-gradient(ellipse at 45% 42%, #cfa472, #a87650);
  box-shadow: inset 0 0 0 2px #6c3926, inset 0 0 25px #532b20a1;
}
.ledger-endpaper::after {
  content: '';
  position: absolute;
  inset: 7%;
  border: 3px double #66392688;
}
.ledger-board-edge {
  position: absolute;
  right: -3px;
  top: 2%;
  bottom: 2%;
  width: 6px;
  background: linear-gradient(90deg, #2e110d, #8d522e, #3c1710);
  transform: rotateY(90deg);
  border-radius: 30%;
}
.ledger-page-block {
  inset: 3.5% 0 0 1.5%;
  border: solid #624231;
  border-width: 1px 2px 5px 1px;
  border-radius: 2px 8px 7px 2px;
  background:
    linear-gradient(90deg, #81573b, transparent 12%, transparent 92%, #704630),
    repeating-linear-gradient(0deg, #aa805d 0 1px, #d9ba87 1px 3px);
  box-shadow: 0 8px 14px #080407bb, inset 0 0 0 10px #bc9468;
  transform-origin: left center;
}
.ledger-page-block::after {
  content: '';
  position: absolute;
  inset: 0 8px 11px 0;
  border-radius: 2px 6px 7px 2px;
  background:
    linear-gradient(90deg, #8e6449 0%, transparent 13%),
    radial-gradient(ellipse at 35% 35%, #ecd5a9, #c6a173 85%);
}
.ledger-cast-shadow {
  z-index: 1;
  transform-origin: left center;
  border-radius: 0 7% 8% 0;
  background: linear-gradient(90deg, #160b0ac9, #38211765 62%, transparent);
}
.leaf-face { position: absolute; inset: 0; width: 100%; height: 100%; }
.ledger-leaf { z-index: 3; inset-block: 6% 10%; right: 5.5%; color: #341a15; }
.leaf-face {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid #b57c4e;
  background: radial-gradient(ellipse at 60% 42%, #f0d6a7, #dcb180 82%, #b98054);
}
.leaf-front {
  padding: 15px 13px 55px clamp(16px, 4vw, 41px);
  border-radius: 2px 10px 10px 2px;
  box-shadow: inset 8px 0 17px #71462d33, -4px 1px 8px #46261c4a;
}
.leaf-back {
  transform: rotateY(180deg);
  padding: 12px 16px 25px 10px;
  border-radius: 10px 2px 2px 10px;
  box-shadow: inset -7px 0 16px #70472d40, 4px 1px 8px #46261c40;
}

@media (max-width: 800px) {
  .wrap { width: calc(100% - 46px); }
  .specimen { gap: 30px; }
  h1 { font-size: clamp(79px, 14.5vw, 115px); }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 34px); }
  .header-row { min-height: 64px; gap: 10px; }
  .logo { gap: 6px; font-size: 23px; }
  .logo img { width: 31px; height: 33px; }
  nav { gap: 13px; }
  nav a { font-size: .75rem; }
  .specimen { grid-template-columns: 1fr; gap: 24px; padding-block: 28px 31px; }
  .specimen-copy { max-width: none; }
  h1 { margin-block: 6px; font-size: clamp(86px, 22vw, 130px); }
  .specimen-description { margin-block: 16px; }
  .specimen .product-price { margin-bottom: 12px; }
  .specimen-display { width: min(100%, 430px); }
  .notes-card { grid-template-columns: 1fr; }
  footer .wrap { align-items: start; flex-direction: column; justify-content: center; padding-block: 17px; gap: 5px; }
}
@media (max-width: 350px) {
  .logo img { display: none; }
  nav { gap: 9px; }
}
@media (max-width: 600px) {
  .ledger-intro { grid-template-columns: 78px minmax(0, 1fr); }
  .ledger-dialog .dialog-head h2 { font-size: clamp(33px, 8vw, 46px); }
  .ledger-spread {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 14px;
    padding: 18px 19px 58px;
    border: 3px double #935244;
    background: radial-gradient(ellipse at center, #ecd5a9 0%, #d7ae7b 84%);
  }
  .ledger-plate { padding: 0; }
  .ledger-plate img { height: 130px; }
  .ledger-page { padding: 0; }
  #closeLedger { padding-inline: 9px; font-size: .8rem; white-space: nowrap; }
  .ledger-corner { bottom: 3px; }
  .ledger-corner-previous { left: 3px; }
  .ledger-corner-next { right: 3px; }
  .ledger-stage { --ledger-closed-shift: -22%; --ledger-reveal-start: 28%; }
  .ledger-rig { top: 18px; bottom: auto; width: 44%; aspect-ratio: 540 / 708; }
  .ledger-leaf { inset: 3px; }
  .leaf-front { justify-content: end; padding: 18px 19px 55px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .portrait img, .portrait-arch::after, .tag-turn { transition: none; }
}

.stock-empty { padding-block: clamp(25px, 6vw, 78px); }
.empty-chamber {
  position: relative;
  min-height: clamp(360px, 54vw, 535px);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  padding: 42px 22px;
  text-align: center;
  isolation: isolate;
  border: 1px solid #70303e;
  background: radial-gradient(ellipse at 50% 38%, #3c131e 0%, #1b0b10 42%, #0d080a 76%);
  box-shadow: 0 18px 48px #070405a6, inset 0 0 60px #02010277;
}
.empty-chamber::before {
  content: '';
  position: absolute;
  inset: 9px;
  z-index: -1;
  border: 1px solid #793b4a69;
  pointer-events: none;
}
.empty-chamber img { width: clamp(74px, 13vw, 120px); height: auto; filter: drop-shadow(0 0 21px #b52a5255); }
.empty-chamber h1 { margin: 0; font-size: clamp(40px, 8vw, 102px); line-height: .98; }
.empty-chamber p { margin: 0 0 8px; color: var(--muted); }
.remnant-shelf { padding-block: 30px clamp(34px, 6vw, 75px); }
.remnant-shelf h2 { margin: 0 0 20px; font-size: clamp(38px, 6vw, 64px); }
.remnant-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 320px)); gap: 20px; }
.remnant-card { border: 1px solid #713446; background: #160b11; min-width: 0; }
.remnant-photo {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 5 / 4;
  background: radial-gradient(ellipse, #461b2a, #140a10 75%);
  border: 0;
  border-bottom: 1px solid #713446;
  cursor: pointer;
}
.remnant-photo img { width: 82%; max-height: 210px; height: 82%; object-fit: contain; }
.remnant-info { padding: 20px; }
.remnant-info h3 { font-size: 2rem; margin: 6px 0 10px; }
.remnant-info .product-price { margin-block: 10px; }
