#flipbook {
  --surround: #21130d;
  --gold: #e9c9a3;
  background: radial-gradient(ellipse at 50% 48%, #503326, var(--surround) 80%);
  position: fixed;
  inset: 0;
  padding: 0;
  min-height: 0;
  color: var(--gold);
}
#sovara-reader {height:100%; display:grid; grid-template-rows:minmax(0,1fr) 52px}
#flipbook .reading-area {display:grid; place-items:center; padding:8px 12px 0; min-height:0}
#volume {
  width:min(calc(100vw - 24px), calc((100dvh - 60px) * 16 / 9));
  aspect-ratio:16 / 9;
  position:relative;
  perspective:1700px;
  isolation:isolate;
}
#flipbook .leaf-page {
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:3%;
  position:absolute;
  inset:0;
  overflow:hidden;
  background:#fbf7f1;
  container-type:size;
}
#flipbook .leaf-page img {display:block; width:var(--art-width,100%); height:auto; max-height:95cqh; object-fit:contain; flex:none}
#flipbook .leaf-page.cover {background:#1a0d08; min-height:0; height:auto}
#flipbook .leaf-page.cover img {width:100%; height:100%; max-height:none; object-fit:contain}
#flipbook .leaf-page.dark {background:#1b0e06}
#flipbook .leaf-page.page-18 img {width:90%; height:auto}
#flipbook .slot {position:absolute; top:0; bottom:0; width:50%; box-shadow:0 12px 38px #10080591}
#flipbook .slot.left {left:0}
#flipbook .slot.right {left:50%}
#flipbook .slot.solo {left:25%}
#flipbook .slot.left::after, #flipbook .slot.right::after {
  content:""; position:absolute; inset:0; pointer-events:none;
}
#flipbook .slot.left::after {background:linear-gradient(to left,#3824162a,transparent 5%)}
#flipbook .slot.right::after {background:linear-gradient(to right,#3824162a,transparent 5%)}
#flipbook .page-2 img:nth-child(1) {position:absolute; top:9%; left:9%; width:84%}
#flipbook .page-2 img:nth-child(2) {position:absolute; top:42%; right:5%; width:77%}
#flipbook .page-2 img:nth-child(3) {position:absolute; top:36%; left:3.5%; width:13%}
#flipbook .page-3 img:first-child {width:88%}
#flipbook .page-3 img:last-child {width:90%}
#flipbook .page-4 img:nth-child(1) {position:absolute; top:4%; right:5%; width:71%}
#flipbook .page-4 img:nth-child(2) {position:absolute; top:35%; right:17%; width:51%; max-height:62cqh}
#flipbook .page-4 img:nth-child(3) {position:absolute; top:8%; left:5%; width:13%; height:84%; object-fit:contain}
#flipbook .page-5 img:first-child {max-height:73cqh}
#flipbook .page-5 img:last-child {width:87%}
#flipbook .page-6 img {width:90%}
#flipbook .page-7 img:first-child {position:absolute; top:8%; left:5%; width:13%; height:84%; object-fit:contain}
#flipbook .page-7 img:last-child {position:absolute; right:5%; width:75%}
#flipbook .bio img {width:57%; max-height:44cqh}
#flipbook .services img {width:min(var(--art-width),91%)}
#flipbook .page-12 img:first-child {width:88%}
#flipbook .page-12 img:last-child {width:73%; max-height:50cqh}
#flipbook .page-13 img:nth-child(2) {width:93%}
#flipbook .page-14 img:nth-child(1) {position:absolute; top:8%; right:5%; width:66%}
#flipbook .page-14 img:nth-child(2) {position:absolute; top:18%; left:4%; width:26%; height:76%; object-fit:contain}
#flipbook .page-14 img:nth-child(3) {position:absolute; top:26%; right:4%; width:65%}
#flipbook .page-15 img:last-child {width:93%}
#flipbook .page-16 img {width:96%}
#flipbook .page-17 > img {width:92%}
#flipbook .inquiry-link {width:52%; display:block; margin-top:2%}
#flipbook .inquiry-link img {width:100%}
#flipbook .turning-sheet {
  position:absolute; top:0; bottom:0; width:50%; left:50%; z-index:2;
  transform-origin:left center; transform-style:preserve-3d;
  pointer-events:none;
}
#flipbook .turning-sheet.reverse {left:0; transform-origin:right center}
#flipbook .sheet-face {position:absolute; inset:0; backface-visibility:hidden}
#flipbook .sheet-face::after {
  content:""; position:absolute; inset:0;
  background:linear-gradient(100deg,#30201542,transparent 32%,#3020151c 85%);
  pointer-events:none;
}
#flipbook .sheet-back {transform:rotateY(180deg)}
#flipbook .book-controls {display:flex; justify-content:center; align-items:center; gap:10px}
#flipbook button {cursor:pointer}
#flipbook .book-controls output {min-width:7.6em; text-align:center; font:13px Georgia,serif; font-variant-numeric:tabular-nums}
#flipbook .book-controls button {
  color:var(--gold); border:1px solid #a88061; background:#27170fe8;
  border-radius:4px; min-height:33px; min-width:36px; font:24px/1 Georgia,serif;
}
#flipbook .book-controls :is(#back-to-cover, #full-screen) {padding:0 13px; font-size:14px}
#flipbook .book-controls #back-to-cover {margin-left:8px}
#flipbook button:disabled {opacity:.4; cursor:default}
#flipbook :focus-visible {outline:2px solid #e8ba86; outline-offset:3px}
#flipbook .letter {background:#fdf8f2}
#flipbook .standard {background:#faf6f1}
#flipbook .bio {background:#faf6f2}
#flipbook .process {background:#fefbf6}
#flipbook .page-18 {background:#1b0e06}
#flipbook .page-18 img {width:100%}
#flipbook.immersive #sovara-reader, :fullscreen #flipbook #sovara-reader {grid-template-rows:minmax(0,1fr)}
#flipbook.immersive .reading-area, :fullscreen #flipbook .reading-area {padding:0}
#flipbook.immersive #volume, :fullscreen #flipbook #volume {width:min(100vw, calc(100dvh * 16 / 9))}
#flipbook.immersive .book-controls, :fullscreen #flipbook .book-controls {
  position:absolute; z-index:3; left:50%; bottom:6px; transform:translateX(-50%);
  padding:5px 8px; border-radius:4px; background:#21130de8;
  opacity:0; transition:opacity .22s ease;
}
#flipbook.immersive:hover .book-controls, :fullscreen #flipbook:hover .book-controls,
#flipbook.immersive .book-controls:focus-within, :fullscreen #flipbook .book-controls:focus-within {opacity:1}

#flipbook .bio {padding-bottom:6%}
#flipbook .leaf-page .original-footer {position:absolute; bottom:2.25%; width:56%; max-height:6cqh}
#flipbook .page-13 {padding-bottom:6%}
#flipbook .page-13 img.original-footer {width:43%}
