/*
Theme Name: verdantnest
Description: A houseplant and green home journal.
Version: 1.0.3
*/

:root {
  --bg: #f6f8f5;
  --bg-alt: #eaf0e6;
  --card: #ffffff;
  --ink: #232a23;
  --ink-soft: #5f6a5e;
  --accent: #2f7a52;
  --accent-deep: #1f5638;
  --accent-soft: #96b8a0;
  --line: #dce5d8;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(30, 28, 24, .07), 0 8px 24px rgba(30, 28, 24, .06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); text-decoration: underline; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--accent-deep); }
.brand:hover { text-decoration: none; }
.brand svg { color: var(--accent); flex: none; }
.site-title { font: 700 24px/1.15 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--accent-deep); }
.brand:hover .site-title { color: var(--accent); }
.tagline { display: block; color: var(--ink-soft); font-size: 12.5px; margin-top: 3px; letter-spacing: .02em; }
.main-nav ul { list-style: none; display: flex; gap: 26px; }
.main-nav a { color: var(--ink); font-size: 15px; font-weight: 500; }
.main-nav a:hover { color: var(--accent); text-decoration: none; border-bottom: 2px solid var(--accent-soft); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

.hero { position: relative; margin: 30px 0 10px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hero-img { width: 100%; aspect-ratio: 16/7; object-fit: cover; }
.hero-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 90px 36px 30px; background: linear-gradient(180deg, rgba(35,42,35,0) 0%, rgba(23,38,28,.80) 100%); color: #fff; }
.hero-text h1 { font: 700 34px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; margin-bottom: 8px; text-wrap: balance; }
.hero-text p { max-width: 620px; font-size: 16px; opacity: .93; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; padding: 34px 0 60px; }
.post-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(30,28,24,.08), 0 14px 34px rgba(30,28,24,.10); }
.card-thumb img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-meta { color: var(--ink-soft); font-size: 13px; }
.card-title { font: 700 20px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--accent); text-decoration: none; }
.card-excerpt { color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
.card-more { font-size: 14.5px; font-weight: 600; margin-top: auto; }

.single-post { max-width: 760px; margin: 0 auto; padding: 46px 24px 60px; }
.post-header { text-align: left; margin-bottom: 26px; }
.post-header h1 { font: 700 36px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; margin-bottom: 12px; text-wrap: balance; }
.post-hero { border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 30px; width: 100%; }
.post-content { font-size: 17.5px; }
.post-content .excerpt { font-size: 19.5px; color: var(--ink-soft); font-style: italic; margin-bottom: 26px; line-height: 1.65; }
.post-content p { margin-bottom: 22px; }
.post-content h2 { font: 700 25px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; margin: 36px 0 14px; color: var(--accent-deep); }
.post-nav { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); margin-top: 44px; padding-top: 24px; font-size: 14.5px; }
.post-nav a { max-width: 48%; }

.author-list h2 { font: 700 22px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; margin: 30px 0 12px; }
.author-list ul { list-style: none; }
.author-list li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.author-list time { color: var(--ink-soft); font-size: 13.5px; }

.site-footer { background: #1e2b22; color: #c9d8cc; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-top: 46px; padding-bottom: 34px; }
.footer-title { font: 700 17px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: #ffffff; margin-bottom: 12px; }
.footer-desc { font-size: 14.5px; line-height: 1.7; color: #c9d8cc; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: #c9d8cc; font-size: 14.5px; }
.footer-links a:hover { color: #ffffff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-top: 18px; padding-bottom: 22px; font-size: 13px; color: #93a694; }

@media (max-width: 980px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-text h1 { font-size: 27px; }
}
@media (max-width: 720px) {
  .post-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(30,28,24,.08); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 24px 16px; }
  .main-nav li { border-top: 1px solid var(--line); }
  .main-nav li:first-child { border-top: 0; }
  .main-nav a { display: block; padding: 13px 0; }
  .hero-text { padding: 70px 22px 22px; }
  .hero-text h1 { font-size: 23px; }
  .hero-img { aspect-ratio: 16/9; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .post-header h1 { font-size: 28px; }
}
