/* =====================================================
   Natalie Milligan — Blog Post template styles
   Shared by every individual blog post page in /blog/.
   Links tokens.css for variables; defines nav, footer,
   and article prose. Edit once → applies to all posts.
   ===================================================== */

body { background: var(--bg-secondary); }

/* ================================================
   NAV (matches index.html / blog.html)
   ================================================ */
.site-header { position: sticky; top: 0; z-index: 50; }
.site-nav {
  width: 100%;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-mark {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
}
.nav-links { display: flex; gap: 24px; font-size: 13px; color: var(--text-secondary); }
.nav-links a { color: var(--text-secondary); text-decoration: none; transition: color 0.15s ease; }
.nav-links a:hover { color: var(--text-primary); }
.nav-right { display: flex; gap: 8px; align-items: center; }

/* ================================================
   ARTICLE
   ================================================ */
.post-hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 28px;
  text-align: center;
}
.post-hero .eyebrow { color: var(--accent-700); margin-bottom: 18px; }
.post-hero .post-meta-sep { margin: 0 8px; opacity: 0.5; }
.post-title {
  font-size: 44px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.post-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 21px;
  line-height: 1.4;
  color: var(--text-secondary);
}

.post-featured {
  max-width: 1000px;
  margin: 8px auto 48px;
  padding: 0 24px;
}
.post-featured img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* Reading column */
.post-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}
.post-body p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 0 0 24px;
}
.post-body h2 {
  font-size: 30px;
  line-height: 1.25;
  margin: 44px 0 16px;
}
.post-body h3 { font-size: 24px; line-height: 1.3; margin: 40px 0 14px; }
.post-body h4 {
  font-size: 20px;
  line-height: 1.35;
  margin: 36px 0 12px;
  color: var(--text-primary);
}
.post-body ul, .post-body ol { margin: 0 0 24px; padding-left: 22px; }
.post-body li { font-size: 17px; line-height: 1.8; color: var(--text-secondary); margin-bottom: 8px; }
.post-body a { color: var(--accent-700); text-decoration: underline; text-underline-offset: 2px; }
.post-body blockquote {
  margin: 32px 0;
  padding: 8px 0 8px 24px;
  border-left: 3px solid var(--accent-300);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 21px;
  line-height: 1.5;
  color: var(--text-primary);
}
.post-body figure { margin: 36px 0; }
.post-body figure img,
.post-body .post-inline-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin: 36px auto;
}
.post-body .post-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 36px auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #000;
}
.post-body .post-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Tags */
.post-tags {
  max-width: 720px;
  margin: 48px auto 0;
  padding: 32px 24px 0;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.post-tags .tag {
  background: var(--accent-50);
  color: var(--accent-700);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}

/* Back to blog */
.post-foot-nav {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  text-align: center;
}

/* ================================================
   END-OF-POST CTA (replaces comments)
   ================================================ */
.post-cta { padding: 8px 24px 72px; }
.post-cta-inner {
  max-width: 760px;
  margin: 56px auto 0;
  padding: 56px 40px;
  background: var(--surface-cream);
  border-radius: var(--radius-lg);
  text-align: center;
}
.post-cta-inner .eyebrow { color: var(--accent-700); margin-bottom: 14px; }
.post-cta-inner h2 { font-size: 30px; line-height: 1.2; margin-bottom: 14px; color: var(--ink-cream); }
.post-cta-inner p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-cream);
  opacity: 0.9;
  max-width: 540px;
  margin: 0 auto 28px;
}
.post-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ================================================
   COMMENTS (legacy — no longer used)
   ================================================ */
.comments {
  max-width: 720px;
  margin: 56px auto 0;
  padding: 44px 24px 0;
  border-top: 1px solid var(--border-subtle);
}
.comments h2 { font-size: 26px; margin-bottom: 22px; }
.comment-form { display: flex; flex-direction: column; gap: 12px; }
.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
}
.comment-form textarea { resize: vertical; min-height: 96px; }
.comment-form input::placeholder,
.comment-form textarea::placeholder { color: var(--text-tertiary); }
.comment-form input:focus,
.comment-form textarea:focus { outline: none; border-color: var(--accent-500); }
.comment-actions { display: flex; justify-content: flex-end; }
.comments-empty {
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-tertiary);
  text-align: center;
}

/* ================================================
   RELATED POSTS
   ================================================ */
.related-band {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  margin-top: 72px;
  padding: 72px 0 80px;
}
.related {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.related-head { text-align: center; margin-bottom: 40px; }
.related-head h2 { font-size: 34px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.related-card {
  display: block;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.related-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.related-thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-tertiary); }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.related-card:hover .related-thumb img { transform: scale(1.04); }
.related-body { padding: 20px; }
.related-body .post-date {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-700);
  margin-bottom: 8px;
}
.related-body h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-primary);
  margin: 0;
}
.related-back { text-align: center; margin-top: 44px; }

/* ================================================
   FOOTER (matches index.html / blog.html)
   ================================================ */
footer.site-footer {
  background: var(--bg-inverse);
  color: rgba(255,255,255,0.7);
  margin-top: 12px;
}
.footer-inner {
  padding: 64px 64px 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-inner .brand-col .brand-mark { color: var(--text-inverse); font-size: 16px; }
.footer-inner .brand-col p {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  margin-top: 16px;
  max-width: 320px;
  line-height: 1.6;
}
.footer-inner h4 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.5);
  margin: 0 0 16px;
}
.footer-inner ul { list-style: none; padding: 0; margin: 0; }
.footer-inner li { margin-bottom: 10px; }
.footer-inner a {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-inner a:hover { color: var(--text-inverse); }
.footer-meta {
  padding: 24px 64px 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.socials { display: flex; gap: 12px; }
.socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-inverse);
  transition: background 0.18s ease;
}
.socials a:hover { background: rgba(255,255,255,0.15); }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 760px) {
  .post-title { font-size: 32px; }
  .post-subtitle { font-size: 18px; }
  .post-body p, .post-body li { font-size: 16px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; padding: 48px 28px 24px; }
  .footer-meta { flex-direction: column; gap: 12px; padding: 24px 28px; text-align: center; }
}
