/* The rest of the bound cover sits just outside the viewport. */
a.book-dock {
  position:fixed;z-index:30;right:0;top:62%;width:46px;height:130px;
  margin:0;padding:0;border:0;box-sizing:border-box;
  color:#f2d99e;text-decoration:none;touch-action:manipulation;
  transform:translateY(-50%);isolation:isolate;
}
.book-dock-cover {
  position:absolute;inset:0 -8px 0 0;display:grid;place-items:center;
  border:1px solid #23382c;border-radius:5px 0 0 4px;
  background:linear-gradient(90deg,#192d24,transparent 15%,#ffffff0c 73%,#15281d55),#30453b url('/assets/book/leather.svg') center/135px;
  box-shadow:-1px 1px #dfd5bc,-2px 2px #9f947d,-3px 3px #e9dfca,-4px 4px #304537,-5px 7px 13px #28271d40;
}
.book-dock-cover::before {content:"";position:absolute;inset:4px;border:1px solid #bba577;border-radius:2px;pointer-events:none}
.book-dock-cover b {display:block;margin:0 7px 0 0;writing-mode:vertical-rl;transform:rotate(180deg);font:600 13px/1 Baskerville,Georgia,serif;letter-spacing:.07em;text-transform:uppercase;color:#f2d99e}
.book-dock:focus-visible {outline:3px solid #dc952f;outline-offset:3px}
.book-dock-clearance {display:none}
body[data-book-launching] .book-dock,body.book-dock-reading .book-dock {pointer-events:none}
body.book-dock-reading {overflow:hidden!important}
@media(orientation:portrait){
  a.book-dock {top:auto;right:auto;bottom:0;left:50%;width:125px;height:calc(44px + env(safe-area-inset-bottom,0px));transform:translateX(-50%)}
  .book-dock-cover {inset:2px 0 -8px;border-radius:5px 6px 0 0;box-shadow:1px -1px #e9dfca,2px -2px #9f947d,3px -3px #e9dfca,4px -4px #304537,3px -7px 12px #28271d30}
  .book-dock-cover b {writing-mode:horizontal-tb;transform:none;margin:0 0 calc(7px + env(safe-area-inset-bottom,0px))}
  .book-dock-clearance {display:block;height:calc(54px + env(safe-area-inset-bottom,0px))}
  html:has(.book-dock) {scroll-padding-bottom:calc(54px + env(safe-area-inset-bottom,0px))}
}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
  .book-dock-cover {transition:translate .2s ease}
  .book-dock:hover .book-dock-cover,.book-dock:focus-visible .book-dock-cover {translate:-4px 0}
}
@media(orientation:portrait) and (hover:hover) and (prefers-reduced-motion:no-preference){
  .book-dock:hover .book-dock-cover,.book-dock:focus-visible .book-dock-cover {translate:0 -4px}
}
@media print {a.book-dock,.book-dock-clearance {display:none!important}}
