/* Bumblequill storefront: the two-level header, menu drawer, footer and the home page (2026-12-04, owner: "Launch it").
   Loaded after styles.css on every site page and uses its :root tokens. Classes start with sf-. */

/* The live background stays: .bq-bg (silk.js) sits fixed behind the page, and the live seasons.js adds snow,
   lights, the logo star and sprig, the hanging ornaments and the footer note. These rules only make the
   prototype's own pieces carry the live hooks (.site-header, .brand__mark, .hero, .site-footer .footer-bottom)
   without taking on the live layout that goes with them. */
.sf-header.site-header { height: auto; }
.sf-header .sf-top__inner { justify-content: flex-start; height: auto; }
.sf-brand .brand__mark {
  width: auto; height: auto; display: inline-block; position: relative; flex: none;
  background: none; box-shadow: none; border-radius: 0; color: inherit;
}
.sf-brand .brand__mark img { display: block; }
body[data-page="home"] .sf-hero.hero { min-height: 0; display: block; padding-block: clamp(26px, 3vw, 40px) 0; }
/* The live ornaments hang from the string of lights into the banner's empty top-right corner, a little smaller. */
.sf-hero .season-ornaments { z-index: 3; top: -4px; right: max(calc(var(--gutter) + 40px), calc((100vw - var(--maxw)) / 2 + 60px)); transform: scale(.72); transform-origin: top right; }
.sf-hero.hero > .sf-carousel { position: relative; z-index: 1; }
.sf-footer.site-footer .container { display: block; padding-block: 0; }
.sf-footer.site-footer p { max-width: none; font-size: inherit; color: inherit; }
.sf-footer__season:empty { display: none; }
.sf-footer__season { margin-top: 10px; font-size: 13px; color: var(--faint); justify-content: flex-start; }
.sf-lock, .sf-lock body { overflow: hidden; }
.sf-header svg, .sf-drawer svg, .sf-footer svg, .sf-page main svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
/* The header is two rows now; pages use --header-h for sticky offsets and anchor scrolling. */
:root { --header-h: 122px; }
@media (max-width: 860px) { :root { --header-h: 125px; } }

/* ---------- Header ---------- */
.sf-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(17, 17, 19, 0.84);
  backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.sf-header.is-scrolled { background: rgba(17, 17, 19, 0.9); box-shadow: 0 10px 30px -18px rgba(0,0,0,.9); }
.sf-top__inner { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 32px); min-height: 74px; }
.sf-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-size: 25px; letter-spacing: -0.01em; flex: none; }
.sf-brand img { border-radius: 10px; }
.sf-iconbtn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: transparent; cursor: pointer;
}
.sf-iconbtn svg { width: 22px; height: 22px; }
.sf-menu-btn { display: none; }

.sf-search { position: relative; flex: 1; max-width: 640px; margin-inline: auto; display: flex; align-items: center; }
.sf-search > svg { position: absolute; left: 18px; width: 20px; height: 20px; color: var(--gold); pointer-events: none; }
.sf-search input {
  width: 100%; height: 50px; padding: 0 52px 0 50px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(255, 245, 219, 0.06); color: var(--cream);
  font: 500 15.5px var(--font-body); transition: border-color .2s, background .2s, box-shadow .2s;
}
.sf-search input::placeholder { color: var(--faint); }
.sf-search input:hover { background: rgba(255, 245, 219, 0.09); }
.sf-search input:focus { outline: none; border-color: var(--honey); background: rgba(255, 245, 219, 0.1); box-shadow: 0 0 0 3px rgba(246,223,145,.18); }
.sf-search input::-webkit-search-cancel-button { filter: invert(1) sepia(1) saturate(2); }
.sf-search__kbd {
  position: absolute; right: 16px; font: 700 12px var(--font-body); color: var(--faint);
  border: 1px solid var(--line-strong); border-radius: 6px; padding: 1px 7px;
}
.sf-search input:focus ~ .sf-search__kbd { display: none; }
.sf-suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60; list-style: none; margin: 0; padding: 6px;
  background: var(--ink-2); border: 1px solid var(--line-strong); border-radius: var(--r-md);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.9);
}
.sf-suggest [role=option] { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.sf-suggest [role=option][aria-selected=true], .sf-suggest [role=option]:hover { background: rgba(246,223,145,.12); }
.sf-suggest img { border-radius: 4px; flex: none; width: 30px; height: 40px; object-fit: cover; }
.sf-suggest__all { display: grid; place-items: center; width: 30px; height: 30px; color: var(--honey); flex: none; }
.sf-suggest__all svg { width: 18px; height: 18px; }
.sf-suggest__t { display: block; font-weight: 700; font-size: 15px; line-height: 1.3; }
.sf-suggest__s { display: block; font-size: 12.5px; color: var(--muted); }

/* Lower row */
.sf-nav { border-top: 1px solid var(--line); }
.sf-nav__list { display: flex; justify-content: center; flex-wrap: wrap; gap: 2px; list-style: none; margin: 0; padding: 0; }
.sf-nav__item { position: relative; }
.sf-nav__link {
  display: inline-flex; align-items: center; gap: 4px; min-height: 46px; padding: 0 14px;
  border: 0; background: none; color: var(--cream); font: 600 14.5px var(--font-body); text-decoration: none; cursor: pointer;
  border-radius: 10px; position: relative;
}
.sf-nav__link svg { width: 15px; height: 15px; color: var(--gold); transition: transform .25s var(--ease); }
.sf-nav__link[aria-expanded=true] svg { transform: rotate(180deg); }
.sf-nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 2px; border-radius: 2px;
  background: var(--honey); transform: scaleX(0); transition: transform .25s var(--ease);
}
.sf-nav__link:hover::after, .sf-nav__link[aria-expanded=true]::after { transform: scaleX(1); }

.sf-mega {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 55;
  min-width: 280px; padding: 20px 22px 16px; border-radius: var(--r-md);
  background: var(--ink-2); border: 1px solid var(--line-strong); box-shadow: 0 30px 70px -24px rgba(0,0,0,.95);
  animation: sf-drop .18s var(--ease);
}
.sf-mega--3 { width: min(820px, 94vw); }
.sf-nav__item:first-child + .sf-nav__item .sf-mega { left: 0; transform: none; }
@keyframes sf-drop { from { opacity: 0; translate: 0 -6px; } }
.sf-mega__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 28px; }
.sf-mega h3 { font: 800 11.5px var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 0 0 8px; }
.sf-mega ul { list-style: none; margin: 0; padding: 0; }
.sf-mega a, .sf-soonitem {
  display: flex; align-items: baseline; gap: 8px; padding: 7px 8px; margin-inline: -8px; border-radius: 8px;
  text-decoration: none; font-size: 15px; line-height: 1.35;
}
.sf-mega a:hover { background: rgba(246,223,145,.1); color: var(--honey); }
.sf-soonitem { color: var(--muted); }
.sf-count { font-size: 12px; font-weight: 700; color: var(--faint); }
.sf-note { font-size: 12px; color: var(--faint); font-weight: 500; }
.sf-mega__foot {
  display: inline-flex !important; align-items: center; gap: 6px; margin-top: 10px; padding-top: 12px !important;
  border-top: 1px solid var(--line); border-radius: 0 !important; width: 100%; color: var(--honey); font-weight: 700;
}
.sf-mega__foot svg { width: 16px; height: 16px; }
.sf-mega__note { margin: 8px 0 0; font-size: 13px; color: var(--muted); max-width: 30ch; }

/* Drawer (mobile) */
.sf-drawer { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.55); }
.sf-drawer__panel {
  position: absolute; inset: 0 auto 0 0; width: min(380px, 88vw); overflow-y: auto;
  background: var(--ink-1); border-right: 1px solid var(--line-strong); padding: 14px 18px 28px;
  animation: sf-slide-in .25s var(--ease);
}
@keyframes sf-slide-in { from { transform: translateX(-30px); opacity: 0; } }
.sf-drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.sf-dlist { list-style: none; margin: 0; padding: 0; }
.sf-dlist > li { border-bottom: 1px solid var(--line); }
.sf-dlist > li > a, .sf-dlist summary {
  display: flex; align-items: center; justify-content: space-between; min-height: 52px; text-decoration: none;
  font-weight: 700; font-size: 17px; cursor: pointer; list-style: none;
}
.sf-dlist summary::-webkit-details-marker { display: none; }
.sf-dlist summary svg { width: 18px; height: 18px; color: var(--gold); transition: transform .2s; }
.sf-dlist details[open] summary svg { transform: rotate(180deg); }
.sf-dlist .sf-mega__col { padding: 0 0 10px 6px; }
.sf-dlist h3 { font: 800 11px var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 8px 0 4px; }
.sf-dlist ul { list-style: none; margin: 0; padding: 0; }
.sf-dlist .sf-mega__col a, .sf-dlist .sf-soonitem { display: flex; gap: 8px; align-items: baseline; padding: 9px 0; text-decoration: none; font-size: 15.5px; }
.sf-dlist .sf-mega__foot { margin: 0 0 12px; }

/* ---------- Banner carousel ---------- */
.sf-hero { padding-top: clamp(16px, 2.4vw, 28px); }
.sf-carousel { position: relative; }
.sf-carousel__viewport {
  display: grid; border-radius: var(--r-lg); overflow: hidden; touch-action: pan-y;
  border: 1px solid var(--line); box-shadow: 0 30px 80px -40px rgba(0,0,0,.9);
  background: var(--ink-2);
}
/* All slides share one grid cell, so the banner is always as tall as the tallest slide: no layout shift. */
.sf-slide {
  grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center;
  gap: clamp(16px, 3vw, 40px); min-height: clamp(360px, 31vw, 420px);
  padding: clamp(28px, 4vw, 56px) clamp(24px, 5vw, 72px);
  position: relative; isolation: isolate;
  opacity: 0; visibility: hidden; transform: translateX(calc(var(--dir, 1) * 28px));
  transition: opacity 1s cubic-bezier(.45,.05,.25,1), transform 1s cubic-bezier(.45,.05,.25,1), visibility 0s linear 1s;
}
.sf-slide.is-leaving { transform: translateX(calc(var(--dir, 1) * -28px)); }
.sf-slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity 1s cubic-bezier(.45,.05,.25,1), transform 1s cubic-bezier(.45,.05,.25,1), visibility 0s; }
.is-still .sf-slide, .is-still .sf-slide.is-active { transition: none; transform: none; }

.sf-slide__text { position: relative; z-index: 2; }
.sf-slide__eyebrow { margin: 0 0 12px; font: 800 12.5px var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.sf-slide__title { font-size: clamp(30px, 3.9vw, 54px); line-height: 1.04; margin: 0 0 14px; }
.sf-slide__lead { margin: 0 0 18px; color: var(--muted); font-size: clamp(15.5px, 1.35vw, 18px); max-width: 40ch; line-height: 1.55; }
.sf-slide__price { margin: 0 0 20px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.sf-slide__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sf-draft { background: #b44; color: #fff; padding: 1px 8px; border-radius: 999px; letter-spacing: .06em; }
.sf-price { font-size: 15px; }
.sf-price strong { font: 600 24px var(--font-display); color: var(--honey); }
.sf-price s { color: var(--faint); margin-left: 4px; }
.sf-price__label { width: 100%; font-size: 13px; color: var(--muted); font-weight: 600; }
.sf-price__note { font-size: 13px; color: var(--muted); }

/* Cover stack: real covers, fanned. Size is fixed by width/height attributes and aspect-ratio. */
.sf-slide__art { position: relative; height: 100%; min-height: 280px; display: grid; place-items: center; }
.sf-stack__item {
  grid-area: 1 / 1; width: clamp(120px, 13vw, 180px); aspect-ratio: 3 / 4;
  transform: translateX(calc(var(--k) * 54%)) rotate(calc(var(--k) * 5deg)) translateY(calc(var(--k) * var(--k) * 7px)) scale(calc(1 - (var(--k) * var(--k)) * .045));
  z-index: calc(10 - var(--k) * var(--k));
  transition: transform .9s var(--ease);
}
.sf-stack__item img, .sf-fan__item img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 6px 10px 10px 6px;
  box-shadow: -1px 0 0 rgba(255,255,255,.18) inset, 0 18px 40px -14px rgba(0,0,0,.85), 0 2px 6px rgba(0,0,0,.4);
}
.sf-slide:not(.is-active) .sf-stack__item { transform: translateX(calc(var(--k) * 40%)) rotate(0deg) scale(.96); }
.is-still .sf-stack__item { transition: none; }
.sf-slide--single .sf-stack__item { width: clamp(170px, 18vw, 240px); transform: rotate(-3deg); }
.sf-slide--single .sf-slide__art::before {
  content: ""; position: absolute; width: clamp(230px, 24vw, 320px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #fff3c9, var(--honey) 45%, var(--gold)); opacity: .9; z-index: -1;
  box-shadow: 0 0 120px 20px rgba(246,223,145,.25);
}

/* Backdrops: CSS only (no image files). */
.sf-slide::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.sf-slide--winter::before {
  background:
    radial-gradient(1.6px 1.6px at 12% 22%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 28% 70%, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 44% 12%, #fff 50%, transparent 52%), radial-gradient(1.4px 1.4px at 62% 84%, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 78% 30%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 90% 66%, #fff 50%, transparent 52%),
    radial-gradient(1.6px 1.6px at 6% 88%, #fff 50%, transparent 52%), radial-gradient(1.4px 1.4px at 52% 46%, #fff 50%, transparent 52%),
    radial-gradient(60% 70% at 80% 50%, rgba(220,232,245,.18), transparent 70%),
    linear-gradient(160deg, #22324a 0%, #172234 55%, #111113 100%);
  background-size: 220px 220px, 260px 260px, 300px 300px, 240px 240px, 280px 280px, 200px 200px, 320px 320px, 180px 180px, 100% 100%, 100% 100%;
}
.sf-slide--night::before {
  background: radial-gradient(50% 80% at 78% 50%, rgba(213,173,88,.2), transparent 70%), linear-gradient(150deg, #1d1b26, #111113 70%);
}
.sf-slide--science::before {
  background:
    radial-gradient(1.2px 1.2px at 20% 30%, rgba(255,245,219,.8) 50%, transparent 52%), radial-gradient(1px 1px at 70% 20%, rgba(255,245,219,.7) 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 50% 80%, rgba(255,245,219,.7) 50%, transparent 52%),
    radial-gradient(circle at 76% 52%, transparent 0 34%, rgba(246,223,145,.18) 34.3% 34.7%, transparent 35% 47%, rgba(246,223,145,.12) 47.3% 47.7%, transparent 48%),
    linear-gradient(140deg, #14202b, #111113 75%);
  background-size: 160px 160px, 210px 210px, 250px 250px, 100% 100%, 100% 100%;
}
.sf-slide--gold::before { background: radial-gradient(70% 90% at 80% 60%, rgba(213,173,88,.32), transparent 70%), linear-gradient(135deg, #2a2213, #141313 70%); }
.sf-slide--cream { color: var(--midnight); }
.sf-slide--cream::before { background: radial-gradient(60% 80% at 80% 50%, #fff, transparent 70%), linear-gradient(135deg, var(--cream), #f8e6b3); }
.sf-slide--cream .sf-slide__eyebrow { color: #7a5a17; }
.sf-slide--cream .sf-slide__lead, .sf-slide--cream .sf-price__note { color: rgba(17,17,19,.75); }
.sf-slide--cream .btn--primary { background: var(--midnight); color: var(--honey); }
.sf-slide--cream .btn--ghost { color: var(--midnight); border-color: rgba(17,17,19,.35); }
.sf-slide--cream :focus-visible { outline-color: var(--midnight); }

.sf-carousel__controls { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 14px; }
.sf-carousel__btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: transparent; cursor: pointer; transition: background .2s, border-color .2s;
}
.sf-carousel__btn:hover { background: rgba(246,223,145,.1); border-color: var(--honey); }
.sf-carousel__btn svg { width: 18px; height: 18px; }
/* "Auto-scroll" on/off switch for anything that moves by itself (WCAG 2.2.2). A switch, not a play icon, so it can't
   look like audio. Shared by the banner, the Featured Bundles row and the announcement bar. Its width never changes. */
.sf-motion-toggle, .sf-carousel__btn.sf-motion-toggle {
  display: inline-flex; align-items: center; gap: 8px; width: auto; height: 32px; padding: 0 4px 0 10px;
  border: 0; border-radius: 999px; background: transparent; color: var(--muted);
  font: 600 13px/1 var(--font-body); letter-spacing: .02em; cursor: pointer; white-space: nowrap;
  transition: color .2s;
}
.sf-motion-toggle:hover, .sf-carousel__btn.sf-motion-toggle:hover { color: var(--cream); background: transparent; }
.sf-motion-toggle:focus-visible { outline: 2px solid var(--honey); outline-offset: 2px; }
.sf-switch__track {
  position: relative; flex: none; width: 34px; height: 20px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid var(--line); transition: background .2s, border-color .2s;
}
.sf-switch__knob {
  position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--muted); transition: transform .2s, background .2s;
}
.sf-motion-toggle[aria-checked="true"] .sf-switch__track { background: var(--honey); border-color: var(--honey); }
.sf-motion-toggle[aria-checked="true"] .sf-switch__knob { transform: translateX(14px); background: #1b1a17; }
.sf-reduce .sf-switch__track, .sf-reduce .sf-switch__knob { transition: none; }
.sf-carousel__controls .sf-motion-toggle { margin-left: 6px; }
.sf-carousel__controls .sf-carousel__btn, .sf-carousel__controls .sf-motion-toggle { flex: none; }
@media (max-width: 420px) { .sf-carousel__dots .sf-dot { width: 24px; } .sf-carousel__controls .sf-motion-toggle { margin-left: 0; padding-left: 6px; } }
.announce .sf-motion-toggle { height: 26px; font-size: 12px; gap: 6px; padding: 0 2px 0 6px; margin-inline: 4px 2px; flex: none; }
.announce .sf-switch__track { width: 30px; height: 18px; }
.announce .sf-switch__knob { width: 12px; height: 12px; }
.announce .sf-motion-toggle[aria-checked="true"] .sf-switch__knob { transform: translateX(12px); }
@media (max-width: 600px) { .announce .sf-switch__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
.sf-carousel.is-single .sf-carousel__controls { display: none; }
.sf-carousel__dots { display: flex; gap: 2px; }
.sf-dot { width: 32px; height: 40px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; padding: 0; }
.sf-dot span { display: block; width: 22px; height: 5px; border-radius: 3px; background: rgba(246,223,145,.25); overflow: hidden; position: relative; transition: width .3s var(--ease); }
.sf-dot[aria-current=true] span { width: 30px; background: rgba(246,223,145,.4); }
.sf-dot[aria-current=true] span::after { content: ""; position: absolute; inset: 0; background: var(--honey); }
.sf-dot.is-timing span::after { transform-origin: left; animation: sf-progress 7s linear; }
@keyframes sf-progress { from { transform: scaleX(0); } }

/* ---------- Promise strip ---------- */
.sf-promise ul {
  list-style: none; margin: clamp(20px, 3vw, 32px) 0 0; padding: 14px clamp(14px, 2vw, 24px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 20px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(255,245,219,.03);
}
.sf-promise li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; color: var(--muted); }
.sf-promise strong { color: var(--cream); font-weight: 700; }
.sf-promise svg { width: 22px; height: 22px; flex: none; color: var(--honey); margin-top: 1px; }

/* ---------- Sections ---------- */
.sf-section { padding-block: clamp(40px, 6vw, 72px) 0; }
.sf-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 22px; }
.sf-head h2 { font-size: clamp(28px, 3.2vw, 40px); }
.sf-head p:not(.eyebrow) { margin: 10px 0 0; color: var(--muted); max-width: 58ch; }
.sf-head .eyebrow { margin-bottom: 8px; }
.sf-head__tools { display: flex; align-items: center; gap: 8px; }
.sf-link { color: var(--honey); font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; }
.sf-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.sf-arrow { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: none; cursor: pointer; }
.sf-arrow svg { width: 18px; height: 18px; }
.sf-arrow:hover { border-color: var(--honey); }
.sf-reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.sf-reveal.is-in { opacity: 1; transform: none; }

/* Fanned covers used by collections, bundles and shelves */
.sf-fan { position: relative; display: grid; place-items: center; height: var(--fan-h, 170px); }
.sf-fan__item {
  grid-area: 1 / 1; width: var(--fan-w, 96px); aspect-ratio: 3 / 4;
  transform: translateX(calc((var(--i) - (var(--n) - 1) / 2) * 52%)) rotate(calc((var(--i) - (var(--n) - 1) / 2) * 6deg));
  z-index: calc(5 - var(--i)); transition: transform .5s var(--ease);
}
.sf-fan--wide .sf-fan__item { transform: translateX(calc((var(--i) - (var(--n) - 1) / 2) * 46%)) rotate(calc((var(--i) - (var(--n) - 1) / 2) * 4deg)); }

/* Curated collections */
.sf-collections { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sf-coll {
  display: flex; flex-direction: column; text-decoration: none; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--line); background: var(--ink-2); transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.sf-coll .sf-fan { --fan-h: 190px; --fan-w: 104px; padding-top: 10px; }
.sf-coll--night .sf-fan { background: radial-gradient(70% 80% at 50% 60%, rgba(213,173,88,.18), transparent), #191826; }
.sf-coll--honey .sf-fan { background: linear-gradient(160deg, #f8e6b3, #e9cd7d); }
.sf-coll--science .sf-fan { background: radial-gradient(70% 80% at 50% 60%, rgba(120,170,200,.2), transparent), #141f29; }
.sf-coll--gold .sf-fan { background: radial-gradient(70% 80% at 50% 60%, rgba(213,173,88,.3), transparent), #231d12; }
.sf-coll__text { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; flex: 1; }
.sf-coll__title { font: 500 21px/1.2 var(--font-display); }
.sf-coll__blurb { color: var(--muted); font-size: 14px; line-height: 1.45; flex: 1; }
.sf-coll__go { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--honey); font-weight: 700; font-size: 14px; }
.sf-coll__go svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.sf-coll:hover, .sf-shelf:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 24px 50px -30px rgba(246,223,145,.35); }
.sf-coll:hover .sf-coll__go svg, .sf-shelf:hover .sf-coll__go svg { transform: translateX(4px); }
.sf-coll:hover .sf-fan__item, .sf-shelf:hover .sf-fan__item, .sf-bundle:hover .sf-fan__item { transform: translateX(calc((var(--i) - (var(--n) - 1) / 2) * 62%)) rotate(calc((var(--i) - (var(--n) - 1) / 2) * 8deg)); }

/* Horizontal book rows */
.sf-row { position: relative;
  list-style: none; margin: 0; padding: 4px 2px 18px; display: grid; grid-auto-flow: column;
  grid-auto-columns: clamp(150px, 15.5vw, 178px); gap: 18px; overflow-x: auto; scroll-snap-type: x proximity;
  scrollbar-width: thin; scrollbar-color: rgba(246,223,145,.3) transparent; overscroll-behavior-x: contain;
}
.sf-row > li { scroll-snap-align: start; }

/* Book card */
.sf-book { position: relative; display: flex; flex-direction: column; min-width: 0; } /* relative: keeps visually-hidden labels inside the scrolling row */
.sf-book__cover {
  position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 6px 10px 10px 6px;
  transition: transform .45s var(--ease); transform-origin: left center;
}
.sf-book__cover img {
  width: 100%; height: 100%; object-fit: cover; border-radius: inherit; background: var(--ink-3);
  box-shadow: inset 3px 0 0 rgba(0,0,0,.25), 0 14px 30px -14px rgba(0,0,0,.9), 0 2px 5px rgba(0,0,0,.35);
}
.sf-book__cover::after { /* spine highlight */
  content: ""; position: absolute; inset: 0 auto 0 0; width: 7px; border-radius: 6px 0 0 6px;
  background: linear-gradient(90deg, rgba(255,255,255,.22), rgba(255,255,255,0)); pointer-events: none;
}
.sf-book:hover .sf-book__cover, .sf-book:focus-within .sf-book__cover { transform: perspective(800px) rotateY(-9deg) translateY(-4px); }
.sf-book__tag {
  position: absolute; top: 8px; left: 10px; background: var(--honey); color: var(--midnight);
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px;
}
.sf-book__body { padding-top: 10px; display: flex; flex-direction: column; gap: 3px; }
.sf-book__meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.sf-book__feats { display: inline-flex; gap: 3px; color: var(--gold); }
.sf-feat svg { width: 16px; height: 16px; }
.sf-book__title { font: 500 16.5px/1.25 var(--font-display); margin: 0; }
.sf-book__title a { text-decoration: none; }
.sf-book__title a:hover { color: var(--honey); text-decoration: underline; text-underline-offset: 3px; }
.sf-book__foot { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 2px 0 0; font-size: 13.5px; }
.sf-book__price { font-weight: 800; color: var(--honey); }
.sf-book__preview { color: var(--muted); font-weight: 600; text-underline-offset: 3px; }
.sf-book__preview:hover { color: var(--cream); }
.sf-more a {
  display: grid; place-items: center; text-align: center; aspect-ratio: 3 / 4; padding: 12px; border-radius: 10px;
  border: 1px dashed var(--line-strong); color: var(--honey); font-weight: 700; text-decoration: none; font-size: 14px;
}
.sf-more svg { width: 18px; height: 18px; margin: 6px auto 0; }

/* Seasonal shelf */
.sf-season { margin-top: clamp(40px, 6vw, 72px); padding-block: clamp(36px, 5vw, 56px); }
.sf-season--christmas {
  background:
    radial-gradient(1.4px 1.4px at 10% 20%, rgba(255,255,255,.7) 50%, transparent 52%), radial-gradient(1.8px 1.8px at 60% 70%, rgba(255,255,255,.6) 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 85% 35%, rgba(255,255,255,.6) 50%, transparent 52%),
    linear-gradient(180deg, rgba(34,50,74,.55), rgba(17,17,19,0));
  background-size: 200px 200px, 260px 260px, 230px 230px, 100% 100%;
  border-block: 1px solid rgba(220,232,245,.12);
}
.sf-season__inner { display: grid; grid-template-columns: minmax(260px, 0.8fr) 2fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.sf-season__intro h2 { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 10px; }
.sf-season__intro > p:not(.eyebrow) { color: var(--muted); margin: 0 0 18px; }
.sf-season__bundle {
  display: flex; flex-direction: column; gap: 10px; text-decoration: none; padding: 14px 16px 16px; border-radius: var(--r-md);
  border: 1px solid rgba(220,232,245,.2); background: rgba(17,17,19,.5); transition: border-color .3s;
}
.sf-season__bundle:hover { border-color: var(--honey); }
.sf-season__bundle .sf-fan { --fan-h: 130px; --fan-w: 74px; }
.sf-season__btitle { display: block; font: 500 20px var(--font-display); }
.sf-season__bmeta { display: block; color: var(--muted); font-size: 13.5px; }
.sf-season__bprice { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin-top: 6px; }
.sf-season__books { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

/* Shop by age */
.sf-ages__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.sf-age {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; cursor: pointer;
  padding: 18px 20px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--ink-2);
  transition: border-color .25s, background .25s, transform .3s var(--ease);
}
.sf-age:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.sf-age[aria-selected=true] { border-color: var(--honey); background: linear-gradient(160deg, rgba(246,223,145,.14), rgba(246,223,145,.03)); }
.sf-age__label { font: 500 30px/1.1 var(--font-display); color: var(--honey); }
.sf-age__name { font-weight: 800; font-size: 15px; }
.sf-age__blurb { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.sf-age__n { margin-top: 6px; font-size: 12.5px; font-weight: 700; color: var(--gold); }
.sf-ages__panel:focus-visible, .sf-tabpanel:focus-visible { outline-offset: 6px; }

/* Bundles */
.sf-bundles {
  list-style: none; margin: 0; padding: 4px 2px 18px; display: grid; grid-auto-flow: column; position: relative;
  grid-auto-columns: clamp(290px, calc((100% - 36px) / 3), 380px); gap: 18px; overflow-x: auto; scroll-snap-type: x proximity;
  scrollbar-width: thin; scrollbar-color: rgba(246,223,145,.3) transparent; overscroll-behavior-x: contain;
}
.sf-bundles > li { scroll-snap-align: start; }
.sf-bundle {
  display: grid; grid-template-rows: auto 1fr; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line);
  background: var(--ink-2); transition: border-color .3s, transform .35s var(--ease);
}
.sf-bundle:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.sf-bundle__art { display: block; background: radial-gradient(80% 90% at 50% 70%, rgba(213,173,88,.26), transparent 70%), #1c1a16; }
.sf-bundle__art .sf-fan { --fan-h: 200px; --fan-w: 100px; }
.sf-bundle__body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 4px; }
.sf-bundle__meta { margin: 0; font-size: 12.5px; font-weight: 700; color: var(--gold); letter-spacing: .02em; }
.sf-bundle h3 { font-size: 23px; }
.sf-bundle h3 a { text-decoration: none; }
.sf-bundle h3 a::after { content: ""; position: absolute; inset: 0; }
.sf-bundle { position: relative; }
.sf-bundle h3 a:hover { color: var(--honey); }
.sf-bundle__titles { margin: 2px 0 8px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.sf-bundle__price { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.sf-bundle__value { margin: 0; font-size: 13px; color: var(--muted); }

/* Interest tabs */
.sf-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; }
.sf-tab {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent; font: 600 14.5px var(--font-body); cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.sf-tab:hover { border-color: var(--honey); }
.sf-tab[aria-selected=true] { background: var(--honey); color: var(--midnight); border-color: var(--honey); }
.sf-tab[aria-selected=true] .sf-count { color: rgba(17,17,19,.6); }
.sf-tabpanel__blurb { margin: 4px 0 14px; color: var(--muted); }

/* Five shelves */
.sf-shelves { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.sf-shelf {
  display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px 16px 16px; text-decoration: none;
  border-radius: var(--r-md); border: 1px solid var(--line); background: var(--ink-2); transition: transform .35s var(--ease), border-color .3s, box-shadow .3s;
}
.sf-shelf .sf-fan { --fan-h: 130px; --fan-w: 70px; margin-bottom: 6px; }
.sf-shelf__name { font: 500 18px/1.2 var(--font-display); }
.sf-shelf__blurb { font-size: 13px; color: var(--muted); line-height: 1.45; flex: 1; }

/* Footer */
.sf-footer { margin-top: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); padding-block: 40px 28px;
  background: linear-gradient(180deg, rgba(17, 17, 19, 0.5), rgba(12, 12, 14, 0.92)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.sf-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 24px; }
.sf-footer h2 { font: 800 12px var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; }
.sf-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sf-footer a { color: var(--muted); text-decoration: none; font-size: 15px; }
.sf-footer a:hover { color: var(--honey); text-decoration: underline; text-underline-offset: 3px; }
.sf-follow { grid-template-columns: repeat(2, max-content); column-gap: 22px !important; }
.sf-footer.site-footer .sf-footer__lead { color: var(--muted); font-size: 15px; margin: 10px 0 0; }
.sf-footer__notes { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }
.sf-footer__notes p { margin: 0 0 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .sf-shelves { grid-template-columns: repeat(3, 1fr); }
  .sf-collections { grid-template-columns: repeat(2, 1fr); }
  .sf-promise ul { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .sf-menu-btn { display: inline-grid; }
  .sf-nav { display: none; }
  .sf-top__inner { flex-wrap: wrap; gap: 10px 12px; padding-block: 10px; min-height: 0; }
  .sf-brand { font-size: 22px; }
  .sf-search { order: 3; flex-basis: 100%; max-width: none; }
  .sf-search input { height: 46px; font-size: 16px; }
  .sf-search__kbd { display: none; }
  .sf-slide { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: start; min-height: 0; padding: 22px 20px 26px; gap: 6px; }
  .sf-slide__art { order: -1; min-height: 172px; height: 172px; }
  .sf-stack__item { width: 100px; }
  .sf-slide--single .sf-stack__item { width: 140px; }
  .sf-slide--single .sf-slide__art::before { width: 190px; }
  .sf-slide__title { font-size: clamp(27px, 7vw, 36px); }
  .sf-season__inner { grid-template-columns: 1fr; }
  .sf-season__books { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 150px; overflow-x: auto; padding-bottom: 12px; }
  .sf-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .sf-collections { grid-template-columns: 1fr 1fr; gap: 12px; }
  .sf-coll .sf-fan { --fan-h: 140px; --fan-w: 74px; }
  .sf-coll__title { font-size: 17px; }
  .sf-coll__blurb { display: none; }
  .sf-ages__tiles { grid-template-columns: 1fr; gap: 8px; }
  .sf-age { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; padding: 12px 16px; }
  .sf-age__label { grid-row: span 2; font-size: 22px; }
  .sf-age__blurb { display: none; }
  .sf-age__n { margin: 0; }
  .sf-promise ul { grid-template-columns: 1fr; gap: 10px; }
  .sf-row { grid-auto-columns: 42vw; gap: 14px; }
  .sf-shelves { grid-template-columns: 1fr 1fr; }
  .sf-bundles { grid-auto-columns: 84%; }
  .sf-head__tools .sf-arrow { display: none; }
  .sf-footer__grid { grid-template-columns: 1fr; }
}

/* Reduced motion: storefront.js sets .sf-reduce on <html> from prefers-reduced-motion (or the ?motion / ?motion=off override),
   so the CSS and the JS always agree. */
.sf-reduce .sf-slide, .sf-reduce .sf-stack__item, .sf-reduce .sf-fan__item, .sf-reduce .sf-book__cover, .sf-reduce .sf-coll, .sf-reduce .sf-shelf, .sf-reduce .sf-bundle, .sf-reduce .sf-age, .sf-reduce .sf-mega, .sf-reduce .sf-drawer__panel { transition: none !important; animation: none !important; }
.sf-reduce .sf-book:hover .sf-book__cover, .sf-reduce .sf-coll:hover, .sf-reduce .sf-shelf:hover, .sf-reduce .sf-bundle:hover, .sf-reduce .sf-age:hover { transform: none; }
.sf-reduce .sf-dot.is-timing span::after { animation: none; }

/* Narration label on every book card (owner's "Catalog Expansion and Narration Policy Update", 2026-12-04) */
.sf-narr { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--muted); }
.sf-narr svg { width: 14px; height: 14px; flex: none; }
.sf-narr--on { color: var(--gold); }
