/* JoySenders enhancements (3 Dec 2026). Additive to style.css: motion, calls to action, progressive loading. */
/* Linked photo and title */
.item .phl{display:block;position:absolute;inset:0;z-index:2}
.item .ph{overflow:hidden}
.item .ph img{transition:transform .5s cubic-bezier(.2,.7,.2,1)}
.item:hover .ph img,.item:focus-within .ph img{transform:scale(1.05)}
.item .tl{color:inherit;text-decoration:none;background:linear-gradient(var(--red),var(--red)) 0 100%/0 2px no-repeat;transition:background-size .3s,color .2s}
.item .tl:hover,.item .tl:focus-visible{color:var(--red);background-size:100% 2px}
.item .tl:focus-visible,.item .go:focus-visible,.more-btn:focus-visible,.strip a:focus-visible,.rel-list a:focus-visible{outline:2px solid var(--holly);outline-offset:3px}
/* Card hover lift */
.item{transition:transform .3s cubic-bezier(.2,.7,.2,1),box-shadow .3s}
.item:hover{transform:translateY(-4px)}
/* Button style call to action on every card */
.item .go{display:inline-flex;align-items:center;gap:6px;border:0;background:var(--holly);color:var(--paper);padding:9px 14px 8px;border-radius:999px;font:700 14px/1 var(--t);transition:background .2s,transform .2s,box-shadow .2s}
.item .go:hover{background:var(--red);color:#fff;transform:translateX(2px);box-shadow:0 6px 14px -8px rgba(33,28,24,.6)}
.item .act{gap:8px}
/* Reveal on scroll (only when JS runs and motion is allowed) */
.rv-on .items .item:not(.in),.rv-on .sec-h:not(.in),.rv-on .related li:not(.in),.rv-on .strip:not(.in),.rv-on .coupon:not(.in){opacity:0;transform:translateY(18px)}
.rv-on .items .item.in,.rv-on .sec-h.in,.rv-on .related li.in,.rv-on .strip.in,.rv-on .coupon.in{opacity:1;transform:none;transition:opacity .6s ease var(--rd,0ms),transform .6s cubic-bezier(.2,.7,.2,1) var(--rd,0ms)}
.rv-on .items .item.in:hover{transform:translateY(-4px);transition-delay:0ms}
/* Progressive loading */
.js .more{display:none}
.loadbar{display:none}
.js .loadbar{display:flex;flex-direction:column;align-items:center;gap:12px;padding:20px 0 8px;text-align:center}
.loadcount{margin:0;font:italic 14px/1.4 var(--t);color:var(--ink2)}
.more-btn{font:700 15px/1 var(--t);background:var(--ink);color:var(--paper);border:0;padding:12px 22px 11px;border-radius:999px;cursor:pointer;transition:background .2s,transform .2s}
.more-btn:hover{background:var(--red);transform:translateY(-2px)}
.more-btn[hidden],#loadsentinel[hidden]{display:none}
#loadsentinel{height:1px;width:100%}
/* Inline strips between batches */
.strip{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 20px;padding:14px 16px;background:var(--paper2);border-left:3px solid var(--gold);margin:8px 0 16px}
.gift-batch{margin:0}
.strip p{margin:0;font-size:14px}
.strip .sc{color:var(--red);margin-right:6px}
.strip-links{display:flex;flex-wrap:wrap;gap:6px 8px}
.strip-links a{font:700 13px/1 var(--t);text-decoration:none;border:1px solid var(--ink);padding:7px 12px 6px;border-radius:999px;transition:background .2s,color .2s}
.strip-links a:hover{background:var(--ink);color:var(--paper)}
.strip-post{border-left-color:var(--red)!important}
/* Related guides */
.rel-list{list-style:none;margin:0;padding:12px 0 0;display:grid;grid-template-columns:1fr;gap:12px}
.rel-list a{display:flex;flex-direction:column;gap:4px;height:100%;padding:14px 16px;border:1px solid var(--rule);background:#fbf7ee;text-decoration:none;transition:transform .3s,border-color .2s,box-shadow .3s}
.rel-list a:hover{transform:translateY(-3px);border-color:var(--red);box-shadow:0 10px 20px -14px rgba(33,28,24,.5)}
.rel-list .t{font:700 18px/1.2 var(--d)}
.rel-list .d{font-size:14px;color:var(--ink2);font-style:italic}
.rel-list .go2{margin-top:auto;font:700 14px/1 var(--t);color:var(--red);padding-top:6px}
@media(min-width:760px){.rel-list{grid-template-columns:repeat(3,1fr)}}
/* Hero entrance and button hovers */
@keyframes jsUp{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
.hero .kicker,.hero h1,.hero-copy,.ghead .crumb,.ghead h1,.ghead .lede{animation:jsUp .8s cubic-bezier(.2,.7,.2,1) both}
.hero h1,.ghead h1{animation-delay:.08s}.hero-copy,.ghead .lede{animation-delay:.18s}
.hero h1 .m svg path{stroke-dasharray:320;stroke-dashoffset:320;animation:jsDraw 1.1s ease .7s forwards}
@keyframes jsDraw{to{stroke-dashoffset:0}}
.btn{transition:background .2s,transform .2s,box-shadow .2s}.btn:hover{box-shadow:0 8px 16px -10px rgba(33,28,24,.6)}
.index a{transition:transform .25s}.index a:hover{transform:translateX(4px)}
@media(prefers-reduced-motion:reduce){
 *,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
 .item:hover,.rel-list a:hover,.more-btn:hover,.item:hover .ph img{transform:none!important}
 .hero h1 .m svg path{stroke-dasharray:none;stroke-dashoffset:0}
}
