/* The Backyard Garden — calm & earthy theme
   Edit the values in :root to recolor the whole site at once. */

:root {
  --cream:       #FAF6EE;  /* page background */
  --cream-deep:  #F1E9D9;  /* alternating bands */
  --paper:       #FFFFFF;  /* cards */
  --ink:         #2C2A24;  /* headings + body */
  --ink-soft:    #5E5A4F;  /* muted text */
  --forest:      #38563B;  /* primary green: buttons, links */
  --forest-deep: #2A4630;  /* hover */
  --sage:        #7C9A6E;  /* accent */
  --sage-soft:   #E7EEDD;  /* soft green fills / photo placeholders */
  --line:        #E6DECF;  /* borders */
  --radius:      14px;
  --maxw:        1080px;
  --font-head:   "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:   "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 500; line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 .6em; }
h3 { font-size: 1.2rem; margin: 0 0 .35em; }
p { margin: 0 0 1.1em; }

a { color: var(--forest); text-decoration-color: var(--sage); text-underline-offset: 3px; }
a:hover { color: var(--forest-deep); }

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

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- header / nav ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--cream); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; max-width: var(--maxw); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 1.25rem; font-weight: 500; color: var(--ink); text-decoration: none; }
.brand svg { width: 26px; height: 26px; color: var(--forest); }
.nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-size: .98rem; }
.nav-links a:hover { color: var(--forest); }

/* ---------- buttons ---------- */
.btn { display: inline-block; border: none; border-radius: 999px; padding: 13px 24px; font-family: var(--font-body); font-size: 1rem; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .15s ease; }
.btn-primary { background: var(--forest); color: var(--cream); }
.btn-primary:hover { background: var(--forest-deep); color: var(--cream); }

/* ---------- hero ---------- */
.hero { padding: 64px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--sage); font-weight: 600; letter-spacing: .02em; margin: 0 0 14px; font-size: .95rem; }
.hero p.lead { font-size: 1.15rem; color: var(--ink-soft); margin-bottom: 26px; }
.hero-media { background: var(--sage-soft); border-radius: var(--radius); aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.hero-media svg { width: 64px; height: 64px; color: var(--sage); opacity: .8; }

/* ---------- signup box ---------- */
.signup { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; max-width: 460px; }
.signup h3 { margin-bottom: 12px; }
.signup-row { display: flex; gap: 10px; }
.signup input[type="email"] { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 1rem; font-family: var(--font-body); background: var(--cream); color: var(--ink); }
.signup input[type="email"]:focus { outline: 2px solid var(--sage); border-color: var(--sage); }
.fine { font-size: .85rem; color: var(--ink-soft); margin: 12px 0 0; }
.fine svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 5px; color: var(--sage); }

/* ---------- MailerLite embedded form: blend into the theme ----------
   The .ml-embedded box gets filled in by MailerLite's script with its own
   markup + styles, so we gently override the bits that matter (font, input
   shape, button color) to match the site. !important is needed because
   MailerLite ships its own styles with the form. */
.ml-embedded .ml-form-embedContainer { margin: 0 !important; }
/* Hide MailerLite's built-in "Newsletter / Signup..." heading — the site's
   own headings around each form already say it better. */
.ml-embedded .ml-form-embedContent { display: none !important; }
.ml-embedded .ml-form-embedWrapper,
.ml-embedded .ml-form-embedBody { background: transparent !important; padding: 0 !important; }
.ml-embedded * { font-family: var(--font-body) !important; }
.ml-embedded input[type="email"],
.ml-embedded input[type="text"] {
  padding: 12px 14px !important; border: 1px solid var(--line) !important;
  border-radius: 999px !important; font-size: 1rem !important;
  background: var(--cream) !important; color: var(--ink) !important;
}
.ml-embedded input:focus { outline: 2px solid var(--sage) !important; border-color: var(--sage) !important; }
.ml-embedded button[type="submit"] {
  border: none !important; border-radius: 999px !important; padding: 13px 24px !important;
  font-size: 1rem !important; font-weight: 600 !important; cursor: pointer;
  background: var(--forest) !important; color: var(--cream) !important;
  transition: background .15s ease;
}
.ml-embedded button[type="submit"]:hover { background: var(--forest-deep) !important; }
/* In the dark green CTA band, flip the button to cream so it stands out */
.cta-band .ml-embedded button[type="submit"] { background: var(--cream) !important; color: var(--forest-deep) !important; }

/* ---------- sections ---------- */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; }
.section-head a { font-weight: 600; text-decoration: none; }
.band { background: var(--cream-deep); }

/* ---------- post cards ----------
   Flexbox (not grid) so the row self-centers: 1 post sits centered,
   2 sit centered side-by-side, 3 fill the row. The homepage shows at
   most the 3 newest posts; older ones live on the View-all page. */
.posts-grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; }
.post-card { width: 330px; max-width: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: transform .15s ease; }
.post-card:hover { transform: translateY(-3px); color: var(--ink); }
.post-card .thumb { background: var(--sage-soft); aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; }
.post-card .thumb svg { width: 40px; height: 40px; color: var(--sage); opacity: .8; }
.post-card .body { padding: 18px 20px 22px; }
.post-card h3 { margin-bottom: 8px; }
.post-card p { font-size: .96rem; color: var(--ink-soft); margin: 0; }

/* ---------- mid-page CTA band ---------- */
.cta-band { background: var(--forest); color: var(--cream); border-radius: var(--radius); padding: 48px; text-align: center; }
.cta-band h2 { color: var(--cream); }
.cta-band p { color: #DCE6D3; max-width: 540px; margin: 0 auto 24px; }
.cta-band .signup { margin: 0 auto; background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.2); }
.cta-band .signup h3, .cta-band .fine { color: var(--cream); }
.cta-band .signup .fine { color: #C8D6BD; }
.cta-band .signup .fine svg { color: #C8D6BD; }

/* ---------- article (blog post) ---------- */
.article { max-width: 720px; margin: 0 auto; padding: 56px 0; }
.article .meta { color: var(--ink-soft); font-size: .95rem; margin-bottom: 8px; }
.article .prose { font-size: 1.12rem; }
.article .prose h2 { margin-top: 1.6em; }
.callout { background: var(--sage-soft); border-radius: var(--radius); padding: 18px 22px; margin: 1.6em 0; }
.callout p { margin: 0; }
.disclosure { font-size: .85rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 40px; font-style: italic; }

/* ---------- footer ---------- */
.site-footer { background: var(--cream-deep); border-top: 1px solid var(--line); padding: 40px 0; margin-top: 24px; color: var(--ink-soft); font-size: .92rem; }
.site-footer .brand { color: var(--ink); margin-bottom: 10px; }
.site-footer a { color: var(--ink-soft); }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 16/9; order: -1; }
  .post-card { width: 100%; }
  .nav-links { display: none; }
  .cta-band { padding: 32px 20px; }
}
