/* A book with a hinged front cover and a page that turns after it opens. */
#notes .notebook-card-art{background:radial-gradient(ellipse at 62% 40%,#f4eade 0%,#ded2c2 68%,#cfc0ac 100%);min-height:350px;display:flex;align-items:center;justify-content:center}
#notes .notebook-card-art>span{bottom:22px;left:25px}
#notes .book-scene{position:absolute;inset:0;display:grid;place-items:center;perspective:1000px;overflow:hidden}
#notes .book-shadow{position:absolute;width:61%;height:16%;left:23%;top:72%;background:rgba(35,31,29,.28);filter:blur(20px);border-radius:50%;transform:rotate(-8deg)}
#notes .book-object{position:relative;width:min(82%,380px);height:245px;transform-style:preserve-3d;transform:rotateX(17deg) rotateZ(-8deg)}
#notes .book-pages,#notes .book-cover,#notes .book-flip-page{position:absolute;left:50%;top:7%;width:45%;height:86%;border-radius:2px 8px 8px 2px;transform-origin:left center;transform-style:preserve-3d}
#notes .book-pages{background:linear-gradient(90deg,#d0c2ac 0%,#f5efdf 12%,#faf5e9 90%,#e1d6c1 100%);box-shadow:4px 6px 0 #c1b39b,6px 9px 0 #776c61,10px 15px 24px #26221b42;overflow:hidden}
#notes .book-pages:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(66,48,33,.16),transparent 16%);pointer-events:none}
#notes .book-pages i{position:absolute;right:18%;bottom:-19%;height:26%;width:8px;background:#3048fe;transform:rotate(-18deg);box-shadow:1px 2px 2px #0003}
#notes .book-printed-lines{position:absolute;inset:19% 14% 17% 16%;background:repeating-linear-gradient(to bottom,transparent 0 13px,rgba(86,91,97,.25) 13px 14px);opacity:.7}
#notes .book-cover{z-index:3;transform:rotateY(0deg);filter:drop-shadow(5px 7px 5px #241e1a35)}
#notes .book-cover-front,#notes .book-cover-inside{position:absolute;inset:0;border-radius:2px 8px 8px 2px;backface-visibility:hidden;-webkit-backface-visibility:hidden;overflow:hidden}
#notes .book-cover-front{background:linear-gradient(100deg,#09121e 0%,#1c2c45 12%,#101c2e 60%,#0b1526 100%);border:1px solid #33445e;box-shadow:inset 6px 0 9px #0006,inset -1px 0 #8a96a624;color:#e8e5de;padding:14% 11%;display:flex;flex-direction:column;align-items:start}
#notes .book-cover-front:after{content:"";position:absolute;inset:4px;border:1px solid #ffffff16;border-radius:1px 6px 6px 1px;pointer-events:none}
#notes .book-cover-front>span,#notes .book-cover-front small{font-size:clamp(5px,.52vw,7px);letter-spacing:.11em;font-weight:700;color:#aab8d7}
#notes .book-cover-front strong{font-family:Georgia,'Times New Roman',serif;font-weight:400;letter-spacing:-.04em;font-size:clamp(13px,1.5vw,21px);line-height:1.06;margin:auto 0}
#notes .book-cover-inside{transform:rotateY(180deg);background:linear-gradient(90deg,#eadfca,#fbf7ec 85%,#d7c8ae);box-shadow:inset -8px 0 12px #8a755733}
#notes .book-flip-page{z-index:4;opacity:0;background:linear-gradient(90deg,#d9ccb6,#faf6eb 15%,#f3ebd9);box-shadow:2px 3px 5px #4033292b;backface-visibility:visible;-webkit-backface-visibility:visible;transform:rotateY(0deg)}
#notes .book-spine{position:absolute;left:49%;top:7%;height:86%;width:2%;background:linear-gradient(90deg,#080f1b,#33445e,#161f30);z-index:5;box-shadow:0 2px 3px #0003}
#notes .notebook-card.is-opening .book-cover{animation:notebook-cover-open 4.4s cubic-bezier(.25,.65,.2,1) both}
#notes .notebook-card.is-opening .book-flip-page{animation:notebook-page-turn 4.4s cubic-bezier(.25,.65,.2,1) both}
@keyframes notebook-cover-open{0%,8%{transform:rotateY(0deg)}48%,100%{transform:rotateY(-178deg)}}
@keyframes notebook-page-turn{0%,47%{opacity:0;transform:rotateY(0deg)}48%{opacity:1;transform:rotateY(0deg)}83%,100%{opacity:1;transform:rotateY(-176deg)}}
/* Replace the previous cover photograph in the series header, too. */
#notes .edition-intro{background-image:url('../assets/notes-hero-notebook.webp')}
@media(max-width:750px){#notes .notebook-card-art{min-height:240px}#notes .book-object{width:min(78%,310px);height:195px}#notes .book-cover-front>span,#notes .book-cover-front small{font-size:6px}#notes .book-cover-front strong{font-size:16px}}
/* This brief, one-time page turn is requested as part of the notebook cover. */
@media(prefers-reduced-motion:reduce){
 #notes .notebook-card.is-opening .book-cover{animation:notebook-cover-open 4.4s cubic-bezier(.25,.65,.2,1) both!important}
 #notes .notebook-card.is-opening .book-flip-page{animation:notebook-page-turn 4.4s cubic-bezier(.25,.65,.2,1) both!important}
}
