/* ==========================================================================
   Growing Young — drgitterle.com theme
   A+B aesthetic: editorial serif authority + natural-wellness warmth.
   ========================================================================== */

:root {
  --bg:        #FBF8F1;   /* warm cream */
  --bg-alt:    #F1ECDF;   /* deeper sand for alternating strips */
  --ink:       #23271F;   /* warm near-black */
  --ink-soft:  #545A4B;   /* muted body/meta */
  --green:     #356B4F;   /* primary brand green (organic) */
  --green-deep:#1F3B2E;   /* deep green (footer, book hero) */
  --green-soft:#E4ECE2;   /* green tint */
  --accent:    #BC894165; /* warm gold, used sparingly */
  --accent-solid:#9E6F2E;
  --line:      rgba(35,39,31,0.12);
  --max:       1120px;
  --narrow:    720px;
  --radius:    14px;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

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

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

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

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.5em;
}

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

.site-wrap { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--green-deep); border-color: var(--green); }
.btn-ghost:hover { background: var(--green-soft); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,248,241,0.88);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.site-brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; color: var(--ink); letter-spacing: -0.01em; }
.site-logo { max-height: 38px; }
.nav-menu { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-menu a { color: var(--ink); font-weight: 500; font-size: 0.98rem; }
.nav-menu a:hover { color: var(--green); text-decoration: none; }
.nav-cta a { background: var(--green); color: #fff !important; padding: 9px 18px; border-radius: 999px; }
.nav-cta a:hover { background: var(--green-deep); }
.nav-toggle { display: none; background: none; border: 0; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); display: block; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 72px; text-align: center; }
.hero-eyebrow { font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.8rem; font-weight: 600; color: var(--green); margin: 0 0 18px; }
.hero-title { font-size: clamp(2.3rem, 5.2vw, 4rem); max-width: 16ch; margin: 0 auto 0.4em; }
.hero-sub { font-size: 1.2rem; color: var(--ink-soft); max-width: 38ch; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Strips / sections ---------- */
.strip { padding: 72px 0; }
.strip:nth-of-type(even) { background: var(--bg-alt); }
.section-eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem; font-weight: 600; color: var(--green); margin: 0 0 10px; }
.section-title { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin: 0 0 0.5em; }
.strip-head { max-width: 40ch; margin-bottom: 40px; }

/* Book strip */
.book-strip { background: var(--green-soft) !important; }
.book-strip-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.book-strip-text p { font-size: 1.1rem; color: var(--ink-soft); }
.pull-quote { margin: 0; padding: 28px 30px; background: var(--bg); border-radius: var(--radius); border-left: 4px solid var(--green); }
.pull-quote p { font-family: var(--serif); font-size: 1.3rem; font-style: italic; line-height: 1.4; margin: 0 0 10px; color: var(--ink); }
.pull-quote cite { font-style: normal; font-size: 0.9rem; color: var(--ink-soft); }

/* Articles grid */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.post-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(31,59,46,0.10); }
.post-card-link { display: block; color: inherit; }
.post-card-link:hover { text-decoration: none; }
.post-card-image img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.post-card-body { padding: 24px; }
.post-card-tag { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; font-weight: 600; color: var(--green); }
.post-card-title { font-size: 1.3rem; margin: 8px 0 10px; }
.post-card-excerpt { color: var(--ink-soft); font-size: 0.98rem; margin: 0 0 14px; }
.post-card-meta { font-size: 0.82rem; color: var(--ink-soft); }
.empty-note { grid-column: 1 / -1; color: var(--ink-soft); font-size: 1.1rem; }

/* About teaser */
.about-teaser-inner { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: center; }
.about-teaser-photo img { border-radius: var(--radius); width: 100%; aspect-ratio: 1; object-fit: cover; }
.about-teaser-text p { font-size: 1.1rem; color: var(--ink-soft); }

/* Newsletter */
.newsletter-strip { background: var(--green-deep) !important; text-align: center; }
.newsletter-strip .section-title { color: #fff; }
.newsletter-inner p { color: rgba(255,255,255,0.82); font-size: 1.15rem; max-width: 46ch; margin: 0 auto 28px; }

/* ---------- Post / Page ---------- */
.post-header, .page-header { padding: 72px 0 24px; text-align: center; }
.post-tag { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 600; }
.post-title, .page-title { font-size: clamp(2rem, 4.6vw, 3.2rem); max-width: 20ch; margin: 12px auto 16px; }
.post-lead { font-size: 1.25rem; color: var(--ink-soft); max-width: 44ch; margin: 0 auto 18px; }
.post-meta { display: flex; gap: 18px; justify-content: center; font-size: 0.9rem; color: var(--ink-soft); }
.post-meta .post-author { font-weight: 600; color: var(--ink); }
.post-feature-image { margin: 32px auto 8px; max-width: 1000px; padding: 0 24px; }
.post-feature-image img { width: 100%; border-radius: var(--radius); }
.post-feature-image figcaption { text-align: center; font-size: 0.85rem; color: var(--ink-soft); margin-top: 10px; }

.post-content { padding-top: 40px; padding-bottom: 24px; font-size: 1.18rem; }
.post-content > * { margin-top: 0; margin-bottom: 1.5rem; }
.post-content h2 { font-size: 1.9rem; margin-top: 2.2rem; }
.post-content h3 { font-size: 1.45rem; margin-top: 1.8rem; }
.post-content a { text-decoration: underline; text-underline-offset: 3px; }
.post-content blockquote { margin: 2rem 0; padding: 8px 0 8px 28px; border-left: 4px solid var(--green); font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--ink); }
.post-content blockquote cite { display: block; font-size: 0.95rem; font-style: normal; color: var(--ink-soft); margin-top: 8px; }
.post-content ul, .post-content ol { padding-left: 1.4em; }
.post-content li { margin-bottom: 0.5rem; }
.post-content img { border-radius: var(--radius); margin: 1.5rem auto; }
.post-content hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.kg-image-card { margin: 1.5rem 0; }

/* Koenig editor card widths (required by Ghost) */
.kg-width-wide { position: relative; width: 85vw; min-width: 100%; margin-left: 50%; transform: translateX(-50%); max-width: 1040px; }
.kg-width-full { position: relative; width: 100vw; margin-left: 50%; transform: translateX(-50%); max-width: 100vw; }
.kg-width-full img { width: 100%; border-radius: 0; }

/* Author box + post CTA */
.post-footer { padding-bottom: 64px; }
.author-box { display: flex; gap: 18px; align-items: center; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 8px 0 40px; }
.author-avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.author-name { font-family: var(--serif); font-size: 1.2rem; margin: 0; }
.author-bio { color: var(--ink-soft); margin: 4px 0 0; font-size: 0.98rem; }
.post-cta { text-align: center; background: var(--green-soft); border-radius: var(--radius); padding: 40px 28px; }
.post-cta h3 { font-size: 1.6rem; margin-bottom: 0.3em; }
.post-cta p { color: var(--ink-soft); margin: 0 0 22px; }

/* ---------- Book landing ---------- */
.book-hero { background: var(--green-deep); color: #fff; padding: 88px 0; }
.book-hero-inner { display: grid; grid-template-columns: 190px 1fr; gap: 56px; align-items: center; }
.book-cover img { width: 190px; max-width: 100%; height: auto; border-radius: 6px; box-shadow: 0 24px 60px rgba(0,0,0,0.45); }
.book-hero-text .hero-actions { justify-content: flex-start; }
.book-hero-title { color: #fff; font-size: clamp(2.6rem, 6vw, 4.5rem); margin: 0; }
.book-hero-subtitle { font-family: var(--serif); font-size: 1.4rem; color: rgba(255,255,255,0.9); margin: 6px 0 14px; }
.book-hero-tagline { text-transform: lowercase; letter-spacing: 0.05em; color: var(--accent-solid); font-weight: 600; margin: 0 0 30px; color: #D9B877; }
.book-hero .section-eyebrow { color: #D9B877; }
.book-content { padding-top: 56px; padding-bottom: 64px; }

/* ---------- Related ---------- */
.related-strip { background: var(--bg-alt); }

/* ---------- Error ---------- */
.error-page { text-align: center; padding: 120px 0; }
.error-code { font-family: var(--serif); font-size: 5rem; color: var(--green); margin: 0; line-height: 1; }
.error-title { font-size: 2rem; margin: 8px 0 16px; }
.error-help { color: var(--ink-soft); margin-bottom: 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-deep); color: rgba(255,255,255,0.85); margin-top: auto; padding: 56px 0 24px; }
.site-footer-inner { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.14); }
.footer-name { font-family: var(--serif); font-size: 1.4rem; color: #fff; margin: 0 0 6px; }
.footer-tagline { color: rgba(255,255,255,0.7); max-width: 34ch; margin: 0; font-size: 0.95rem; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: rgba(255,255,255,0.85); }
.footer-nav a:hover { color: #fff; }
.footer-legal { padding-top: 20px; font-size: 0.82rem; color: rgba(255,255,255,0.55); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .book-strip-inner, .about-teaser-inner { grid-template-columns: 1fr; gap: 32px; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .about-teaser-photo { max-width: 280px; }
  .book-hero-inner { grid-template-columns: 1fr; gap: 32px; justify-items: center; text-align: center; }
  .book-hero-text .hero-actions { justify-content: center; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none; position: absolute; top: 70px; left: 0; right: 0;
    background: var(--bg); flex-direction: column; gap: 0; padding: 8px 24px 20px;
    border-bottom: 1px solid var(--line);
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu li { padding: 10px 0; }
  .post-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 48px; }
  .strip { padding: 52px 0; }
}
