/* Art-driven book pages (Sparkliest Unicorn, Wash Day, Braid Day, My Day, the series page).
   The site header and footer stay as they are (system.css, monochrome); everything inside <main class="ba"> takes its
   colours, lettering and shapes from that book's own artwork. Each page sets its palette on main.ba:
   --ba-ink, --ba-muted, --ba-bg, --ba-soft, --ba-deep, --ba-accent, --ba-accent-ink, --ba-buy, --ba-buy-ink, --ba-buy-edge,
   --ba-title-font, --ba-head-font. */
.ba { --ba-ink: #2b1a2c; --ba-muted: #6f5b6e; --ba-bg: #fff9f4; --ba-soft: #f6eaf3; --ba-deep: #4a1a3f; --ba-accent: #c2408f;
  --ba-accent-ink: #fff; --ba-buy: #f6d27a; --ba-buy-ink: #2b1a2c; --ba-buy-edge: #b58a22; --ba-title-font: 'Lexend', sans-serif;
  --ba-head-font: var(--ba-title-font); --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 48' preserveAspectRatio='none'%3E%3Cpath d='M0 48V30C120 8 220 6 330 22s210 30 330 10 230-34 340-20 140 22 200 14v22z'/%3E%3C/svg%3E");
  color: var(--ba-ink); background: var(--ba-bg); overflow-x: clip; }
.ba img { display: block; max-width: 100%; height: auto; }
.ba .crumb { background: transparent; }
.ba-wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }
.ba-sec { position: relative; padding: clamp(66px, 9vw, 116px) 0; background: var(--sec, var(--ba-bg)); }
.ba-sec.edge::before { content: ""; position: absolute; left: 0; right: 0; top: -46px; height: 48px; background: var(--sec, var(--ba-bg));
  -webkit-mask: var(--wave) center bottom / 100% 100% no-repeat; mask: var(--wave) center bottom / 100% 100% no-repeat; pointer-events: none; }
.ba-h2 { font-family: var(--ba-head-font); font-weight: 800; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.06; letter-spacing: -.01em; max-width: 20ch; color: var(--h2, var(--ba-deep)); }
.ba-intro { margin-top: 14px; max-width: 58ch; font-size: 1.1rem; color: var(--ba-muted); }
.ba-two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 84px); align-items: center; }
.ba-two > * { min-width: 0; }
@media (max-width: 880px) { .ba-two { grid-template-columns: 1fr; } }

/* Buttons */
.ba-btn { display: inline-block; font: inherit; font-weight: 800; font-size: 1.03rem; padding: 14px 28px; border-radius: 999px; border: 0; cursor: pointer;
  text-decoration: none !important; background: var(--ba-buy); color: var(--ba-buy-ink); box-shadow: 0 4px 0 var(--ba-buy-edge); transition: transform .12s ease, box-shadow .12s ease, filter .2s; }
.ba-btn:hover { filter: brightness(1.06); }
.ba-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ba-buy-edge); }
.ba-btn.alt { background: var(--ba-deep); color: #fff; box-shadow: 0 4px 0 rgba(0,0,0,.35); }
.ba-link { font-weight: 600; text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--ba-accent); color: inherit; }
.ba-actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; margin-top: 22px; }
.ba-assure { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .92rem; color: var(--ba-muted); list-style: none; padding: 0; }
.ba-assure li::before { content: "✓"; color: var(--ba-accent); font-weight: 900; margin-right: 6px; }

/* Hero: the book's own spread is the page */
.ba-hero { position: relative; background: var(--ba-bg); }
.ba-hero .art { position: relative; overflow: hidden; aspect-ratio: 2200 / 900; max-height: 76vh; }
.ba-hero .art img, .ba-hero .art video { width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-pos, center 40%); }
.ba-hero .art::after { content: ""; position: absolute; inset: auto 0 0 0; height: 46%; pointer-events: none;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--ba-bg) 85%, transparent) 70%, var(--ba-bg)); }
.ba-hero .copy { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(20px, 5vw, 70px); align-items: end;
  margin-top: clamp(-180px, -12vw, -60px); padding-bottom: clamp(40px, 5vw, 64px); }
.ba-title { font-family: var(--ba-title-font); line-height: .95; color: var(--ba-deep); }
.ba-by { margin-top: 14px; color: var(--ba-muted); }
.ba-by strong { color: var(--ba-ink); font-weight: 600; }
.ba-lede { font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 600; line-height: 1.28; max-width: 22ch; }
.ba-sub { margin-top: 12px; color: var(--ba-muted); }
@media (max-width: 760px) {
  .ba-hero .art { aspect-ratio: 1 / 1; max-height: none; }
  .ba-hero .copy { grid-template-columns: 1fr; margin-top: -24vw; }
}

/* Author's note */
.ba-note { --sec: var(--ba-soft); }
.ba-note .ba-wrap { display: grid; grid-template-columns: auto 1fr; gap: clamp(18px, 3vw, 32px); align-items: center; }
.ba-note.ba-sec { padding: 30px 0 36px; }
.ba-note img { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; border: 5px solid var(--ba-buy); box-shadow: 0 6px 0 var(--ba-accent); }
.ba-note blockquote { margin: 0; }
.ba-note blockquote p { font-size: clamp(1.1rem, 1.9vw, 1.32rem); font-weight: 600; line-height: 1.42; max-width: 62ch; color: var(--ba-deep); }
.ba-note cite { display: block; margin-top: 8px; font-style: normal; color: var(--ba-muted); font-size: .95rem; }
@media (max-width: 520px) { .ba-note .ba-wrap { grid-template-columns: 1fr; } }

/* Picker: tap a gem / a style, the character steps out of the page */
.ba-picker { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 5vw, 70px); align-items: center; margin-top: clamp(26px, 4vw, 44px); }
.ba-picker .stage { position: relative; min-height: clamp(320px, 38vw, 470px); display: grid; place-items: end center; }
.ba-picker .stage::before { content: ""; position: absolute; inset: 12% 8% 0; border-radius: 50%; background: radial-gradient(circle, var(--glow, rgba(255,255,255,.75)), transparent 68%); }
.ba-picker .stage img { position: relative; max-height: clamp(300px, 36vw, 450px); width: auto; filter: drop-shadow(0 18px 18px rgba(40,10,40,.25)); }
.ba-picker .stage img.pop { animation: ba-pop .5s cubic-bezier(.3,1.5,.5,1) both; }
@keyframes ba-pop { from { transform: translateY(26px) scale(.9); opacity: 0; } }
.ba-picker .choices { display: flex; flex-wrap: wrap; gap: 12px; }
.ba-picker .choice { font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px 9px 10px; min-height: 48px; border-radius: 999px; border: 2px solid transparent; background: #fff; color: var(--ba-ink); box-shadow: 0 6px 16px -10px rgba(40,10,40,.5); }
.ba-picker .choice[aria-pressed="true"] { border-color: var(--ba-deep); background: var(--ba-soft); }
.ba-picker .gem { width: 28px; height: 26px; flex: none; background: var(--gem); position: relative;
  clip-path: path("M14 25 C 4 17 0 12 0 7 C 0 3 3 0 7 0 C 10 0 12 2 14 4 C 16 2 18 0 21 0 C 25 0 28 3 28 7 C 28 12 24 17 14 25 Z");
  box-shadow: inset -4px -4px 0 rgba(0,0,0,.18), inset 4px 3px 0 rgba(255,255,255,.55); }
.ba-picker .info { margin-top: 22px; min-height: 7.5em; }
.ba-picker .info h3 { font-family: var(--ba-head-font); font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--ba-deep); }
.ba-picker .info p { margin-top: 6px; font-size: 1.08rem; max-width: 46ch; }
@media (prefers-reduced-motion: reduce) { .ba-picker .stage img.pop { animation: none; } }
@media (max-width: 880px) { .ba-picker { grid-template-columns: 1fr; } .ba-picker .stage { order: -1; } }

/* Watch: the animated video in a phone */
.ba-watch .ba-two { grid-template-columns: .8fr 1.2fr; }
.ba-phone { position: relative; width: min(300px, 78vw); margin: 0 auto; border-radius: 38px; padding: 10px; background: #18121a; box-shadow: 0 30px 60px -28px rgba(30,10,30,.7); }
.ba-phone video { width: 100%; aspect-ratio: 9 / 16; border-radius: 30px; background: #000; display: block; }
.ba-phone .sound { position: absolute; right: 20px; bottom: 22px; font: inherit; font-size: .85rem; font-weight: 700; border: 0; border-radius: 999px; padding: 8px 14px; min-height: 40px;
  background: rgba(255,255,255,.92); color: #18121a; cursor: pointer; }

/* Look inside: an open book */
.ba-peek { --sec: var(--ba-soft); }
.ba-viewer { margin-top: clamp(26px, 4vw, 40px); outline: none; }
.ba-viewer:focus-visible .book { outline: 3px solid var(--ba-accent); outline-offset: 6px; }
.ba-viewer .book { position: relative; aspect-ratio: var(--spread-ratio, 2000 / 1014); border-radius: 6px; box-shadow: 0 30px 50px -28px rgba(40,10,40,.6); }
.ba-viewer .book img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.ba-viewer .book::after { content: ""; position: absolute; inset: 0; border-radius: 6px; pointer-events: none;
  background: linear-gradient(90deg, transparent 46%, rgba(30,10,25,.18) 49.6%, rgba(255,255,255,.18) 50.4%, transparent 54%); }
.ba-viewer .turn { position: absolute; top: 50%; translate: 0 -50%; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; z-index: 1;
  background: var(--ba-buy); box-shadow: 0 4px 0 var(--ba-buy-edge), 0 10px 20px -8px rgba(0,0,0,.35); display: grid; place-items: center; }
.ba-viewer .turn svg { width: 24px; height: 24px; fill: none; stroke: var(--ba-buy-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ba-viewer .turn.prev { left: -20px; } .ba-viewer .turn.next { right: -20px; }
.ba-viewer .meta { margin-top: 18px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ba-viewer .cap { font-weight: 700; color: var(--ba-deep); flex: 1 1 260px; margin: 0; }
.ba-viewer .count { color: var(--ba-muted); font-variant-numeric: tabular-nums; font-size: .92rem; }
.ba-viewer .dots { display: flex; gap: 8px; }
.ba-viewer .dots button { width: 12px; height: 12px; padding: 0; border-radius: 999px; border: 0; cursor: pointer; background: color-mix(in srgb, var(--ba-deep) 25%, transparent); transition: width .2s ease; }
.ba-viewer .dots button[aria-current="true"] { width: 28px; background: var(--ba-deep); }
.ba-note-sm { margin-top: 14px; color: var(--ba-muted); font-size: .95rem; }
@media (max-width: 640px) { .ba-viewer .turn { width: 44px; height: 44px; } .ba-viewer .turn.prev { left: 6px; } .ba-viewer .turn.next { right: 6px; } }

/* Buy */
.ba-buy { --sec: var(--ba-deep); color: #fff; }
.ba-buy .ba-h2 { --h2: #fff; }
.ba-buy .ba-intro { color: color-mix(in srgb, #fff 78%, var(--ba-deep)); }
.ba-books { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(16px, 2.5vw, 26px); margin-top: clamp(26px, 4vw, 44px); }
.ba-book { background: #fff; color: var(--ba-ink); border-radius: 24px; padding: 18px 20px 22px; display: flex; flex-direction: column; box-shadow: 0 20px 40px -24px rgba(0,0,0,.6); }
.ba-book img { width: 82%; margin: -40px auto 6px; filter: drop-shadow(0 16px 18px rgba(0,0,0,.28)); }
.ba-book h3 { font-family: var(--ba-head-font); font-size: 1.25rem; color: var(--ba-deep); }
.ba-book p { margin-top: 4px; font-size: .97rem; color: var(--ba-muted); }
.ba-book .go { margin-top: auto; padding-top: 16px; }
.ba-book .ba-btn { width: 100%; text-align: center; }
.ba-book .ba-link { display: block; text-align: center; margin-top: 10px; font-size: .93rem; }
.ba-buy .fine { margin-top: 22px; font-size: .95rem; color: color-mix(in srgb, #fff 75%, var(--ba-deep)); }
.ba-buy .fine a { color: #fff; }

/* Questions */
.ba-faq .ba-wrap { max-width: 900px; }
.ba-faq details { border-bottom: 2px solid color-mix(in srgb, var(--ba-deep) 14%, transparent); padding: 16px 0; }
.ba-faq details:first-of-type { margin-top: 24px; border-top: 2px solid color-mix(in srgb, var(--ba-deep) 14%, transparent); }
.ba-faq summary { cursor: pointer; font-weight: 800; font-size: 1.12rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; min-height: 44px; align-items: center; }
.ba-faq summary::-webkit-details-marker { display: none; }
.ba-faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ba-buy); color: var(--ba-buy-ink); font-weight: 900; }
.ba-faq details[open] summary::after { content: "–"; }
.ba-faq details p { margin-top: 8px; max-width: 68ch; }

/* Related reading, restyled lightly */
.ba-read .article-grid { margin-top: 24px; }
.ba-read .article-card { border-radius: 20px; background: #fff; }

/* Mobile: buy button stays in reach */
.ba-sticky { display: none; }
@media (max-width: 760px) {
  .ba-sticky { display: block; position: fixed; left: 16px; right: 16px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 50; text-align: center; transition: transform .25s ease, opacity .25s ease; }
  .ba-sticky[hidden] { display: block; transform: translateY(160%); opacity: 0; pointer-events: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .ba-float { animation: ba-float 4s ease-in-out infinite; }
  @keyframes ba-float { 50% { translate: 0 -10px; } }
}
@media (prefers-reduced-motion: reduce) { .ba-sticky, .ba-btn { transition: none; } }

/* Split hero for square artwork: copy on one side, the illustration in an organic frame with a character stepping out */
.ba-hero.split { padding: clamp(28px, 4vw, 56px) 0 clamp(50px, 6vw, 80px); background: radial-gradient(120% 90% at 85% 10%, var(--ba-soft), var(--ba-bg) 60%); }
.ba-hero.split .ba-wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(24px, 5vw, 70px); align-items: center; }
.ba-hero.split .frame { position: relative; }
.ba-hero.split .frame > picture img, .ba-hero.split .frame > img.scene { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 46% 54% 48% 52% / 52% 44% 56% 48%;
  box-shadow: 0 30px 60px -30px rgba(40,20,60,.5); }
.ba-hero.split .frame .pop-out { position: absolute; width: 36%; left: -8%; bottom: -6%; filter: drop-shadow(0 16px 18px rgba(40,20,60,.3)); }
.ba-hero.split .frame .pop-out.right { left: auto; right: -6%; }
.ba-hero.split .ba-lede { margin-top: 18px; }
.ba-script { font-family: 'Gochi Hand', cursive; font-weight: 400; }
.ba-title.lettering img { width: min(560px, 100%); }
.ba-badge { display: inline-block; font-weight: 700; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ba-deep);
  background: #fff; border-radius: 999px; padding: 6px 14px; box-shadow: 0 4px 14px -8px rgba(40,20,60,.4); margin-bottom: 16px; text-decoration: none; }
@media (max-width: 880px) { .ba-hero.split .ba-wrap { grid-template-columns: 1fr; } .ba-hero.split .frame { order: -1; max-width: 520px; margin: 0 auto; } }

/* Value cards (scene + line) */
.ba-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.6vw, 28px); margin-top: clamp(26px, 4vw, 44px); }
.ba-values figure { margin: 0; background: #fff; border-radius: 26px; padding: 12px 12px 20px; box-shadow: 0 18px 36px -24px rgba(40,20,60,.45); }
.ba-values figure:nth-child(odd) { transform: rotate(-1.2deg); } .ba-values figure:nth-child(even) { transform: rotate(1deg) translateY(14px); }
.ba-values img { border-radius: 18px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.ba-values figcaption { padding: 14px 8px 0; }
.ba-values h3 { font-family: var(--ba-head-font); font-size: 1.5rem; color: var(--ba-deep); line-height: 1.1; }
.ba-values p { margin-top: 6px; color: var(--ba-muted); }
@media (max-width: 820px) { .ba-values { grid-template-columns: 1fr; } .ba-values figure { transform: none !important; } }

/* Kept sections from the old pages, re-skinned */
.ba .review-grid { margin-top: 24px; }
.ba .review-card { background: #fff; border-radius: 22px; border: 0; box-shadow: 0 16px 34px -24px rgba(40,20,60,.45); }
.ba .review-stars { color: var(--ba-accent); }
.ba .faq-list { margin-top: 20px; }
.ba-retailers { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; justify-content: center; font-size: .9rem; }
.ba-retailers a { color: var(--ba-deep); font-weight: 600; text-underline-offset: 3px; }


/* ===== Restraint pass (2026-11-14): one display font (the cover's, in the H1 only), Lexend everywhere else,
   two text colours (ink + muted), one tint, one deep colour, one call-to-action colour, one elevation rule. ===== */
.ba { --ba-shadow: 0 18px 36px -24px rgba(40, 20, 30, .42); }
.ba-h2, .ba-picker .info h3, .ba-book h3, .ba-values h3 { font-family: 'Lexend', sans-serif !important; font-weight: 800; color: var(--ba-ink); letter-spacing: -.02em; }
.ba-h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.08; }
.ba-picker .info h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
.ba-link { text-decoration-color: currentColor; }
.ba-note blockquote p { color: var(--ba-ink); }
.ba-note img { border-color: #fff; box-shadow: var(--ba-shadow); }
.ba-picker .choice { box-shadow: none; border: 2px solid color-mix(in srgb, var(--ba-ink) 14%, transparent); }
.ba-picker .choice[aria-pressed="true"] { border-color: var(--ba-ink); background: #fff; }
.ba-picker .stage::before { background: radial-gradient(circle, color-mix(in srgb, var(--ba-soft) 90%, #fff), transparent 68%); }
.ba-values figure { transform: none !important; box-shadow: var(--ba-shadow); border-radius: 22px; }
.ba-phone { box-shadow: var(--ba-shadow); }
.ba-viewer .book { box-shadow: var(--ba-shadow); }
.ba .review-card, .ba .article-card { box-shadow: var(--ba-shadow); }
.ba-faq summary::after { background: transparent; border: 2px solid var(--ba-ink); color: var(--ba-ink); width: 28px; height: 28px; }

/* Rating line next to the call to action (social proof at the point of decision) */
.ba-proof { margin-top: 14px; font-size: .95rem; color: var(--ba-muted); }
.ba-proof strong { color: var(--ba-ink); }
.ba-proof .stars { color: var(--ba-cta-star, #c9862a); letter-spacing: .08em; margin-right: 6px; }
.ba-series-line { margin-top: 14px; color: var(--ba-muted); }
.ba-series-line a { color: var(--ba-ink); font-weight: 600; text-underline-offset: 3px; }

/* Buy: one dominant product, one primary action, quieter alternatives */
.ba-buy2 { --sec: var(--ba-deep); color: #fff; }
.ba-buy2 .ba-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 6vw, 84px); align-items: center; }
.ba-buy2 .cover { width: min(440px, 100%); justify-self: center; filter: drop-shadow(0 28px 34px rgba(0,0,0,.35)); }
.ba-buy2 .ba-h2 { color: #fff; }
.ba-buy2 .lead { margin-top: 12px; font-size: 1.1rem; color: rgba(255,255,255,.85); max-width: 46ch; }
.ba-buy2 .ba-actions { margin-top: 26px; }
.ba-buy2 .where { margin-top: 14px; font-size: .95rem; color: rgba(255,255,255,.78); }
.ba-buy2 .where a { color: #fff; font-weight: 600; text-underline-offset: 3px; }
.ba-buy2 .more { margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.22); display: grid; gap: 14px; }
.ba-buy2 .more a { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; color: #fff; text-decoration: none; }
.ba-buy2 .more img { width: 64px; height: 64px; object-fit: contain; }
.ba-buy2 .more strong { display: block; font-weight: 700; }
.ba-buy2 .more span { font-size: .93rem; color: rgba(255,255,255,.78); }
.ba-buy2 .more a::after { content: "→"; font-weight: 700; }
.ba-buy2 .more a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 880px) { .ba-buy2 .ba-wrap { grid-template-columns: 1fr; } .ba-buy2 .cover { width: min(300px, 80%); } }
.ba-buy2 .ba-btn { background: #fff; color: var(--ba-deep); box-shadow: 0 4px 0 rgba(0,0,0,.28); }
.ba-read .article-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.ba-buy2 .ba-wrap > .cover:last-child { order: -1; }
/* Phone: every grid collapses to one column and its children may shrink */
.ba-wrap > *, .ba-hero .copy > *, .ba-picker > *, .ba-buy2 .ba-wrap > *, .ch-grid > * { min-width: 0; }
@media (max-width: 880px) { .ba-watch .ba-two { grid-template-columns: 1fr; } }
