@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@1,9..144,400&family=Inter:wght@400;450;500;600;700&display=swap");

:root {
  --primary: #3f4917;
  --primary-deep: #252b0e;
  --primary-active: #536020;
  --primary-soft: #e1e8c8;
  --primary-faint: #f3f6e8;
  --teal-deep: #102b24;
  --canvas: #fffdf8;
  --canvas-soft: #f8f6ee;
  --hairline-soft: #eee8dc;
  --hairline-dark: #687044;
  --ink: #292827;
  --body: #3f3f3a;
  --ink-mute: #706d65;
  --ink-faint: #989388;
  --on-dark-mute: rgba(255, 255, 255, 0.78);
  --on-dark-faint: rgba(255, 255, 255, 0.58);
  --focus-ring: 0 0 0 3px rgba(125, 143, 50, 0.35);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-editorial: "Fraunces", "Iowan Old Style", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

a {
  color: var(--primary);
  text-decoration-color: currentColor;
  text-underline-offset: 3px;
  transition: color 150ms, opacity 150ms, background 150ms, transform 150ms;
}

a:hover {
  color: var(--primary-active);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 48px;
}

.site-header img {
  width: auto;
  height: 30px;
}

.eyebrow {
  margin: 0;
  color: var(--ink-mute);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding: 64px 48px 88px;
  text-align: center;
}

.hero h1 {
  max-width: 15ch;
  margin: 0;
  color: var(--ink);
  font-size: 64px;
  font-weight: 650;
  line-height: 0.98;
}

.hero-subtitle {
  margin: 0;
  color: var(--ink-mute);
  font-family: var(--font-editorial);
  font-size: 24px;
  font-style: italic;
  line-height: 1.35;
}

.book-cover {
  width: 320px;
  margin-top: 12px;
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(41, 40, 39, 0.18);
}

.purchase-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 14px 24px;
  border: 0;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.button span {
  margin-left: 8px;
  font-weight: 450;
}

.button-primary {
  background: var(--primary);
  color: #fff;
}

.button-primary span {
  color: var(--on-dark-mute);
}

.button-primary:hover {
  background: var(--primary-active);
  color: #fff;
}

.button-primary:active {
  background: var(--primary-deep);
  transform: scale(0.98);
}

.button-soft {
  background: var(--primary-faint);
  color: var(--primary);
}

.button-soft span {
  color: var(--ink-mute);
}

.button-soft:hover {
  color: var(--primary);
  opacity: 0.85;
}

.secondary-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--ink-mute);
  font-size: 14px;
}

.secondary-actions a {
  text-decoration: underline;
}

.scripture-band {
  padding: 64px 48px;
  background: var(--primary-faint);
  text-align: center;
}

.scripture-band blockquote {
  max-width: 640px;
  margin: 0 auto;
  color: var(--primary-deep);
  font-family: var(--font-editorial);
  font-size: 28px;
  font-style: italic;
  line-height: 1.4;
}

.scripture-band p {
  margin: 14px 0 0;
  color: var(--ink-mute);
  font-size: 14px;
}

.about-book {
  padding: 88px 48px;
}

.about-book-inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  align-items: start;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-heading h2,
.about-author h2,
.chapter-cta h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.15;
}

.book-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.book-copy p {
  margin: 0;
  color: var(--body);
  font-size: 18px;
  font-weight: 450;
  line-height: 1.55;
}

.about-author {
  padding: 88px 48px;
  border-top: 1px solid var(--hairline-soft);
}

.about-author-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.about-author img {
  width: 340px;
  border: 1px solid var(--hairline-soft);
  border-radius: 14px;
}

.about-author .eyebrow {
  margin-top: 8px;
}

.about-author > div > p:not(.eyebrow) {
  max-width: 58ch;
  margin: 0;
  color: var(--body);
  font-size: 16px;
  line-height: 1.5;
}

.about-author a {
  font-size: 14px;
  font-weight: 600;
}

.chapter-cta {
  padding: 80px 48px;
  background: var(--teal-deep);
}

.chapter-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.chapter-cta h2 {
  color: #fff;
}

.chapter-cta-inner > p {
  margin: 0;
  color: var(--on-dark-mute);
  font-size: 16px;
  line-height: 1.5;
}

#chapter-form {
  position: relative;
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 440px;
}

.email-input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--hairline-dark);
  border-radius: 8px;
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 16px;
}

.email-input::placeholder {
  color: var(--on-dark-faint);
}

.button-on-dark {
  padding: 0 22px;
  background: var(--primary-soft);
  color: var(--primary-deep);
}

.button-on-dark:hover {
  opacity: 0.9;
}

.button-on-dark:disabled {
  cursor: wait;
  opacity: 0.72;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 24px;
  font-size: 14px !important;
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 2px;
  color: var(--on-dark-mute);
  font-size: 14px;
}

.share-row span {
  color: #fff;
  font-weight: 600;
}

.share-row a {
  color: var(--on-dark-mute);
}

.share-row a:hover {
  color: #fff;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
  border-top: 1px solid var(--hairline-soft);
}

.site-footer img {
  width: auto;
  height: 24px;
}

.site-footer p {
  margin: 0;
  color: var(--ink-faint);
  font-size: 12px;
  font-weight: 450;
}

@media (max-width: 760px) {
  .site-header {
    padding: 16px 24px;
  }

  .hero {
    gap: 22px;
    padding: 48px 24px 64px;
  }

  .hero h1 {
    font-size: clamp(44px, 13vw, 58px);
    line-height: 1;
  }

  .hero-subtitle {
    max-width: 22ch;
    font-size: 21px;
  }

  .book-cover {
    width: min(320px, 80vw);
  }

  .scripture-band,
  .about-book,
  .about-author,
  .chapter-cta {
    padding-right: 24px;
    padding-left: 24px;
  }

  .about-book {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .about-book-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-author {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .site-footer {
    padding: 24px;
  }
}

@media (max-width: 520px) {
  .purchase-actions,
  #chapter-form {
    flex-direction: column;
    width: 100%;
  }

  .purchase-actions .button,
  #chapter-form .button {
    width: 100%;
  }

  .secondary-actions {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 14px;
  }

  .scripture-band blockquote {
    font-size: 24px;
  }

  .about-author img {
    width: min(340px, 100%);
  }

  .share-row {
    max-width: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
