:root {
  --cream: #fbf4e8;
  --cream-2: #f5ead7;
  --paper: #fffdf8;
  --navy: #1e2a47;
  --navy-2: #2b3a60;
  --coral: #ee6a4f;
  --coral-dark: #c94a31;
  --ink: #1e2a47;
  --ink-muted: #4f5872;
  --line: #e7d9c1;

  --font-display: 'Source Serif 4', 'Georgia', serif;
  --font-body: 'Figtree', 'Segoe UI', sans-serif;

  --text-xs: clamp(0.8125rem, 0.78rem + 0.15vw, 0.875rem);
  --text-sm: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-base: clamp(1.125rem, 1.08rem + 0.25vw, 1.25rem);
  --text-lg: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --text-xl: clamp(1.875rem, 1.5rem + 1.5vw, 2.75rem);
  --text-hero: clamp(2.75rem, 1.6rem + 4.6vw, 5.25rem);

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-book: 0 1px 2px rgba(30,42,71,.12), 0 18px 40px -12px rgba(30,42,71,.35);
  --shadow-card: 0 1px 2px rgba(30,42,71,.06), 0 8px 24px -12px rgba(30,42,71,.18);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--coral-dark); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
[hidden] { display: none !important; }

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

.wrap { width: min(1160px, 100% - 2 * clamp(1.25rem, 5vw, 3rem)); margin-inline: auto; }
.wrap--narrow { width: min(860px, 100% - 2 * clamp(1.25rem, 5vw, 3rem)); }

/* Header */
.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 244, 232, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 4.25rem; }
.wordmark { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--navy); text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.nav { display: flex; gap: clamp(var(--space-3), 2.5vw, var(--space-8)); list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--navy); text-decoration: none; font-size: var(--text-sm); font-weight: 600; padding: var(--space-2) 0; }
.nav a:hover { color: var(--coral-dark); }
@media (max-width: 520px) {
  .wordmark { font-size: 1.0625rem; }
  .nav { gap: var(--space-4); }
  .nav a { font-size: 0.9375rem; }
}
@media (max-width: 359px) { .nav li:nth-child(2) { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 3.25rem; padding: var(--space-3) var(--space-6);
  border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 700; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 3.75rem; padding-inline: var(--space-8); font-size: var(--text-base); }
.btn--primary { background: var(--coral); color: var(--navy); }
.btn--primary:hover { background: #f27f67; color: var(--navy); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--cream); }
.btn--navy { background: var(--navy); color: var(--cream); }
.btn--navy:hover { background: var(--navy-2); color: #fff; }
.btn--outline { background: var(--paper); color: var(--navy); border-color: var(--line); }
.btn--outline:hover { border-color: var(--navy); color: var(--navy); }
.btn.is-soon, .btn.is-soon:hover { background: var(--cream-2); color: var(--ink-muted); border-color: var(--line); cursor: not-allowed; transform: none; }

/* Hero */
.hero { padding-block: clamp(var(--space-10), 7vw, var(--space-24)) clamp(var(--space-16), 9vw, var(--space-24)); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(var(--space-10), 6vw, var(--space-20)); align-items: center; }
.hero__cover { display: flex; justify-content: center; }
.eyebrow { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--coral-dark); margin-bottom: var(--space-4); }
.hero__title { font-family: var(--font-display); font-weight: 750; font-size: var(--text-hero); line-height: 1; letter-spacing: -0.025em; color: var(--navy); }
.hero__title > span { display: block; }
.hero__subtitle { font-style: italic; font-weight: 600; color: var(--coral-dark); font-size: 0.56em; letter-spacing: -0.01em; margin-top: var(--space-3); line-height: 1.1; }
.hero__author { margin-top: var(--space-6); font-size: var(--text-lg); color: var(--ink-muted); }
.hero__author span { color: var(--navy); font-weight: 700; }
.hero__desc { margin-top: var(--space-6); max-width: 34em; font-size: var(--text-lg); line-height: 1.6; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-10); }
.hero__price { margin-top: var(--space-4); font-size: var(--text-sm); color: var(--ink-muted); }
@media (max-width: 820px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__cover { order: 0; }
  .hero__text { order: 1; text-align: left; }
  .actions .btn { flex: 1 1 100%; }
}

/* Cover — softcover look: square corners, soft shadow, thin hinge crease */
.cover { width: min(400px, 78vw); aspect-ratio: 8.5 / 11; border-radius: 2px; box-shadow: 0 1px 1px rgba(30,42,71,.10), 0 12px 28px -12px rgba(30,42,71,.30); position: relative; overflow: hidden; container-type: inline-size; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover::after { content: ""; position: absolute; top: 0; bottom: 0; left: 2.5%; width: 2px; background: linear-gradient(90deg, rgba(0,0,0,.08), rgba(255,255,255,.4)); pointer-events: none; z-index: 2; }

/* Placeholder styled after the printed softcover: cream stock, navy + coral type, corner circles */
.cover--placeholder {
  background: #fbf6ea; color: var(--navy);
}
.cover__inner { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; padding: 12cqi 8cqi 7cqi; }
.cover--placeholder::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 0 0, var(--coral) 0 17cqi, transparent 17.3cqi),
    radial-gradient(circle at 0 0, #f6c344 0 24cqi, transparent 24.3cqi),
    radial-gradient(circle at 0 100%, var(--coral) 0 17cqi, transparent 17.3cqi),
    radial-gradient(circle at 0 100%, #f6c344 0 22cqi, transparent 22.3cqi);
}

.cover__tag { position: absolute; z-index: 2; top: 4cqi; right: 4cqi; background: var(--navy); color: var(--cream); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 999px; }
.cover__title { font-family: var(--font-display); font-weight: 800; line-height: 0.95; letter-spacing: -0.02em; }
.cover__ai { display: block; font-size: 25cqi; line-height: 0.9; }
.cover__cc { display: block; font-size: 11cqi; }
.cover__sub { display: block; color: var(--coral-dark); font-size: 9cqi; margin-top: 1.5cqi; line-height: 1; }
.cover__sub em { font-style: italic; }
.cover__tagline { font-size: 4cqi; color: var(--navy-2); line-height: 1.3; margin-top: 4cqi; }
.cover__author { font-family: var(--font-display); font-weight: 700; font-size: 5.2cqi; padding-bottom: 1.5cqi; border-bottom: 0.8cqi solid #f6c344; }
.cover__note { font-size: 0.75rem; color: var(--ink-muted); margin-top: 2cqi; }

@media (max-width: 820px) { .cover { width: min(300px, 64vw); } .cover__inner { padding-top: 17cqi; } .cover__note { display: none; } }

/* Sections */
.section { padding-block: clamp(var(--space-16), 9vw, var(--space-24)); }
.section__title { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); line-height: 1.1; letter-spacing: -0.015em; color: var(--navy); }
.section__head { max-width: 40rem; margin-bottom: clamp(var(--space-8), 5vw, var(--space-12)); }
.section__lead { margin-top: var(--space-4); color: var(--ink-muted); }

/* Buy */
.buy { background: var(--paper); border-block: 1px solid var(--line); }
.buy .section__title { margin-bottom: clamp(var(--space-8), 5vw, var(--space-12)); }
.buy__group + .buy__group { margin-top: clamp(var(--space-12), 7vw, var(--space-16)); padding-top: clamp(var(--space-10), 6vw, var(--space-12)); border-top: 1px solid var(--line); }
.buy__heading { font-family: var(--font-body); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--coral-dark); margin-bottom: var(--space-5); display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: baseline; }
.buy__meta { color: var(--ink-muted); letter-spacing: 0.04em; text-transform: none; font-weight: 600; font-size: var(--text-xs); }
.buy__lead { color: var(--ink-muted); margin-bottom: var(--space-6); }
.buy__soon { padding: var(--space-5) var(--space-6); border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--ink-muted); background: var(--cream); }

.product {
  display: grid; grid-template-columns: 1fr auto; gap: var(--space-6); align-items: center;
  background: var(--cream); border: 1.5px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 4vw, var(--space-10));
}
.product + .product { margin-top: var(--space-5); }
.product--featured { border-color: var(--navy); box-shadow: var(--shadow-card); }
.product__top { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-4); }
.product__name { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; color: var(--navy); line-height: 1.25; }
.product__price { font-size: var(--text-lg); font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.product__details { list-style: none; padding: 0; margin: var(--space-4) 0 0; display: grid; gap: var(--space-2); color: var(--ink-muted); font-size: var(--text-sm); }
.product__details li { display: flex; gap: var(--space-3); align-items: flex-start; }
.product__details li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 0.6em; border-radius: 50%; background: var(--coral); }
.product__note { margin-top: var(--space-3); color: var(--ink-muted); font-size: var(--text-sm); }
@media (max-width: 640px) {
  .product { grid-template-columns: 1fr; }
  .product__cta .btn { width: 100%; }
}

.retailers { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-4); }
.retailers:empty { display: none; }
.retailers .btn { width: 100%; min-height: 3.5rem; border-radius: var(--radius); justify-content: space-between; padding-inline: var(--space-6); }
.retailers .btn svg { flex: none; }

/* Look inside */
.spread {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  max-width: 960px; margin-inline: auto;
  filter: drop-shadow(0 18px 30px rgba(30,42,71,.18));
}
.page { position: relative; margin: 0; background: #fff; cursor: zoom-in; border: 0; padding: 0; display: block; width: 100%; text-align: left; font: inherit; color: inherit; }
.page img { width: 100%; height: auto; aspect-ratio: 8.5 / 11; object-fit: cover; }
.page:first-child { border-radius: 6px 0 0 6px; overflow: hidden; }
.page:last-child { border-radius: 0 6px 6px 0; overflow: hidden; }
.page:first-child::after { content: ""; position: absolute; inset: 0 0 0 auto; width: 36px; background: linear-gradient(90deg, transparent, rgba(30,42,71,.10)); pointer-events: none; }
.page:last-child::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 36px; background: linear-gradient(270deg, transparent, rgba(30,42,71,.10)); pointer-events: none; }
.page__label {
  position: absolute; left: var(--space-3); bottom: var(--space-3);
  background: var(--navy); color: var(--cream); font-size: var(--text-xs); font-weight: 700;
  padding: var(--space-1) var(--space-3); border-radius: 999px;
  display: inline-flex; align-items: center; gap: var(--space-2);
  opacity: 0; transform: translateY(4px); transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.page:hover .page__label, .page:focus-visible .page__label { opacity: 1; transform: none; }
.page__placeholder { aspect-ratio: 8.5/11; display: grid; place-items: center; background: var(--cream-2); color: var(--ink-muted); font-size: var(--text-sm); border: 2px dashed var(--line); }

@media (max-width: 720px) {
  .spread { grid-template-columns: 1fr 1fr; gap: var(--space-3); filter: none; }
  .page, .page:first-child, .page:last-child { border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-card); }
  .page::after { display: none; }
  .page__label { opacity: 1; transform: none; left: 50%; translate: -50% 0; bottom: var(--space-2); white-space: nowrap; }
  .page__hint { display: none; }
}

.sample {
  margin: clamp(var(--space-12), 7vw, var(--space-16)) auto 0; max-width: 860px;
  display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-6); align-items: center;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 4vw, var(--space-8));
}
.sample__icon { width: 3.5rem; height: 3.5rem; display: grid; place-items: center; border-radius: 50%; background: #fde3dc; color: var(--coral-dark); }
.sample__kicker { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral-dark); }
.sample__title { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; color: var(--navy); margin-top: var(--space-1); }
.sample__desc { margin-top: var(--space-2); color: var(--ink-muted); font-size: var(--text-sm); }
@media (max-width: 640px) {
  .sample { grid-template-columns: 1fr; }
  .sample .btn { width: 100%; }
}
.inside__note { text-align: center; margin-top: var(--space-10); color: var(--ink-muted); font-size: var(--text-sm); }
.inside__note a { font-weight: 700; }

/* About */
.about { background: var(--navy); color: var(--cream); }
.about .section__title { color: var(--cream); margin-bottom: var(--space-6); }
.about__grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(var(--space-10), 6vw, var(--space-20)); align-items: center; }
.about__text p + p { margin-top: var(--space-5); }
.about__text p { color: rgba(251,244,232,.9); max-width: 36em; }
.about__text em { color: #ffb4a3; font-style: italic; }
.about__photo { width: 100%; max-width: 360px; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; justify-self: center; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-3);
  background: var(--navy-2); border: 2px dashed rgba(251,244,232,.3); border-radius: var(--radius-lg);
  color: rgba(251,244,232,.75); font-size: var(--text-sm); text-align: center; padding: var(--space-6);
}
.photo-placeholder__initials { font-family: var(--font-display); font-size: 3.5rem; font-weight: 700; color: var(--coral); line-height: 1; }
@media (max-width: 820px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { max-width: 200px; justify-self: start; }
}

/* Events */
.events__list { list-style: none; padding: 0; margin: var(--space-10) 0 0; display: grid; gap: var(--space-4); }
.event { display: grid; grid-template-columns: 11rem 1fr auto; gap: var(--space-6); align-items: center; padding: var(--space-6); background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius); }
.event__date { font-weight: 700; color: var(--navy); }
.event__time { display: block; font-weight: 400; color: var(--ink-muted); font-size: var(--text-sm); }
.event__type { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--coral-dark); }
.event__title { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; color: var(--navy); }
.event__place { color: var(--ink-muted); font-size: var(--text-sm); }
@media (max-width: 640px) { .event { grid-template-columns: 1fr; gap: var(--space-3); } .event .btn { width: 100%; } }

/* Footer */
.footer { padding-block: var(--space-10); background: var(--cream); border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); font-size: var(--text-xs); color: var(--ink-muted); }
.footer__brand { font-weight: 600; color: var(--navy); }

/* Viewer */
.viewer {
  width: min(100vw, 980px); max-width: 100vw; height: min(100dvh, 100vh); max-height: 100dvh;
  margin: auto; padding: 0; border: 0; background: #11182b; color: var(--cream);
  display: none; flex-direction: column;
}
.viewer[open] { display: flex; }
@media (min-width: 721px) { .viewer { height: 94vh; border-radius: var(--radius); } }
.viewer::backdrop { background: rgba(17, 24, 43, .82); }
.viewer__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) var(--space-4); background: var(--navy); }
.viewer__label { font-weight: 700; font-size: var(--text-sm); }
.viewer__controls { display: flex; gap: var(--space-2); }
.viewer__btn { width: 3rem; height: 3rem; border-radius: 50%; border: 1.5px solid rgba(251,244,232,.3); background: transparent; color: var(--cream); font-size: 1.5rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.viewer__btn:hover { background: rgba(251,244,232,.1); }
.viewer__btn:disabled { opacity: .35; cursor: default; }
.viewer__close { font-size: 1.125rem; background: var(--coral); color: var(--navy); border-color: var(--coral); }
.viewer__close:hover { background: #f27f67; }
.viewer__scroll { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; padding: var(--space-4); display: flex; justify-content: center; align-items: flex-start; }
.viewer__scroll img { width: 100%; max-width: 900px; height: auto; background: #fff; border-radius: 4px; }

.viewer__scroll.is-zoomed { justify-content: flex-start; }
.viewer__scroll img { cursor: zoom-in; }
.viewer__scroll.is-zoomed img { width: 200%; max-width: none; cursor: zoom-out; }
@media (min-width: 721px) { .viewer__scroll.is-zoomed img { width: 160%; } }
.viewer__zoom[aria-pressed="true"] .zoom-plus { display: none; }
.viewer__zoom[aria-pressed="true"] { background: rgba(251,244,232,.15); }
.viewer__hint { margin: 0; padding: var(--space-2) var(--space-4) var(--space-3); text-align: center; font-size: var(--text-xs); color: rgba(251,244,232,.7); background: #11182b; }
