:root {
  --bg: #faf7f1;
  --card: #fffdf9;
  --text: #2f2a24;
  --muted: #6a6258;
  --accent: #6d8b74;
  --accent-dark: #58715e;
  --border: #e7dfd1;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

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

.wrap {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

/* Hero / welcome section */

.hero,
.hero-stacked {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.hero-top {
  width: 100%;
  margin-bottom: 20px;
}

.hero-top h1 {
  margin: 0;
  font-size: 2.5rem;
  line-height: 1.15;
  text-align: center;
}

.hero-image,
.centered-image {
  width: 100%;
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img,
.centered-image img {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  border-radius: 18px;
}

.hero-text-block {
  width: 100%;
  max-width: 700px;
}

.series-text {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--muted);
  text-align: left;
}

/* Form section */

.form-section {
  margin-top: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
}

.form-intro {
  text-align: center;
  margin-bottom: 18px;
}

.form-intro h2 {
  margin: 0 0 10px;
  font-size: 1.9rem;
}

.subhead {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.1rem;
}

.form-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
}

.ml-form-placeholder {
  padding: 16px;
  border: 2px dashed var(--border);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
}

.fine-print {
  margin: 14px 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* MailerLite embed fixes */

.ml-form-embedContainer,
.ml-form-embedWrapper,
.ml-form-formContent,
.ml-form-fieldRow,
.ml-input-horizontal {
  width: 100% !important;
  max-width: 100% !important;
}

.ml-form-embedContainer input,
.ml-form-embedContainer button,
.ml-form-embedContainer select,
.ml-form-embedContainer textarea {
  width: 100% !important;
  max-width: 100% !important;
}

.ml-form-embedContainer button {
  display: block;
}

/* Coming soon */

.coming-soon {
  margin-top: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px 28px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
}

.coming-soon h1,
.coming-soon h2 {
  margin: 0 0 8px;
}

.book-title {
  margin: 0;
  font-size: 1.1rem;
  color: var(--accent-dark);
  font-weight: bold;
}

/* Footer */

.site-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--accent-dark);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Privacy page */

.policy-section {
  text-align: left;
}

.policy-section h1 {
  margin-top: 0;
}

.policy-section ul {
  margin: 12px 0 16px 22px;
  padding: 0;
}

.policy-section li {
  margin-bottom: 8px;
}

.policy-section a {
  color: var(--accent-dark);
  text-decoration: none;
}

.policy-section a:hover {
  text-decoration: underline;
}

/* Tablet */

@media (max-width: 900px) {
  .wrap {
    padding: 24px 16px 40px;
  }

  .hero,
  .hero-stacked {
    padding: 24px;
  }

  .hero-top h1 {
    font-size: 2.1rem;
  }

  .series-text {
    font-size: 1.04rem;
  }

  .form-section {
    padding: 24px;
  }

  .form-intro h2 {
    font-size: 1.7rem;
  }

  .subhead {
    font-size: 1rem;
  }
}

/* Mobile */

@media (max-width: 700px) {
  .hero,
  .hero-stacked {
    padding: 22px 18px;
  }

  .hero-top {
    margin-bottom: 16px;
  }

  .hero-top h1 {
    font-size: 2rem;
  }

  .hero-image,
  .centered-image {
    margin-bottom: 18px;
  }

  .hero-image img,
  .centered-image img {
    max-width: 100%;
  }

  .series-text {
    font-size: 1rem;
    text-align: left;
  }

  .form-section {
    padding: 20px 18px;
  }

  .form-intro h2 {
    font-size: 1.55rem;
  }

  .subhead {
    font-size: 1rem;
    margin-bottom: 18px;
  }

  .form-card {
    padding: 16px;
    text-align: left;
  }

  .coming-soon {
    padding: 20px 18px;
  }
}

/* Small phones */

@media (max-width: 420px) {
  .wrap {
    padding: 16px 12px 28px;
  }

  .hero,
  .hero-stacked {
    padding: 18px 14px;
    border-radius: 18px;
  }

  .hero-top h1 {
    font-size: 1.7rem;
  }

  .series-text {
    font-size: 0.98rem;
  }

  .form-section {
    padding: 18px 14px;
    border-radius: 18px;
  }

  .form-intro h2 {
    font-size: 1.35rem;
  }

  .form-card {
    padding: 14px;
    border-radius: 14px;
  }

  .coming-soon {
    padding: 18px 14px;
    border-radius: 16px;
  }

  .book-title {
    font-size: 1rem;
  }

  .site-footer {
    font-size: 0.9rem;
  }
}