/* CACHE-BUSTING: this file is linked as "blog-style.css?v=N" in every blog page.
   Netlify caches CSS for a year, so AFTER EDITING THIS FILE bump the version:
   run a find-and-replace across blog/*.html changing ?v=1 -> ?v=2 (then ?v=3, etc.).
   Without bumping, returning visitors keep the old styles. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --emerald: #2ECE8C; --charcoal: #3B3A52; --grey: #6B6B7B;
  --warm-white: #F8F7F4; --off-white: #F2F0EC; --border: rgba(59,58,82,0.1);
  --font-display: 'DM Serif Display', serif; --font-body: 'DM Sans', sans-serif;
}
body { font-family: var(--font-body); color: var(--charcoal); background: var(--warm-white); -webkit-font-smoothing: antialiased; }

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 60px; height: 76px;
  background: rgba(248,247,244,0.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo img { height: 52px; }
.nav-back { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--grey); text-decoration: none; transition: color 0.2s; }
.nav-back:hover { color: var(--emerald); }

.hero { padding: 120px 0 0; background: var(--charcoal); }
.hero-cover { width: 100%; max-height: 420px; overflow: hidden; }
.hero-cover img { width: 100%; height: 420px; object-fit: cover; display: block; }
.hero-meta-bar {
  max-width: 820px; margin: 0 auto; padding: 48px 60px 0;
}
.hero-cat { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--emerald); margin-bottom: 16px; display: block; }
.hero-title { font-family: var(--font-display); font-size: clamp(28px, 4vw, 48px); color: white; font-weight: 400; line-height: 1.15; }
.hero-byline { font-size: 14px; color: rgba(255,255,255,0.45); margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; gap: 24px; }
.hero-byline span { display: flex; align-items: center; gap: 6px; }

.content { max-width: 820px; margin: 0 auto; padding: 64px 60px 100px; }
.content p { font-size: 17px; color: var(--grey); line-height: 1.85; margin-bottom: 24px; }
.content h2 { font-family: var(--font-display); font-size: 26px; font-weight: 400; color: var(--charcoal); margin: 48px 0 20px; }
.content h3 { font-size: 18px; font-weight: 700; color: var(--charcoal); margin: 36px 0 14px; }
.content ul, .content ol { padding-left: 24px; margin-bottom: 24px; }
.content li { font-size: 17px; color: var(--grey); line-height: 1.85; margin-bottom: 8px; }
.content strong { color: var(--charcoal); font-weight: 600; }
.content blockquote { border-left: 3px solid var(--emerald); padding: 4px 24px; margin: 32px 0; }
.content blockquote p { font-size: 18px; font-style: italic; color: var(--charcoal-light, #54536E); }
.content .callout { background: rgba(46,206,140,0.08); border-radius: 12px; padding: 24px 28px; margin: 32px 0; }
.content .callout p { margin-bottom: 0; color: var(--charcoal); }

.related { background: white; border-top: 1px solid var(--border); padding: 60px 0; }
.related-inner { max-width: 820px; margin: 0 auto; padding: 0 60px; }
.related h3 { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--emerald); margin-bottom: 32px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.related-card { text-decoration: none; display: block; }
.related-thumb { width: 100%; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: var(--off-white); margin-bottom: 14px; }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.2s; }
.related-card:hover .related-thumb img { opacity: 0.8; }
.related-cat { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--emerald); margin-bottom: 6px; }
.related-title { font-size: 15px; font-weight: 600; color: var(--charcoal); line-height: 1.4; }
.related-meta { font-size: 12px; color: var(--grey); margin-top: 6px; }

.footer { background: var(--charcoal); padding: 32px 60px; display: flex; justify-content: space-between; align-items: center; color: rgba(255,255,255,0.4); font-size: 13px; }
.footer a { color: rgba(255,255,255,0.4); text-decoration: none; }
.footer a:hover { color: white; }

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 860px) {
  .nav { padding: 0 20px; }
  .hero-cover img { height: 240px; }
  .hero-meta-bar { padding: 40px 20px 0; }
  .content { padding: 48px 20px 72px; }
  .related-inner { padding: 0 20px; }
  .related-grid { grid-template-columns: 1fr; }
  .footer { padding: 24px 20px; flex-direction: column; gap: 8px; text-align: center; }
}

/* ─── Blog listing page ──────────────────────────── */
.list-hero { background: var(--charcoal); padding: 140px 0 64px; }
.list-hero-inner { max-width: 1160px; margin: 0 auto; padding: 0 60px; }
.list-label { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--emerald); margin-bottom: 16px; display: block; }
.list-title { font-family: var(--font-display); font-size: clamp(36px, 4.5vw, 56px); color: white; font-weight: 400; line-height: 1.1; }
.list-intro { font-size: 17px; color: rgba(255,255,255,0.6); margin-top: 18px; max-width: 580px; line-height: 1.7; font-weight: 300; }
.list-wrap { max-width: 1160px; margin: 0 auto; padding: 64px 60px 100px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { background: white; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); text-decoration: none; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(59,58,82,0.1); }
.post-thumb { width: 100%; aspect-ratio: 16/9; background: var(--off-white); overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.22,.61,.36,1); }
.post-card:hover .post-thumb img { transform: scale(1.05); }
.post-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-cat { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--emerald); margin-bottom: 8px; }
.post-title { font-size: 17px; font-weight: 600; line-height: 1.35; color: var(--charcoal); margin-bottom: 10px; }
.post-excerpt { font-size: 14px; color: var(--grey); line-height: 1.6; flex: 1; }
.post-meta { font-size: 12px; color: #9898A6; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }

@media (max-width: 1024px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .list-hero { padding: 116px 0 48px; }
  .list-hero-inner { padding: 0 20px; }
  .list-wrap { padding: 48px 20px 72px; }
  .post-grid { grid-template-columns: 1fr; }
}
