/* DRAGENbooks: a real-looking black cloth book on a white square tile. */
.bk-tile { background: var(--surface); aspect-ratio: 1; border-radius: 3px; display: flex; align-items: center; justify-content: center;
           gap: 6%; padding: 10%; perspective: 900px; max-width: 360px; width: 100%; }
.bk { position: relative; background: #070708; border-radius: 2px 5px 5px 2px; transform: rotateY(-16deg); transform-origin: left center;
      box-shadow: inset 7px 0 0 #1b1b1d, inset 8px 0 0 #2a2a2d, 14px 18px 26px -10px rgba(0,0,0,.45), 4px 4px 0 -1px #dcdcdc, 5px 5px 0 -1px #cfcfcf; }
.bk::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
             background: linear-gradient(100deg, rgba(255,255,255,.06), rgba(255,255,255,0) 28%, rgba(255,255,255,0) 70%, rgba(255,255,255,.04)); }
.bk svg { display: block; width: 100%; height: 100%; }
.bk-square { width: 44%; aspect-ratio: 120 / 160; }
.bk-tile .bk-square:only-child { width: 62%; }
.bk-tall { width: 58%; aspect-ratio: 120 / 160; }
.book-photos { min-width: 0; }
.bk-tile:has(.bk-illustrated) {
  background: radial-gradient(ellipse at var(--studio-light, 34%) 12%, #fbfaf7, #f1efea 65%, #e8e5de);
  border: 1px solid #e5e1d9; border-radius: 12px;
}
.book-photos .bk-tall { width: 70%; }
#julius .book-photos > .bk-tile { padding-inline: 5%; }
#julius .book-photos > .bk-tile > .bk-square { width: 46%; }
.bk-illustrated {
  overflow: hidden; aspect-ratio: 2 / 3;
  transform: rotateY(var(--jacket-turn, -5deg)) rotateZ(var(--jacket-tilt, -1deg));
  transform-origin: center;
  box-shadow: 1px 1px #38342e, 2px 2px #d7d1c4, 3px 3px #e7e2d8, 4px 4px #b9b1a4,
              5px 5px #38342e, 7px 10px 12px -5px #2922194d, 13px 19px 30px -9px #30281f38;
}
.bk-illustrated[data-jacket="julius-cub"] { --jacket-accent: #f0d6a2; }
.bk-illustrated[data-jacket="julius-lion"] { --jacket-turn: -7deg; --jacket-tilt: .5deg; --jacket-sheen: 96deg; --jacket-accent: #ccdbe6; }
.bk-illustrated[data-jacket="fortunate-few"] { --jacket-turn: -6deg; --jacket-tilt: -.5deg; --jacket-accent: #ead0a3; }
.bk-illustrated[data-jacket="beautiful-science"] { --jacket-turn: -4deg; --jacket-tilt: -1.2deg; --jacket-sheen: 108deg; --jacket-accent: #cedcea; }
.bk-illustrated[data-jacket="flowering-human"] { --jacket-turn: -6deg; --jacket-tilt: .4deg; --jacket-accent: #edc5bb; }
.bk-illustrated[data-jacket="care-you-were-promised"] { --jacket-turn: -4deg; --jacket-tilt: -.7deg; --jacket-accent: #e3c9ae; }
.bk-tile:has([data-jacket="fortunate-few"]) { --studio-light: 30%; }
.bk-tile:has([data-jacket="flowering-human"]) { --studio-light: 39%; }
.bk-illustrated > img, .bk-illustrated > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.bk-illustrated > img { object-fit: cover; }
.bk-illustrated::before {
  content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, #06080bb3, #06080b2e 36%, transparent 49%, transparent 82%, #06080bca);
}
.bk-illustrated > svg { z-index: 2; }
.bk-front-type { fill: #f7f3eb; font-family: "Inter", Arial, sans-serif; }
.bk-title { font-weight: 550; letter-spacing: -.035em; }
.bk-title .bk-title-lead { font-weight: 650; }
.bk-label, .bk-front-imprint {
  fill: var(--jacket-accent, #e1d3bf); font-size: 11.5px; font-weight: 600; letter-spacing: .14em;
}
.bk-author { font-size: 13.5px; font-weight: 550; letter-spacing: .09em; }
.bk-front-imprint { font-size: 9.5px; letter-spacing: .25em; }
.bk-illustrated::after {
  z-index: 3; box-shadow: inset 3px 0 #ffffff20, inset 6px 0 #00000024;
  background: linear-gradient(var(--jacket-sheen, 101deg), #ffffff13, transparent 28%, transparent 84%, #ffffff10);
}
.cover-reverse { max-width: 360px; margin: 10px auto 0; }
.cover-reverse > .bk-tile { max-width: none; }
#julius .cover-reverse > .bk-tile { flex-wrap: wrap; gap: 26px; aspect-ratio: auto; }
#julius .cover-reverse .bk-back { width: 72%; }
.bk-back {
  container-type: inline-size; color: #fff7e7;
  transform: rotateY(6deg) rotateZ(calc(var(--jacket-tilt, -1deg) * -.7));
  box-shadow: -1px 1px #38342e, -2px 2px #d7d1c4, -3px 3px #e7e2d8, -4px 4px #b9b1a4,
              -5px 5px #38342e, 7px 10px 12px -5px #2922194d, 13px 19px 30px -9px #30281f38;
}
.bk-back > img { opacity: .39; }
.bk-back::before { background: linear-gradient(155deg, #080a0def 8%, #080a0dc2 48%, #080a0d45 77%, #080a0de0); }
.bk-back-copy {
  position: absolute; z-index: 2; inset: 9% 10% 7.5%; text-align: start;
  display: flex; flex-direction: column; font-family: "Inter", Arial, sans-serif;
}
.bk-back-copy p { margin: 0; color: inherit; font-size: 5.55cqw; line-height: 1.38; }
.bk-back-copy p + p {
  margin-top: 6cqw; padding-top: 5cqw; border-top: 1px solid #fff7e741;
  font-size: 4.95cqw; line-height: 1.4;
}
.bk-back-copy strong {
  display: block; margin-bottom: 2.2cqw; color: var(--jacket-accent, #e1d3bf);
  font-size: 4.1cqw; font-weight: 650; letter-spacing: .1em; text-transform: uppercase;
}
.bk-back-imprint {
  margin-top: auto; padding-top: 4cqw; color: var(--jacket-accent, #e1d3bf);
  font-size: 3.6cqw; font-weight: 650; letter-spacing: .23em;
}
.book-timeline {
  max-width: 38rem; margin: 24px auto; padding: clamp(14px, 4vw, 22px);
  border: 1px solid var(--line-hot); border-radius: 12px; background: var(--bg); text-align: start;
}
.book-timeline figcaption { font-weight: 600; }
.book-timeline dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.book-timeline dl > div { padding-block: 8px; border-top: 2px solid var(--line-hot); }
.book-timeline dl > div + div { border-color: var(--go); }
.book-timeline dt { font-family: var(--mono); font-weight: 600; }
.book-timeline dd { margin: 4px 0 0; }
