/* =========================================================
   God's Dandelions - Theme
   A wish carried on the wind: warm paper, meadow green,
   dandelion gold, and soft sky blue.
========================================================= */

:root {
  --cream: #FBF7EE;
  --card: #F3EDDD;
  --line: #E3D9C0;
  --ink: #2B2B26;
  --ink-soft: #5C5849;
  --meadow: #3B5D3C;
  --meadow-dark: #2A4A2C;
  --gold: #E8B94A;
  --gold-dark: #C99A2E;
  --sky: #A9C4D1;
  --navy: #1E3550;
  --navy-dark: #142438;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Karla', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 18px;
  --max-width: 760px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: var(--meadow-dark); text-decoration: none; }
a:hover { color: var(--gold-dark); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
}

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

/* Honeypot field - hidden from real people */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
}

/* ---------- Masthead ---------- */

.masthead {
  background: var(--navy);
}

.masthead-banner-link {
  display: block;
  line-height: 0;
}

.masthead-banner-img {
  width: 100%;
  height: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  font-size: 0.95rem;
  font-weight: 500;
  background: var(--navy);
  padding: 14px 24px;
  flex-wrap: wrap;
}

.main-nav > a {
  color: #EDE7D6;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.main-nav > a:hover { border-bottom-color: var(--gold); color: #fff; }

.nav-dropdown { position: relative; }

.nav-dropdown-toggle {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: #EDE7D6;
  cursor: pointer;
  padding: 0 0 2px;
  border-bottom: 2px solid transparent;
}
.nav-dropdown-toggle:hover { border-bottom-color: var(--gold); color: #fff; }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  min-width: 180px;
  padding: 8px;
  margin-top: 10px;
  box-shadow: 0 8px 24px rgba(20, 36, 56, 0.25);
  z-index: 10;
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }

.nav-dropdown-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--ink);
  font-weight: 400;
}
.nav-dropdown-menu a:hover { background: var(--card); color: var(--meadow-dark); }

/* ---------- Flash ---------- */

.flash {
  max-width: var(--max-width);
  margin: 20px auto 0;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 0.95rem;
}
.flash-success { background: #E7EFE3; color: var(--meadow-dark); }
.flash-error { background: #F4E3DE; color: #8A4530; }

/* ---------- Layout ---------- */

.site-main { max-width: var(--max-width); margin: 0 auto; padding: 40px 24px 20px; }

.empty-state {
  text-align: center;
  color: var(--ink-soft);
  padding: 60px 20px;
  font-style: italic;
}

.archive-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--gold-dark);
  font-weight: 700;
  margin: 0 0 4px;
}
.archive-title {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0 0 30px;
}

/* ---------- Post cards ---------- */

.post-grid { display: flex; flex-direction: column; gap: 30px; }

.post-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.post-card-image-link { display: block; }
.post-card-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.post-card-body { padding: 26px 28px 28px; }

.category-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--meadow-dark);
  background: rgba(59, 93, 60, 0.1);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.category-pill:hover { background: rgba(59, 93, 60, 0.18); }

.post-card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 0 0 12px;
}
.post-card-title a { color: var(--ink); }
.post-card-title a:hover { color: var(--meadow-dark); }

.post-card-excerpt { color: var(--ink-soft); margin: 0 0 18px; }

.post-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.read-more { font-weight: 700; color: var(--gold-dark); }
.read-more:hover { color: var(--meadow-dark); }

/* ---------- Pagination ---------- */

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  font-size: 0.9rem;
}
.pagination a { font-weight: 700; }
.pagination-current { color: var(--ink-soft); }

/* ---------- Single post ---------- */

.single-post-header { margin-bottom: 24px; }
.single-post-title {
  font-family: var(--font-display);
  font-size: 2.3rem;
  line-height: 1.2;
  margin: 10px 0 8px;
}
.single-post-meta { color: var(--ink-soft); font-size: 0.9rem; margin: 0; }

.single-post-image {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 30px;
  display: block;
}

.single-post-content { font-size: 1.08rem; }
.single-post-content p { margin: 0 0 1.3em; }
.single-post-content img { max-width: 100%; border-radius: 12px; height: auto; }
.single-post-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 1.6em 0 0.6em;
}
.single-post-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 1.4em 0 0.5em;
}
.single-post-content blockquote {
  border-left: 3px solid var(--gold);
  margin: 1.6em 0;
  padding: 0.4em 0 0.4em 1.2em;
  font-style: italic;
  color: var(--ink-soft);
}
.single-post-content a { text-decoration: underline; }

/* ---------- Divider ---------- */

.footer-divider { max-width: 400px; margin: 0 auto 30px; }
.divider-svg { width: 100%; height: 20px; display: block; }

/* ---------- Comments ---------- */

.comments-section { margin-top: 60px; }

.comments-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0 0 24px;
  text-align: center;
}

.comment-list { list-style: none; padding: 0; margin: 0 0 36px; }
.comment {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.comment-author { font-weight: 700; margin: 0 0 2px; }
.comment-date { font-size: 0.8rem; color: var(--ink-soft); margin: 0 0 8px; }
.comment-content { margin: 0; }

.comment-thanks {
  text-align: center;
  background: var(--card);
  padding: 20px;
  border-radius: 12px;
  color: var(--meadow-dark);
}

.comment-form { max-width: 100%; }
.comment-form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.comment-form-field { flex: 1 1 220px; margin-bottom: 16px; }
.comment-form-field label,
.subscribe-form label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; }

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
textarea { resize: vertical; }

.form-error {
  background: #F4E3DE;
  color: #8A4530;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin: 0 0 14px;
}

button, .btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--meadow);
  color: #fff;
  border: none;
  padding: 11px 24px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.15s ease;
}
button:hover, .btn:hover { background: var(--meadow-dark); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--card);
  margin-top: 60px;
  padding: 50px 24px 30px;
  border-top: 1px solid var(--line);
}
.footer-inner { max-width: 900px; margin: 0 auto; }

.footer-columns {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.footer-col { flex: 1 1 280px; }
.footer-col h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 8px;
}
.footer-col p { color: var(--ink-soft); margin: 0 0 16px; }

.subscribe-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.subscribe-form input[type="email"] { flex: 1 1 200px; }
.subscribe-message { font-size: 0.88rem; margin-top: 10px; min-height: 1.2em; }
.subscribe-message.ok { color: var(--meadow-dark); }
.subscribe-message.err { color: #8A4530; }

.footer-category-list { list-style: none; padding: 0; margin: 0; }
.footer-category-list li { margin-bottom: 8px; }

.footer-copy {
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-soft);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 600px) {
  .main-nav { gap: 16px; padding: 12px 16px; }
  .single-post-title { font-size: 1.8rem; }
  .post-card-image { height: 200px; }
}
