:root {
  --navy: #101757;
  --navy-deep: #0a0f3d;
  --royal: #2a2f8f;
  --pink: #ff8fc0;
  --pink-soft: #ffe4f0;
  --pink-deep: #d6457f;
  --gold: #ffd36b;
  --cyan: #3fd9ff;
  --blush: #fff0ea;
  --plum: #2b1b4d;
  --plum-muted: #6b5a8a;
  --font-head: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(10, 15, 61, 0.28);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; font-family: var(--font-body); font-size: 1.1rem; line-height: 1.7;
  color: var(--plum); background: var(--navy); -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; font-weight: 600; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); }
h3 { font-size: 1.5rem; }
h2 em, h1 em { font-style: normal; color: var(--cyan); }
.light h2 em { color: var(--pink-deep); }
p { margin: 0 0 1em; }

.container { width: min(1160px, 100% - 2rem); margin-inline: auto; }
.container.narrow { width: min(720px, 100% - 2rem); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.note-edit { font-size: .95rem; color: var(--plum-muted); font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: 1.02rem;
  padding: .85rem 1.8rem; border-radius: 999px; border: 2px solid transparent; text-decoration: none; cursor: pointer;
  transition: transform .2s, background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-3px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-sm { padding: .55rem 1.3rem; font-size: .92rem; }
.btn-gold { background: var(--gold); color: var(--navy-deep); box-shadow: 0 8px 22px rgba(255, 211, 107, .35); }
.btn-gold:hover { background: #ffe08f; }
.btn-pink { background: var(--pink-deep); color: #fff; box-shadow: 0 8px 22px rgba(214, 69, 127, .3); }
.btn-pink:hover { background: #bf3a6f; }
.btn-ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost-dark { border-color: var(--pink-deep); color: var(--pink-deep); background: transparent; }
.btn-ghost-dark:hover { background: var(--pink-deep); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.5rem; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, box-shadow .3s; }
.site-header.scrolled { background: rgba(10, 15, 61, .92); backdrop-filter: blur(10px); box-shadow: 0 6px 24px rgba(0, 0, 0, .3); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { text-decoration: none; font-family: var(--font-head); font-size: 1.35rem; color: #fff; }
.logo-star { color: var(--gold); margin-right: .15em; }
.logo-first { font-weight: 700; }
.logo-last { color: var(--pink); font-weight: 500; }
.nav { display: flex; align-items: center; gap: 1.6rem; font-family: var(--font-head); font-size: 1rem; }
.nav a { text-decoration: none; color: #fff; opacity: .9; position: relative; padding: .25rem 0; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 3px; border-radius: 2px; background: var(--gold); transition: width .25s; }
.nav a:not(.btn):hover::after, .nav a.active::after { width: 100%; }
.nav a:hover, .nav a.active { opacity: 1; }
.nav .btn { opacity: 1; color: var(--navy-deep); }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; flex-direction: column; justify-content: center; gap: 6px; align-items: center; }
.menu-toggle span { display: block; width: 24px; height: 3px; border-radius: 2px; background: #fff; transition: transform .25s, opacity .25s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- Sections: scenic band at the top that melts into a flat colour ---------- */
.section, .site-footer {
  --band: calc(max(100vw, 1000px) * 0.24);
  position: relative; isolation: isolate; overflow-x: clip;
  background-color: var(--fill); background-repeat: no-repeat; background-position: center top;
  background-size: max(100%, 1000px) auto;
}
.section::before, .site-footer::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, var(--tint) 0, var(--tint) calc(var(--band) * .5), var(--fill) var(--band), var(--fill) 100%);
}
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.dark { --fill: var(--navy); --tint: rgba(10, 15, 61, .42); color: #fff; }
.light { --fill: var(--blush); --tint: rgba(255, 255, 255, .25); color: var(--plum); }
.eyebrow { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .2em; font-size: .85rem; font-weight: 600; color: var(--gold); margin-bottom: .9rem; }
.light .eyebrow { color: var(--pink-deep); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 3.2rem; }
.sub { opacity: .92; font-size: 1.15rem; }

/* ---------- Hero ---------- */
.hero, .page-hero { min-height: 85svh; display: flex; align-items: center; padding: 6.5rem 0 3.5rem; --tint: rgba(10, 15, 61, .28); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2rem; align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 6.4vw, 4.8rem); font-weight: 700; margin-bottom: .3em; text-shadow: 0 4px 24px rgba(10, 15, 61, .6); }
.hero h1 em { display: block; }
.lead { font-size: 1.3rem; max-width: 30ch; text-shadow: 0 2px 14px rgba(10, 15, 61, .7); }
.lead strong { color: var(--gold); }
.hero-book { display: grid; place-items: center; }
.hero-book img { width: min(380px, 100%); filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .55)) drop-shadow(0 0 40px rgba(255, 211, 107, .25)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px) rotate(-1deg); } }
.scroll-hint { position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%); font-family: var(--font-head); font-size: .75rem; letter-spacing: .3em; text-transform: uppercase; text-decoration: none; color: var(--gold); opacity: .85; }
.scroll-hint::after { content: ""; display: block; width: 2px; height: 34px; margin: .5rem auto 0; background: var(--gold); animation: drip 1.8s infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.author-photo { margin: 0; position: relative; }
.author-photo img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; border: 6px solid #fff; }
.author-photo::before { content: ""; position: absolute; inset: 16px -16px -16px 16px; border: 3px dashed var(--pink); border-radius: var(--radius); z-index: -1; }
.author-photo figcaption { font-family: var(--font-head); margin-top: 1.2rem; color: var(--plum-muted); text-align: center; }

/* ---------- Books ---------- */
.book-grid { display: grid; grid-template-columns: 1fr; max-width: 900px; margin-inline: auto; }
.book-card { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 211, 107, .3); border-radius: var(--radius); backdrop-filter: blur(8px); transition: transform .3s, border-color .3s; }
.book-card:hover { transform: translateY(-5px); border-color: var(--gold); }
.book-card.featured { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem; align-items: center; padding: 2rem; }
.book-cover img { width: 100%; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .5)); }
.tag { font-family: var(--font-head); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: .4rem; }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.feature { background: rgba(255, 255, 255, .78); border: 2px solid #fff; border-radius: var(--radius); padding: 2rem; box-shadow: 0 14px 34px rgba(214, 69, 127, .16); text-align: center; backdrop-filter: blur(4px); }
.feature-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; background: linear-gradient(135deg, var(--pink), var(--gold)); color: #fff; font-size: 1.7rem; }

/* ---------- Reviews ---------- */
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.review { margin: 0; padding: 2rem; border-radius: var(--radius); background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(8px); }
.stars { color: var(--gold); letter-spacing: .2em; font-size: 1.15rem; margin-bottom: .8rem; }
.review p { font-size: 1.1rem; }
.review footer { font-family: var(--font-head); font-size: .95rem; color: var(--pink); }
.review footer span { opacity: .75; color: #fff; font-family: var(--font-body); }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 2rem; }
.post { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: 0 14px 36px rgba(43, 27, 77, .12); border-top: 6px solid var(--pink); transition: transform .3s; }
.post:hover { transform: translateY(-5px) rotate(-.4deg); }
.post-meta { font-family: var(--font-head); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--plum-muted); }
.link-arrow { font-family: var(--font-head); font-weight: 600; color: var(--pink-deep); text-decoration: none; }
.link-arrow::after { content: " →"; transition: margin .2s; }
.link-arrow:hover::after { margin-left: 6px; }

/* ---------- Media ---------- */
.media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.media-card { text-align: center; }
.media-thumb { aspect-ratio: 16 / 10; border-radius: var(--radius); background: linear-gradient(135deg, var(--royal), var(--navy)); display: grid; place-items: center; margin-bottom: 1.2rem; box-shadow: var(--shadow); border: 4px solid #fff; }
.media-thumb span { font-size: 2.8rem; color: var(--gold); }

/* ---------- Forms ---------- */
.inline-form { display: flex; gap: .8rem; margin-top: 2rem; flex-wrap: wrap; justify-content: center; }
.inline-form input { flex: 1 1 260px; padding: .95rem 1.4rem; border-radius: 999px; border: 2px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .12); color: #fff; font-family: var(--font-body); font-size: 1.05rem; }
.inline-form input::placeholder { color: rgba(255, 255, 255, .72); }
.form-status { min-height: 1.6em; margin-top: 1rem; font-weight: 700; font-size: .98rem; }
.form-status.ok { color: #9be0a8; }
.form-status.err { color: #ffb4b4; }
.light .form-status.ok { color: #1f7a3a; }
.light .form-status.err { color: #b3261e; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; }
.contact-list li { display: flex; gap: 1rem; padding: .8rem 0; border-top: 2px dotted rgba(214, 69, 127, .35); }
.contact-list strong { min-width: 70px; font-family: var(--font-head); color: var(--pink-deep); }
.socials { display: flex; gap: 1rem; flex-wrap: wrap; }
.contact-list a { text-decoration: none; border-bottom: 2px solid var(--pink); }
.card-form { background: #fff; padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); border-top: 6px solid var(--gold); }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-family: var(--font-head); font-size: .95rem; margin-bottom: .35rem; color: var(--plum); }
.field input, .field textarea { width: 100%; padding: .85rem 1rem; border: 2px solid #f0d3e0; border-radius: 14px; font-family: var(--font-body); font-size: 1.05rem; background: #fffafc; color: var(--plum); }
.field input:focus, .field textarea:focus { border-color: var(--pink-deep); outline: none; }

/* ---------- Footer ---------- */
.site-footer { --fill: var(--navy-deep); --tint: rgba(10, 15, 61, .35); color: #fff; padding-top: 5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
.footer-note { opacity: .85; max-width: 30ch; margin-top: 1rem; }
.site-footer h4 { font-size: 1rem; color: var(--gold); letter-spacing: .14em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer li a { text-decoration: none; opacity: .85; }
.site-footer li a:hover { opacity: 1; color: var(--gold); }
.footer-bottom { margin-top: 3rem; padding: 1.4rem 0; border-top: 1px solid rgba(255, 255, 255, .18); font-size: .9rem; opacity: .8; }
.footer-bottom p { margin: 0; }

.to-top { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 40; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--gold); color: var(--navy-deep); font-size: 1.3rem; font-weight: 700; cursor: pointer; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .25s, transform .25s; }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-book img, .scroll-hint::after { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .menu-toggle { display: flex; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(10, 15, 61, .97); padding: .5rem 1.2rem 1.5rem; max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height .3s, opacity .3s; visibility: hidden;
  }
  .nav.open { max-height: 80vh; opacity: 1; visibility: visible; }
  .nav a { padding: .9rem 0; border-bottom: 1px solid rgba(255, 255, 255, .15); font-size: 1.1rem; }
  .nav a::after { display: none; }
  .nav .btn { margin-top: 1rem; text-align: center; border-bottom: 0; }
  .hero-grid, .about-grid, .contact-grid, .book-grid { grid-template-columns: 1fr; }
  .hero, .page-hero { padding-top: 6rem; }
  .hero { text-align: center; }
  .lead { margin-inline: auto; }
  .btn-row { justify-content: center; }
  .hero { padding-bottom: 2rem; }
  .hero-grid { gap: 1rem; }
  .hero-copy .eyebrow { margin-bottom: .5rem; }
  .hero h1 { font-size: clamp(2.4rem, 11vw, 3.4rem); margin-bottom: .2em; }
  .lead { font-size: 1.05rem; line-height: 1.55; }
  .hero .btn-row { margin-top: 1rem; }
  .hero-book img { width: min(190px, 52%); }
  .scroll-hint { display: none; }
  .author-photo { max-width: 380px; margin-inline: auto; }
  .author-photo::before { inset: 12px -8px -12px 8px; }
  .book-card.featured { grid-template-columns: 1fr; text-align: center; }
  .book-cover { max-width: 280px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .logo { font-size: 1.1rem; }
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-book img, .scroll-hint::after { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .menu-toggle { display: flex; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(10, 15, 61, .97); padding: .5rem 1.2rem 1.5rem; max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height .3s, opacity .3s; visibility: hidden;
  }
  .nav.open { max-height: 80vh; opacity: 1; visibility: visible; }
  .nav a { padding: .9rem 0; border-bottom: 1px solid rgba(255, 255, 255, .15); font-size: 1.1rem; }
  .nav a::after { display: none; }
  .nav .btn { margin-top: 1rem; text-align: center; border-bottom: 0; }
  .hero-grid, .about-grid, .contact-grid, .book-grid { grid-template-columns: 1fr; }
  .hero, .page-hero { padding-top: 6rem; }
  .hero { text-align: center; }
  .lead { margin-inline: auto; }
  .btn-row { justify-content: center; }
  .hero { padding-bottom: 2rem; }
  .hero-grid { gap: 1rem; }
  .hero-copy .eyebrow { margin-bottom: .5rem; }
  .hero h1 { font-size: clamp(2.4rem, 11vw, 3.4rem); margin-bottom: .2em; }
  .lead { font-size: 1.05rem; line-height: 1.55; }
  .hero .btn-row { margin-top: 1rem; }
  .hero-book img { width: min(190px, 52%); }
  .scroll-hint { display: none; }
  .author-photo { max-width: 380px; margin-inline: auto; }
  .author-photo::before { inset: 12px -8px -12px 8px; }
  .book-card.featured { grid-template-columns: 1fr; text-align: center; }
  .book-cover { max-width: 280px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .logo { font-size: 1.1rem; }
}

/* ---------- Preloader ---------- */
.is-loading body { overflow: hidden; }
.no-pre .preloader { display: none; }
.preloader {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #1d2480 0%, var(--navy) 55%, var(--navy-deep) 100%);
  color: #fff; text-align: center; transition: opacity .7s ease, visibility .7s ease;
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.pre-spot {
  position: absolute; top: -10%; left: 50%; width: 70vmin; height: 120%; transform: translateX(-50%);
  background: linear-gradient(to bottom, rgba(255, 224, 143, .5), rgba(255, 224, 143, 0) 85%);
  clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%); filter: blur(14px); opacity: .7; animation: spot 3s ease-in-out infinite alternate;
}
@keyframes spot { to { opacity: .4; } }
.pre-inner { position: relative; display: flex; flex-direction: column; align-items: center; padding: 1rem; }
.pre-star { position: relative; width: 120px; height: 120px; margin-bottom: 1.2rem; }
.pre-core { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3.6rem; color: var(--gold); animation: pulse 1.6s ease-in-out infinite; text-shadow: 0 0 24px rgba(255, 211, 107, .8); }
.pre-orbit { position: absolute; inset: 0; display: grid; place-items: start center; font-size: 1.1rem; color: var(--pink); animation: orbit 2.6s linear infinite; }
.pre-orbit.o2 { animation-duration: 3.4s; animation-direction: reverse; color: var(--cyan); font-size: .9rem; }
.pre-orbit.o3 { animation-duration: 4.2s; color: var(--gold); font-size: 1rem; }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { transform: scale(1.18) rotate(12deg); } }
.pre-title { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.2rem, 7vw, 3.4rem); line-height: 1.1; margin: 0; color: var(--cyan); text-shadow: 0 0 28px rgba(63, 217, 255, .45); }
.pre-author { font-family: var(--font-head); letter-spacing: .18em; text-transform: uppercase; font-size: .85rem; color: var(--pink); margin: .4rem 0 1.6rem; }
.pre-bar { width: min(220px, 60vw); height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.pre-bar span { display: block; height: 100%; width: 40%; border-radius: 999px; background: linear-gradient(90deg, var(--pink), var(--gold)); animation: load 1.3s ease-in-out infinite; }
@keyframes load { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
@media (prefers-reduced-motion: reduce) {
  .pre-spot, .pre-core, .pre-orbit, .pre-bar span { animation: none; }
  .pre-bar span { width: 100%; }
}


/* ---------- Preloader ---------- */
.is-loading body { overflow: hidden; }
.no-pre .preloader { display: none; }
.preloader {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 25%, #212a96 0%, var(--navy) 55%, var(--navy-deep) 100%);
  color: #fff; text-align: center; transition: opacity .8s ease, visibility .8s ease;
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.pre-spot { position: absolute; top: -5%; left: 50%; width: min(90vmin, 760px); height: 115%; transform: translateX(-50%);
  background: linear-gradient(to bottom, rgba(255, 224, 143, .55), rgba(255, 224, 143, 0) 80%);
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%); filter: blur(16px); opacity: .65; animation: spot 3s ease-in-out infinite alternate; }
@keyframes spot { to { opacity: .35; } }
.pre-inner { position: relative; display: flex; flex-direction: column; align-items: center; padding: 1.5rem; width: min(560px, 100%); }
.pre-star { position: relative; width: 110px; height: 110px; margin-bottom: 1.4rem; }
.pre-core { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3.4rem; color: var(--gold); animation: pulse 1.6s ease-in-out infinite; text-shadow: 0 0 26px rgba(255, 211, 107, .85); }
.pre-orbit { position: absolute; inset: 0; display: grid; place-items: start center; font-size: 1.1rem; color: var(--pink); animation: orbit 2.6s linear infinite; }
.pre-orbit.o2 { animation-duration: 3.4s; animation-direction: reverse; color: var(--cyan); font-size: .9rem; }
.pre-orbit.o3 { animation-duration: 4.2s; color: var(--gold); font-size: 1rem; }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { transform: scale(1.16) rotate(12deg); } }
.pre-kicker { font-family: var(--font-head); font-size: .85rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin: 0 0 .6rem; }
.pre-name { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.3rem, 8.5vw, 4rem); line-height: 1.05; margin: 0; text-shadow: 0 4px 24px rgba(0, 0, 0, .4); }
.pre-name em { display: block; font-style: normal; color: var(--cyan); text-shadow: 0 0 30px rgba(63, 217, 255, .45); }
.pre-title { font-family: var(--font-head); color: var(--pink); font-size: 1.15rem; margin: 1rem 0 1.8rem; }
.pre-bar { width: min(260px, 70vw); height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.pre-bar span { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--pink), var(--gold)); transition: width .25s ease-out; }
.pre-pct { margin: .7rem 0 0; font-family: var(--font-head); font-size: .95rem; color: rgba(255, 255, 255, .8); letter-spacing: .08em; }
@media (prefers-reduced-motion: reduce) { .pre-spot, .pre-core, .pre-orbit { animation: none; } }

/* ---------- Inner pages ---------- */
.page-hero h1 { font-size: clamp(2.8rem, 6.4vw, 4.8rem); font-weight: 700; margin-bottom: .3em; text-shadow: 0 4px 24px rgba(10, 15, 61, .6); }
.page-hero .sub { text-shadow: 0 2px 14px rgba(10, 15, 61, .7); max-width: 46ch; margin-inline: auto; font-size: 1.25rem; }
.page-hero .btn-row { justify-content: center; }

.avail { font-size: .98rem; opacity: .9; }
.more-link { margin-top: 2.6rem; }
.more-link p { margin-bottom: 1rem; }

.book-detail { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.book-detail-cover img { width: 100%; max-width: 440px; margin-inline: auto; filter: drop-shadow(0 28px 40px rgba(43, 27, 77, .4)); }
.byline { font-family: var(--font-head); font-size: 1.15rem; color: var(--plum-muted); margin-top: -.3rem; }
.spec-list { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.spec-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 2px dotted rgba(214, 69, 127, .3); }
.spec-list span { color: var(--plum-muted); }
.spec-list strong { font-family: var(--font-head); font-weight: 600; text-align: right; }
.buy-note { font-size: .92rem; color: var(--plum-muted); margin-top: 1rem; }

/* rating card */
.rating-card { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center; max-width: 820px; margin: 0 auto; background: rgba(255, 255, 255, .85); border: 2px solid #fff; border-radius: var(--radius); padding: 2.2rem; box-shadow: 0 14px 34px rgba(214, 69, 127, .16); color: var(--plum); }
.rating-score { text-align: center; }
.rating-score strong { display: block; font-family: var(--font-head); font-size: 4.2rem; line-height: 1; color: var(--pink-deep); }
.rating-score .stars { margin: .3rem 0 0; font-size: 1.3rem; }
.rating-card .btn-row { margin-top: 1rem; }
.rating-card h3 { margin-bottom: .3em; }
.dark .rating-card { background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .25); color: #fff; box-shadow: none; backdrop-filter: blur(8px); }
.dark .rating-score strong { color: var(--gold); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 1rem; }
.faq details { background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .22); border-radius: 16px; padding: 1rem 1.4rem; backdrop-filter: blur(8px); }
.faq summary { cursor: pointer; font-family: var(--font-head); font-size: 1.15rem; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.5rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: .8rem 0 .2rem; opacity: .92; }

/* blog articles */
.article-list { display: grid; gap: 2rem; max-width: 860px; margin: 0 auto; }
.article { background: #fff; border-radius: var(--radius); padding: 2rem 2.2rem; box-shadow: 0 14px 36px rgba(43, 27, 77, .12); border-top: 6px solid var(--pink); }
.article h3 { font-size: 1.7rem; }
.article ul, .article ol { padding-left: 1.3rem; }
.article li { margin-bottom: .5rem; }
.article details { margin-top: 1rem; }
.article summary { cursor: pointer; font-family: var(--font-head); font-weight: 600; color: var(--pink-deep); }
.post-meta { font-family: var(--font-head); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--plum-muted); }

/* press kit */
.kit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.kit-card { background: rgba(255, 255, 255, .85); border: 2px solid #fff; border-radius: var(--radius); padding: 2rem; box-shadow: 0 14px 34px rgba(214, 69, 127, .14); display: flex; flex-direction: column; }
.kit-card .btn { align-self: flex-start; margin-top: auto; }
.kit-card img { max-height: 220px; width: auto; margin: 0 auto 1.2rem; filter: drop-shadow(0 14px 20px rgba(43, 27, 77, .3)); }
.kit-card .spec-list { margin-top: 0; margin-bottom: 1.2rem; }
.copy-text { background: var(--pink-soft); border-radius: 14px; padding: 1rem 1.2rem; font-size: 1rem; margin-bottom: 1.2rem; }

.reason-list { list-style: none; padding: 0; margin: 1.6rem 0 0; }
.reason-list li { padding: .8rem 0 .8rem 2.2rem; position: relative; border-top: 2px dotted rgba(214, 69, 127, .3); }
.reason-list li::before { content: "✦"; position: absolute; left: 0; color: var(--pink-deep); }

@media (max-width: 900px) {
  .book-detail { grid-template-columns: 1fr; text-align: center; }
  .book-detail-cover img { max-width: 300px; }
  .spec-list { text-align: left; }
  .rating-card { grid-template-columns: 1fr; text-align: center; }
  .rating-card .btn-row { justify-content: center; }
  .kit-card .btn { align-self: center; }
}

/* ---------- Cart ---------- */
.cart-btn { position: relative; display: grid; place-items: center; width: 46px; height: 46px; margin-left: .8rem; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; transition: background .2s, transform .2s; }
.cart-btn:hover { background: rgba(255, 255, 255, .26); transform: translateY(-2px); }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; background: var(--pink-deep); color: #fff; font-family: var(--font-head); font-size: .78rem; font-weight: 600; line-height: 22px; text-align: center; box-shadow: 0 0 0 2px var(--navy-deep); }
.cart-count[hidden] { display: none; }
.cart-count.bump { animation: bump .45s ease; }
@keyframes bump { 40% { transform: scale(1.5); } }

.cart-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(10, 15, 61, .65); backdrop-filter: blur(3px); }
.cart-overlay[hidden] { display: none; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 95; width: min(420px, 100%); display: flex; flex-direction: column; background: var(--blush); color: var(--plum); box-shadow: -20px 0 50px rgba(10, 15, 61, .4); transform: translateX(105%); visibility: hidden; transition: transform .35s ease, visibility .35s; }
.cart-drawer.open { transform: none; visibility: visible; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.4rem; background: linear-gradient(135deg, var(--royal), var(--navy)); color: #fff; }
.cart-head h2 { font-size: 1.5rem; margin: 0; }
.cart-close { width: 42px; height: 42px; border: 0; background: none; color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.cart-body { flex: 1; overflow-y: auto; padding: 1.2rem 1.4rem; }
.cart-empty { text-align: center; padding: 3rem 1rem; }
.cart-empty-star { font-size: 2.6rem; color: var(--gold); margin: 0; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 1rem; align-items: start; padding: 1rem 0; border-bottom: 2px dotted rgba(214, 69, 127, .3); }
.cart-item img { width: 64px; filter: drop-shadow(0 6px 10px rgba(43, 27, 77, .3)); }
.cart-item h3 { font-size: 1.15rem; margin: 0; }
.cart-item-by { font-size: .88rem; color: var(--plum-muted); margin: 0 0 .5rem; }
.cart-format { font-family: var(--font-body); font-size: .95rem; padding: .35rem .6rem; border: 2px solid #f0d3e0; border-radius: 10px; background: #fff; color: var(--plum); }
.cart-qty { display: inline-flex; align-items: center; gap: .6rem; margin-top: .6rem; margin-left: .6rem; background: #fff; border: 2px solid #f0d3e0; border-radius: 999px; padding: .1rem .3rem; }
.cart-qty button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--pink-soft); color: var(--pink-deep); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.cart-qty button:hover { background: var(--pink); color: #fff; }
.cart-qty span { min-width: 1.4rem; text-align: center; font-family: var(--font-head); font-weight: 600; }
.cart-remove { border: 0; background: none; color: var(--plum-muted); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.cart-remove:hover { color: var(--pink-deep); }
.cart-foot { padding: 1.2rem 1.4rem 1.6rem; background: #fff; border-top: 1px solid #f0d3e0; }
.cart-foot[hidden] { display: none; }
.cart-note { font-size: .9rem; color: var(--plum-muted); margin-bottom: 1rem; }
.cart-checkout { display: block; text-align: center; }
.cart-clear { display: block; margin: .9rem auto 0; border: 0; background: none; color: var(--plum-muted); font-family: var(--font-head); font-size: .9rem; text-decoration: underline; cursor: pointer; }

.toast { position: fixed; left: 50%; bottom: 1.4rem; z-index: 120; transform: translate(-50%, 30px); max-width: min(92vw, 420px); padding: .8rem 1.4rem; border-radius: 999px; background: var(--navy-deep); color: #fff; font-family: var(--font-head); font-size: .95rem; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.format-pick { display: flex; gap: .8rem; flex-wrap: wrap; border: 0; padding: 0; margin: 1.6rem 0 0; }
.format-pick legend { font-family: var(--font-head); font-size: .9rem; color: var(--plum-muted); padding: 0; margin-bottom: .5rem; }
.format-pick label { cursor: pointer; }
.format-pick input { position: absolute; opacity: 0; }
.format-pick span { display: inline-block; padding: .55rem 1.2rem; border: 2px solid #f0d3e0; border-radius: 999px; background: #fff; font-family: var(--font-head); font-weight: 500; transition: all .2s; }
.format-pick input:checked + span { border-color: var(--pink-deep); background: var(--pink-deep); color: #fff; }
.format-pick input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 3px; }
.link-arrow.light-link { color: var(--gold); align-self: center; padding: .4rem .6rem; }
.book-detail .link-arrow { align-self: center; padding: .4rem .6rem; }

@media (max-width: 900px) {
  .header-inner { gap: .4rem; }
  .logo { margin-right: auto; }
  .cart-btn { margin-left: 0; }
  .book-detail .format-pick { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .cart-drawer { transition: none; } .cart-count.bump { animation: none; } }

/* ---------- Buy Now page ---------- */
[hidden] { display: none !important; }
.buy-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.buy-cover { text-align: center; }
.buy-cover img { width: 100%; max-width: 380px; margin-inline: auto; filter: drop-shadow(0 28px 40px rgba(43, 27, 77, .4)); }
.buy-cover .byline { margin: 1.2rem 0 .2rem; }
.buy-facts { color: var(--plum-muted); font-size: .98rem; }
.buy-panel { background: rgba(255, 255, 255, .88); border: 2px solid #fff; border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.6rem); box-shadow: var(--shadow); }
.buy-panel h2 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); margin-bottom: .6rem; }
.buy-panel .format-pick { margin-top: .4rem; }
.qty-row { display: flex; align-items: center; gap: 1rem; margin-top: 1.2rem; font-family: var(--font-head); }
.qty-row .cart-qty { margin: 0; }
.order-summary { margin-top: 1.6rem; padding: 1.2rem 1.4rem; background: var(--pink-soft); border-radius: 16px; }
.order-summary h3 { font-size: 1.1rem; margin-bottom: .6rem; }
.order-lines { list-style: none; padding: 0; margin: 0; }
.order-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px dotted rgba(214, 69, 127, .35); }
.order-lines li:last-child { border-bottom: 0; }
.order-lines strong { font-family: var(--font-head); font-weight: 600; white-space: nowrap; }
.order-total { font-weight: 700; }
.price-note { margin: .8rem 0 0; font-size: .9rem; color: var(--plum-muted); }
#buy-actions { margin-top: 1.6rem; }
#buy-actions .eyebrow { margin-bottom: .6rem; }
.btn-lg { padding: 1.05rem 2.4rem; font-size: 1.2rem; }
.buy-amazon { display: block; text-align: center; }
.buy-secure { margin: 1rem 0; font-size: .92rem; color: var(--plum-muted); }
.buy-empty { margin-top: 1.4rem; text-align: center; }

@media (max-width: 900px) {
  .buy-layout { grid-template-columns: 1fr; }
  .buy-cover img { max-width: 260px; }
  .qty-row { justify-content: center; }
  #buy-addcart { display: block; margin-inline: auto; }
}
