/* ==========================================================================
   Tema F. Kudakwashe — Author site
   Palette: night navy / lamplight gold / paper cream (from the approved mockups)
   ========================================================================== */

:root {
  --navy: #0e1b2c;
  --navy-2: #16283f;
  --navy-3: #22385a;
  --gold: #e9b44c;
  --gold-2: #f3c96f;
  --gold-deep: #b98524;
  --cream: #f7f2e9;
  --paper: #fffcf6;
  --ink: #1b2231;
  --ink-2: #3b4254;
  --muted: #6b6457;
  --line: #e4d9c6;
  --ok: #2f7a4b;
  --err: #a83a2c;

  --serif: "Crimson Pro", Georgia, "Times New Roman", serif;
  --script: "Mrs Saint Delafield", "Brush Script MT", cursive;

  --container: 1180px;
  --radius: 6px;
  --shadow-book: 0 18px 30px -14px rgba(14, 27, 44, .55), 0 3px 8px rgba(14, 27, 44, .18);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.1875rem;          /* 19px — Crimson Pro reads small */
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; color: var(--navy); font-weight: 700; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.narrow { max-width: 760px; margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: var(--navy); padding: 8px 14px; z-index: 1000; border-radius: 4px; }
.skip-link:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--serif); font-weight: 600; font-size: 1.05rem; line-height: 1;
  padding: .8em 1.5em; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { font-size: .95rem; padding: .6em 1.15em; }
.btn-lg { font-size: 1.15rem; padding: .9em 1.8em; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-2); border-color: var(--gold-2); }
.btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-3); border-color: var(--navy-3); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.85); }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-ghost-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost-dark:hover { background: var(--navy); color: #fff; }
.btn-outline { background: var(--paper); color: var(--navy); border: 1px solid #b9b2a3; border-radius: 4px; font-size: .95rem; padding: .55em 1.1em; font-weight: 500; }
.btn-outline:hover { border-color: var(--navy); }
.btn-amazon { background: #fff; color: #111; border: 1.5px solid #d5cfc2; border-radius: 999px; }
.btn-amazon:hover { border-color: #ff9900; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.icon-btn { background: none; border: 0; padding: 6px; cursor: pointer; color: inherit; display: inline-flex; border-radius: 50%; }
.icon-btn:hover { background: rgba(0,0,0,.06); }
.ic { flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy); color: #fff;
  border-bottom: 1px solid rgba(233,180,76,.12);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { font-weight: 700; font-size: 1.55rem; text-decoration: none; letter-spacing: -.01em; white-space: nowrap; color: #fff; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.main-nav ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.main-nav a:not(.btn) { color: #fff; text-decoration: none; font-size: 1.08rem; padding: 6px 0; position: relative; }
.main-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .2s; }
.main-nav a:not(.btn):hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 4px; }
.cart-toggle { position: relative; background: none; border: 0; color: #fff; cursor: pointer; padding: 8px; border-radius: 50%; display: inline-flex; }
.cart-toggle:hover { background: rgba(255,255,255,.08); }
.cart-count {
  position: absolute; top: 0; right: -2px; min-width: 19px; height: 19px; padding: 0 5px;
  background: var(--gold); color: var(--navy); border-radius: 10px;
  font-size: .75rem; font-weight: 700; line-height: 19px; text-align: center; font-family: system-ui, sans-serif;
}
.cart-count.bump { animation: bump .45s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: var(--navy);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 24px;
    border-top: 1px solid rgba(255,255,255,.08);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s;
    max-height: calc(100vh - var(--header-h)); overflow: auto;
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li a:not(.btn) { display: block; padding: 14px 2px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 1.2rem; }
  .main-nav a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 18px; align-self: flex-start; }
  .header-actions { margin-left: auto; }
  .brand { font-size: 1.3rem; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden; isolation: isolate;
  min-height: clamp(460px, 62vh, 640px); display: flex; align-items: center;
  background: var(--navy);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10,19,33,.88) 0%, rgba(10,19,33,.55) 42%, rgba(10,19,33,0) 72%);
}
.hero-content { padding: 72px 0; max-width: 640px; }
.hero-eyebrow { font-size: 1.25rem; letter-spacing: .06em; margin-bottom: .35em; opacity: .92; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 700; margin-bottom: .3em; }
.hero-sub { font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.35; margin-bottom: 1.6em; opacity: .95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* The one orchestrated moment: the hero opens like a page turning into light */
@media (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: dawn 2.4s cubic-bezier(.2,.7,.2,1) both; }
  .hero-content > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .hero-content > :nth-child(2) { animation-delay: .15s; }
  .hero-content > :nth-child(3) { animation-delay: .3s; }
  .hero-content > :nth-child(4) { animation-delay: .45s; }
}
@keyframes dawn { from { transform: scale(1.06); filter: brightness(.55); } to { transform: none; filter: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 700px) {
  .hero::before { background: linear-gradient(180deg, rgba(10,19,33,.5) 0%, rgba(10,19,33,.85) 70%); }
  .hero { align-items: flex-end; }
  .hero-content { padding: 140px 0 48px; }
  .hero-media img { object-position: 80% 50%; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; isolation: isolate; }
.page-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,19,33,.85) 0%, rgba(10,19,33,.45) 50%, rgba(10,19,33,.05) 85%); }
.page-hero .container { padding: 64px 0 60px; }
.page-hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 3.4rem); margin-bottom: .2em; }
.page-hero p { font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.35; max-width: 34ch; margin: 0; opacity: .95; }
.page-hero.slim .container { padding: 44px 0 40px; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 88px) 0; }
.section-paper { background: var(--paper); }
.section-head { text-align: center; margin-bottom: clamp(32px, 5vw, 48px); }
.section-title {
  display: flex; align-items: center; justify-content: center; gap: 22px;
  font-size: clamp(1.9rem, 3.6vw, 2.5rem); margin: 0;
}
.section-title::before, .section-title::after { content: ""; height: 1.5px; width: clamp(40px, 10vw, 120px); background: var(--gold); }
.section-head p { color: var(--muted); max-width: 56ch; margin: .8em auto 0; font-size: 1.15rem; }

/* ---------- Book cards ---------- */
.book-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(16px, 2.4vw, 32px); }
.book-card { text-align: center; display: flex; flex-direction: column; align-items: center; }
.book-cover {
  display: block; width: 100%; aspect-ratio: 2 / 3; position: relative; border-radius: 2px 4px 4px 2px; overflow: hidden;
  box-shadow: var(--shadow-book); background: var(--navy-2);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s;
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-cover::after { /* spine highlight so flat covers read as books */
  content: ""; position: absolute; inset: 0 auto 0 0; width: 7%;
  background: linear-gradient(90deg, rgba(255,255,255,.18), rgba(255,255,255,0) 60%, rgba(0,0,0,.18));
}
a.book-cover:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 26px 36px -16px rgba(14,27,44,.6), 0 4px 10px rgba(14,27,44,.2); }
.badge {
  position: absolute; top: 10px; right: -2px; z-index: 2; background: var(--gold); color: var(--navy);
  font-size: .8rem; font-weight: 700; padding: 3px 10px 3px 12px; border-radius: 3px 0 0 3px;
}
.book-card h3 { font-size: 1.2rem; margin: 18px 0 .2em; }
.book-card h3 a { text-decoration: none; }
.book-card h3 a:hover { color: var(--gold-deep); }
.book-card .sub { font-size: .98rem; color: var(--ink-2); line-height: 1.3; margin: 0 0 .5em; }
.book-card .price { color: var(--muted); font-size: 1rem; margin: 0 0 12px; }
.book-card .price strong { color: var(--navy); }
.book-card .btn-outline { margin-top: auto; }

@media (max-width: 1000px) { .book-row { grid-template-columns: repeat(3, 1fr); row-gap: 40px; } }
@media (max-width: 620px)  { .book-row { grid-template-columns: repeat(2, 1fr); row-gap: 36px; } }

/* Books page grid (richer cards) */
.book-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.shop-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px 26px; display: flex; flex-direction: column; text-align: center;
}
.shop-card .book-cover { width: 62%; margin: 0 auto 22px; }
.shop-card h2 { font-size: 1.45rem; margin-bottom: .15em; }
.shop-card h2 a { text-decoration: none; }
.shop-card .sub { color: var(--muted); font-size: 1rem; line-height: 1.3; margin: 0 0 .7em; }
.shop-card .desc { text-align: left; color: var(--ink-2); font-size: 1.05rem; flex: 1; }
.shop-card .formats { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.shop-card .formats li { font-size: .88rem; border: 1px solid var(--line); border-radius: 20px; padding: 2px 10px; color: var(--ink-2); background: #fff; }
.shop-card .from { font-size: 1.05rem; margin-bottom: 16px; }
.shop-card .from strong { font-size: 1.35rem; color: var(--navy); }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.card-actions .btn { border-radius: 5px; padding: .75em .6em; font-size: .98rem; }
.coming-card {
  background: #efe7d9; border: 1px dashed #cdbd9f; border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 30px;
}
.coming-card .ic { color: var(--navy); margin-bottom: 14px; }
.coming-card h2 { font-size: 1.7rem; }
.coming-card hr { width: 50px; border: 0; border-top: 2px solid var(--gold); margin: 6px auto 16px; }
@media (max-width: 980px) { .book-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .book-grid { grid-template-columns: 1fr; } .shop-card .book-cover { width: 52%; } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.about-photo { position: relative; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: 0 24px 40px -24px rgba(14,27,44,.55); }
.about-photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1.5px solid var(--gold); border-radius: var(--radius); z-index: -1; }
.about-copy { position: relative; z-index: 1; }
.about-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.4rem); }
.about-copy h3 { font-size: 1.55rem; margin-top: 1.3em; }
.about-copy p { color: var(--ink-2); max-width: 62ch; }
.signature { font-family: var(--script); font-size: clamp(2.6rem, 5vw, 3.4rem); color: var(--navy); line-height: 1; margin: .3em 0 0; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } .about-photo { max-width: 420px; } }

.quote-band { background: #ebe3d4; padding: clamp(40px, 6vw, 60px) 0; text-align: center; }
.quote-band blockquote { margin: 0; }
.quote-band p { font-style: italic; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.3; color: var(--navy); margin: 0 auto .4em; max-width: 26ch; }
.quote-band cite { font-style: normal; color: var(--muted); }

/* ---------- Coming soon band ---------- */
.band { position: relative; color: #fff; text-align: center; overflow: hidden; isolation: isolate; background: var(--navy); }
.band img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band::before { content: ""; position: absolute; inset: 0; background: rgba(8,16,28,.45); z-index: -1; }
.band .container { padding: clamp(56px, 8vw, 84px) 0; }
.band .eyebrow { letter-spacing: .08em; font-size: 1.05rem; margin-bottom: .2em; opacity: .9; }
.band h2 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: .25em; }
.band p { font-size: 1.2rem; margin-bottom: 1.4em; }
.subscribe { display: flex; gap: 10px; justify-content: center; max-width: 480px; margin: 0 auto; }
.subscribe input { flex: 1; min-width: 0; }
.subscribe-note { font-size: .95rem; margin-top: 12px; min-height: 1.4em; }
@media (max-width: 520px) { .subscribe { flex-direction: column; } }

/* ---------- Testimonials ---------- */
.testimonials { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: #fff; }
.testimonials img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .5; }
.testimonials::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14,27,44,.92), rgba(14,27,44,.8)); }
.testimonials .section-title { color: #fff; }
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.t-card { margin: 0; background: rgba(255,252,246,.06); border: 1px solid rgba(233,180,76,.28); border-radius: var(--radius); padding: 30px 28px 24px; display: flex; flex-direction: column; }
.t-card .stars { color: var(--gold); display: flex; gap: 2px; margin-bottom: 14px; }
.t-card blockquote { margin: 0 0 20px; font-size: 1.2rem; line-height: 1.5; flex: 1; }
.t-card blockquote::before { content: "\201C"; display: block; font-size: 3.2rem; line-height: .6; color: var(--gold); margin-bottom: 6px; }
.t-card figcaption strong { display: block; font-size: 1.08rem; }
.t-card figcaption span { color: rgba(255,255,255,.7); font-size: .98rem; }
@media (max-width: 900px) { .t-grid { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 4px; position: relative;
  font-size: 1.28rem; font-weight: 600; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--gold-deep); border-bottom: 2px solid var(--gold-deep); transform: rotate(45deg); transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .answer { padding: 0 44px 22px 4px; color: var(--ink-2); }

/* ---------- Book detail ---------- */
.crumbs { font-size: 1rem; color: var(--muted); padding: 22px 0 0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--navy); text-decoration: underline; }
.crumbs span[aria-hidden] { margin: 0 8px; }
.product { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); padding: 32px 0 72px; align-items: start; }
.product-media { position: sticky; top: calc(var(--header-h) + 24px); }
.product-media .book-cover { max-width: 420px; margin: 0 auto; }
.product-media .stage { background: radial-gradient(ellipse at 50% 40%, #fffaf0 0%, #ede3d1 70%); border-radius: var(--radius); padding: clamp(28px, 5vw, 56px); }
.product-info .series { color: var(--gold-deep); font-weight: 600; margin-bottom: .3em; }
.product-info h1 { font-size: clamp(2.3rem, 4.6vw, 3.3rem); margin-bottom: .15em; }
.product-info .subtitle { font-size: 1.3rem; font-style: italic; color: var(--ink-2); line-height: 1.35; margin-bottom: .6em; }
.product-info .by { color: var(--muted); margin-bottom: 1.4em; }
.product-info .by a { color: var(--navy); }
.price-line { display: flex; align-items: baseline; gap: 12px; margin-bottom: 22px; }
.price-now { font-size: 2.1rem; font-weight: 700; color: var(--navy); line-height: 1; }
.price-was { font-size: 1.2rem; color: var(--muted); text-decoration: line-through; }
.save-tag { background: #f3e1b7; color: #7a5410; font-size: .88rem; font-weight: 700; padding: 3px 9px; border-radius: 3px; }
.fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.fieldset legend { font-weight: 700; font-size: 1.05rem; margin-bottom: 10px; color: var(--navy); padding: 0; }
.variant-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.variant { position: relative; }
.variant input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.variant label {
  display: block; border: 1.5px solid var(--line); background: var(--paper); border-radius: var(--radius);
  padding: 12px 14px; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s;
}
.variant label strong { display: block; font-size: 1.1rem; color: var(--navy); }
.variant label span { color: var(--muted); font-size: .98rem; }
.variant label s { color: #a39c8f; margin-left: 4px; }
.variant input:checked + label { border-color: var(--navy); background: #fff; box-shadow: 0 0 0 1px var(--navy); }
.variant input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
.variant input:disabled + label { opacity: .5; cursor: not-allowed; }
.variant .ship-note { display: block; font-size: .82rem; color: var(--ok); }
.buy-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; margin-bottom: 16px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); }
.qty button { background: none; border: 0; width: 40px; height: 48px; cursor: pointer; color: var(--navy); display: inline-flex; align-items: center; justify-content: center; }
.qty input[type=number] { width: 42px; padding: 0; box-shadow: none; text-align: center; border: 0; background: transparent; font: inherit; font-weight: 600; color: var(--navy); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-row .btn { flex: 1 1 180px; }
.amazon-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 0 26px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.amazon-row .muted { font-size: 1rem; }
.product-desc { color: var(--ink-2); font-size: 1.15rem; }
.product-desc p { max-width: 64ch; }
.spec { width: 100%; border-collapse: collapse; margin: 28px 0 0; font-size: 1.05rem; }
.spec caption { text-align: left; font-weight: 700; font-size: 1.4rem; color: var(--navy); margin-bottom: 10px; }
.spec th, .spec td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 38%; color: var(--muted); font-weight: 500; }
.spec td { color: var(--ink); }
.tbd { color: #a39c8f; font-style: italic; }
@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; }
  .product-media { position: static; }
  .product-media .book-cover { max-width: 280px; }
}

/* ---------- Audio ---------- */
.audio-list { list-style: none; margin: 0; padding: 0; }
.track { display: grid; grid-template-columns: 96px 1fr minmax(260px, 38%); gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.track:first-child { border-top: 1px solid var(--line); }
.track .thumb { width: 96px; aspect-ratio: 1; object-fit: cover; object-position: top; border-radius: 4px; box-shadow: 0 8px 18px -10px rgba(14,27,44,.6); }
.track h2 { font-size: 1.4rem; margin: 0 0 .15em; }
.track h2 a { text-decoration: none; }
.track p { margin: 0; color: var(--ink-2); font-size: 1.05rem; line-height: 1.4; }
.player { display: flex; align-items: center; gap: 14px; }
.play-btn {
  width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: #fff; border: 0; cursor: pointer; flex: none;
  display: inline-flex; align-items: center; justify-content: center; transition: background .2s, transform .15s;
}
.play-btn:hover { background: var(--navy-3); }
.play-btn:disabled { background: #b9b2a3; cursor: not-allowed; }
.play-btn .ic-play { margin-left: 3px; }
.progress { flex: 1; height: 26px; display: flex; align-items: center; cursor: pointer; position: relative; }
.progress::before { content: ""; position: absolute; left: 0; right: 0; height: 3px; background: #d8cfbf; border-radius: 3px; }
.progress .fill { position: relative; height: 3px; background: var(--navy); border-radius: 3px; width: 0; }
.progress .fill::after { content: ""; position: absolute; right: -6px; top: -4.5px; width: 12px; height: 12px; border-radius: 50%; background: var(--navy); }
.time { font-size: .95rem; color: var(--muted); min-width: 92px; text-align: right; font-variant-numeric: tabular-nums; }
.player.no-audio .time { min-width: 0; }
@media (max-width: 760px) {
  .track { grid-template-columns: 72px 1fr; gap: 14px 16px; }
  .track .thumb { width: 72px; }
  .player { grid-column: 1 / -1; }
}
.platforms { text-align: center; padding-top: 48px; }
.platforms h2 { font-size: 1.6rem; }
.platform-list { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 0; padding: 0; margin: 20px 0 0; }
.platform-list li + li { border-left: 1px solid var(--line); }
.platform-list a { display: inline-flex; align-items: center; gap: 12px; padding: 6px 30px; text-decoration: none; font-weight: 600; font-size: 1.15rem; color: var(--navy); }
.platform-list a:hover { color: var(--gold-deep); }
.platform-list .ic-youtube { color: #e62117; }
@media (max-width: 560px) { .platform-list { flex-direction: column; align-items: center; } .platform-list li + li { border-left: 0; } }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.field label .req { color: var(--err); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=url], select, textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink);
  background: #fff; border: 1px solid #d3c8b4; border-radius: 5px; padding: 11px 14px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(233,180,76,.35); }
.field .error { color: var(--err); font-size: .95rem; margin-top: 4px; }
.hp { position: absolute; left: -5000px; }
.alert { padding: 14px 18px; border-radius: 5px; margin-bottom: 20px; border: 1px solid; }
.alert-success { background: #eef6ef; border-color: #b7d7bf; color: #1f5a35; }
.alert-error { background: #fbeeec; border-color: #e6bcb5; color: #7d2a1f; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; }
.contact-form { padding-right: clamp(24px, 5vw, 56px); border-right: 1px solid var(--line); }
.contact-info { padding-left: clamp(24px, 5vw, 56px); }
.info-list { list-style: none; margin: 0 0 24px; padding: 0; }
.info-list li { display: flex; align-items: center; gap: 16px; padding: 10px 0; font-size: 1.15rem; }
.info-list .ic { color: var(--navy); }
.info-list a { text-decoration: none; }
.info-list a:hover { text-decoration: underline; }
.social-lg { list-style: none; display: flex; gap: 18px; margin: 4px 0 30px; padding: 0; }
.social-lg a { color: var(--navy); display: inline-flex; }
.social-lg a:hover { color: var(--gold-deep); }
.contact-info img { border-radius: var(--radius); width: 100%; max-width: 460px; }
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-form { padding-right: 0; border-right: 0; }
  .contact-info { padding-left: 0; }
}

/* ---------- Cart / checkout ---------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
@media (max-width: 920px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 76px 1fr auto; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line img { width: 76px; aspect-ratio: 2/3; object-fit: cover; border-radius: 2px; box-shadow: 0 6px 14px -8px rgba(14,27,44,.6); }
.cart-line h3 { font-size: 1.2rem; margin: 0 0 .1em; }
.cart-line h3 a { text-decoration: none; }
.cart-line .fmt { color: var(--muted); font-size: 1rem; }
.cart-line .line-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-line .line-total { font-weight: 700; color: var(--navy); font-size: 1.15rem; }
.cart-line .qty button { height: 36px; width: 32px; }
.cart-line .qty input[type=number] { width: 34px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: .95rem; }
.link-btn:hover { color: var(--err); }
.summary { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: sticky; top: calc(var(--header-h) + 20px); }
.summary h2 { font-size: 1.5rem; }
.summary .row { display: flex; justify-content: space-between; padding: 8px 0; }
.summary .row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 1.3rem; font-weight: 700; color: var(--navy); }
.summary .btn { margin-top: 16px; }
.summary .mini-items { list-style: none; padding: 0; margin: 0 0 12px; }
.summary .mini-items li { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; }
.summary .mini-items img { width: 48px; aspect-ratio: 2/3; object-fit: cover; border-radius: 2px; }
.summary .mini-items span { font-size: .95rem; color: var(--muted); display: block; line-height: 1.2; }
.ship-progress { font-size: .98rem; background: #f3ead8; border-radius: 4px; padding: 10px 12px; margin-top: 12px; }
.pay-options { display: grid; gap: 10px; }
.pay-option { border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; padding: 14px 16px; cursor: pointer; display: block; }
.pay-option input { margin-right: 10px; accent-color: var(--navy); }
.pay-option .details { display: none; font-size: .98rem; color: var(--ink-2); margin: 8px 0 0 26px; white-space: pre-line; }
.pay-option:has(input:checked) { border-color: var(--navy); }
.pay-option:has(input:checked) .details { display: block; }
.checkout-block { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 30px); margin-bottom: 24px; }
.checkout-block h2 { font-size: 1.45rem; }
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .ic { color: var(--gold-deep); margin: 0 auto 16px; }
.empty-state h2 { font-size: 1.9rem; }

.thanks { text-align: center; max-width: 720px; margin: 0 auto; }
.thanks .tick { width: 72px; height: 72px; border-radius: 50%; background: var(--gold); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.thanks h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
.order-card { text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin: 28px 0; }
.order-card .row { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; }
.order-card .pay-box { background: #f3ead8; padding: 14px 16px; border-radius: 4px; margin-top: 16px; white-space: pre-line; }

/* ---------- Cart drawer ---------- */
.drawer-scrim { position: fixed; inset: 0; background: rgba(8,16,28,.5); z-index: 90; opacity: 0; transition: opacity .25s; }
.drawer-scrim.show { opacity: 1; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); z-index: 100;
  background: var(--cream); display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), visibility 0s linear .3s;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
.cart-drawer.open { transform: none; visibility: visible; transition: transform .3s cubic-bezier(.2,.7,.2,1); box-shadow: -20px 0 40px -20px rgba(0,0,0,.4); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); background: var(--navy); color: #fff; }
.drawer-head h2 { color: #fff; margin: 0; font-size: 1.45rem; }
.drawer-body { flex: 1; overflow: auto; padding: 6px 22px; }
.drawer-body .cart-line { grid-template-columns: 58px 1fr auto; gap: 14px; }
.drawer-body .cart-line img { width: 58px; }
.drawer-foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); background: var(--paper); }
.drawer-foot .row { display: flex; justify-content: space-between; font-size: 1.2rem; margin-bottom: 4px; }
.drawer-foot .btn { margin-top: 10px; }
.drawer-empty { text-align: center; padding: 60px 10px; color: var(--muted); }
body.drawer-open { overflow: hidden; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 200;
  background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 999px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5);
  display: flex; align-items: center; gap: 10px; font-size: 1.05rem; max-width: calc(100% - 32px);
}
.toast .ic { color: var(--gold); }
.toast.err { background: var(--err); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.82); margin-top: 0; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding: 56px 0 44px; }
.footer-top h2 { color: var(--gold); font-size: 1.15rem; margin-bottom: .8em; font-weight: 600; }
.footer-top ul { list-style: none; margin: 0; padding: 0; }
.footer-top li { margin-bottom: 6px; }
.footer-top a { text-decoration: none; }
.footer-top a:hover { color: #fff; text-decoration: underline; }
.footer-brand .brand { font-size: 1.45rem; display: inline-block; margin-bottom: 10px; }
.footer-brand p { max-width: 30ch; }
.amazon-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 6px 14px 6px 10px; }
.amazon-link .ic path:first-child { fill: #fff; }
.footer-bar { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bar-inner { display: flex; align-items: center; gap: 20px; padding: 18px 0; flex-wrap: wrap; }
.footer-bar p { margin: 0; font-size: 1rem; }
.footer-bar strong { color: #fff; }
.footer-bar .sep { margin: 0 14px; opacity: .5; }
.footer-bar .social { list-style: none; display: flex; gap: 16px; padding: 0; margin: 0 0 0 auto; }
.footer-bar .social a { color: #fff; display: inline-flex; opacity: .9; }
.footer-bar .social a:hover { color: var(--gold); opacity: 1; }
.footer-bar .copy { width: 100%; font-size: .9rem; opacity: .6; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } .footer-bar .social { margin-left: 0; } }

/* ---------- Misc ---------- */
.related { border-top: 1px solid var(--line); padding: 56px 0 72px; }
.related h2 { font-size: 1.9rem; margin-bottom: 28px; }
.related .book-row { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 800px) { .related .book-row { grid-template-columns: repeat(2, 1fr); } }
.error-page { text-align: center; padding: 100px 0; }
.error-page h1 { font-size: clamp(3rem, 8vw, 5rem); margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
