:root {
  --bg: #faf6f1;
  --bg-alt: #f2e9e1;
  --ink: #2b2226;
  --muted: #6e5f63;
  --accent: #8c2f45;
  --accent-soft: #c98a97;
  --gold: #b08d57;
  --card: #ffffff;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--bg-alt);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 14px;
}
.logo {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 600;
  color: var(--ink); text-decoration: none; letter-spacing: .02em;
}
.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .14em;
}
.nav a:hover { color: var(--accent); }

/* Hero */
.hero {
  text-align: center;
  padding: clamp(72px, 14vw, 150px) 0 clamp(64px, 10vw, 110px);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201,138,151,.22), transparent 65%),
    var(--bg);
}
.eyebrow {
  font-size: .8rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 18px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(3rem, 10vw, 6.5rem); line-height: 1; margin: 0;
}
.hero .tagline {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.25rem, 3vw, 1.6rem); color: var(--muted);
  max-width: 34ch; margin: 24px auto 36px;
}
.flourish { color: var(--accent-soft); font-size: 1.4rem; letter-spacing: .5em; }

.btn {
  display: inline-block; padding: 13px 30px;
  border: 1px solid var(--accent); border-radius: 999px;
  color: var(--accent); text-decoration: none;
  font-size: .82rem; letter-spacing: .16em; text-transform: uppercase;
  transition: background .2s, color .2s;
}
.btn:hover, .btn.solid { background: var(--accent); color: #fff; }
.btn.solid:hover { background: #73253a; }

/* Sections */
section { padding: clamp(64px, 10vw, 110px) 0; }
.section-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3rem); text-align: center; margin: 0 0 8px;
}
.section-sub { text-align: center; color: var(--muted); margin: 0 0 48px; }

/* About */
.about { background: var(--bg-alt); }
.about-body { max-width: 680px; margin-inline: auto; }
.about-body p:first-of-type::first-letter {
  font-family: var(--serif); float: left; font-size: 4.2rem;
  line-height: .85; padding: 6px 10px 0 0; color: var(--accent);
}
.about-body em { font-family: var(--serif); font-size: 1.12em; }

/* Books */
.books-grid {
  display: grid; gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.book {
  background: var(--card); border-radius: 6px; padding: 32px;
  box-shadow: 0 1px 2px rgba(43,34,38,.05), 0 12px 32px rgba(43,34,38,.06);
  display: flex; flex-direction: column; gap: 22px;
}
.author-photo {
  width: 220px; height: 220px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 36px; border: 6px solid var(--bg);
  box-shadow: 0 12px 30px rgba(43,34,38,.18);
}
.cover-link { display: block; width: min(240px, 75%); margin-inline: auto; }
.cover-img {
  width: 100%; height: auto; border-radius: 2px 5px 5px 2px;
  box-shadow: 0 14px 30px rgba(43,34,38,.3);
  transition: transform .25s ease, box-shadow .25s ease;
}
.cover-link:hover .cover-img { transform: translateY(-4px); box-shadow: 0 20px 38px rgba(43,34,38,.35); }
.cover-mystery {
  aspect-ratio: 603 / 900; width: 100%;
  border-radius: 2px 5px 5px 2px;
  display: grid; place-items: center;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(176,141,87,.18), transparent 60%),
    linear-gradient(160deg, #1a1416, #0d0a0b 60%, #1a1214);
  box-shadow: inset 0 0 0 1px rgba(176,141,87,.35), inset 0 0 0 10px #0d0a0b,
              inset 0 0 0 11px rgba(176,141,87,.25), 0 14px 30px rgba(43,34,38,.3);
  transition: transform .25s ease;
}
.cover-mystery span {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(7rem, 22vw, 10rem); line-height: 1;
  background: linear-gradient(180deg, #e3c88f, #b08d57 55%, #7d5f33);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cover-link:hover .cover-mystery { transform: translateY(-4px); }
.book .hook { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--accent); }
.cover {
  aspect-ratio: 2 / 3; width: min(220px, 70%); margin-inline: auto;
  border-radius: 2px 6px 6px 2px; color: #f6ead9;
  display: flex; flex-direction: column; justify-content: space-between;
  align-items: center; text-align: center; padding: 26px 16px;
  box-shadow: inset 6px 0 10px rgba(0,0,0,.25), 0 14px 28px rgba(43,34,38,.25);
  font-family: var(--serif);
}
.cover-1 { background: linear-gradient(160deg, #3a1a26, #6d2338 60%, #2a1219); }
.cover-2 { background: linear-gradient(160deg, #1c2236, #3c2a4d 55%, #15172a); }
.cover .c-title { font-size: 1.55rem; line-height: 1.15; }
.cover .c-mark { color: var(--gold); font-size: 1.3rem; }
.cover .c-author {
  font-family: var(--sans); font-size: .62rem; letter-spacing: .3em; text-transform: uppercase;
}
.book h3 { font-family: var(--serif); font-weight: 600; font-size: 1.7rem; margin: 0; }
.book .series { color: var(--gold); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; margin: 0; }
.book p { margin: 0; color: var(--muted); }
.book .actions { margin-top: auto; }

/* Coming soon */
.coming {
  min-height: calc(100vh - 140px);
  display: grid; place-items: center; text-align: center;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(201,138,151,.25), transparent 60%),
    var(--bg);
}
.coming h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.8rem, 9vw, 5.5rem); margin: 0; line-height: 1.05;
}
.coming .wrap { padding-block: 56px; }
.coming p { max-width: 52ch; margin: 18px auto; color: var(--muted); }
.coming p:last-of-type { margin-bottom: 34px; }
.coming-cover { width: min(200px, 60%); margin: 0 auto 36px; }

/* Newsletter signup (Kit inline form) */
.signup { background: var(--bg-alt); }
.signup .section-sub { margin-bottom: 28px; }
.signup-form { max-width: 520px; margin: 0 auto; }
.signup .formkit-form { max-width: none !important; margin: 0 auto; font-family: var(--sans) !important; }
.signup .formkit-form .formkit-input {
  border-color: var(--accent-soft) !important; border-radius: 999px !important;
  background: var(--card) !important; color: var(--ink) !important; font-family: var(--sans) !important;
}
.signup .formkit-form .formkit-input:focus { border-color: var(--accent) !important; }
.signup .formkit-form .formkit-submit {
  background-color: var(--accent) !important; border-radius: 999px !important;
  font-family: var(--sans) !important; letter-spacing: .04em;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--bg-alt); padding: 32px 0;
  text-align: center; color: var(--muted); font-size: .85rem;
}
.site-footer .logo { font-size: 1.2rem; display: block; margin-bottom: 4px; }

@media (max-width: 560px) {
  .site-header .wrap { flex-direction: column; gap: 6px; }
  .nav { gap: 16px; }
}

/* Book pages */
.book-page { padding: clamp(48px, 8vw, 90px) 0; }
.book-layout {
  display: grid; gap: clamp(36px, 6vw, 72px);
  grid-template-columns: minmax(220px, 340px) 1fr; align-items: start;
}
.book-layout .cover-img, .book-layout .cover-mystery { width: 100%; }
.book-info h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 3.8rem); line-height: 1.05; margin: 6px 0 14px;
}
.book-info .hook { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--accent); margin: 0 0 20px; }
.book-info .meta { color: var(--muted); font-size: .9rem; margin: 0 0 24px; }
.book-info .meta span + span::before { content: "·"; margin: 0 10px; color: var(--accent-soft); }
.book-info .desc p { margin: 0 0 16px; }
.buy { margin-top: 40px; }
.buy h2 {
  font-family: var(--serif); font-weight: 600; font-size: 1.7rem; margin: 0 0 6px;
}
.buy .note { color: var(--muted); font-size: .9rem; margin: 0 0 20px; }
.stores {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  grid-auto-rows: 1fr;
}
.stores li { display: flex; }
.stores a {
  flex: 1; min-height: 64px; line-height: 1.3;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 14px; background: var(--card);
  border: 1px solid var(--bg-alt); border-radius: 10px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.stores a:hover { border-color: var(--accent-soft); box-shadow: 0 6px 18px rgba(43,34,38,.08); transform: translateY(-1px); }
.slogo {
  flex: none; width: 40px; height: 40px; border-radius: 10px; overflow: hidden;
  display: grid; place-items: center;
  background: #fff; box-shadow: inset 0 0 0 1px #ece3da;
}
.slogo img { width: 76%; height: 76%; object-fit: contain; }
.slogo.wide img { width: 90%; height: 90%; }
.slogo.zoom-sm img { transform: scale(1.3); }
.slogo.fill { box-shadow: none; }
.slogo.fill img { width: 100%; height: 100%; object-fit: cover; }
.slogo.zoom img { transform: scale(1.42); }
.stores small { display: block; color: var(--muted); font-weight: 400; font-size: .75rem; margin-top: 2px; }
.more-stores { margin-top: 18px; font-size: .9rem; }
.series-nav {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--bg-alt); margin-top: clamp(48px, 8vw, 80px); padding-top: 28px;
}
.series-nav a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.series-nav a strong { display: block; font-family: var(--serif); font-size: 1.25rem; color: var(--ink); font-weight: 600; }
.series-nav a:hover strong { color: var(--accent); }
.series-nav .next { text-align: right; margin-left: auto; }
.book h3 a { color: inherit; text-decoration: none; }
.book h3 a:hover { color: var(--accent); }

@media (max-width: 720px) {
  .book-layout { grid-template-columns: 1fr; }
  .book-layout .cover-col { width: min(280px, 80%); margin-inline: auto; }
}
.book-info .read-order { font-size: .9rem; color: var(--muted); font-style: italic; }
