/* ---------- tokens ---------- */

:root {
  --bg: #F5EFE6;
  --text: #2B2420;
  --text-soft: #5A5147;
  --accent: #C1502E;
  --accent-dark: #9C3F22;
  --rule: #DED4C4;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;

  --content-max: 960px;
  --text-max: 680px;

  --font-head: "Bodoni Moda", Georgia, serif;
  --font-body: "Bodoni Moda", Georgia, serif;
}

/* ---------- reset ---------- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ol, form { margin: 0; }

ol { list-style: none; padding: 0; }

a {
  color: var(--text);
  text-decoration-color: var(--accent);
}

a:hover { color: var(--accent-dark); }

.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;
}

/* ---------- layout ---------- */

.container {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

.container.narrow {
  max-width: var(--text-max);
  margin-inline: 0;
  padding-left: var(--space-3);
}

@media (min-width: 768px) {
  .container { padding-inline: var(--space-5); }
  .container.narrow { padding-left: var(--space-5); }
}

section {
  padding-block: var(--space-6);
  border-bottom: 1px solid var(--rule);
}

footer { border-top: none; }

@media (min-width: 768px) {
  section { padding-block: var(--space-7); }
}

/* fade-in on scroll */

[data-fade] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-fade].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-fade] { opacity: 1; transform: none; transition: none; }
}

/* ---------- hero ---------- */

.hero { padding-top: var(--space-6); }

.hero-grid {
  display: flex;
  flex-direction: column-reverse;
  gap: var(--space-5);
}

.hero-content { max-width: var(--text-max); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
}

.headline {
  font-family: var(--font-head);
  font-size: 40px;
  line-height: 1.12;
  margin-bottom: var(--space-4);
}

.headline .line { display: block; }
.headline .light { font-weight: 400; }
.headline .bold { font-weight: 700; }
.headline em { font-style: italic; font-weight: 500; color: var(--accent); }

.subhead {
  font-size: 18px;
  color: var(--text-soft);
  max-width: 52ch;
  margin-bottom: var(--space-5);
}

.hero-illustration {
  width: 96px;
  align-self: flex-start;
}

.hero-illustration svg { width: 100%; height: auto; }

@media (min-width: 768px) {
  .headline { font-size: 56px; }
  .subhead { font-size: 19px; }

  .hero-grid {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-6);
  }

  .hero-content { flex: 1 1 auto; }

  .hero-illustration {
    width: 140px;
    flex: 0 0 auto;
    margin-top: var(--space-2);
  }
}

@media (min-width: 1024px) {
  .headline { font-size: 68px; }
}

/* ---------- signup form (MailerLite embed, brand overrides) ---------- */

#mlb2-46062775.ml-form-embedContainer {
  max-width: 460px;
  margin: 0 0 var(--space-3) 0 !important;
}

#mlb2-46062775 .ml-form-align-center {
  text-align: left !important;
}

#mlb2-46062775 .ml-form-embedBody,
#mlb2-46062775 .ml-form-successBody {
  padding: 0 !important;
}

#mlb2-46062775 h4,
#mlb2-46062775 p,
#mlb2-46062775 label,
#mlb2-46062775 input,
#mlb2-46062775 button {
  font-family: var(--font-body) !important;
}

#mlb2-46062775 .ml-form-successContent h4 {
  font-family: var(--font-head) !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  color: var(--text) !important;
  text-align: left !important;
}

#mlb2-46062775 .ml-form-successContent p {
  color: var(--text-soft) !important;
  font-size: 15px !important;
  text-align: left !important;
}

#mlb2-46062775 .ml-form-fieldRow input {
  border-color: var(--text) !important;
  border-radius: 2px !important;
  padding: 14px 16px !important;
  font-size: 16px !important;
}

#mlb2-46062775 .ml-form-fieldRow input::placeholder { color: var(--text-soft) !important; }

#mlb2-46062775 .ml-form-fieldRow input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

#mlb2-46062775 .ml-form-embedSubmit button {
  border-radius: 2px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  padding: 14px 20px !important;
  font-size: 16px !important;
}

@media (min-width: 560px) {
  #mlb2-46062775 .ml-form-formContent {
    display: flex;
    gap: var(--space-2);
  }
  #mlb2-46062775 .ml-form-fieldRow {
    margin: 0 !important;
    flex: 1 1 0;
  }
}

.microcopy {
  font-size: 14px;
  color: var(--text-soft);
  max-width: 46ch;
}

/* ---------- footer ---------- */

footer {
  padding-block: var(--space-4);
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  font-size: 14px;
  color: var(--text-soft);
}

.footer-grid a { color: var(--text-soft); }

@media (min-width: 768px) {
  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
  }
}
