:root {
  --ink: #1c1732;
  --muted: #6b6479;
  --purple: #32166f;
  --purple-2: #5f34b5;
  --pink: #f33a72;
  --gold: #f3b83f;
  --cream: #fff8ea;
  --paper: #fffdf9;
  --line: #eadfcd;
  --green: #176348;
  --shadow: 0 20px 60px rgba(40, 21, 72, 0.14);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 999;
  padding: 10px 14px;
  background: #fff;
  border-radius: 8px;
}

.wrap {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}
.narrow { width: min(860px, calc(100% - 40px)); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,253,249,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(234,223,205,0.8);
}
.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 23px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  box-shadow: 0 8px 24px rgba(73,36,130,0.22);
}
.brand-copy { display: grid; line-height: 1.1; }
.brand-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  letter-spacing: .01em;
}
.brand-copy small { color: var(--muted); margin-top: 5px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; font-size: 14px; font-weight: 700; color: #4f4860; }
.nav a:hover { color: var(--purple); }

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 10%, rgba(243,184,63,.24), transparent 28%),
    radial-gradient(circle at 90% 15%, rgba(243,58,114,.15), transparent 26%),
    linear-gradient(180deg, #fffaf0 0%, #fffdf9 100%);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  border: 1px solid rgba(95,52,181,.08);
  right: -180px;
  top: -180px;
}
.hero-grid {
  min-height: 720px;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: 72px;
  padding: 64px 0 72px;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--purple-2);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
  margin-top: 0;
}
h1 {
  font-size: clamp(44px, 6vw, 76px);
  letter-spacing: -.035em;
  max-width: 780px;
  margin-bottom: 22px;
}
h2 {
  font-size: clamp(34px, 4.5vw, 56px);
  letter-spacing: -.025em;
  margin-bottom: 18px;
}
h3 { font-size: 24px; margin-bottom: 10px; }
.lede {
  font-size: 21px;
  max-width: 660px;
  color: #4e475d;
  margin: 0 0 20px;
}
.launch-pill {
  display: inline-flex;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(23,99,72,.09);
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  margin: 4px 0 24px;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.button:hover { transform: translateY(-1px); }
.primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 10px 28px rgba(50,22,111,.24);
}
.primary:hover { background: #271254; }
.secondary {
  color: var(--purple);
  background: #fff;
  border: 1px solid rgba(50,22,111,.18);
}
.secondary:hover { box-shadow: 0 10px 26px rgba(50,22,111,.10); }
.microcopy { font-size: 13px; color: var(--muted); margin: 16px 0 0; }
.hero-art { display: flex; justify-content: center; }
.cover-frame {
  width: min(510px, 100%);
  padding: 12px;
  border-radius: 32px;
  background: #fff;
  box-shadow: var(--shadow);
  transform: rotate(1.4deg);
}
.cover-frame img { border-radius: 22px; }

.section { padding: 96px 0; }
.section-heading.centered { text-align: center; max-width: 800px; margin: 0 auto 42px; }
.book-section { background: #fff; }
.book-section h2 { margin-bottom: 8px; }
.subhead { color: var(--pink); font-family: Georgia, serif; font-style: italic; font-size: 21px; margin: 0 0 26px; }
.book-copy { font-size: 18px; color: #4d465a; }
.specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 34px 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.specs div { background: var(--cream); padding: 18px; display: grid; gap: 4px; }
.specs span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; }
.specs strong { font-size: 15px; }
.buy-panel {
  margin-top: 30px;
  padding: 28px;
  border-radius: 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, rgba(243,184,63,.17), rgba(243,58,114,.08));
  border: 1px solid #f1dfbd;
}
.buy-panel h3 { margin-bottom: 8px; }
.buy-panel p:last-child { margin-bottom: 0; color: var(--muted); }

.spark-section { background: var(--cream); }
.cards.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(64,45,25,.06);
}
.card p { color: var(--muted); margin-bottom: 0; }
.icon-dot {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--purple-2), var(--pink));
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 20px;
}

.series-section { background: #fff; }
.series-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.body-lg { font-size: 19px; color: #514a60; }
.series-tagline { color: var(--purple); font-weight: 900; font-size: 18px; }
.series-stack { display: grid; gap: 16px; }
.series-book { padding: 28px; border-radius: 20px; border: 1px solid var(--line); }
.series-book.current { background: linear-gradient(135deg, #fff8e5, #fff0f4); }
.series-book.next { background: #faf8ff; }
.book-number { display: inline-block; margin-bottom: 12px; color: var(--purple-2); text-transform: uppercase; font-size: 11px; letter-spacing: .1em; font-weight: 900; }
.series-book p { color: var(--muted); }
.status { font-weight: 800; font-size: 13px; color: var(--green); }

.family-section { background: #f8f5ff; }
.family-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 64px; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }
.quote-box {
  min-height: 300px;
  border-radius: 30px;
  padding: 38px;
  color: #fff;
  background: linear-gradient(145deg, var(--purple), #6637ad 68%, var(--pink));
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow);
}
.quote-mark { font-size: 70px; line-height: .6; font-family: Georgia, serif; opacity: .45; }
.quote-box p { font-family: Georgia, serif; font-size: 34px; line-height: 1.15; margin: 14px 0; }
.quote-box small { opacity: .82; font-weight: 800; }

.author-section { background: #fff; }
.author-grid { display: grid; grid-template-columns: 180px 1fr; gap: 42px; align-items: center; max-width: 900px; }
.author-monogram {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 46px;
  font-weight: 700;
  letter-spacing: .03em;
  background: linear-gradient(135deg, var(--gold), var(--pink) 52%, var(--purple));
  box-shadow: 0 20px 50px rgba(50,22,111,.18);
}

.contact-band { background: #221249; color: #fff; padding: 72px 0; }
.contact-inner { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.contact-band h2 { max-width: 760px; font-size: clamp(30px, 4vw, 50px); margin-bottom: 0; }
.eyebrow.light { color: #f8c95f; }
.contact-actions { display: grid; justify-items: end; gap: 14px; }
.light-button { background: #fff; color: var(--purple); }
.text-link { color: #ddd4f4; font-weight: 700; text-underline-offset: 4px; }

.site-footer { background: #160d2f; color: #dcd5eb; padding: 34px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; align-items: flex-end; }
.site-footer strong { color: #fff; font-family: Georgia, serif; font-size: 20px; }
.site-footer p { margin: 5px 0 0; font-size: 13px; color: #aaa0c4; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 16px; justify-content: flex-end; font-size: 12px; color: #aaa0c4; }

@media (max-width: 900px) {
  .nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 42px; min-height: auto; padding: 58px 0 70px; }
  .hero-copy { text-align: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .cover-frame { width: min(560px, 90%); transform: none; }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .cards.three { grid-template-columns: 1fr; }
  .series-grid, .family-grid { grid-template-columns: 1fr; gap: 42px; }
  .quote-box { min-height: 240px; }
  .contact-inner { grid-template-columns: 1fr; }
  .contact-actions { justify-items: start; }
}

@media (max-width: 620px) {
  .wrap, .narrow { width: min(100% - 28px, 1160px); }
  .header-inner { min-height: 70px; }
  .brand-copy small { display: none; }
  h1 { font-size: 44px; }
  .hero-grid { padding-top: 46px; }
  .section { padding: 72px 0; }
  .specs { grid-template-columns: 1fr; }
  .buy-panel { grid-template-columns: 1fr; }
  .author-grid { grid-template-columns: 1fr; text-align: center; }
  .author-monogram { width: 130px; height: 130px; margin: 0 auto; font-size: 36px; }
  .footer-inner { display: grid; }
  .footer-meta { justify-content: flex-start; }
}

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


/* Prelaunch purchase availability */
.availability-panel {
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
}
.availability-action {
  display: grid;
  gap: 8px;
  justify-items: stretch;
  text-align: center;
}
.coming-soon-note {
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(50,22,111,.09);
  color: #51495f !important;
  font-size: 15px;
}

/* Netlify forms */
.release-section {
  background: linear-gradient(145deg, #f7f2ff, #fff9ec);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.form-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.form-intro { padding-top: 12px; }
.form-note {
  margin-top: 24px;
  padding: 14px 16px;
  border-left: 4px solid var(--gold);
  background: rgba(255,255,255,.7);
  color: var(--muted);
  font-size: 14px;
}
.netlify-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 16px 46px rgba(50,22,111,.08);
}
.inquiry-section { background: #fffdf9; }
.inquiry-heading { max-width: 900px; }
.inquiry-form { max-width: 1000px; margin: 0 auto; }
.field-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}
.field-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: grid; gap: 7px; }
.field label,
.netlify-form > label:not(.consent-row) {
  font-size: 13px;
  font-weight: 800;
  color: #41394f;
}
.field input,
.field select,
.field textarea,
.netlify-form textarea {
  width: 100%;
  border: 1px solid #d8d0df;
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  padding: 12px 13px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea,
.netlify-form textarea { resize: vertical; min-height: 145px; }
.field input:focus,
.field select:focus,
.field textarea:focus,
.netlify-form textarea:focus {
  border-color: var(--purple-2);
  box-shadow: 0 0 0 3px rgba(95,52,181,.12);
}
.consent-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  color: #554d60;
  font-size: 13px;
  margin: 4px 0 20px;
}
.consent-row input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--purple); }
.form-submit { border: 0; cursor: pointer; font-family: inherit; }
.privacy-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.hidden-field { position: absolute !important; left: -9999px !important; height: 1px; width: 1px; overflow: hidden; }
.form-footer-row {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
}
.form-footer-row .privacy-note { margin: 0; max-width: 520px; text-align: right; }

/* Thank-you pages */
.thanks-page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: linear-gradient(145deg, #fffaf0, #f7f2ff);
}
.thanks-main { display: grid; place-items: center; padding: 70px 20px; }
.thanks-card {
  width: min(720px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 44px;
  text-align: center;
  box-shadow: var(--shadow);
}
.thanks-card .brand-mark { margin: 0 auto 22px; }
.thanks-card h1 { font-size: clamp(38px, 6vw, 60px); margin-bottom: 18px; }
.thanks-card p { color: var(--muted); font-size: 18px; }
.thanks-card .button { margin-top: 12px; }

@media (max-width: 900px) {
  .form-layout { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 760px) {
  .availability-panel { grid-template-columns: 1fr; }
  .field-grid.two { grid-template-columns: 1fr; }
  .form-footer-row { display: grid; }
  .form-footer-row .privacy-note { text-align: left; }
  .netlify-form { padding: 22px; }
}


/* Author social media */
.social-section {
  background: linear-gradient(145deg, #fff9ec, #f7f2ff);
  border-top: 1px solid var(--line);
}
.social-wrap { max-width: 1050px; }
.social-heading { max-width: 800px; margin-bottom: 34px; }
.social-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.social-card {
  display: grid;
  gap: 5px;
  min-height: 108px;
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(50,22,111,.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.social-card:hover, .social-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(95,52,181,.35);
  box-shadow: 0 16px 38px rgba(50,22,111,.12);
}
.social-platform {
  color: var(--purple);
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 700;
}
.social-handle { color: var(--muted); font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin-top: 12px;
  font-size: 12px;
  color: #aaa0c4;
}
.footer-social span { font-weight: 800; color: #dcd5eb; }
.footer-social a { color: #dcd5eb; text-underline-offset: 3px; }
.footer-social a:hover, .footer-social a:focus-visible { color: #fff; }
.thanks-social { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.thanks-social p { font-size: 14px; margin-bottom: 14px; }
.thanks-social-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 16px; }
.thanks-social-links a { color: var(--purple-2); font-weight: 800; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .social-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .social-links { grid-template-columns: 1fr; }
  .social-card { min-height: auto; }
}
