:root {
  --bg: #f7f0e4;
  --bg-strong: #f2dfc3;
  --surface: rgba(255, 250, 243, 0.8);
  --surface-strong: #fffaf2;
  --ink: #1d2a34;
  --muted: #5b6872;
  --accent: #103b66;
  --accent-2: #b54d27;
  --line: rgba(29, 42, 52, 0.12);
  --shadow: 0 18px 50px rgba(25, 40, 49, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.7), transparent 35%),
    linear-gradient(180deg, #f8f1e7 0%, #f2e3cf 45%, #efe7db 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 40px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(16, 59, 102, 0.96), rgba(29, 42, 52, 0.9)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent);
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -25% auto;
  width: 340px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 201, 135, 0.4), transparent 70%);
  pointer-events: none;
}

.coming-soon-hero {
  min-height: calc(100vh - 58px);
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at top left, rgba(255, 228, 183, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(16, 59, 102, 0.98), rgba(13, 28, 40, 0.94));
}

.coming-soon-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  align-items: center;
}

.countdown-card {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 249, 240, 0.2);
}

.countdown-label {
  margin: 0 0 14px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.countdown-grid div {
  padding: 14px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
}

.countdown-grid strong {
  display: block;
  margin-bottom: 4px;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 2rem;
}

.countdown-grid span {
  font-size: 0.9rem;
}

.topbar,
.hero-layout,
.stats,
.book-grid,
.value-strip,
.audiences,
.news-section,
.legal-grid,
.cta-box {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 52px;
}

.brand,
.top-link,
.hero-copy,
.hero-panel {
  color: #fff9f0;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.top-link {
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(255, 249, 240, 0.4);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: end;
}

.eyebrow,
.card-topline,
.panel-label {
  margin: 0 0 14px;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2,
.value-strip h2,
.cta-box h2,
.hero-panel h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  line-height: 0.95;
}

.hero-copy h1 {
  max-width: 9ch;
  font-size: clamp(3.5rem, 8vw, 6.8rem);
}

.lead,
.hero-panel p,
.section-heading p,
.value-strip p,
.cta-box p,
.audiences p,
.book-card p,
.stats span {
  line-height: 1.7;
}

.lead {
  max-width: 64ch;
  margin: 20px 0 0;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: #fff2d8;
  color: #132939;
}

.button-secondary {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.hero .button-secondary {
  border-color: rgba(255, 249, 240, 0.34);
  color: #fff9f0;
}

.hero-panel {
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
  backdrop-filter: blur(12px);
}

.hero-panel h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 18px;
}

.text-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
}

.stats,
.value-strip,
.news-section,
.legal-grid,
.cta-box {
  display: grid;
  gap: 18px;
}

.stats {
  grid-template-columns: repeat(3, 1fr);
  margin: 26px 0 72px;
}

.stats article,
.book-card,
.value-strip,
.audiences article,
.legal-card,
.news-section,
.cta-box {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.stats article {
  padding: 24px;
}

.stats strong {
  display: block;
  margin-bottom: 10px;
  font-size: 2rem;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading h2,
.value-strip h2,
.cta-box h2 {
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  margin-bottom: 16px;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.book-card {
  padding: 28px;
}

.book-card.featured {
  grid-row: span 2;
  background:
    linear-gradient(180deg, rgba(181, 77, 39, 0.08), rgba(255, 255, 255, 0.7)),
    var(--surface-strong);
}

.book-card h3,
.audiences h3 {
  margin: 0 0 14px;
  font-size: 1.55rem;
}

.book-card ul {
  margin: 18px 0 24px;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.value-strip,
.cta-box {
  grid-template-columns: 1fr 1fr;
  align-items: center;
  margin-top: 28px;
  padding: 30px;
}

.audiences {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 22px;
}

.audiences article {
  padding: 24px;
}

.news-section {
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.8fr);
  align-items: start;
  margin-top: 28px;
  padding: 30px;
  background:
    linear-gradient(180deg, rgba(16, 59, 102, 0.06), rgba(255, 255, 255, 0.78)),
    var(--surface-strong);
}

.news-copy h2,
.news-panel h3 {
  margin: 0 0 16px;
}

.news-copy h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  line-height: 0.98;
}

.news-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.news-panel ul {
  margin: 0 0 22px;
  padding-left: 18px;
  line-height: 1.7;
  color: var(--muted);
}

.cta-box {
  margin: 28px 0 40px;
}

.hero-compact {
  padding-bottom: 22px;
}

.legal-hero {
  grid-template-columns: 1fr;
}

.legal-page {
  margin-top: 28px;
}

.book-hero {
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
}

.book-cover-card {
  justify-self: center;
  width: min(100%, 320px);
  padding: 14px;
  border: 1px solid rgba(255, 249, 240, 0.2);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px rgba(6, 19, 30, 0.22);
}

.book-cover-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.order-links-box,
.order-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 28px;
}

.order-links-box {
  align-items: center;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(181, 77, 39, 0.08), rgba(255, 255, 255, 0.72)),
    var(--surface-strong);
  box-shadow: var(--shadow);
}

.order-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-start;
}

.order-price {
  margin: 10px 0 0;
  font-size: 1.25rem;
  font-weight: 800;
}

.order-list {
  margin: 0;
  padding-left: 20px;
  line-height: 1.7;
}

.order-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.checkout-form,
.payment-panel,
.order-summary-card,
.book-choice {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.checkout-form {
  display: grid;
  gap: 18px;
}

.form-block-header h3,
.payment-panel h3 {
  margin: 0 0 12px;
}

.form-grid-two,
.form-grid-address,
.book-choice-grid {
  display: grid;
  gap: 16px;
}

.form-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid-address {
  grid-template-columns: 120px minmax(0, 1fr) minmax(140px, 180px);
}

.book-choice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.book-choice {
  position: relative;
  padding: 0;
  overflow: hidden;
}

.book-choice input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.book-choice-body {
  display: block;
  padding: 22px;
}

.book-choice input:checked + .book-choice-body {
  background: rgba(16, 59, 102, 0.08);
}

.book-choice-title,
.order-summary-label,
.order-summary-price {
  display: block;
}

.book-choice-title,
.order-summary-price {
  font-weight: 800;
}

.book-choice-meta,
.payment-help {
  color: var(--muted);
  line-height: 1.7;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(29, 42, 52, 0.18);
  border-radius: 16px;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

.order-summary-card {
  padding: 20px 22px;
}

.order-summary-price {
  margin: 6px 0 0;
  font-size: 1.7rem;
}

.payment-panel {
  padding: 26px;
}

.payment-panel-copy {
  display: grid;
  gap: 16px;
}

.paypal-buttons {
  min-height: 44px;
}

.payment-reset-link {
  font-weight: 700;
}

.form-status.is-success {
  color: #0c6b45;
}

.form-status.is-error {
  color: #a53f22;
}

.legal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 28px;
}

.legal-card {
  padding: 26px;
}

.legal-card h3 {
  margin: 0 0 14px;
  font-size: 1.35rem;
}

.legal-card p,
.legal-card li {
  line-height: 1.7;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 6px 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

@media (max-width: 900px) {
  .hero-layout,
  .stats,
  .book-grid,
  .value-strip,
  .audiences,
  .news-section,
  .legal-grid,
  .order-form-layout,
  .order-links-box,
  .order-summary,
  .cta-box {
    grid-template-columns: 1fr;
  }

  .form-grid-two,
  .form-grid-address,
  .book-choice-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 22px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 34px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .book-card.featured {
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
  }

  .hero-copy h1 {
    max-width: 11ch;
    font-size: clamp(2.9rem, 14vw, 4.4rem);
  }

  .section-heading h2,
  .value-strip h2,
  .cta-box h2,
  .hero-panel h2 {
    line-height: 1;
  }

  .button {
    width: 100%;
  }
}
