/* ===== Story section as an open book (design C). Load after theme.css + home-c.css ===== */
@font-face{font-family:"Caveat";src:url(../fonts/caveat-500-latin.woff2) format("woff2");font-weight:500;font-display:swap}
.story{--bk-paper:#f7efdc;--bk-paper2:#efe3c5;--bk-ink:#2a3236;--bk-head:#13303d;--bk-gold:#9a722b;--bk-hand:"Caveat","Segoe Print","Bradley Hand",cursive;padding-top:56px;padding-bottom:64px}
/* leather cover peeking around the pages */
.book{position:relative;display:grid;grid-template-columns:1fr 1fr;padding:22px 26px 26px;border-radius:18px;
 background:radial-gradient(120% 90% at 30% 0%,#1f4048 0%,#132c33 45%,#0a1a1e 100%);
 box-shadow:inset 0 0 0 1px #2e5157,inset 0 0 0 6px #10262a,inset 0 0 0 7px #b38a3566,0 40px 70px -20px #000c,0 14px 24px #0007}
.book::before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;opacity:.35;mix-blend-mode:overlay;
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}
/* pages */
.bk-page{position:relative;color:var(--bk-ink);padding:54px 58px 56px;min-width:0;
 background-color:var(--bk-paper);
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .35 0 0 0 0 .2 0 0 0 -1.2 .6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E"),
  radial-gradient(140% 100% at 50% 0%,#fbf5e6 0%,var(--bk-paper) 55%,var(--bk-paper2) 100%)}
.bk-left{border-radius:10px 3px 3px 10px;
 background-image:linear-gradient(90deg,#0000 0,#0000 82%,#5a43201a 92%,#3a2a1247 99%,#2a1d0c66 100%),
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .35 0 0 0 0 .2 0 0 0 -1.2 .6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E"),
  linear-gradient(90deg,var(--bk-paper2) 0%,#fbf5e6 14%,var(--bk-paper) 70%);
 box-shadow:-1px 1px 0 #e8dcbc,-2px 2px 0 #c9a14a,-3px 3px 0 #ecdfbf,-4px 4px 0 #b38a35,-5px 5px 0 #e3d4ad,-6px 6px 0 #9a722b,-8px 9px 14px #0006}
.bk-right{border-radius:3px 10px 10px 3px;
 background-image:linear-gradient(270deg,#0000 0,#0000 82%,#5a43201a 92%,#3a2a1247 99%,#2a1d0c66 100%),
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' seed='9'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .35 0 0 0 0 .2 0 0 0 -1.2 .6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E"),
  linear-gradient(270deg,var(--bk-paper2) 0%,#fbf5e6 14%,var(--bk-paper) 70%);
 box-shadow:1px 1px 0 #e8dcbc,2px 2px 0 #c9a14a,3px 3px 0 #ecdfbf,4px 4px 0 #b38a35,5px 5px 0 #e3d4ad,6px 6px 0 #9a722b,8px 9px 14px #0006}
/* gutter crease */
.bk-left::after,.bk-right::before{content:"";position:absolute;top:0;bottom:0;width:1px;background:#2a1d0c40}
.bk-left::after{right:0}.bk-right::before{left:0}
/* gold ornaments */
.bk-c{position:absolute;width:58px;height:58px;pointer-events:none}
.bk-c.tl{left:14px;top:14px}.bk-c.bl{left:14px;bottom:14px;transform:scaleY(-1)}
.bk-c.tr{right:14px;top:14px;transform:scaleX(-1)}.bk-c.br{right:14px;bottom:14px;transform:scale(-1,-1)}
.bk-rule{display:block;width:220px;height:18px;margin:12px 0 18px}
/* typography */
.bk-kick{font:600 .72rem var(--text);letter-spacing:.3em;text-transform:uppercase;color:var(--bk-gold);margin:0 0 10px}
.bk-kick-r{text-align:right}
.bk-title{font-family:var(--disp);color:var(--bk-head);font-size:clamp(1.8rem,3vw,2.5rem);line-height:1.1;margin:0}
.bk-page p{font-size:.97rem;line-height:1.62;margin:0 0 12px;max-width:none}
.bk-lead{font-size:1rem}
.bk-drop{float:left;display:grid;place-items:center;width:58px;height:58px;margin:5px 14px 2px 0;font-family:var(--disp);font-size:2.4rem;line-height:1;color:#f0d58c;border-radius:4px;background:radial-gradient(circle at 35% 30%,#1f4048,#10262a);box-shadow:0 0 0 1.5px #b38a35,0 0 0 4px var(--bk-paper),0 0 0 5px #b38a3599}
.bk-h3{font-family:var(--disp);color:var(--bk-head);font-size:1.15rem;margin:18px 0 10px;display:flex;align-items:center;gap:12px}
.bk-h3::after{content:"";flex:1;height:1px;background:linear-gradient(90deg,#b38a35,#b38a3500)}
.bk-hard{list-style:none;margin:0;padding:0;display:grid;gap:8px;counter-reset:h}
.bk-hard li{display:grid;grid-template-columns:34px 1fr;gap:12px;align-items:center;font-size:.93rem;line-height:1.45}
.bk-hard svg{width:34px;height:34px;padding:8px;border-radius:50%;fill:#f0d58c;background:radial-gradient(circle at 35% 30%,#1f4048,#10262a);box-shadow:0 0 0 1.5px #b38a35,0 0 0 3.5px var(--bk-paper),0 0 0 4.5px #b38a3566}
.bk-quote{margin:2px 0 14px;padding:4px 0 4px 22px;border-left:2px solid #b38a35;font-family:var(--disp);font-size:1.25rem;line-height:1.4;color:var(--bk-head);position:relative}
.bk-links{display:flex;flex-wrap:wrap;gap:6px 20px;margin:14px 0 0!important}
.bk-links a,.bk-read{display:inline-block;font:600 .9rem var(--text);color:#7a5a1e;text-decoration:none;border-bottom:1px solid #b38a35}
.bk-foot{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-top:20px}.bk-foot .bk-read{margin-bottom:4px}
.bk-sign{display:grid;justify-items:start;gap:0}
.bk-script{font-family:var(--bk-hand);font-weight:500;font-size:2.5rem;line-height:1;color:#1b2f5c;transform:rotate(-4deg);margin:0 0 2px 4px}
.bk-name{font-family:var(--disp);color:var(--bk-head);font-size:1.02rem;letter-spacing:.06em;padding-top:6px;border-top:1px solid #b38a35;min-width:220px}
.bk-role{font:600 .7rem var(--text);letter-spacing:.2em;text-transform:uppercase;color:var(--bk-gold);margin-top:3px}
.bk-folio{position:absolute;bottom:22px;left:50%;transform:translateX(-50%);font-family:var(--disp);font-size:.85rem;color:var(--bk-gold);letter-spacing:.1em}
/* album */
.bk-right{display:flex;flex-direction:column}
.bk-album{position:relative;flex:1 1 auto;min-height:470px;margin:10px 0 22px}
.bk-cta{margin-top:auto;margin-bottom:6px}
.pol{position:absolute;margin:0;background:#fffdf7;padding:10px 10px 40px;box-shadow:0 1px 1px #0002,0 10px 22px -6px #3a2a1266,0 22px 30px -18px #0005;transition:transform .35s ease}
.pol img{display:block;width:100%;height:100%;object-fit:cover;filter:saturate(.92) contrast(1.02)}
.pol figcaption{position:absolute;left:0;right:0;bottom:6px;text-align:center;font-family:var(--bk-hand);font-weight:500;font-size:1.45rem;line-height:1;color:#1b2f5c}
.p1{left:0;top:6px;width:60%;aspect-ratio:3/4.35;transform:rotate(-3.5deg);z-index:1}
.p1 img{aspect-ratio:3/4;height:auto}
.p2{right:0;top:0;width:44%;transform:rotate(4deg);z-index:2;padding:8px;background:#f3ead4}
.p2 img{aspect-ratio:1;height:auto}
.p2 figcaption{position:static;margin-top:6px;font-size:1.3rem}
.p3{right:2%;top:auto;bottom:3%;width:46%;transform:rotate(-2deg);z-index:3}
.p3 img{aspect-ratio:1;height:auto}
.p3 figcaption{bottom:8px}
/* gold photo corners on the tipped-in shot */
.pol.corners::before,.pol.corners::after,.p2 img+figcaption::before,.p2 img+figcaption::after{content:""}
.pol.corners{--c:22px;background:
 linear-gradient(135deg,#b38a35 50%,#0000 50%) left top/var(--c) var(--c) no-repeat,
 linear-gradient(225deg,#c9a14a 50%,#0000 50%) right top/var(--c) var(--c) no-repeat,
 linear-gradient(45deg,#9a722b 50%,#0000 50%) left bottom/var(--c) var(--c) no-repeat,
 linear-gradient(315deg,#b38a35 50%,#0000 50%) right bottom/var(--c) var(--c) no-repeat,#f3ead4}
/* washi-style tape on the cat polaroid */
.p3::before{content:"";position:absolute;top:-12px;left:50%;width:84px;height:24px;transform:translateX(-50%) rotate(-4deg);background:linear-gradient(90deg,#d9b765b3,#f0d58cb3,#d9b765b3);box-shadow:0 1px 2px #0002}
.bk-note{position:absolute;left:3%;bottom:15%;margin:0!important;font-family:var(--bk-hand);font-weight:500;font-size:1.6rem!important;color:#1b2f5c;transform:rotate(-5deg)}
.bk-pawmark{position:absolute;left:30%;bottom:3%;width:46px;height:46px;fill:#b38a35;opacity:.35;transform:rotate(-18deg)}
.book:hover .p1{transform:rotate(-2deg) translateY(-3px)}.book:hover .p3{transform:rotate(-3deg) translateY(-3px)}
/* CTA */
.bk-cta{text-align:center;border-top:1px solid #b38a3580;padding-top:18px}
.bk-cta p{font-family:var(--disp);font-size:1.15rem;color:var(--bk-head);margin:0 0 12px}
.bk-acts{display:flex;gap:18px;justify-content:center;align-items:center;flex-wrap:wrap}
.bk-cta .btn{background:linear-gradient(120deg,#13303d,#1f4048);color:#f0d58c;box-shadow:0 0 0 1px #b38a35,0 6px 14px -4px #0006}
.bk-cta .btn:hover{background:linear-gradient(120deg,#1f4048,#13303d)}
.bk-link{font:600 .9rem var(--text);color:#7a5a1e;text-decoration:none;border-bottom:1px solid #b38a35}
.bk-about{display:inline-block;margin-top:12px;font-size:.8rem;color:#6b6a5e}
/* ribbon bookmark */
.bk-ribbon{position:absolute;z-index:5;top:14px;left:calc(50% - 11px);width:22px;height:calc(100% + 26px);pointer-events:none;
 background:linear-gradient(90deg,#0b3b40,#1f6c74 45%,#2b8790 55%,#0f4a50);clip-path:polygon(0 0,100% 0,100% 100%,50% calc(100% - 14px),0 100%);
 filter:drop-shadow(2px 3px 3px #0006)}
.bk-ribbon::before,.bk-ribbon::after{content:"";position:absolute;top:0;bottom:0;width:1.5px;background:#d9b765;opacity:.8}
.bk-ribbon::before{left:3px}.bk-ribbon::after{right:3px}
/* page-turn curl (hover) */
.bk-curl{position:absolute;right:0;bottom:0;width:26px;height:26px;border-radius:0 0 10px 0;transition:width .3s ease,height .3s ease;
 background:linear-gradient(315deg,#10262a 0 46%,#c9b78e 50%,#efe3c5 62%,#fbf5e6 100%);box-shadow:-2px -2px 5px #3a2a1240}
.bk-right:hover .bk-curl{width:58px;height:58px}
@media (prefers-reduced-motion:reduce){.pol,.bk-curl{transition:none}}
/* tablet */
@media (max-width:1060px){.bk-page{padding:46px 38px 54px}.bk-album{height:400px}}
/* mobile: one page after the other, spine on the left */
@media (max-width:820px){
 .story{padding-top:34px;padding-bottom:44px}
 .book{grid-template-columns:1fr;gap:18px;padding:12px 12px 14px 22px;border-radius:14px}
 .book::after{content:"";position:absolute;left:8px;top:14px;bottom:14px;width:2px;background:#b38a3566;border-radius:2px}
 .bk-left,.bk-right{border-radius:3px 10px 10px 3px;
  box-shadow:1px 1px 0 #e8dcbc,2px 2px 0 #c9a14a,3px 3px 0 #ecdfbf,4px 4px 0 #9a722b,6px 8px 12px #0006;
  background-image:linear-gradient(90deg,#2a1d0c55 0,#3a2a1230 3%,#0000 10%),
   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .35 0 0 0 0 .2 0 0 0 -1.2 .6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E"),
   linear-gradient(180deg,#fbf5e6,var(--bk-paper) 60%,var(--bk-paper2))}
 .bk-left::after{display:none}.bk-right::before{right:auto;left:0}
 .bk-page{padding:40px 24px 50px}
 .bk-c{width:50px;height:50px}.bk-c.tl,.bk-c.bl{left:10px}.bk-c.tl,.bk-c.tr{top:10px}.bk-c.bl,.bk-c.br{bottom:10px}.bk-c.tr,.bk-c.br{right:10px}
 .bk-left .bk-c.bl{display:none}
 .bk-kick-r{text-align:left}
 .bk-title{font-size:1.85rem}
 .bk-rule{width:180px;height:15px;margin:12px 0 18px}
 .bk-page p{font-size:.97rem}
 .bk-ribbon{left:auto;right:34px;top:6px;height:110px;width:22px}
 .bk-album{height:auto;min-height:0;flex:none;display:grid;grid-template-columns:1fr 1fr;gap:18px 14px;margin:8px 0 24px}
 .pol{position:relative;left:auto;right:auto;top:auto}
 .p1{grid-column:1/-1;justify-self:center;width:76%;aspect-ratio:auto;padding:8px 8px 34px}
 .p2{width:auto;padding:6px}.p3{width:auto;padding:7px 7px 32px;margin-top:6px}
 .pol figcaption{font-size:1.15rem}.p2 figcaption{font-size:1.1rem;margin-top:4px}
 .p3::before{width:60px;height:18px;top:-9px}
 .bk-pawmark{display:none}
 .bk-note{position:static;grid-column:1/-1;text-align:center;font-size:1.35rem!important;margin:-4px 0 0!important}
 .bk-curl{display:none}
 .bk-ribbon{left:auto}
}
