/* ==============================================================
   Curiosity Crest — "Whimsical Storybook" theme
   Brand core: navy ink, warm cream paper, ember orange, brass.
   Each category gets its own storybook colour (t-ember, t-sea...),
   so pages are colourful but always sit on the same brand base.
   ============================================================== */

:root {
  /* brand core */
  --ink: #0f1d33;
  --ink-2: #23406e;
  --ink-soft: #4a5a75;
  --muted: #6b7486;
  --cream: #f6efe2;
  --paper: #fffaf1;
  --line: #e7dcc6;
  --ember: #e36a3a;
  --brass: #c9a04a;

  /* storybook palette: each colour has a strong + soft tone */
  --c-ember: #e36a3a;  --c-ember-soft: #fde0d1;
  --c-sun:   #e9a923;  --c-sun-soft:   #fcefc4;
  --c-sea:   #23877b;  --c-sea-soft:   #d3ede7;
  --c-berry: #c4466e;  --c-berry-soft: #f9d8e2;
  --c-sky:   #3d7fc8;  --c-sky-soft:   #d9e8f8;
  --c-leaf:  #5d8f2f;  --c-leaf-soft:  #e3efcf;
  --c-plum:  #7655a6;  --c-plum-soft:  #e8dff5;
  --c-brass: #b08a35;  --c-brass-soft: #f3e6c3;

  --c: var(--c-ember);
  --c-soft: var(--c-ember-soft);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Caveat", "Comic Sans MS", cursive;

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --shadow-sm: 0 2px 0 rgba(15, 29, 51, .08), 0 6px 14px -6px rgba(15, 29, 51, .18);
  --shadow: 0 3px 0 rgba(15, 29, 51, .10), 0 18px 34px -16px rgba(15, 29, 51, .35);
  --shadow-book: 0 1px 0 rgba(255,255,255,.4) inset, -6px 10px 0 -2px rgba(15, 29, 51, .12), 0 22px 40px -18px rgba(15, 29, 51, .55);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
}

.t-ember { --c: var(--c-ember); --c-soft: var(--c-ember-soft); }
.t-sun   { --c: var(--c-sun);   --c-soft: var(--c-sun-soft); }
.t-sea   { --c: var(--c-sea);   --c-soft: var(--c-sea-soft); }
.t-berry { --c: var(--c-berry); --c-soft: var(--c-berry-soft); }
.t-sky   { --c: var(--c-sky);   --c-soft: var(--c-sky-soft); }
.t-leaf  { --c: var(--c-leaf);  --c-soft: var(--c-leaf-soft); }
.t-plum  { --c: var(--c-plum);  --c-soft: var(--c-plum-soft); }
.t-brass { --c: var(--c-brass); --c-soft: var(--c-brass-soft); }

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--cream);
  /* faint paper grain */
  background-image: radial-gradient(rgba(15,29,51,.035) 1px, transparent 1px);
  background-size: 22px 22px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 0 0 .4em;
  text-wrap: balance;
}
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--c-sky); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.hand { font-family: var(--font-hand); font-weight: 700; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  --b: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .82em 1.4em;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--b);
  color: #fff;
  font-weight: 800;
  font-size: .98rem;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--ink);
  transform: translateY(0);
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn-ember { --b: var(--c-ember); }
.btn-color { --b: var(--c); }
.btn-sun { --b: var(--c-sun); color: var(--ink); }
.btn-light { --b: var(--paper); color: var(--ink); }
.btn-ghost { --b: transparent; color: var(--ink); box-shadow: none; }
.btn-ghost:hover { box-shadow: none; background: rgba(15,29,51,.06); }
.btn-lg { font-size: 1.08rem; padding: 1em 1.7em; }
.btn-sm { font-size: .88rem; padding: .6em 1.05em; box-shadow: 0 3px 0 var(--ink); }
.btn svg { flex: none; }

.link-arrow { font-weight: 800; text-decoration: none; display: inline-flex; gap: .35em; align-items: center; border-bottom: 2px solid currentColor; padding-bottom: 1px; }
.link-arrow:hover { color: var(--c-ember); }

/* ---------------------------------------------------------------- announcement + header */
.announce {
  background: var(--ink); color: var(--cream);
  font-size: .88rem; text-align: center; padding: 8px var(--gutter);
}
.announce a, .announce button { color: var(--c-sun); font-weight: 800; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 250, 241, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 2px solid var(--ink);
}
.header-row {
  display: flex; align-items: center; gap: 18px;
  min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 40px; height: 40px; transition: transform .3s; }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.brand-name { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 800; font-size: 1.32rem; line-height: 1; }
.brand-tag { display: block; font-family: var(--font-hand); font-size: 1.02rem; color: var(--c-ember); line-height: 1; margin-top: 2px; }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 9px 13px; border-radius: 999px;
  font-weight: 800; font-size: .96rem; text-decoration: none;
  background: none; border: 0; cursor: pointer;
}
.nav-link:hover, .nav-item.open > .nav-link { background: var(--c-sun-soft); }
.nav-link[aria-current="page"] { background: var(--ink); color: #fff; }
.nav-item { position: relative; }
.nav-caret { transition: transform .2s; }
.nav-item.open .nav-caret { transform: rotate(180deg); }

.mega {
  position: absolute; left: -20px; top: calc(100% + 12px);
  width: min(860px, 92vw);
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 22px;
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 18px;
}
.nav-item.open .mega { display: grid; }
.mega-col { padding: 10px 12px 12px; border-radius: var(--r); background: var(--c-soft); }
.mega-col h4 { font-size: 1rem; margin: 0 0 6px; }
.mega-col h4 a { text-decoration: none; }
.mega-col ul { list-style: none; margin: 0; padding: 0; }
.mega-col li a { display: block; padding: 3px 0; font-size: .92rem; text-decoration: none; color: var(--ink-soft); font-weight: 600; }
.mega-col li a:hover { color: var(--c); text-decoration: underline; }
.mega-ages { width: 320px; grid-template-columns: 1fr 1fr; }
.mega-ages a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; text-decoration: none; font-weight: 800; background: var(--c-soft); }
.mega-ages a:hover { outline: 2px solid var(--c); }
.mega-ages .dot { width: 30px; height: 30px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-size: .8rem; }

.header-search { flex: 1; max-width: 360px; margin-left: auto; position: relative; }
.header-search input {
  width: 100%; height: 44px; border-radius: 999px;
  border: 2px solid var(--ink); background: #fff;
  padding: 0 44px 0 18px; font: inherit; font-size: .95rem;
}
.header-search input:focus { outline: none; box-shadow: 0 0 0 4px var(--c-sun-soft); }
.header-search button { position: absolute; right: 5px; top: 5px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--c-ember); color: #fff; cursor: pointer; display: grid; place-items: center; }
.header-cta { flex: none; }
.menu-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 14px; border: 2px solid var(--ink); background: var(--c-sun); cursor: pointer; place-items: center; }

/* search suggestions */
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px);
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r);
  box-shadow: var(--shadow); overflow: hidden; z-index: 60; display: none;
}
.suggest.show { display: block; }
.suggest a { display: flex; gap: 12px; align-items: center; padding: 9px 12px; text-decoration: none; border-bottom: 1px solid var(--line); }
.suggest a:last-child { border-bottom: 0; }
.suggest a:hover, .suggest a.active { background: var(--c-sun-soft); }
.suggest img { width: 38px; height: 57px; object-fit: cover; border-radius: 4px; box-shadow: var(--shadow-sm); }
.suggest strong { display: block; font-size: .92rem; line-height: 1.25; }
.suggest small { color: var(--muted); font-size: .8rem; }
.suggest .suggest-all { justify-content: center; font-weight: 800; color: var(--c-ember); }

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 80; display: none; }
.drawer.open { display: block; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(15,29,51,.5); }
.drawer-panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(380px, 88vw);
  background: var(--paper); border-left: 2px solid var(--ink);
  padding: 20px; overflow-y: auto; animation: slideIn .25s ease;
}
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } }
.drawer-top { display: flex; align-items: center; gap: 10px; }
.drawer-top form { flex: 1; margin: 0 !important; }
.drawer-close { flex: none; width: 46px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; cursor: pointer; font-size: 1.4rem; line-height: 1; }
.drawer h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.drawer-links a { display: block; padding: 10px 12px; border-radius: 12px; text-decoration: none; font-weight: 700; }
.drawer-links a:hover { background: var(--c-sun-soft); }
.drawer details { border-bottom: 1px dashed var(--line); }
.drawer summary { cursor: pointer; padding: 10px 12px; font-weight: 800; list-style: none; display: flex; justify-content: space-between; }
.drawer summary::after { content: "+"; font-size: 1.2rem; }
.drawer details[open] summary::after { content: "–"; }
.drawer details a { padding-left: 24px; font-weight: 600; font-size: .95rem; }
.drawer form { margin-top: 14px; }
.drawer input[type=search] { width: 100%; height: 46px; border-radius: 999px; border: 2px solid var(--ink); padding: 0 16px; font: inherit; }

/* ---------------------------------------------------------------- decorative bits */
.squiggle { display: block; width: 140px; height: 14px; color: var(--c-ember); }
.underline-swash { position: relative; white-space: nowrap; z-index: 0; }
.underline-swash::after {
  content: ""; position: absolute; left: -4%; right: -4%; bottom: .02em; height: .38em; z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14 C 40 4, 80 4, 120 10 S 180 16, 197 6' fill='none' stroke='%23e9a923' stroke-width='9' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.wave { display: block; width: 100%; height: 48px; }
.wave-top { margin-bottom: -2px; }
.wave-bottom { margin-top: -2px; }
.sparkle { position: absolute; color: var(--c-sun); pointer-events: none; animation: twinkle 3.2s ease-in-out infinite; }
.sparkle:nth-of-type(2n) { animation-delay: -1.4s; color: var(--c-ember); }
.sparkle:nth-of-type(3n) { animation-delay: -2.1s; color: var(--c-sky); }
@keyframes twinkle { 0%,100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.65) rotate(25deg); opacity: .55; } }
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--c); background: var(--c-soft);
  padding: 6px 12px; border-radius: 999px; text-decoration: none;
}
a.eyebrow:hover { background: var(--c); color: #fff; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--c-soft); color: var(--ink);
  border: 2px solid var(--c);
  font-weight: 800; font-size: .85rem; line-height: 1.2;
}
.pill-solid { background: var(--c); color: #fff; }
.stars { color: var(--c-sun); letter-spacing: 1px; font-size: .95em; }
.stars .off { color: #d9cfb9; }

/* ---------------------------------------------------------------- section headings */
.section { padding: clamp(48px, 7vw, 88px) 0; position: relative; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 6px 0 0; }
.section-head p { margin: 6px 0 0; color: var(--ink-soft); max-width: 560px; }
.section-kicker { font-family: var(--font-hand); font-size: 1.5rem; color: var(--c-ember); line-height: 1; }

/* ---------------------------------------------------------------- hero (home) */
.hero { position: relative; padding: clamp(36px, 6vw, 72px) 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 4.8rem); line-height: 1.02; margin-bottom: 18px; }
.hero h1 em { font-style: italic; color: var(--c-ember); }
.hero-lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-soft); max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.hero-note { display: flex; align-items: center; gap: 10px; font-family: var(--font-hand); font-size: 1.35rem; color: var(--ink-2); }
.hero-note svg { color: var(--c-ember); }

.hero-stage { position: relative; height: clamp(360px, 44vw, 520px); }
.hero-blob { position: absolute; inset: 6% 2% 4% 6%; border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; background: var(--c-sun-soft); border: 2px dashed rgba(15,29,51,.25); animation: morph 14s ease-in-out infinite; }
@keyframes morph { 50% { border-radius: 58% 42% 55% 45% / 42% 58% 42% 58%; } }
.hero-book {
  position: absolute; width: clamp(130px, 15vw, 200px); aspect-ratio: 2 / 3;
  border-radius: 6px 12px 12px 6px; overflow: hidden; box-shadow: var(--shadow-book);
  transition: transform .4s cubic-bezier(.2,.8,.3,1.3);
  background: #fff;
}
.hero-book img { width: 100%; height: 100%; object-fit: cover; }
.hero-book:nth-child(2) { left: 4%;  top: 18%; transform: rotate(-12deg); z-index: 1; }
.hero-book:nth-child(3) { left: 26%; top: 6%;  transform: rotate(-3deg);  z-index: 3; width: clamp(150px, 17vw, 228px); }
.hero-book:nth-child(4) { left: 52%; top: 14%; transform: rotate(8deg);  z-index: 2; }
.hero-book:nth-child(5) { left: 34%; top: 48%; transform: rotate(5deg);  z-index: 4; }
.hero-book:nth-child(6) { left: 64%; top: 50%; transform: rotate(-7deg); z-index: 3; }
.hero-stage:hover .hero-book { transform: rotate(0) translateY(-6px); }
.hero-badge {
  position: absolute; right: 2%; top: 2%; z-index: 6;
  width: 118px; height: 118px; border-radius: 50%;
  background: var(--c-ember); color: #fff; border: 2px solid var(--ink);
  display: grid; place-items: center; text-align: center;
  font-family: var(--font-hand); font-size: 1.3rem; line-height: 1; transform: rotate(12deg);
  box-shadow: 0 4px 0 var(--ink);
  text-decoration: none; cursor: pointer;
}
.hero-badge:hover { transform: rotate(0) scale(1.05); }
.hero-badge b { display: block; font-family: var(--font-display); font-size: 1.7rem; }

/* ---------------------------------------------------------------- shop by age (circles) */
.age-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2.5vw, 28px); }
.age-card { text-decoration: none; text-align: center; display: grid; justify-items: center; gap: 10px; }
.age-circle {
  width: min(170px, 100%); aspect-ratio: 1; border-radius: 50%;
  background: var(--c); color: #fff; border: 3px solid var(--ink);
  display: grid; place-items: center; position: relative;
  box-shadow: 0 6px 0 var(--ink);
  transition: transform .25s cubic-bezier(.2,.8,.3,1.4);
}
.age-circle::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; border: 2px dashed rgba(255,255,255,.55); }
.age-card:hover .age-circle { transform: translateY(-6px) rotate(-6deg); }
.age-num { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1; }
.age-num small { display: block; font-family: var(--font-body); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; opacity: .9; font-weight: 800; }
.age-label { font-weight: 800; }
.age-count { font-size: .85rem; color: var(--muted); }

/* ---------------------------------------------------------------- category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.cat-tile {
  position: relative; overflow: hidden; text-decoration: none;
  background: var(--c-soft); border: 2px solid var(--ink); border-radius: var(--r-lg);
  padding: 22px 22px 0; min-height: 230px;
  display: flex; flex-direction: column;
  box-shadow: 0 5px 0 var(--ink);
  transition: transform .2s, box-shadow .2s;
}
.cat-tile:hover { transform: translateY(-4px); box-shadow: 0 9px 0 var(--ink); }
.cat-tile h3 { font-size: 1.45rem; margin: 0 0 6px; }
.cat-tile p { font-size: .93rem; color: var(--ink-soft); margin: 0 0 6px; max-width: 75%; }
.cat-tile .cat-count { font-weight: 800; font-size: .82rem; color: var(--c); }
.cat-covers { margin-top: auto; display: flex; justify-content: flex-end; gap: 0; height: 104px; padding-right: 4px; }
.cat-covers img {
  width: 74px; height: 111px; object-fit: cover; border-radius: 4px 7px 7px 4px;
  box-shadow: var(--shadow-sm); margin-left: -22px; transform: rotate(var(--rot, 0deg)) translateY(12px);
  transition: transform .25s;
}
.cat-tile:hover .cat-covers img { transform: rotate(0) translateY(2px); }
.cat-covers img:nth-child(1) { --rot: -8deg; }
.cat-covers img:nth-child(2) { --rot: 4deg; }
.cat-covers img:nth-child(3) { --rot: -2deg; }
.cat-blob { position: absolute; right: -40px; top: -40px; width: 130px; height: 130px; border-radius: 50%; background: var(--c); opacity: .16; }

/* ---------------------------------------------------------------- book cards */
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 30px 22px; }
.book-card { position: relative; display: flex; flex-direction: column; text-decoration: none; }
.book-card[hidden] { display: none; }
.book-cover {
  position: relative; aspect-ratio: 2 / 3;
  background: var(--c-soft); border-radius: var(--r);
  padding: 18px 20px 22px; display: grid; place-items: center;
  border: 2px solid var(--ink);
  transition: background .25s;
}
.book-cover img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 3px 8px 8px 3px; box-shadow: var(--shadow-book);
  transition: transform .35s cubic-bezier(.2,.8,.3,1.3);
}
.book-card:hover .book-cover img { transform: translateY(-6px) rotate(-2.5deg) scale(1.02); }
.book-card:hover .book-cover { background: var(--c); }
.book-flag {
  position: absolute; top: 10px; left: -8px; z-index: 2;
  background: var(--c-sun); color: var(--ink); border: 2px solid var(--ink);
  font-weight: 800; font-size: .74rem; padding: 3px 10px; border-radius: 6px; transform: rotate(-4deg);
}
.book-meta { padding: 14px 4px 0; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.book-cat { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--c); }
.book-title { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-weight: 700; font-size: 1.12rem; line-height: 1.2; margin: 0; }
.book-sub { font-size: .87rem; color: var(--muted); font-style: italic; line-height: 1.35; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.book-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; font-size: .84rem; }
.book-age { font-weight: 800; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 999px; padding: 2px 10px; }
.book-rating { font-weight: 700; color: var(--ink-soft); white-space: nowrap; }

/* carousel row */
.shelf { position: relative; }
.shelf-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 220px);
  gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 18px;
  scrollbar-width: thin; scrollbar-color: var(--ink) transparent;
}
.shelf-track > * { scroll-snap-align: start; }
.shelf-nav { display: flex; gap: 8px; }
.shelf-btn { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); cursor: pointer; display: grid; place-items: center; box-shadow: 0 3px 0 var(--ink); }
.shelf-btn:hover { background: var(--c-sun); }
.shelf-plank { height: 14px; border-radius: 0 0 10px 10px; background: linear-gradient(#c79b5b, #a87a3e); border: 2px solid var(--ink); border-top: 0; margin-top: -8px; }

/* ---------------------------------------------------------------- series ribbons */
.series-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.series-card {
  display: flex; gap: 14px; align-items: center; text-decoration: none;
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r);
  padding: 14px; box-shadow: 0 4px 0 var(--ink); transition: transform .2s;
}
.series-card:hover { transform: translateY(-3px) rotate(-.4deg); background: var(--c-soft); }
.series-stack { display: flex; flex: none; }
.series-stack img { width: 46px; height: 69px; object-fit: cover; border-radius: 3px 5px 5px 3px; box-shadow: var(--shadow-sm); margin-right: -18px; }
.series-stack img:last-child { margin-right: 0; }
.series-card h3 { font-size: 1.02rem; margin: 0 0 2px; padding-left: 14px; }
.series-card p { font-size: .86rem; color: var(--ink-soft); margin: 0; padding-left: 14px; }

/* ---------------------------------------------------------------- free pack band */
.pack-band { position: relative; background: var(--ink); color: var(--cream); overflow: hidden; }
.pack-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; padding-block: clamp(44px, 6vw, 72px); }
.pack-band h2 { font-size: clamp(2rem, 4vw, 3rem); color: #fff; }
.pack-band h2 em { color: var(--c-sun); }
.pack-band p { color: #cdd6e6; font-size: 1.08rem; max-width: 520px; }
.pack-art { position: relative; height: 280px; }
.pack-paper {
  position: absolute; width: 190px; aspect-ratio: 3 / 4; background: var(--paper); border-radius: 10px;
  border: 2px solid var(--cream); box-shadow: 0 20px 40px -12px rgba(0,0,0,.6);
  padding: 18px; color: var(--ink); font-family: var(--font-hand); font-size: 1.25rem; line-height: 1.1;
}
.pack-paper:nth-child(1) { left: 10%; top: 10%; transform: rotate(-10deg); background: var(--c-sun-soft); }
.pack-paper:nth-child(2) { left: 32%; top: 0; transform: rotate(4deg); background: var(--c-sky-soft); }
.pack-paper:nth-child(3) { left: 52%; top: 18%; transform: rotate(14deg); background: var(--c-ember-soft); }
.pack-paper b { display: block; font-family: var(--font-display); font-size: 2.3rem; color: var(--c-ember); }

/* ---------------------------------------------------------------- promise strip */
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.promise { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r-lg); padding: 24px; position: relative; }
.promise-icon { width: 58px; height: 58px; border-radius: 18px; background: var(--c); color: #fff; display: grid; place-items: center; margin-bottom: 12px; border: 2px solid var(--ink); transform: rotate(-6deg); }
.promise h3 { font-size: 1.25rem; }
.promise p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

/* ---------------------------------------------------------------- forms */
.field { display: grid; gap: 6px; }
.field-label { font-weight: 800; font-size: .86rem; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border-radius: 14px; border: 2px solid var(--ink); background: #fff;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; box-shadow: 0 0 0 4px var(--c-sun-soft); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-stack { display: grid; gap: 12px; }
.form-fine { font-size: .82rem; color: var(--muted); margin: 0; text-align: center; }
.form-error { background: var(--c-berry-soft); color: #8a1f3f; border: 2px solid var(--c-berry); border-radius: 12px; padding: 10px 12px; font-weight: 700; font-size: .92rem; margin: 0; }
.hp { position: absolute !important; left: -9999px !important; }
.btn.loading { pointer-events: none; opacity: .8; }
.btn.loading .btn-label::after { content: "…"; }
.success-box { text-align: center; padding: 18px 6px; }
.success-mark { width: 74px; height: 74px; margin: 0 auto 12px; border-radius: 50%; background: var(--c-leaf); color: #fff; display: grid; place-items: center; border: 2px solid var(--ink); animation: pop .5s cubic-bezier(.2,.8,.3,1.6); }
@keyframes pop { from { transform: scale(.3); } }
.success-box h3 { font-size: 1.5rem; }

/* ---------------------------------------------------------------- contact */
.contact-card { display: grid; grid-template-columns: .9fr 1.1fr; gap: 0; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.contact-side { background: var(--c-sea-soft); padding: clamp(24px, 4vw, 44px); border-right: 2px solid var(--ink); position: relative; }
.contact-side h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.contact-side ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.contact-side li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.contact-side li::before { content: "✦"; color: var(--c-sea); font-size: 1.1rem; line-height: 1.4; }
.contact-main { padding: clamp(24px, 4vw, 44px); }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--ink); color: #cdd6e6; margin-top: 0; position: relative; }
.site-footer .wave { color: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding: 24px 0 36px; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.site-footer a { color: #cdd6e6; text-decoration: none; font-size: .95rem; }
.site-footer a:hover { color: var(--c-sun); }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.footer-brand img { width: 46px; height: 46px; }
.footer-brand span { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: #fff; }
.footer-tag { font-family: var(--font-hand); font-size: 1.4rem; color: var(--c-sun); margin: 0 0 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding: 18px 0 26px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------------------------------------------------------------- popup */
.modal { position: fixed; inset: 0; z-index: 90; display: none; place-items: center; padding: 16px; background: rgba(15,29,51,.6); }
.modal.open { display: grid; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.modal-card {
  position: relative; width: min(820px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  display: grid; grid-template-columns: .85fr 1.15fr;
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r-lg); box-shadow: var(--shadow);
  animation: rise .35s cubic-bezier(.2,.8,.3,1.2);
}
@keyframes rise { from { transform: translateY(24px) scale(.97); opacity: 0; } }
.modal-art { background: var(--c-sun-soft); border-right: 2px solid var(--ink); padding: 26px; display: grid; place-items: center; position: relative; overflow: hidden; }
.modal-art img { width: 70%; border-radius: 4px 8px 8px 4px; box-shadow: var(--shadow-book); transform: rotate(-5deg); }
.modal-body { padding: 30px 28px 26px; }
.modal-body h3 { font-size: 1.75rem; }
.modal-body .sub { color: var(--ink-soft); }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; cursor: pointer; font-size: 1.4rem; line-height: 1; }
.ticks { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: .95rem; }
.ticks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--c-leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; }

/* ---------------------------------------------------------------- catalog page */
.page-hero { position: relative; background: var(--c-soft); border-bottom: 2px solid var(--ink); padding: clamp(32px, 5vw, 56px) 0 clamp(28px, 4vw, 44px); overflow: hidden; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 10px 0 8px; }
.page-hero p { color: var(--ink-soft); max-width: 640px; font-size: 1.08rem; margin: 0; }
.crumbs { font-size: .88rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crumbs a { text-decoration: none; font-weight: 700; color: var(--ink-soft); }
.crumbs a:hover { color: var(--c-ember); text-decoration: underline; }

.cat-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  padding: 8px 14px; border-radius: 999px; font-weight: 800; font-size: .9rem;
  border: 2px solid var(--ink); background: var(--paper); cursor: pointer;
}
.cat-chip:hover { background: var(--c-soft); }
.cat-chip.is-on { background: var(--c); color: #fff; }
.cat-chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); border: 1.5px solid var(--ink); }
.cat-chip.is-on i { background: #fff; }

.toolbar {
  position: relative; z-index: 2;
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 12px; margin: -28px 0 26px;
  display: grid; grid-template-columns: minmax(220px, 1.6fr) repeat(4, minmax(140px, 1fr)); gap: 10px; align-items: center;
}
.toolbar .search-box { position: relative; }
.toolbar .search-box svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.toolbar input[type=search], .toolbar select {
  width: 100%; height: 48px; border-radius: 14px; border: 2px solid var(--ink); background: #fff;
  font: inherit; font-size: .95rem; font-weight: 600; padding: 0 14px; color: var(--ink);
}
.toolbar input[type=search] { padding-left: 42px; }
.toolbar select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 36px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%230f1d33' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") right 12px center / 16px no-repeat;
}
.toolbar select:disabled { opacity: .5; cursor: not-allowed; }
.toolbar input:focus, .toolbar select:focus { outline: none; box-shadow: 0 0 0 4px var(--c-sun-soft); }
.toolbar-more { display: none; }

.result-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; min-height: 36px; }
.result-count { font-weight: 800; }
.result-count span { color: var(--c-ember); }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.af-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 5px 8px 5px 12px; font-weight: 700; font-size: .84rem; cursor: pointer; }
.af-chip b { width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-size: .9rem; line-height: 1; }
.af-clear { background: none; border: 0; font-weight: 800; text-decoration: underline; cursor: pointer; color: var(--c-ember); }

.empty-state { text-align: center; padding: 50px 20px 70px; display: none; }
.empty-state.show { display: block; }
.empty-state svg { margin: 0 auto 16px; color: var(--c-sky); }
.empty-state h3 { font-size: 1.6rem; }
.theme-cloud { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.theme-cloud button { border: 2px dashed var(--ink-soft); background: transparent; border-radius: 999px; padding: 5px 12px; font-weight: 700; cursor: pointer; font-size: .88rem; }
.theme-cloud button:hover { background: var(--c-sun-soft); border-style: solid; }

/* ---------------------------------------------------------------- book landing page */
.bk-hero { position: relative; background: var(--c-soft); border-bottom: 2px solid var(--ink); overflow: hidden; }
.bk-hero-grid { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(28px, 5vw, 60px) clamp(40px, 6vw, 70px); }
.bk-cover-wrap { position: relative; padding: 26px; }
.bk-cover-wrap::before { content: ""; position: absolute; inset: 0; border-radius: 50% 46% 52% 48% / 48% 52% 46% 54%; background: var(--c); opacity: .9; border: 2px solid var(--ink); animation: morph 16s ease-in-out infinite; }
.bk-cover { position: relative; border-radius: 4px 12px 12px 4px; box-shadow: var(--shadow-book); transform: rotate(-3deg); transition: transform .4s; width: 100%; aspect-ratio: 2/3; object-fit: cover; background: #fff; }
.bk-cover-wrap:hover .bk-cover { transform: rotate(0) translateY(-6px); }
.bk-title { font-size: clamp(2.1rem, 4.6vw, 3.5rem); margin: 14px 0 8px; }
.bk-subtitle { font-family: var(--font-display); font-style: italic; font-weight: 400; color: #77808f; font-size: clamp(1.08rem, 1.8vw, 1.32rem); line-height: 1.35; margin: 0 0 18px; font-variation-settings: "SOFT" 50; }
.bk-headline { font-family: var(--font-hand); font-size: clamp(1.5rem, 2.4vw, 1.9rem); color: var(--ink-2); line-height: 1.15; margin: 0 0 6px; }
.bk-subhead { color: var(--ink-soft); margin-bottom: 16px; }
.bk-badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 22px; }
.bk-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.bk-hooks { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 22px 0; }
.bk-hook { display: inline-flex; align-items: center; gap: 8px; background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; padding: 8px 16px; font-weight: 800; box-shadow: 0 3px 0 var(--ink); }
.bk-hook::before { content: "✦"; color: var(--c); }
.bk-hook:nth-child(2) { transform: rotate(1.2deg); }
.bk-hook:nth-child(3) { transform: rotate(-1deg); }

.bk-body { display: grid; grid-template-columns: 1.35fr .9fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.bk-about h2, .bk-section h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.bk-about p { font-size: 1.08rem; }
.bk-inside { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-sm); position: relative; }
.bk-inside h3 { font-size: 1.35rem; }
.bk-inside .ticks li { font-size: 1rem; }
.bk-inside .ticks li::before { background-color: var(--c); }
.paperclip { position: absolute; top: -18px; right: 28px; width: 26px; height: 60px; border: 3px solid #8a94a6; border-radius: 13px; transform: rotate(12deg); }

.bk-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.bk-note { border: 2px solid var(--ink); border-radius: var(--r-lg); padding: 24px; position: relative; }
.bk-note:nth-child(1) { background: var(--c-sky-soft); transform: rotate(-.6deg); }
.bk-note:nth-child(2) { background: var(--c-sun-soft); transform: rotate(.6deg); }
.bk-note h3 { font-size: 1.25rem; display: flex; gap: 10px; align-items: center; }
.bk-note p { margin: 0; font-size: 1.02rem; }
.tape { position: absolute; top: -12px; left: 50%; width: 90px; height: 24px; background: rgba(233, 169, 35, .45); transform: translateX(-50%) rotate(-3deg); border-left: 2px dashed rgba(15,29,51,.15); border-right: 2px dashed rgba(15,29,51,.15); }

.bk-bonus { display: flex; gap: 18px; align-items: center; background: var(--ink); color: var(--cream); border-radius: var(--r-lg); padding: 22px 26px; border: 2px solid var(--ink); position: relative; overflow: hidden; }
.bk-bonus-icon { flex: none; width: 66px; height: 66px; border-radius: 50%; background: var(--c-sun); color: var(--ink); display: grid; place-items: center; transform: rotate(-10deg); }
.bk-bonus p { margin: 0; font-size: 1.05rem; }
.bk-bonus strong { color: var(--c-sun); }
.bk-bonus .btn { margin-left: auto; }

.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.review { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r-lg); padding: 22px; position: relative; }
.review::before { content: "“"; position: absolute; top: -18px; left: 16px; font-family: var(--font-display); font-size: 5rem; line-height: 1; color: var(--c); }
.review blockquote { margin: 10px 0 12px; font-family: var(--font-display); font-size: 1.12rem; line-height: 1.4; font-variation-settings: "SOFT" 100; }
.review cite { font-style: normal; font-weight: 800; font-size: .9rem; }

.bk-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; background: var(--paper); }
.bk-details div { padding: 14px 18px; border-right: 2px dashed var(--line); }
.bk-details div:last-child { border-right: 0; }
.bk-details dt { font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bk-details dd { margin: 2px 0 0; font-weight: 800; font-size: 1.05rem; }

.bk-closing { text-align: center; background: var(--c); color: #fff; border: 2px solid var(--ink); border-radius: var(--r-lg); padding: clamp(30px, 5vw, 54px) 24px; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.bk-closing h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); max-width: 720px; margin: 0 auto 18px; }

.buy-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: none; gap: 10px; align-items: center; background: var(--paper); border-top: 2px solid var(--ink); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 20px -10px rgba(15,29,51,.4); transform: translateY(110%); transition: transform .3s; }
.buy-bar.show { transform: translateY(0); }
.buy-bar img { width: 34px; height: 51px; object-fit: cover; border-radius: 3px; }
.buy-bar strong { font-size: .9rem; line-height: 1.2; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------------------------------------------------------------- bonus page */
.bn-hero { position: relative; overflow: hidden; background: var(--c-soft); border-bottom: 2px solid var(--ink); }
.bn-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(26px, 5vw, 60px); align-items: center; padding-block: clamp(30px, 5vw, 64px) clamp(44px, 6vw, 80px); }
.bn-for { display: flex; align-items: center; gap: 14px; background: var(--paper); border: 2px solid var(--ink); border-radius: 18px; padding: 10px 16px 10px 10px; width: fit-content; max-width: 100%; box-shadow: 0 3px 0 var(--ink); text-decoration: none; }
.bn-for img { width: 46px; height: 69px; object-fit: cover; border-radius: 3px 6px 6px 3px; box-shadow: var(--shadow-sm); }
.bn-for small { display: block; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--c); }
.bn-for strong { font-family: var(--font-display); font-size: 1.02rem; line-height: 1.2; display: block; }
.bn-for em { display: block; font-size: .82rem; color: var(--muted); line-height: 1.3; }
.bn-title { font-size: clamp(2.2rem, 5vw, 3.7rem); margin: 22px 0 12px; }
.bn-title .underline-swash::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14 C 40 4, 80 4, 120 10 S 180 16, 197 6' fill='none' stroke='%23e36a3a' stroke-opacity='.45' stroke-width='9' stroke-linecap='round'/%3E%3C/svg%3E"); }
.bn-pitch { font-size: clamp(1.06rem, 1.6vw, 1.24rem); color: var(--ink-soft); max-width: 560px; }
.bn-inside { margin-top: 22px; }
.bn-inside h2 { font-family: var(--font-hand); font-size: 1.7rem; font-weight: 700; color: var(--ink-2); margin-bottom: 10px; }
.bn-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.bn-list li { display: flex; gap: 12px; align-items: center; background: var(--paper); border: 2px solid var(--ink); border-radius: 14px; padding: 10px 14px; font-weight: 700; }
.bn-list li span { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; font-family: var(--font-display); background: var(--c); transform: rotate(-6deg); }
.bn-list li:nth-child(4n+2) span { background: var(--c-sea); transform: rotate(5deg); }
.bn-list li:nth-child(4n+3) span { background: var(--c-plum); transform: rotate(-3deg); }
.bn-list li:nth-child(4n+4) span { background: var(--c-sun); color: var(--ink); transform: rotate(7deg); }

.ticket {
  position: relative; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r-lg);
  padding: 30px 28px 24px; box-shadow: 0 8px 0 var(--ink), 0 30px 50px -20px rgba(15,29,51,.5);
}
.ticket::before, .ticket::after { content: ""; position: absolute; top: 112px; width: 28px; height: 28px; border-radius: 50%; background: var(--c-soft); border: 2px solid var(--ink); }
.ticket::before { left: -15px; clip-path: inset(0 0 0 50%); }
.ticket::after { right: -15px; clip-path: inset(0 50% 0 0); }
.ticket-head { text-align: center; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 2px dashed var(--line); }
.ticket-head h2 { font-size: 1.7rem; margin: 6px 0 4px; }
.ticket-head p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.stamp {
  position: absolute; top: -26px; right: -14px; width: 92px; height: 92px; border-radius: 50%;
  background: var(--c-ember); color: #fff; border: 2px solid var(--ink); display: grid; place-items: center; text-align: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; line-height: .95; transform: rotate(14deg);
  box-shadow: 0 4px 0 var(--ink);
}
.stamp::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 2px dashed rgba(255,255,255,.6); }
.stamp small { display: block; font-family: var(--font-body); font-size: .62rem; letter-spacing: .12em; }
.ticket .btn { width: 100%; }
.trust { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 14px; font-size: .82rem; font-weight: 700; color: var(--muted); }
.trust span { display: inline-flex; align-items: center; gap: 5px; }

.bn-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.bn-step { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r-lg); padding: 22px; position: relative; }
.bn-step::before { counter-increment: step; content: counter(step); position: absolute; top: -18px; left: 20px; width: 40px; height: 40px; border-radius: 50%; background: var(--c); color: #fff; border: 2px solid var(--ink); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; }
.bn-step h3 { font-size: 1.15rem; margin-top: 8px; }
.bn-step p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

.bn-book-spot { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.bn-book-spot img { border-radius: 4px 10px 10px 4px; box-shadow: var(--shadow-book); transform: rotate(-3deg); }
.bn-book-spot h3 { font-size: 1.6rem; margin-bottom: 2px; }
.bn-book-spot .bk-subtitle { font-size: 1.02rem; margin-bottom: 10px; }

/* related books on bonus page: big colourful cards */
.rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.rel-card {
  display: flex; flex-direction: column; text-decoration: none; overflow: hidden;
  background: var(--c-soft); border: 2px solid var(--ink); border-radius: var(--r-lg);
  box-shadow: 0 5px 0 var(--ink); transition: transform .25s, box-shadow .25s;
}
.rel-card:hover { transform: translateY(-5px) rotate(-.6deg); box-shadow: 0 10px 0 var(--ink); }
.rel-cover { position: relative; padding: 24px 24px 0; height: 250px; display: flex; justify-content: center; align-items: flex-end; overflow: hidden; }
.rel-cover::before { content: ""; position: absolute; width: 210px; height: 210px; border-radius: 50%; background: var(--c); opacity: .9; bottom: -60px; }
.rel-cover img { position: relative; width: 150px; aspect-ratio: 2/3; object-fit: cover; border-radius: 3px 8px 8px 3px; box-shadow: var(--shadow-book); transform: translateY(26px) rotate(-4deg); transition: transform .35s; }
.rel-card:hover .rel-cover img { transform: translateY(8px) rotate(0); }
.rel-body { background: var(--paper); border-top: 2px solid var(--ink); padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; position: relative; z-index: 1; }
.rel-body h3 { font-size: 1.15rem; margin: 0; }
.rel-body p { font-size: .9rem; color: var(--ink-soft); margin: 0; }
.rel-body .link-arrow { margin-top: auto; padding-top: 6px; color: var(--c); width: fit-content; }

/* ---------------------------------------------------------------- reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: grid; }
  .header-search { max-width: none; }
  .toolbar { grid-template-columns: 1fr 1fr; }
  .toolbar .search-box { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero-grid, .pack-grid, .bk-hero-grid, .bk-body, .bn-grid, .contact-card { grid-template-columns: 1fr; }
  .hero-stage { height: 340px; max-width: 520px; width: 100%; margin: 0 auto; }
  .age-row { grid-template-columns: repeat(2, 1fr); }
  .promise-grid, .bn-steps { grid-template-columns: 1fr; }
  .bk-cover-wrap { max-width: 320px; margin: 0 auto; }
  .bk-hero-grid { text-align: left; }
  .contact-side { border-right: 0; border-bottom: 2px solid var(--ink); }
  .modal-card { grid-template-columns: 1fr; }
  .modal-art { display: none; }
  .pack-art { display: none; }
  .bn-book-spot { grid-template-columns: 120px 1fr; gap: 18px; padding: 18px; }
  .buy-bar { display: flex; }
  .toolbar { position: static; }
  .bk-bonus { flex-wrap: wrap; }
  .bk-bonus .btn { margin-left: 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .header-search { display: none; }
  .brand-tag { display: none; }
  .bk-duo, .form-row { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
  .book-cover { padding: 12px 12px 14px; }
  .book-title { font-size: 1rem; }
  .shelf-track { grid-auto-columns: 46%; }
  .footer-grid { grid-template-columns: 1fr; }
  .toolbar { grid-template-columns: 1fr; }
  .hero-badge { width: 92px; height: 92px; font-size: 1.05rem; }
  .hero-badge b { font-size: 1.3rem; }
  .ticket { padding: 26px 18px 20px; }
  .stamp { width: 76px; height: 76px; font-size: 1.05rem; right: -6px; }
  .bn-book-spot { grid-template-columns: 1fr; text-align: left; }
  .bn-book-spot img { max-width: 140px; }
  .bk-details div { border-right: 0; border-bottom: 2px dashed var(--line); }
  .cat-tile p { max-width: 100%; }
  .page-hero .cat-chips { flex-wrap: nowrap; overflow-x: auto; margin-right: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px 0; scrollbar-width: none; }
  .page-hero .cat-chips::-webkit-scrollbar { display: none; }
  .cat-chip { white-space: nowrap; flex: none; }
  .bk-cover-wrap { max-width: 240px; padding: 16px; }
  .bk-hero-grid { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- book page v2 */
.bp-hero { background: linear-gradient(180deg, var(--c-soft) 0%, var(--c-soft) 78%, var(--cream) 78%); padding-top: 22px; }
.bp-hero-grid { display: grid; grid-template-columns: minmax(260px, 440px) 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; padding: 24px 0 8px; }
.bp-stage { position: relative; padding: 30px 40px 0; display: grid; place-items: center; }
.bp-stage-circle { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 92%; aspect-ratio: 1; border-radius: 50%; background: var(--c); opacity: .22; }
.bp-cover { position: relative; width: 100%; max-width: 340px; aspect-ratio: 2/3; object-fit: cover; border-radius: 4px 12px 12px 4px; box-shadow: var(--shadow-book); background: #fff; transition: transform .4s cubic-bezier(.2,.8,.3,1.2); }
.bp-stage:hover .bp-cover { transform: translateY(-6px) rotate(-1.5deg); }
.bp-shelf { position: relative; display: block; width: 110%; height: 16px; margin-top: -2px; border-radius: 4px 4px 12px 12px; background: linear-gradient(#c99d5f, #a9793d); border: 2px solid var(--ink); }
.bp-info { padding-bottom: 40px; }
.bp-title { font-size: clamp(2.2rem, 4.8vw, 3.7rem); margin: 14px 0 10px; }
.bp-subtitle { font-family: var(--font-display); font-style: italic; font-weight: 400; color: #7b8291; font-size: clamp(1.1rem, 1.8vw, 1.35rem); line-height: 1.4; margin: 0 0 16px; font-variation-settings: "SOFT" 50; max-width: 620px; }
.bp-rating { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; font-size: .95rem; }
.bp-rating span { color: var(--muted); }
.bp-headline { font-family: var(--font-hand); font-size: clamp(1.5rem, 2.4vw, 1.9rem); color: var(--c); line-height: 1.15; margin: 0 0 8px; }
.bp-lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 560px; margin-bottom: 24px; }
.bp-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.bp-facts { display: flex; flex-wrap: wrap; gap: 0; margin: 0; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r); width: fit-content; max-width: 100%; overflow: hidden; }
.bp-facts div { padding: 10px 20px; border-right: 2px dashed var(--line); }
.bp-facts div:last-child { border-right: 0; }
.bp-facts dt { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bp-facts dd { margin: 0; font-weight: 800; font-size: 1.05rem; }
.bp-hooks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.bp-hook { display: flex; gap: 14px; align-items: center; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: 0 4px 0 var(--ink); }
.bp-hook span { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; border: 2px solid var(--ink); }
.bp-hook-1 span { background: var(--c-ember); } .bp-hook-2 span { background: var(--c-sea); } .bp-hook-3 span { background: var(--c-plum); }
.bp-hook p { margin: 0; font-weight: 800; line-height: 1.3; }
.bp-about { display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.bp-about h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.bp-about p { font-size: 1.08rem; line-height: 1.75; }
.bp-inside { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r-lg); padding: 26px; position: sticky; top: 100px; }
.bp-inside h3 { font-size: 1.3rem; margin-bottom: 14px; }
.bp-inside ol { list-style: none; counter-reset: in; margin: 0; padding: 0; display: grid; gap: 12px; }
.bp-inside li { counter-increment: in; display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.bp-inside li::before { content: counter(in); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.bp-tight { padding-top: 0; }
.bp-fit { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.bp-fit-card { background: var(--c-soft); border-radius: var(--r-lg); padding: 24px 26px; }
.bp-fit-card h3 { display: flex; gap: 10px; align-items: center; font-size: 1.2rem; color: var(--ink); }
.bp-fit-card h3 svg { color: var(--c); }
.bp-fit-card p { margin: 0; font-size: 1.04rem; }
.bp-findmore { font-weight: 800; margin: 0; }
.bp-related { background: var(--paper); border-top: 2px solid var(--ink); }
@media (max-width: 860px) {
  .bp-hero { background: var(--c-soft); }
  .bp-hero-grid, .bp-about, .bp-fit, .bp-hooks { grid-template-columns: 1fr; }
  .bp-stage { max-width: 300px; margin: 0 auto; padding: 20px 30px 0; }
  .bp-inside { position: static; }
  .bp-info { padding-bottom: 28px; }
}
@media (max-width: 600px) {
  .bp-stage { max-width: 230px; }
  .bp-facts { width: 100%; }
  .bp-facts div { flex: 1 1 45%; border-right: 0; border-bottom: 2px dashed var(--line); }
}

/* ---------------------------------------------------------------- free-pack art: cover + storybook pages */
.pack-art { position: relative; height: 330px; }
.pack-page { position: absolute; top: 40px; width: 200px; height: 260px; background: #fffaf1; border-radius: 6px; box-shadow: 0 20px 40px -14px rgba(0,0,0,.6); padding: 22px 20px; }
.pack-page i { display: block; height: 7px; border-radius: 4px; background: #e7dcc6; margin-bottom: 10px; }
.pack-page i.s { width: 60%; } .pack-page i.m { width: 82%; }
.pack-page .q { font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--c-ember); line-height: 1; margin-bottom: 12px; }
.pack-page .doodle { width: 70px; height: 70px; border-radius: 50%; background: var(--c-sky-soft); border: 2px dashed var(--c-sky); margin: 14px 0 0 auto; display: grid; place-items: center; color: var(--c-sky); font-family: var(--font-hand); font-size: 1.6rem; }
.pack-page-l { left: 6%; transform: rotate(-11deg); }
.pack-page-r { right: 2%; transform: rotate(10deg); }
.pack-cover { position: absolute; left: 50%; top: 0; width: 210px; transform: translateX(-50%) rotate(-2deg); border-radius: 4px 10px 10px 4px; box-shadow: 0 30px 50px -16px rgba(0,0,0,.7); z-index: 2; }
.pack-art .pack-tag { position: absolute; z-index: 3; right: 8%; bottom: 6px; background: var(--c-sun); color: var(--ink); font-family: var(--font-hand); font-size: 1.35rem; padding: 4px 14px; border-radius: 999px; border: 2px solid var(--ink); transform: rotate(-6deg); }