@font-face {
  font-family: Caveat;
  src: url("fonts/caveat-rosenblatt.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f7f2e7;
  --ink: #25271f;
  --green: #424c36;
  --muted: #65645a;
  --line: #d9d0bf;
  --rust: #a13526;
  --cream: #fff2d7;
  --serif: "Book Antiqua", Palatino, Georgia, serif;
  --sans: "Aptos", "Segoe UI", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #ae512d; outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: min(1224px, calc(100% - 88px)); margin-inline: auto; }
.top { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.identity { display: inline-flex; align-items: center; gap: 12px; font: 700 1.25rem var(--serif); text-decoration: none; }
.brand-icon { background: #eec498; display: inline-flex; align-items: center; justify-content: center; gap: 2px; padding: 8px 10px; width: 37px; height: 37px; border-radius: 11px; }
.brand-icon i, .shelf-icon i { width: 3px; height: 15px; border-radius: 1px; background: currentColor; }
.brand-icon i:nth-child(2), .shelf-icon i:nth-child(2) { height: 12px; align-self: flex-end; margin-bottom: 3px; }
.brand-icon i:last-child, .shelf-icon i:last-child { transform: rotate(-19deg) translateX(1px); height: 13px; }
.outline { border: 1px solid #c4b9a5; border-radius: 9px; background: transparent; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; font-size: .875rem; font-weight: 650; }
.outline:hover { background: #eee4d4; border-color: #a89578; }
.surprise span { color: var(--rust); font-size: 1.1rem; }
.hero { min-height: 355px; position: relative; display: flex; border-radius: 18px; overflow: hidden; align-items: center; background: radial-gradient(ellipse at 76% 45%, #c65b35 0%, #ae412a 51%, #913221 100%); color: var(--cream); isolation: isolate; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(105deg, transparent 0 3px, #ffefc706 3px 4px); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.hero-text {
  margin: 0;
  padding: 29px clamp(25px, 5.1vw, 70px);
  width: 64%;
  z-index: 1;
}
.hero-text blockquote { margin: 0; }
.hero-text p {
  margin: 0 0 15px;
  font: 400 clamp(1.9rem, 4vw, 3.72rem)/.98 var(--serif);
  letter-spacing: -.055em;
}
.hero-text em { color: #ffd28b; font-weight: 400; }
.hero-text figcaption {
  display: inline-block;
  color: #ffe5bc;
  font: 600 1.65rem/1.15 Caveat, "Segoe Print", "Bradley Hand", cursive;
  transform: rotate(-3deg);
}
.link-icon { display: inline-block; color: var(--rust); width: 16px; height: 12px; position: relative; transform: rotate(-40deg); }
.link-icon::before, .link-icon::after { content: ""; position: absolute; top: 3px; width: 9px; height: 6px; border: 1.5px solid currentColor; border-radius: 4px; }
.link-icon::before { left: 0; }
.link-icon::after { right: 0; }

h1, h2, h3, p { margin-top: 0; }
.hero-art { position: absolute; right: 2%; width: 44%; top: 0; bottom: 0; display: grid; place-items: center; z-index: 2; pointer-events: none; }







.collection { margin-top: 37px; }
.collection-heading { display: flex; justify-content: space-between; gap: 18px; align-items: flex-end; margin-bottom: 20px; }
h2 { font: 500 clamp(2.65rem, 5vw, 4.35rem)/.93 var(--serif); letter-spacing: -.077em; margin-bottom: 0; }
.controls { display: flex; justify-content: space-between; align-items: center; gap: 11px; margin-bottom: 13px; }
.filters { display: flex; align-items: center; gap: 7px; }
.filters { flex-wrap: wrap; }
.filter { border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; min-height: 35px; font-size: .84rem; font-weight: 650; white-space: nowrap; background: transparent; }
.filter:hover, .filter[aria-pressed=true] { background: #e7dfcd; }
.filter[aria-pressed=true] { background: var(--green); color: #fff8e9; border-color: var(--green); }
.search { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; height: 38px; background: #fffaf1; width: min(22vw, 215px); }
.search:focus-within { outline: 2px solid #ae512d; outline-offset: 2px; }
.search input { border: 0; background: transparent; outline: none; min-width: 0; width: 100%; font-size: .875rem; }
.search input:focus-visible { outline: none; }
.magnifier { width: 12px; height: 12px; border: 1.5px solid currentColor; border-radius: 50%; position: relative; flex: 0 0 auto; margin-right: 2px; }
.magnifier::after { content: ""; position: absolute; width: 5px; height: 1.5px; background: currentColor; right: -4px; bottom: -2px; transform: rotate(47deg); }
.books { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; align-items: start; overflow: hidden; border-radius: 13px 13px 0 0; background: linear-gradient(#272b22, #383a2c calc(var(--shelf-height) - 10px), #6c4935 calc(var(--shelf-height) - 10px) var(--shelf-height), #ad8463 var(--shelf-height) calc(var(--shelf-height) + 5px), transparent calc(var(--shelf-height) + 5px)); --shelf-height: clamp(190px, 23vw, 278px); }
.book { min-width: 0; width: 100%; border: 0; padding: 0; background: transparent; text-align: left; display: flex; flex-direction: column; height: 100%; }
.book:focus-visible { outline-offset: -5px; z-index: 1; border-radius: 9px; }
.book-stage { background: radial-gradient(ellipse at 50% 95%, #6a61433f, transparent 77%), linear-gradient(#272b22, #383a2c); width: 100%; height: var(--shelf-height); display: flex; align-items: flex-end; justify-content: center; padding: 14px 9px 11px; position: relative; border-bottom: 10px solid #6c4935; box-shadow: inset 0 -2px #453124, 0 5px 0 #ad8463; }
.book-stage::before { content: ""; position: absolute; inset: auto 0 -6px; border-top: 1px solid #a57a55; }
.cover { width: min(76%, 162px); max-height: 100%; aspect-ratio: 2 / 3; border-radius: 2px 5px 5px 2px; background: var(--book-color); color: #fff8e9; position: relative; isolation: isolate; overflow: hidden; box-shadow: 9px 7px 15px #0c130ba0, 1px 2px 0 1px #161914; transform-origin: center bottom; transition: transform .24s ease-out, box-shadow .24s ease-out; }
.cover img { width: 100%; height: 100%; object-fit: fill; display: block; position: absolute; inset: 0; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, #17100952, transparent 5%, #fff9 6%, transparent 7%); pointer-events: none; }
.cover-text { position: absolute; inset: 10% 10% 8%; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; text-align: center; font: 1.18rem/1 var(--serif); }
.cover-text small { font: .68rem var(--sans); }
.book:hover .cover, .book:focus-visible .cover { transform: translateY(-7px) rotate(-3deg); box-shadow: 13px 11px 18px #0c130bda; }
.book-meta { display: flex; flex-direction: column; width: 100%; flex: 1; padding: 18px 10px 12px; text-align: center; border-bottom: 1px solid var(--line); }
.book-title { font: 700 1.19rem/1.08 var(--serif); letter-spacing: -.025em; }
.book:hover .book-title { color: var(--rust); }
.author { color: var(--muted); font-size: .85rem; margin-top: 5px; }
.empty { padding: 30px 14px; border: 1px dashed #af9f82; border-radius: 12px; text-align: center; }
.empty h3 { margin: 8px 0 13px; font: 1.55rem var(--serif); }
main { padding-bottom: 42px; }
dialog { width: min(735px, calc(100% - 30px)); max-height: calc(100% - 30px); padding: 0; border: 0; border-radius: 16px; background: var(--paper); color: var(--ink); box-shadow: 0 18px 80px #16140d66; }
dialog::backdrop { background: #1d211bd0; backdrop-filter: blur(4px); }
.close { position: absolute; right: 11px; top: 11px; z-index: 1; width: 36px; height: 36px; border: 1px solid #c4b9a5; background: var(--paper); border-radius: 50%; font-size: 1.55rem; line-height: 1; }
.close:hover { background: #e7dfcd; }
.detail-art { background: radial-gradient(ellipse, #5b6149, #282f25); display: grid; place-items: center; min-height: 270px; }
.detail-art .cover { width: min(66%, 166px); }
.detail-info { padding: 34px 31px 25px; }
.detail-info h2 { font-size: clamp(2.3rem, 5vw, 3.7rem); }
.detail-author { margin: 9px 0 15px; color: var(--muted); }
.description { margin-bottom: 18px; line-height: 1.53; }
.book-facts { display: grid; grid-template-columns: 1.4fr .65fr .65fr; gap: 9px; background: #ece3d3; padding: 12px; border-radius: 8px; margin: 0 0 16px; }
.book-facts dt { color: #665a4c; font-size: .75rem; }
.book-facts dd { margin: 2px 0 0; font-size: .88rem; font-weight: 650; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); border-radius: 9px; background: #25271f; color: #fff8e9; padding: 11px 16px; z-index: 4; max-width: calc(100% - 24px); width: max-content; box-shadow: 0 3px 12px #0004; }
@media (max-width: 900px) {
  .wrap { width: calc(100% - 48px); }
  .controls { flex-wrap: wrap-reverse; }
  .search { flex: 1; width: auto; }
  .books { --shelf-height: clamp(158px, 22vw, 250px); }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 28px); }
  .top { min-height: 62px; }
  .identity { font-size: 1rem; gap: 7px; }
  .brand-icon { width: 31px; height: 31px; border-radius: 8px; }
  .outline { min-height: 37px; padding-inline: 9px; }
  .hero { min-height: 315px; border-radius: 12px; align-items: flex-start; }
  .hero-art { width: 45%; height: 62%; top: auto; bottom: 0; right: 1%; }






  .collection { margin-top: 26px; }
  .collection-heading { gap: 6px; margin-bottom: 14px; }
  .filters { gap: 6px; }
  .filter { font-size: .79rem; padding: 6px 9px; }
  .books { grid-template-columns: repeat(2, minmax(0, 1fr)); background: transparent; --shelf-height: clamp(177px, 53vw, 280px); row-gap: 10px; }
  .books .book { background: #fbf6eb; }
  .cover { width: min(76%, 150px); }
  .book-title { font-size: 1.06rem; }
  .book-meta { padding-inline: 5px; }
  .detail-art { min-height: 174px; }
  .detail-art .cover { width: 94px; }
  .detail-info { padding: 20px 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}


.hero {
  min-height: 260px;
}





.collection-heading {
  align-items: center;
}
.surprise:disabled {
  cursor: default;
  opacity: .5;
}
.book {
  --lean: -2.5deg;
  --cover-scale: .92;
}
.book:nth-child(5n + 2) { --lean: 1.5deg; --cover-scale: 1; }
.book:nth-child(5n + 3) { --lean: -1deg; --cover-scale: .95; }
.book:nth-child(5n + 4) { --lean: 2.3deg; --cover-scale: .91; }
.book:nth-child(5n + 5) { --lean: -2deg; --cover-scale: 1; }
.book .cover {
  transform: rotate(var(--lean)) scale(var(--cover-scale));
  box-shadow: 6px 6px 12px #0c130ba0, 3px 0 #d2b694, 5px 1px #4c382a;
}
.book:is(:hover, :focus-visible) .cover {
  transform: translateY(-8px) rotate(0) scale(1);
  box-shadow: 9px 12px 18px #0c130ba0, 4px 0 #e1c9a8, 6px 1px #4c382a;
}
.book-spread {
  position: relative;
  display: grid;
  grid-template-columns: 34% 1fr;
  transform-origin: center;
  touch-action: pan-y;
  user-select: none;
}
.book-spread::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 34%;
  width: 11px;
  background: linear-gradient(90deg, #42301d2e, transparent);
  pointer-events: none;
}
.detail-info {
  padding-top: 38px;
}
.detail-art {
  padding: 16px;
}
.page-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 49px;
  padding-inline: 18px;
  border-top: 1px solid #d4c5af;
  background: #eee5d5;
  color: #5c5142;
  font-size: .88rem;
  font-variant-numeric: tabular-nums;
}
.page-button {
  width: max-content;
  min-height: 36px;
  padding-inline: 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-weight: 650;
}
.page-button:hover { background: #e3d6c0; }
.page-button:last-child { justify-self: end; }
@media (max-width: 650px) {
  .hero {
    min-height: 224px;
    align-items: center;
  }
  .hero-art {
    width: 39%;
    height: 100%;
    right: 2%;
  }


  .book-spread { grid-template-columns: 1fr; }
  .book-spread::after { display: none; }
  .detail-art { min-height: 158px; }
  .detail-info { padding: 19px 16px; }
  .detail-info h2 { font-size: clamp(2rem, 8vw, 3.2rem); }
  .page-controls { position: sticky; bottom: 0; z-index: 1; }
}

.page-stack {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  touch-action: pan-y;
  background: var(--paper);
}
.page-stack.can-turn { cursor: grab; }
.page-stack.turning { cursor: grabbing; }
.book-spread {
  z-index: 1;
  background: var(--paper);
}
.book-spread.underlay {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-stack.can-turn:not(.turning)::after {
  content: "";
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  width: 17px;
  height: 17px;
  background: linear-gradient(135deg, #fff7e8 48%, #d6c6ae 53%, #f1e6d5 71%);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}
#page-roll {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.detail-translator {
  margin: -10px 0 15px;
  font-size: .83rem;
  color: var(--muted);
}
.book-facts a {
  text-underline-offset: .2em;
  text-decoration-color: #9c8c75;
}
.book-facts a:hover { color: var(--rust); }
.borrow-button {
  display: block;
  width: 100%;
  min-height: 45px;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--green);
  color: #fff8e8;
  font-weight: 700;
}
.borrow-button:hover { background: #303926; }
/* The hardback opens at its cloth hinge, leaving the right-hand page in place. */
.hero-art {
  perspective: 900px;
  right: 4%;
  width: 40%;
}
.book-orbit {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(94%, 408px);
  aspect-ratio: 1;
  border: 1px solid #fadb9b58;
  border-radius: 50%;
  box-shadow: 0 0 0 20px #ffd28e17, 0 0 0 41px #ffd28e10;
  transform: translate(-50%, -50%) scaleY(.72) rotate(-13deg);
  pointer-events: none;
}
.hero-book {
  position: relative;
  z-index: 2;
  display: block;
  width: clamp(210px, 31vw, 365px);
  aspect-ratio: 1.65;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: none;
  color: #532918;
  perspective: 800px;
  pointer-events: auto;
}
.hero-book:focus-visible { outline-color: var(--cream); }
.hardback {
  position: absolute;
  inset: 0;
  transform: translateX(-25%) rotate(-9deg);
  transition: transform .55s cubic-bezier(.23,.74,.24,1);
}
.hero-book:hover:not([aria-pressed="true"]) .hardback {
  transform: translate(-25%, -5px) rotate(-12deg);
}
.hero-book[aria-pressed="true"] .hardback { transform: rotate(-5deg); }
.book-leaf, .book-board, .board-front, .board-inside {
  position: absolute;
  inset: 0;
  display: block;
}
.book-leaf, .book-board { left: 50%; }
.book-leaf {
  top: 3px;
  bottom: 4px;
  border-radius: 1px 5px 5px 0;
  border: 1px solid #d2a674;
  padding: 20% 7% 9% 6%;
  background:
    linear-gradient(90deg, #6c412742, transparent 13%),
    repeating-linear-gradient(0deg, #f7ddb0 0 18px, #d3a67e 19px, #f7ddb0 20px 22px);
  box-shadow: 4px 5px #c49a67, 6px 8px #692f24, 10px 16px 22px #3c190a60;
  text-align: left;
}
.book-leaf i {
  display: block;
  font: italic 650 clamp(1rem, 1.95vw, 1.62rem)/1.06 var(--serif);
  letter-spacing: -.045em;
}
.book-signature { display: block; margin-top: 10px; font: italic 1rem var(--serif); }
.dog-ear {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 23px;
  height: 23px;
  background: linear-gradient(45deg, #c59c72, #fbe8c2 48%, #9c622d 50%, #a83c2b 53%);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.book-board {
  z-index: 2;
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform .60s cubic-bezier(.2,.71,.22,1);
}
.hero-book[aria-pressed="true"] .book-board { transform: rotateY(-180deg); }
.board-front, .board-inside {
  backface-visibility: hidden;
  border: 1px solid #5b371d;
}
.board-front {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 3px 7px 7px 2px;
  color: #ffda8a;
  background:
    linear-gradient(90deg, #39241c 0 6%, #ae8c5960 7%, transparent 9%),
    repeating-linear-gradient(90deg, #fff8bb05 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg, #e6c08e0d 0 1px, transparent 1px 4px),
    radial-gradient(ellipse at 63% 39%, #51513b, #2a2c20 77%);
  box-shadow: 3px 5px #291e15, 6px 11px 15px #3c190a55;
}
.board-front::before {
  content: "";
  position: absolute;
  inset: 12px 10px 12px 15px;
  border: 3px double #d6a55b99;
  border-radius: 2px;
}
.board-front img {
  display: block;
  position: relative;
  width: 76%;
  height: auto;
  margin-left: 5%;
  filter: drop-shadow(0 1px 0 #1b1810b5);
}
.board-inside {
  transform: rotateY(180deg);
  border-radius: 5px 2px 2px 5px;
  background:
    linear-gradient(270deg, #95664663, transparent 12%),
    radial-gradient(circle at 50% 45%, #c6a16a, #d5b582 68%);
  box-shadow: -4px 5px #68391e, -8px 15px 20px #4d1c144a;
}
.endpaper-pocket {
  position: absolute;
  left: 14%;
  right: 13%;
  bottom: 12%;
  height: 54%;
  background: linear-gradient(#99593b, #ad734a 34%, #9c593c);
  border-radius: 1px 1px 4px 4px;
  border: 1px solid #7b412b;
  box-shadow: inset 0 -3px #784128, inset 0 5px #c18b59;
}
.ribbon {
  position: absolute;
  z-index: 1;
  top: 95%;
  left: 65%;
  width: 13px;
  height: 23px;
  background: linear-gradient(90deg, #9d4434, #e4a36d 23%, #b7513d 77%, #783825);
  transform: rotate(9deg);
  transform-origin: top;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 52% 80%, 0 100%);
  transition: transform .45s;
}
.hero-book[aria-pressed="true"] .ribbon { transform: rotate(-24deg) translateX(-11px); }

/* A printed cardstock checkout card. */
#library-card {
  width: min(503px, calc(100% - 36px));
  max-height: calc(100% - 30px);
  overflow: visible;
  border: 0;
  background: transparent;
  color: #542d21;
  box-shadow: none;
}
#library-card::backdrop {
  background: #241711a6;
  backdrop-filter: blur(2px);
  transition: background .27s, backdrop-filter .27s;
  animation: card-backdrop .25s ease-out;
}
#library-card.is-closing::backdrop {
  background: #24171100;
  backdrop-filter: blur(0);
}
@keyframes card-backdrop { from { background: #24171100; backdrop-filter: blur(0); } }
.checkout-stage { position: relative; isolation: isolate; }
.checkout-card {
  position: relative;
  padding: 23px 24px 21px 27px;
  transform: rotate(-1.8deg);
  border: 1px solid #a77953;
  border-radius: 9px;
  background:
    linear-gradient(127deg, transparent 54%, #81563828 55%, #fff9e190 56%, transparent 57.2%)
      right bottom / 36% 44% no-repeat,
    radial-gradient(ellipse at 0 7%, #aa78412e, transparent 68%) left top / 32% 38% no-repeat,
    radial-gradient(ellipse at 100% 100%, #ac724438, transparent 67%) right bottom / 38% 40% no-repeat,
    repeating-linear-gradient(0deg, transparent 0 24px, #9e72641c 24px 25px),
    linear-gradient(125deg, #fcf0d9 8%, #f3dcaf 100%);
  box-shadow:
    0 2px 0 #865737,
    0 4px 0 #563723,
    4px 12px 24px #25170e70,
    inset 0 0 12px #b47f4433;
}
.checkout-card::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid #b6845a7a;
  border-radius: 5px;
  pointer-events: none;
}
#library-card[open]:not(.is-closing) .checkout-card {
  animation: deal-checkout-card .39s cubic-bezier(.19,.7,.25,1) both;
}
@keyframes deal-checkout-card {
  0% { opacity: 0; transform: translate(-16px, 31px) rotate(-9deg) scale(.95); }
  65% { opacity: 1; transform: translate(2px, -5px) rotate(-.4deg); }
  100% { opacity: 1; transform: rotate(-1.8deg); }
}
.card-fine-print {
  margin: 13px 0 0;
  padding-top: 9px;
  border-top: 1px solid #a773576f;
  color: #755646;
  font: 400 .875rem/1.4 "Courier New", monospace;
}
.checkout-card .close {
  background: #fcf1d6;
  border-color: #af8668;
  right: 15px;
  top: 13px;
}
.checkout-card h2 {
  padding: 0 35px 9px 0;
  border-bottom: 2px double #a773576f;
  color: #795040;
  font: 700 .74rem/1.23 "Courier New", monospace;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.card-entry {
  position: relative;
  min-height: 134px;
  margin: 15px 0 15px;
  padding-right: 135px;
  display: grid;
  align-items: center;
}
.card-book { display: grid; row-gap: 10px; }
#card-book-title {
  display: block;
  position: relative;
  font: 700 clamp(1.5rem, 6vw, 2.3rem)/1.02 var(--serif);
  letter-spacing: -.04em;
  color: #4c3026;
}
#card-book-title img {
  display: none;
  max-width: 100%;
  max-height: 99px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
}
#card-book-title.has-lettering img { display: block; }
#card-book-title.has-lettering > span {
  position: absolute;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}
#card-book-author {
  display: block;
  font: 700 clamp(.78rem, 2.6vw, .99rem)/1.18 "Courier New", monospace;
  letter-spacing: -.02em;
  color: #684041;
}
#copy-message {
  width: 100%;
  background: #434830;
  border: 1px solid #36381f;
  border-radius: 4px;
}
#copy-message:hover { background: #343820; }
.copy-seal {
  position: absolute;
  top: 4px;
  right: -1px;
  width: 120px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 2px dashed #c52520;
  border-radius: 50%;
  color: #b11816;
  font: 800 .77rem/1.01 var(--sans);
  letter-spacing: -.015em;
  text-transform: uppercase;
  transform: rotate(11deg);
  text-shadow: .24px 0 currentColor;
  animation: ink-stamp .35s cubic-bezier(.19,.75,.29,1.24) both;
}
.copy-seal::before, .copy-seal::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.copy-seal::before { inset: 3px; border: 2px solid #c7251c; transform: rotate(-8deg) scaleX(.98); }
.copy-seal::after {
  inset: 12px 8px;
  background: repeating-linear-gradient(100deg, #f6d9ab36 0 1px, transparent 1px 7px);
}
@keyframes ink-stamp {
  from { transform: translate(2px, -8px) rotate(3deg) scale(1.46); opacity: 0; filter: blur(1px); }
  72% { transform: rotate(13deg) scale(.96); opacity: 1; filter: none; }
}
@media (max-width: 650px) {
  .hero { min-height: 257px; align-items: flex-start; }
  .hero-text { width: 100%; padding: 19px 17px; }
  .hero-text p { font-size: clamp(1.53rem, 5.9vw, 2.28rem); margin-bottom: 8px; }
  .hero-text figcaption { font-size: 1.3rem; }
  .hero-art { top: 108px; right: 3%; bottom: 5px; width: 76%; height: auto; }
  .hero-book { width: min(232px, 100%); }
  .book-leaf { padding-top: 17%; }
  .book-leaf i { font-size: 1.02rem; }
  .book-signature { font-size: .75rem; margin-top: 5px; }
  .checkout-card { padding: 22px 18px 21px 24px; }
  .card-entry { min-height: 109px; padding-right: 100px; margin-block: 15px; }
  #card-book-title img { max-height: 80px; }
  .copy-seal { width: 91px; top: 7px; font-size: .59rem; gap: 3px; }
}
@media (max-height: 360px) {
  #library-card { overflow: auto; }
}
@media (prefers-reduced-motion: reduce) {
  #library-card::backdrop, #library-card[open] .checkout-card, .copy-seal { animation: none !important; }
}
