:root {
  --ink: #1b2234;
  --muted: #667085;
  --paper: #fbf8f1;
  --white: #ffffff;
  --blue: #313c90;
  --blue-soft: #e8eefc;
  --rose: #d97aa1;
  --line: rgba(49, 60, 144, .16);
  --shadow: 0 24px 60px rgba(27, 34, 52, .15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(217,122,161,.24) 0 2px, transparent 2px 100%) 3.5rem 0/100% 100%,
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(91, 176, 216, .18) 39px 41px),
    var(--paper);
  line-height: 1.6;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  background: rgba(251, 248, 241, .9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.logo {
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
nav { display: flex; gap: 1rem; flex-wrap: wrap; }
nav a, .text-link {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}
nav a:hover, .text-link:hover { text-decoration: underline; }

main { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, .75fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(3rem, 7vw, 7rem) 0;
}
.hero-text { max-width: 680px; }
.eyebrow {
  margin: 0 0 .75rem;
  color: var(--rose);
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
h1, h2 { line-height: 1.05; margin: 0 0 1rem; }
h1 {
  font-size: clamp(3rem, 9vw, 6.8rem);
  color: var(--blue);
  font-weight: 900;
  letter-spacing: -.06em;
}
h2 { font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.04em; }
p { font-size: 1.08rem; margin: 0 0 1rem; }
.tagline {
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  font-weight: 800;
  line-height: 1.2;
}
.intro { color: var(--muted); max-width: 580px; }
.actions { display: flex; gap: .85rem; flex-wrap: wrap; margin-top: 1.5rem; }
.actions.centered { justify-content: center; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .8rem 1.2rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); }
.primary { color: white; background: var(--blue); box-shadow: 0 12px 28px rgba(49, 60, 144, .25); }
.secondary { color: var(--blue); background: var(--blue-soft); }
.hero-cover img {
  width: min(100%, 380px);
  display: block;
  margin-left: auto;
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.section-card, .about-section {
  margin: 0 0 2rem;
  padding: clamp(2rem, 5vw, 4rem);
  background: rgba(255, 255, 255, .86);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: 0 18px 50px rgba(27, 34, 52, .08);
}
.book-section { max-width: 900px; margin-inline: auto; }
.about-section {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2rem;
  align-items: center;
}
.author-photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 14px 35px rgba(27, 34, 52, .16);
}
.reader-list-section { text-align: center; max-width: 820px; margin-inline: auto; }
.mailer-lite-form { margin: 1.5rem auto 0; max-width: 620px; }
footer {
  text-align: center;
  color: var(--muted);
  padding: 2rem 1rem 3rem;
}
footer p { font-size: .95rem; }

@media (max-width: 800px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-cover img { margin: 0 auto; max-width: 300px; }
  .about-section { grid-template-columns: 1fr; text-align: center; }
  .author-photo { margin: 0 auto; }
}

@media (max-width: 480px) {
  nav { gap: .75rem; font-size: .9rem; }
  .button { width: 100%; }
}
