/* =========================================================================
   Homepage only — implements the client-approved homepage design.
   Every rule is scoped to body.home so other pages are unaffected.
   Colours: only the client palette (base.css): white, cream #FFF8E7,
   terracotta #E58677, yellow #F5C850, sky #99CCE1, sage #87AF59,
   soft pink #EDA8A4, black text.
   ========================================================================= */

body.home{background:var(--white);color:var(--black)}
body.home .wrap{max-width:1220px}
body.home .section{padding-block:40px}
body.home main h2{font-family:var(--f-display);font-weight:700;font-size:var(--fs-title);color:var(--black);line-height:1.12}
body.home .heading-row{display:flex;justify-content:space-between;align-items:baseline;gap:16px;margin-bottom:18px}
body.home .heading-row .text-link{font-weight:600;font-size:.98rem;color:var(--black);text-decoration:underline;text-decoration-color:var(--terracotta);text-decoration-thickness:2px;text-underline-offset:5px}
body.home .arrow-terracotta{color:var(--terracotta);text-decoration:none;display:inline-block;margin-left:2px}

/* Buttons used on the homepage */
body.home .btn-terracotta{background:var(--terracotta);color:var(--black);border:1.5px solid var(--terracotta);border-radius:8px;font-weight:600}
body.home .btn-terracotta:hover{background:var(--soft-pink);border-color:var(--soft-pink)}
body.home .btn-outline{background:var(--white);color:var(--black);border:1.5px solid var(--terracotta);border-radius:8px;font-weight:600}
body.home .btn-outline:hover{background:var(--cream)}
body.home .btn:focus-visible,body.home .card-add:focus-visible,body.home .age-tab:focus-visible{outline:3px solid var(--black);outline-offset:2px}

/* ---------- Hero: two columns ---------- */
body.home .hero-split{position:relative;background:var(--cream);overflow:hidden;padding:0;border:0}
body.home .hero-branch{position:absolute;top:28px;width:78px;height:330px;z-index:1;pointer-events:none}
body.home .hero-branch-left{left:-6px}
body.home .hero-branch-right{right:-6px}
body.home .branch-stem{fill:none;stroke:var(--sage);stroke-width:2.6;stroke-linecap:round}
body.home .branch-leaves path{fill:var(--sage)}
body.home .hs-grid{position:relative;z-index:2;display:grid;grid-template-columns:minmax(0,46fr) minmax(0,54fr);gap:28px;align-items:center;min-height:488px;padding:34px 70px 30px 92px}
body.home .hs-copy{text-align:left;max-width:none;margin:0}
body.home .hs-copy h1{position:relative;font-family:var(--f-display);font-weight:700;font-size:clamp(2.6rem,4.3vw,3.55rem);line-height:1.12;letter-spacing:-.01em;color:var(--black);margin:0 0 18px}
body.home .hero-italic{font-style:italic;font-weight:600}
body.home .hero-underline{position:relative;display:inline}
body.home .hero-underline::after{display:none}
body.home .hero-italic .hero-underline{background:none;text-decoration:underline;text-decoration-color:var(--terracotta);text-decoration-thickness:3px;text-underline-offset:9px;text-decoration-skip-ink:none}
body.home .hs-sparkle{position:absolute;width:30px;height:30px;margin:-6px 0 0 4px;fill:none;stroke:var(--yellow);stroke-width:2.6;stroke-linecap:round}
body.home .hs-copy .hero-sub{font-size:1.02rem;line-height:1.65;color:var(--black);max-width:47ch;margin:0 0 26px}
body.home .hero-actions{display:block}
body.home .hero-ctas{display:flex;gap:14px;flex-wrap:wrap;justify-content:flex-start;margin:0 0 20px}
body.home .hero-ctas .btn{min-height:52px;padding:0 1.6em;font-size:1rem}
body.home .hero-browse{margin:0;padding-left:96px;font-size:.98rem;color:var(--black);text-align:left}
body.home .hero-browse-link{color:var(--black);font-weight:600;text-decoration:underline;text-decoration-color:var(--black);text-underline-offset:4px}
body.home .hero-browse-link:hover{text-decoration-color:var(--terracotta)}

/* collage */
body.home .hs-collage{position:relative;height:436px}
body.home .hs-blob{position:absolute;z-index:0;border-radius:46% 54% 42% 58% / 55% 45% 55% 45%}
body.home .hs-blob-sky{left:-3%;top:36%;width:42%;height:60%;background:var(--sky)}
body.home .hs-blob-yellow{left:58%;top:6%;width:34%;height:50%;background:var(--yellow);border-radius:58% 42% 50% 50% / 40% 60% 40% 60%}
body.home .hs-heart{position:absolute;z-index:1;fill:var(--soft-pink)}
body.home .hs-heart-a{width:20px;height:18px;left:4%;bottom:0;fill:var(--terracotta)}
body.home .hs-heart-b{width:16px;height:15px;right:-4%;top:-2%}
body.home .hs-books{position:absolute;inset:0;z-index:2}
body.home .sb{position:absolute;bottom:auto;display:block;width:auto;padding:0;background:none;border:0;cursor:pointer;transform:rotate(var(--rot,0deg));transform-origin:50% 50%;transition:transform .25s var(--ease-out)}
body.home .sb-lift{display:block;overflow:hidden;border-radius:6px;aspect-ratio:3/4;box-shadow:0 12px 24px -10px rgba(0,0,0,.35),0 3px 8px -2px rgba(0,0,0,.15)}
body.home .sb img{display:block;width:100%;height:100%;aspect-ratio:3/4;object-fit:cover;transform:scale(1.3);box-shadow:none;border-radius:0}
body.home .sb:hover,body.home .sb:focus-visible{transform:rotate(var(--rot,0deg)) translateY(-6px)}
body.home .sb:hover img{transform:scale(1.3)}
body.home .sb:focus-visible{outline:3px solid var(--black);outline-offset:4px}
body.home .sb-s1{left:3%;top:1%;width:27%;--rot:-6deg;z-index:2}
body.home .sb-lead{left:32%;top:3%;width:38%;--rot:3deg;z-index:4}
body.home .sb-s2{left:6%;top:44%;width:27%;--rot:-10deg;z-index:5}
body.home .sb-s3{left:72%;top:24%;width:25%;--rot:8deg;z-index:3}
body.home .hs-caption{position:absolute;left:44%;top:79%;z-index:6;margin:0;display:grid;justify-items:center;text-align:center;line-height:1.35}
body.home .hs-caption em{font-family:var(--f-display);font-style:italic;font-weight:600;font-size:1rem}
body.home .hs-caption span{font-size:.88rem}
body.home .hs-arrow{position:absolute;left:6%;top:-48px;width:30px;height:42px;fill:none;stroke:var(--black);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* ---------- Service strip (R03) ---------- */
body.home .trust-band{background:var(--white);border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding-block:22px}
body.home .trust-badges{display:grid;grid-template-columns:repeat(5,1fr);align-items:stretch;gap:0;list-style:none;margin:0;padding:0}
body.home .trust-badges li{position:relative;display:flex;align-items:center;gap:12px;padding:8px 14px;border-left:none}
body.home .trust-badges li:not(:first-child)::before{content:"";position:absolute;left:0;top:4px;bottom:4px;width:1px;background:var(--line)}
body.home .trust-badges .tb{width:38px;height:38px;flex:none}
body.home .trust-badges div{display:flex;flex-direction:column;justify-content:flex-start;min-width:0;flex:1}
body.home .trust-badges strong{display:block;font-size:.875rem;font-weight:700;line-height:1.3;color:var(--black);text-wrap:balance}
body.home .trust-badges small{display:block;font-size:.8rem;color:var(--black);line-height:1.35;margin-top:3px;text-wrap:balance}

/* ---------- Find the right book (R04) ---------- */
body.home .finder-section{background:var(--white);padding-block:22px 18px}
body.home .finder-heading-row{margin-bottom:16px}
body.home .finder-card{background:var(--cream);border:2px solid var(--yellow);border-radius:12px;padding:20px 26px;max-width:none;justify-content:flex-start;gap:18px}
body.home .finder-leaf{width:44px;height:84px}
body.home .finder-leaf-right{margin-left:auto}
body.home .finder-inner{flex:1;text-align:left}
body.home .finder-inner h2{display:none}
body.home .finder-line{justify-content:flex-start;gap:14px;font-size:1.05rem;white-space:nowrap;flex-wrap:nowrap}
body.home .finder-pick select{width:170px;border:1.5px solid var(--line-warm);border-radius:8px;padding:10px 34px 10px 12px;background-color:var(--white);font-size:.98rem}
body.home .finder-pick select:focus{border-color:var(--terracotta);outline:none;box-shadow:0 0 0 3px var(--soft-pink)}
body.home .finder-line .btn-terracotta{padding:12px 26px;font-size:1rem}
body.home .finder-results:not(:empty){margin-top:22px}
body.home .finder-results .rail{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-top:14px}
body.home .finder-intro{font-weight:600;font-size:1.02rem;color:var(--black);margin:0 0 12px;text-align:center}
body.home .finder-results .shelf-more{display:block;text-align:center;margin-top:16px;font-weight:600;color:var(--black);text-decoration:underline;text-underline-offset:4px}

/* ---------- Shop by age (R05) ---------- */
body.home .shop-age{padding-block:16px 36px}
body.home .age-tabs{display:grid;grid-template-columns:repeat(5,1fr);gap:20px;margin-bottom:30px;justify-items:center}
body.home .age-tab{padding:8px;border:none;border-radius:16px;background:transparent;min-height:auto;display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;cursor:pointer;transition:transform .2s var(--ease-out)}
body.home .age-tab:hover{transform:translateY(-4px)}
body.home .age-art{width:150px;height:150px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:var(--cream);box-shadow:0 4px 16px rgba(0,0,0,.06);transition:transform .2s var(--ease-out),box-shadow .2s,background .2s}
body.home .age-tab:hover .age-art{background:#FFF2D4;box-shadow:0 8px 24px rgba(0,0,0,.12);transform:scale(1.03)}
body.home .age-art img{width:150px;height:150px;object-fit:contain;border-radius:50%}
body.home .age-label{display:block;margin-top:4px;font-size:1rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;color:var(--black)}
body.home .age-tab[aria-selected="true"]{background:transparent;border:none}
body.home .age-tab[aria-selected="true"] .age-art{box-shadow:0 0 0 4px var(--yellow),0 8px 26px rgba(245,200,80,.4);transform:scale(1.03)}
@media (max-width:1100px){
  body.home .age-art{width:126px;height:126px}
  body.home .age-art img{width:126px;height:126px}
}
body.home .rail.shelf-5col{grid-template-columns:repeat(5,1fr);gap:24px}
body.home .shelf-5col .card-media{aspect-ratio:3/4;border:1px solid var(--line);padding:0;border-radius:8px;background:#fff;overflow:hidden;display:flex;align-items:center;justify-content:center}
body.home .shelf-5col .card-media img{width:100%;height:100%;object-fit:contain;background:#fff}
body.home .shelf-5col .card-body{padding-top:12px;gap:2px}
body.home .shelf-5col .age{font-size:.8rem;font-weight:500}
body.home .shelf-5col .card-title{font-size:.875rem;font-weight:600;min-height:2.6em}
body.home .shelf-5col .card-author{font-size:.88rem}
body.home .shelf-5col .price{margin-top:8px}
body.home .shelf-5col .price-now{font-size:.875rem}
body.home .shelf-5col .card-add{width:auto;align-self:flex-start;padding:9px 22px;margin-top:10px;border-radius:6px;font-size:.92rem}
body.home .shelf-5col .card-add:hover{background:var(--soft-pink)}
body.home .shelf-foot{text-align:center;margin-top:18px}
body.home .shelf-more{font-weight:600;color:var(--black);text-decoration:underline;text-decoration-color:var(--black);text-underline-offset:4px}

/* ---------- Book sets and series ---------- */
body.home .series-section{background:var(--cream);padding-block:28px 22px}
body.home .series-list.series-2col{gap:18px 26px;margin-top:6px}
body.home .series{grid-template-columns:150px 1fr;gap:18px;padding:16px 18px;border-radius:10px;box-shadow:none;background:var(--white)}
body.home .series:nth-child(1){border:2px solid var(--sky);background:var(--sky)}
body.home .series:nth-child(2){border:2px solid var(--yellow);background:var(--yellow)}
body.home .series:nth-child(3){border:2px solid var(--soft-pink);background:var(--soft-pink)}
body.home .series:nth-child(4){border:2px solid var(--sage);background:var(--sage)}
body.home .series:hover{transform:translateY(-2px);box-shadow:none}
body.home .series:hover strong{color:var(--black)}
body.home .series-covers{height:96px}
body.home .series-covers img{width:84px;height:84px;border-radius:4px}
body.home .series-text strong{font-size:1.12rem;font-weight:600}
body.home .series-text span{font-size:.9rem}
body.home .series-text small{font-size:.9rem;font-weight:700}

/* ---------- Reviews ---------- */
body.home .reviews-section{background:var(--white);padding-block:22px 18px;border-bottom:1px solid var(--line)}
body.home .reviews-split{display:grid;grid-template-columns:1fr 180px;align-items:center;gap:24px}
body.home .reviews-copy h2{display:inline-flex;align-items:flex-start;gap:4px;margin:0 0 10px;font-size:var(--fs-title)}
body.home .reviews-copy .lede-sm{max-width:60ch}
body.home .reviews-art svg{width:180px;height:180px}
body.home .reviews-copy .lede-sm{color:var(--black);max-width:72ch;margin-bottom:16px}
body.home .inline-actions{gap:18px 28px}
body.home .review-insta{font-weight:600;color:var(--black);text-decoration:underline;text-underline-offset:4px}

/* ---------- Meet our team ---------- */
body.home .team{background:var(--white);padding-block:30px 34px}
body.home .team-grid{grid-template-columns:minmax(0,400px) 1fr;gap:64px;align-items:center}
body.home .team-photo-wrap{max-width:400px;margin-left:16px}
body.home .team-photo-backing{background:var(--soft-pink);border-radius:10px;transform:translate(-16px,16px)}
body.home .team-photo{aspect-ratio:4/3;border-radius:10px}
body.home .team-burst{top:-18px;right:-22px}
body.home .team-text h2{font-size:var(--fs-title);margin:0 0 12px}
body.home .team-text .lede-sm{font-size:1rem;color:var(--black);max-width:54ch;margin-bottom:18px}
body.home .team-text{max-width:620px}
body.home .team-item{grid-template-columns:150px 1fr auto;padding:8px 0;font-size:.95rem}
body.home .team-story-link{font-weight:600;color:var(--black);text-decoration:underline;text-decoration-color:var(--terracotta);text-decoration-thickness:2px}
body.home .team-story-link .arrow-ico{color:var(--terracotta)}

/* ---------- Responsive ---------- */
@media (max-width:1100px){
  body.home .finder-line{flex-wrap:wrap;white-space:normal}
  body.home .hs-grid{padding:30px 48px 26px 64px}
  body.home .hero-browse{padding-left:0}
}
@media (max-width:980px){
  body.home .hs-grid{grid-template-columns:1fr;min-height:0;padding:28px 40px 20px;gap:12px}
  body.home .hs-copy{max-width:640px}
  body.home .hs-collage{height:420px;max-width:560px;width:100%;margin:0 auto}
  body.home .hero-branch{width:56px;height:240px}
  body.home .trust-badges{grid-template-columns:repeat(2,1fr);gap:16px 20px}
  body.home .trust-badges li{padding:4px 10px}
  body.home .trust-badges li:nth-child(odd)::before{display:none}
  body.home .trust-badges li:nth-child(5){grid-column:1/-1;justify-content:center;max-width:320px;margin:0 auto}
  body.home .trust-badges li:nth-child(5)::before{display:none}
  body.home .finder-results .rail{grid-template-columns:repeat(2,1fr);gap:14px}
  body.home .rail.shelf-5col{grid-auto-flow:column;grid-template-columns:none;grid-auto-columns:calc((100% - 2 * 18px) / 3.2);gap:18px;overflow-x:auto;scroll-snap-type:x mandatory}
  body.home .series-list.series-2col{grid-template-columns:1fr}
  body.home .team-grid{grid-template-columns:1fr;gap:36px}
  body.home .team-photo-wrap{max-width:440px}
  body.home .age-tabs{display:flex;gap:18px;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;margin-inline:calc(-1 * var(--gutter));padding:8px 20px 16px;justify-content:flex-start}
  body.home .age-tab{flex:0 0 auto;padding:6px;gap:8px}
  body.home .age-art{width:104px;height:104px}
  body.home .age-art img{width:104px;height:104px}
  body.home .age-label{font-size:.9rem}
}
@media (max-width:640px){
  body.home .team-burst{right:-4px;top:-12px}
  body.home .section{padding-block:26px}
  body.home .hs-grid{padding:20px 14px 12px;gap:10px}
  body.home .hero-branch{display:none}
  body.home .hs-copy h1{font-size:clamp(1.9rem,8vw,2.35rem);margin-bottom:12px}
  body.home .hs-sparkle{width:22px;height:22px}
  body.home .hs-copy .hero-sub{font-size:.94rem;line-height:1.55;margin-bottom:16px}
  body.home .hero-ctas{flex-direction:column;gap:10px;margin-bottom:12px}
  body.home .hero-ctas .btn{width:100%;min-height:48px}
  body.home .hero-browse{text-align:center;font-size:.92rem}
  body.home .hs-collage{height:340px;min-height:320px;max-width:100%;margin:0 auto}
  body.home .sb-s1{left:2%;top:2%;width:26%;--rot:-6deg}
  body.home .sb-lead{left:29%;top:4%;width:38%;--rot:3deg}
  body.home .sb-s2{left:4%;top:42%;width:26%;--rot:-10deg}
  body.home .sb-s3{left:70%;top:22%;width:26%;--rot:8deg}
  body.home .hs-caption{left:0;right:0;top:auto;bottom:4px;text-align:center}
  body.home .hs-caption em{font-size:.88rem}
  body.home .hs-caption span{font-size:.8rem}
  body.home .hs-arrow{display:none}
  body.home .trust-badges{grid-template-columns:1fr 1fr;gap:14px 10px}
  body.home .trust-badges li{padding:4px 6px;gap:8px}
  body.home .trust-badges li:nth-child(odd)::before{display:none}
  body.home .trust-badges li:nth-child(5){grid-column:1/-1;justify-content:center;max-width:280px;margin:0 auto}
  body.home .trust-badges li:nth-child(5)::before{display:none}
  body.home .trust-badges .tb{width:32px;height:32px}
  body.home .trust-badges strong{font-size:.82rem}
  body.home .trust-badges small{display:block;font-size:.72rem}
  body.home .finder-card{padding:18px 14px}
  body.home .finder-leaf{display:none}
  body.home .finder-line{display:flex;flex-direction:column;align-items:stretch;gap:8px;font-size:.95rem;white-space:normal}
  body.home .finder-line>span{text-align:center;font-weight:500;font-size:.9rem}
  body.home .finder-pick,body.home .finder-pick select,body.home .finder-line .btn-terracotta{width:100%}
  body.home .finder-pick select{min-height:46px;font-size:16px;border-radius:8px}
  body.home .finder-line .btn-terracotta{min-height:48px;font-size:1rem;margin-top:4px}
  body.home .finder-results .rail{grid-template-columns:repeat(2,1fr);gap:12px 8px}
  body.home .age-tabs{display:flex;gap:8px;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;margin-inline:calc(-1 * var(--gutter));padding:2px 16px 8px}
  body.home .age-tabs::-webkit-scrollbar{display:none}
  body.home .age-art{width:90px;height:90px}
  body.home .age-art img{width:90px;height:90px}
  body.home .age-label{font-size:.82rem}
  body.home .rail.shelf-5col{grid-auto-columns:clamp(150px,46vw,200px);gap:12px;margin-inline:calc(-1 * var(--gutter));padding-inline:var(--gutter);padding-bottom:8px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  body.home .rail.shelf-5col::-webkit-scrollbar{display:none}
  body.home .shelf-5col .card-body{padding-top:8px}
  body.home .shelf-5col .card-title{font-size:.875rem;min-height:2.4em}
  body.home .shelf-5col .card-add{width:100%;text-align:center;min-height:40px;padding:0 8px;font-size:.84rem}
  body.home .series{grid-template-columns:105px 1fr;gap:10px;padding:12px;border-radius:12px}
  body.home .series-covers{width:105px;height:84px}
  body.home .series-covers img{width:60px;height:60px}
  body.home .series-text strong{font-size:1rem}
  body.home .series-text span{font-size:.84rem}
  body.home .series-text small{font-size:.82rem}
  body.home .reviews-split{grid-template-columns:1fr}
  body.home .reviews-art{display:none}
  body.home .reviews-copy h2{font-size:var(--fs-title-sm)}
  body.home .reviews-copy .lede-sm{font-size:.94rem}
  body.home .team-photo-wrap{margin:0 auto;max-width:100%}
  body.home .team-photo-backing{transform:translate(-8px,8px);border-radius:10px}
  body.home .team-text h2{font-size:var(--fs-title-sm)}
  body.home .team-text .lede-sm{font-size:.94rem;margin-bottom:14px}
  body.home .team-item{display:flex;flex-direction:column;gap:2px;padding:8px 0}
  body.home .team-role{font-size:.8rem}
  body.home .team-name{font-size:.95rem}
  body.home .team-cred{font-size:.82rem}
}
@media (prefers-reduced-motion:reduce){
  body.home .sb,body.home .series{transition:none}
  body.home .sb:hover,body.home .sb:focus-visible,body.home .series:hover{transform:rotate(var(--rot,0deg))}
  body.home .series:hover{transform:none}
}

@media (max-width:640px){body.home main h2{font-size:var(--fs-title-sm)}}

/* Reviews: a sage band like the old store, real customer reviews in a sideways rail */
body.home .reviews-band{background:var(--sage);padding-block:44px 40px}
body.home .reviews-head{text-align:center;margin-bottom:22px}
body.home .reviews-head h2{margin:0 0 6px}
body.home .reviews-head p{margin:0;font-size:1rem;color:var(--black)}
body.home .review-rail{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 2 * 20px) / 3);gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:4px 2px 10px;outline-offset:4px}
body.home .review-rail::-webkit-scrollbar{display:none}
body.home .review-card{scroll-snap-align:start;margin:0;display:flex;flex-direction:column;gap:12px;background:var(--cream);border-radius:18px;padding:22px 22px 20px}
body.home .review-card .stars{font-size:1.1rem}
body.home .review-card blockquote{margin:0;flex:1}
body.home .review-card blockquote p{margin:0 0 .6em;font-size:1rem;line-height:1.6;color:var(--black)}
body.home .review-card blockquote p:last-child{margin-bottom:0}
body.home .review-card figcaption{font-family:var(--f-display);font-weight:700;font-size:1rem;color:var(--black);text-transform:capitalize}
body.home .reviews-foot{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-top:18px}
body.home .review-nav{display:flex;gap:10px}
body.home .review-nav .icon-btn{width:44px;height:44px;border-radius:50%;background:var(--white);display:grid;place-items:center}
body.home .review-nav .icon-btn svg{width:20px;height:20px}
body.home .review-nav [data-review-step="-1"] svg{transform:rotate(90deg)}
body.home .review-nav [data-review-step="1"] svg{transform:rotate(-90deg)}
body.home .reviews-foot .inline-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
@media (max-width:980px){body.home .review-rail{grid-auto-columns:calc((100% - 20px) / 2)}}
@media (max-width:640px){
  body.home .reviews-band{padding-block:32px}
  body.home .review-rail{grid-auto-columns:86%;gap:14px}
  body.home .reviews-foot{justify-content:center}
  body.home .reviews-foot .inline-actions{justify-content:center}
}
