/* Shared styles for /blog/* posts. Edit here once — applies to every
   prerendered post and the reader.html fallback. */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', -apple-system, sans-serif; background: #fff; color: #1a1a1a; }

/* Nav */
.nav { border-bottom: 1px solid #f0f0f0; padding: 0 24px; height: 56px; display: flex; align-items: center; justify-content: space-between; max-width: 1100px; margin: 0 auto; }
.nav-left { display: flex; align-items: center; gap: 12px; }
.nav-left a { text-decoration: none; color: #1a1a1a; font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.nav-icon { width: 28px; height: 28px; border-radius: 7px; background: #1a1a1a; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 13px; }
.nav-sep { color: #ddd; font-size: 18px; }
.nav-blog { font-family: 'Lora', Georgia, serif; font-size: 17px; font-weight: 700; color: #1a1a1a; text-decoration: none; }
.nav-right a { font-size: 13px; color: #666; text-decoration: none; padding: 6px 14px; border: 1px solid #e5e5e5; border-radius: 20px; transition: all 0.15s; }
.nav-right a:hover { border-color: #1a1a1a; color: #1a1a1a; }

/* Article */
article { max-width: 680px; margin: 0 auto; padding: 48px 24px 60px; }
.back-link { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: #999; text-decoration: none; margin-bottom: 32px; }
.back-link:hover { color: #1a1a1a; }
.post-type { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.post-type.roundup { color: #3b82f6; }
.post-type.editorial { color: #8b5cf6; }
.post-meta { font-size: 14px; color: #999; margin-bottom: 16px; }
.post-title { font-family: 'Lora', Georgia, serif; font-size: 34px; font-weight: 700; line-height: 1.25; margin-bottom: 16px; letter-spacing: -0.3px; }
.post-desc { font-size: 17px; color: #666; line-height: 1.6; margin-bottom: 20px; font-style: italic; }
.tags { display: flex; gap: 6px; margin-bottom: 32px; flex-wrap: wrap; }
.tag { padding: 3px 10px; border-radius: 12px; background: #f5f5f5; font-size: 11px; color: #888; }
.divider { border: none; border-top: 1px solid #f0f0f0; margin-bottom: 32px; }

/* Content */
.hero-img { width: 100%; border-radius: 12px; margin-bottom: 32px; object-fit: cover; max-height: 400px; }
.post-content { font-size: 17px; line-height: 1.85; color: #333; }
.post-content h2 { font-family: 'Lora', Georgia, serif; font-size: 24px; font-weight: 700; margin: 40px 0 16px; }
.post-content h3 { font-family: 'Lora', Georgia, serif; font-size: 20px; font-weight: 600; margin: 32px 0 12px; }
.post-content p { margin-bottom: 20px; }
.post-content ul, .post-content ol { margin-bottom: 20px; padding-left: 24px; }
.post-content li { margin-bottom: 8px; line-height: 1.7; }
.post-content a { color: #1a1a1a; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #ccc; }
.post-content a:hover { text-decoration-color: #1a1a1a; }
.post-content strong { font-weight: 700; }
.post-content blockquote { border-left: 3px solid #1a1a1a; padding: 4px 0 4px 20px; color: #555; margin: 24px 0; font-style: italic; font-size: 18px; }
.post-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.post-content th, .post-content td { border: 1px solid #eee; padding: 10px 14px; text-align: left; }
.post-content th { background: #fafafa; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.3px; }
.post-content img { max-width: 100%; border-radius: 8px; margin: 20px 0; }
.post-content hr { border: none; border-top: 1px solid #f0f0f0; margin: 32px 0; }

/* FAQ */
.faq { margin-top: 48px; padding-top: 32px; border-top: 1px solid #f0f0f0; }
.faq h2 { font-family: 'Lora', Georgia, serif; font-size: 22px; margin-bottom: 24px; }
.faq-item { margin-bottom: 24px; }
.faq-q { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.faq-a { font-size: 15px; color: #555; line-height: 1.7; }

/* Bottom CTA */
.bottom-cta { max-width: 680px; margin: 0 auto; padding: 0 24px 60px; text-align: center; }
.bottom-cta-box { background: #fafafa; border: 1px solid #f0f0f0; border-radius: 12px; padding: 36px 32px; }
.bottom-cta-box h3 { font-family: 'Lora', Georgia, serif; font-size: 20px; margin-bottom: 8px; }
.bottom-cta-box p { font-size: 14px; color: #888; margin-bottom: 16px; }
.subscribe-row { display: flex; gap: 8px; justify-content: center; max-width: 380px; margin: 0 auto; }
.subscribe-row input { flex: 1; padding: 10px 14px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; font-family: inherit; outline: none; }
.subscribe-row input:focus { border-color: #999; }
.subscribe-row button { padding: 10px 20px; background: #1a1a1a; color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer; white-space: nowrap; }
.subscribe-row button:hover { background: #333; }

.loading { text-align: center; padding: 80px 0; color: #999; font-size: 14px; }

@media (max-width: 640px) {
  article { padding: 32px 20px 40px; }
  .post-title { font-size: 26px; }
  .post-desc { font-size: 15px; }
  .post-content { font-size: 16px; }
  .post-content h2 { font-size: 21px; }
  .subscribe-row { flex-direction: column; }
  .subscribe-row input, .subscribe-row button { width: 100%; }
}
