/* Illustrated family album. Artwork retains its original aspect ratio.
   The frame and portraits are independent of the Remotion book timeline. */
.cozy .cozy-intro.sketch-story{max-width:1720px;width:calc(100% - 36px);padding:50px 3.5% 40px;grid-template-columns:minmax(330px,.64fr) minmax(0,1.36fr);margin-bottom:22px}
.sketch-story .book-copy{padding:0 0 0 1%;z-index:2}
.cozy .sketch-story .book-copy h1{font-size:clamp(51px,4.65vw,76px);line-height:1.05}
.sketch-story .book-shell{--sketch-top:60px;position:relative;z-index:1;width:116%;margin-left:-5%;margin-top:-65px;padding-top:var(--sketch-top)}
/* Coordinates share the book stage's proportions. The open middle gives the
   rising leaf space; the larger side drawings sit close to the resting book. */
.product-sketches{position:absolute;z-index:1;top:var(--sketch-top);left:0;right:0;aspect-ratio:16/11;pointer-events:none;user-select:none}
.product-sketch-set{position:absolute;inset:0}
.product-pencil{position:absolute;width:var(--size);height:auto;left:var(--x);top:var(--y);transform:translate(-50%,-50%) rotate(var(--angle));aspect-ratio:1;overflow:visible;stroke:#718a94;stroke-width:1.35;stroke-linecap:round;stroke-linejoin:round;opacity:.5}
.pencil-slot-0{--size:13.5%;--x:17%;--y:25%;--angle:-14deg}
.pencil-slot-1{--size:10.5%;--x:24%;--y:12.5%;--angle:9deg;stroke:#ac926c}
.pencil-slot-2{--size:12.5%;--x:59%;--y:10%;--angle:-9deg}
.pencil-slot-3{--size:10.5%;--x:81%;--y:19%;--angle:11deg;stroke:#ac926c}
.pencil-slot-4{--size:14%;--x:86%;--y:34%;--angle:-12deg}
/* Each spread has a composed, repeatable arrangement, not random positions.
   Percentages follow the stage so the free space around the leaf scales too. */
.product-sketch-set[data-category=dogs] .pencil-slot-0{--size:14%;--x:13%;--y:33%;--angle:12deg}
.product-sketch-set[data-category=dogs] .pencil-slot-1{--size:12%;--x:68%;--y:11%;--angle:-16deg}
.product-sketch-set[data-category=dogs] .pencil-slot-2{--size:14%;--x:27%;--y:13%;--angle:-10deg}
.product-sketch-set[data-category=dogs] .pencil-slot-3{--size:12%;--x:85%;--y:21%;--angle:9deg}
.product-sketch-set[data-category=dogs] .pencil-slot-4{--size:12%;--x:88%;--y:36%;--angle:8deg}
.product-sketch-set[data-category=birds] .pencil-slot-0{--size:11.5%;--x:22%;--y:17%;--angle:-12deg}
.product-sketch-set[data-category=birds] .pencil-slot-1{--size:13%;--x:78%;--y:14%;--angle:5deg}
.product-sketch-set[data-category=birds] .pencil-slot-2{--size:12.5%;--x:12%;--y:36%;--angle:-13deg}
.product-sketch-set[data-category=birds] .pencil-slot-3{--size:11%;--x:56%;--y:10%;--angle:8deg}
.product-sketch-set[data-category=birds] .pencil-slot-4{--size:12%;--x:86%;--y:32%;--angle:13deg}
.product-sketch-set[data-category=small] .pencil-slot-0{--size:15%;--x:18%;--y:24%;--angle:-8deg}
.product-sketch-set[data-category=small] .pencil-slot-1{--size:12%;--x:32%;--y:9%;--angle:12deg}
.product-sketch-set[data-category=small] .pencil-slot-2{--size:12.5%;--x:75%;--y:11%;--angle:-12deg}
.product-sketch-set[data-category=small] .pencil-slot-3{--size:11%;--x:88%;--y:26%;--angle:17deg}
.product-sketch-set[data-category=small] .pencil-slot-4{--size:11%;--x:9.5%;--y:36%;--angle:-8deg}
.album-dedication{display:block;width:230px;max-width:65%;height:auto;aspect-ratio:580/275;margin:0 0 12px 28px}
.story-line{display:block;white-space:nowrap}
.story-word{display:inline-block;animation:album-word-write .65s cubic-bezier(.16,1,.3,1) both}
.book-copy[data-intro-ready=false] .story-word,.book-copy[data-intro-ready=false] .album-underline path{animation-play-state:paused}
.word-two{animation-delay:.12s}.word-three{animation-delay:.3s}.word-four{animation-delay:.48s}
.story-last{position:relative;width:max-content;padding-bottom:8px}
.album-underline{position:absolute;width:101%;height:20px;left:0;bottom:-6px;stroke:#c99348;stroke-width:1.4;stroke-linecap:round}
.album-underline path{stroke-dasharray:1;animation:album-pencil-write 1.1s .65s ease-out both}
.album-underline path+path{opacity:.4;stroke-width:.7;animation-delay:.85s}
.sketch-story .book-copy>p{margin:25px 0 24px;font-size:clamp(17px,1.4vw,22px);max-width:none}
.album-frame{position:absolute;inset:22px 8px 18px;z-index:3;pointer-events:none;user-select:none}
.album-frame-lines{display:block;width:100%;height:100%;overflow:visible;stroke:#6388a7;stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round;opacity:.86}
.album-frame-second{stroke-width:.85;opacity:.73}.album-frame-faint{stroke-width:.5;opacity:.4}
.album-corner-leaf{position:absolute;top:-7px;left:30px;width:104px;height:auto;aspect-ratio:510/405}
.album-corner-star{position:absolute;right:45px;top:5px;width:54px;height:auto;aspect-ratio:400/420}
.album-pets{margin-top:26px;width:min(430px,105%);position:relative;pointer-events:auto}
.album-pets-row{display:grid;grid-template-columns:1.1fr 1fr .75fr .9fr;align-items:end;gap:3px;position:relative;padding:0 23px;min-height:103px}
.album-pet{display:block;align-self:end;position:relative;border:0;padding:3px 0;margin:0;background:transparent;color:inherit;cursor:pointer;min-width:0;min-height:44px;border-radius:35%;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.album-pet-art{display:block;width:100%;height:auto;overflow:hidden;transform-origin:50% 94%}
.album-pet:hover .album-pet-art{filter:drop-shadow(0 1px 1px #94806212)}
.hero-book .album-pet:focus-visible{outline:2px dashed #698aa4;outline-offset:5px}
.album-pets-caption{display:block;width:94%;height:auto;aspect-ratio:620/100;margin:1px auto 0}
.album-pets-sprig{position:absolute;bottom:0;width:43px;height:auto;aspect-ratio:510/405;filter:hue-rotate(-100deg) saturate(.4);opacity:.8;pointer-events:none}
.sprig-left{left:-2px;transform:rotate(-65deg)}.sprig-right{right:-2px;transform:rotate(5deg)}
@keyframes album-word-write{from{clip-path:inset(-5% 100% -5% 0);opacity:.25}to{clip-path:inset(-5% -5% -5% 0);opacity:1}}
@keyframes album-pencil-write{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}

@media(min-width:1700px){
  .cozy .cozy-intro.sketch-story{padding-top:55px;padding-bottom:45px}
  .album-dedication{width:250px}
  .album-pets{margin-top:30px}
}
@media(min-width:761px) and (max-width:1050px){
  .cozy .cozy-intro.sketch-story{width:calc(100% - 20px);grid-template-columns:minmax(260px,.7fr) minmax(0,1.3fr);padding:50px 3.5% 30px}
  .cozy .sketch-story .book-copy h1{font-size:clamp(39px,4.7vw,51px)}
  .album-dedication{width:175px;margin-left:20px;margin-bottom:10px}
  .album-corner-leaf{width:77px;left:22px;top:0}
  .album-corner-star{width:43px;right:32px}
  .sketch-story .book-copy>p{font-size:15px;max-width:16em;margin-top:20px}
  .sketch-story .book-shell{--sketch-top:25px;width:104%;margin-left:-1%;margin-top:20px}
  .album-pets{width:100%;margin-top:23px}
  .album-pets-row{padding:0 15px;min-height:76px;gap:1px}
  .album-pets-sprig{width:29px}
  .album-pets-caption{width:100%}
  .sketch-story .book-tabs{gap:clamp(8px,1.3vw,18px)}
  .sketch-story .book-tab{font-size:13px}
}
@media(max-width:760px){
  .cozy .cozy-intro.sketch-story{width:calc(100% - 16px);padding:44px 0 40px;gap:0;margin-bottom:18px}
  .sketch-story .book-copy{padding:0 26px}
  .album-frame{inset:16px 0 12px}
  .album-frame-lines{stroke-width:1}
  .album-corner-leaf{width:66px;left:19px;top:-2px}
  .album-corner-star{width:37px;right:25px;top:4px}
  .album-dedication{width:168px;max-width:70%;margin:0 0 12px 18px}
  .cozy .sketch-story .book-copy h1{font-size:clamp(35px,8.3vw,54px);line-height:1.08;max-width:none}
  .story-line{display:inline;white-space:normal}
  .story-line:first-child{display:block;white-space:nowrap}
  .story-line:nth-child(2)::after{content:' '}
  .story-last{display:inline-block;padding-bottom:4px}
  .album-underline{height:14px;bottom:-4px}
  .sketch-story .book-copy>p{font-size:15px;margin:21px 0 19px;max-width:20em}
  .album-pets{width:min(360px,100%);margin-top:24px}
  .album-pets-row{padding:0 18px;min-height:82px;gap:2px}
  .album-pets-sprig{width:34px}
  .album-pets-caption{width:100%;max-width:350px}
  .sketch-story .book-shell{--sketch-top:20px;width:100%;margin:3px 0 0}
  .product-pencil{stroke-width:1.4}
  .sketch-story .book-navigation{padding:0 12px}
  .sketch-story .book-under{margin-top:5px}
}
@media(max-width:360px){
  .sketch-story .book-copy{padding:0 23px}
  .album-dedication{width:150px}
  .cozy .sketch-story .book-copy h1{font-size:34px}
  .sketch-story .book-copy>p{font-size:14px}
  .album-pets-row{padding:0 14px;min-height:70px}
  .album-pets-sprig{width:28px}
  .sketch-story .book-tabs{gap:7px}
  .sketch-story .book-tab{font-size:11px}
}
@media(prefers-reduced-motion:reduce){
  .story-word,.album-underline path{animation:none}
  .album-pet:hover .album-pet-art{filter:none}
}
