:root {
  color-scheme: light;
  --background: #faf6f1;
  --panel: rgba(255, 253, 251, 0.94);
  --panel-border: #eadede;
  --text: #161214;
  --muted: #6f5f63;
  --accent: #c53146;
  --accent-strong: #8e1f33;
  --shadow: 0 24px 80px rgba(61, 29, 34, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(197, 49, 70, 0.08), transparent 28%),
    radial-gradient(circle at left center, rgba(197, 49, 70, 0.05), transparent 24%),
    linear-gradient(180deg, #fffdfb 0%, #faf6f1 45%, #f6efe8 100%);
  color: var(--text);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(250, 246, 241, 0.88);
  border-bottom: 1px solid rgba(234, 222, 222, 0.8);
}

.site-header-inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.85rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-brand {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-nav-links a {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav-links a:hover {
  background: rgba(197, 49, 70, 0.08);
  color: var(--text);
}

.page-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4rem 0;
}

.hero,
.card-grid,
.social-proof,
.author-section {
  margin-bottom: 2rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 2rem;
  align-items: center;
}

.eyebrow,
.section-label {
  margin: 0 0 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero h1,
.content-card h2,
.section-heading h2 {
  margin: 0;
  line-height: 1.04;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  max-width: 10ch;
}

.lede,
.content-card p,
.testimonial p,
.cta-note,
.signup-form label,
.section-heading p {
  color: var(--muted);
}

.lede {
  margin: 1.5rem 0;
  max-width: 42rem;
  font-size: 1.15rem;
  line-height: 1.7;
}

.hero-art {
  display: flex;
  justify-content: center;
}

.book-cover {
  display: block;
  width: min(100%, 390px);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.95rem 1.4rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: #fff8f8;
  border-color: #ecd3d8;
  box-shadow: var(--shadow);
}

.button-accent {
  width: 100%;
  background: linear-gradient(135deg, #d8455c 0%, var(--accent) 48%, var(--accent-strong) 100%);
  color: #fff8f7;
  box-shadow: var(--shadow);
}

.cta-note {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.content-card,
.testimonial {
  padding: 2rem;
  border: 1px solid var(--panel-border);
  border-radius: 1.5rem;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.content-card p {
  font-size: 1rem;
  line-height: 1.75;
}

.author-card p:last-child {
  font-size: 0.92rem;
  line-height: 1.7;
}

.book-excerpts {
  display: grid;
  gap: 1rem;
}

.book-excerpt {
  margin: 0;
  padding-left: 1rem;
  border-left: 2px solid rgba(197, 49, 70, 0.32);
}

.book-excerpt p {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.6;
}

.signup-form {
  margin-top: 1.5rem;
}

.field-group {
  margin-bottom: 1rem;
}

.signup-form label {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.signup-form input[type="email"] {
  width: 100%;
  padding: 1rem 1.05rem;
  border-radius: 1rem;
  border: 1px solid #e2cfd2;
  background: #fffdfb;
  color: var(--text);
  font-size: 1rem;
}

.signup-form input[type="email"]:focus {
  outline: 2px solid rgba(197, 49, 70, 0.28);
  outline-offset: 2px;
}

.field-error {
  margin: 0.6rem 0 0;
  color: #b4233e;
  font-size: 0.95rem;
}

.signup-success {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid #ead7da;
  background: #fff7f7;
  color: var(--muted);
}

.signup-success p {
  margin: 0;
}

.signup-success-title {
  margin-bottom: 0.5rem !important;
  color: var(--text);
  font-weight: 700;
}

.section-heading {
  margin-bottom: 1rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.testimonial {
  margin: 0;
}

.testimonial p {
  margin-top: 0;
  line-height: 1.7;
}

.testimonial footer {
  color: var(--accent);
  font-weight: 700;
}

.flash {
  position: sticky;
  top: 4.5rem;
  z-index: 10;
  width: min(1120px, calc(100% - 2rem));
  margin: 1rem auto 0;
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  border: 1px solid #ead7da;
  background: rgba(255, 251, 250, 0.96);
  box-shadow: var(--shadow);
}

.flash-notice {
  color: var(--text);
}

.site-footer {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto 2.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--panel-border);
}

.site-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer-inner p {
  margin: 0;
}

.site-footer-contact {
  max-width: 38rem;
  color: #7a696d;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .hero,
  .card-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .page-shell {
    padding-top: 2.5rem;
  }

  .hero h1 {
    max-width: none;
  }

  .site-header-inner {
    padding: 0.75rem 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    scrollbar-width: none;
  }

  .site-nav-links::-webkit-scrollbar {
    display: none;
  }

  .site-nav-links a {
    flex: 0 0 auto;
  }

  .flash {
    top: 4.1rem;
  }

  .site-footer-inner {
    flex-direction: column;
  }
}
