/* ───────────────────────────────────────────────
   BLOG + ARTICLE STYLES (shared by blog.html and /blog/*.html)
   Loaded AFTER styles.css. Tokens, nav, footer, h1/h2,
   .section-label and keyframes all come from styles.css.
─────────────────────────────────────────────── */

/* ── BLOG INDEX ── */
#blog-hero {
  padding: 170px 52px 72px; max-width: 900px; margin: 0 auto;
  opacity: 0; animation: fadeUp 0.8s ease forwards 0.1s;
}
#blog-hero h1 { font-family: var(--serif); font-size: clamp(38px, 6vw, 72px); font-weight: 700; font-style: normal; line-height: 1.18; letter-spacing: -0.01em; color: var(--graphite); margin-bottom: 32px; text-wrap: balance; }
#blog-hero h1 em { font-style: italic; font-weight: 700; color: var(--amber); display: inline-block; }
.blog-hero-sub { font-size: clamp(16px, 2vw, 19px); color: var(--mid); max-width: 580px; line-height: 1.75; font-weight: 300; }

.post-list { max-width: 900px; margin: 0 auto; padding: 24px 52px 120px; }
.post-card {
  display: grid; grid-template-columns: 300px 1fr; gap: 36px;
  padding: 44px 0; border-top: 1px solid var(--border); align-items: center;
  text-decoration: none;
}
.post-card:last-child { border-bottom: 1px solid var(--border); }
.post-card-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: center top; display: block; background: var(--bg-alt); }
.post-card-meta {
  font-family: var(--condensed); font-size: 13px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); margin-bottom: 14px;
}
.post-card-title {
  font-family: var(--serif); font-size: 25px; font-weight: 700; line-height: 1.25;
  color: var(--graphite); margin-bottom: 14px; letter-spacing: -0.01em; transition: color 0.2s;
}
.post-card:hover .post-card-title { color: var(--amber); }
.post-card-excerpt { font-size: 16px; color: var(--mid); line-height: 1.7; margin: 0; }

/* ── POST PAGE ── */
.post-cover-outer { padding: 150px 52px 0; max-width: 820px; margin: 0 auto; }
.post-cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: var(--bg-alt); }

article.post { max-width: 720px; margin: 0 auto; padding: 56px 52px 80px; }
.post-wrapper { max-width: 740px; margin: 0 auto; padding: 60px 24px 80px; }
.hero-image { margin-top: 110px; width: 100%; overflow: hidden; }
.hero-image img { width: 100%; height: 520px; object-fit: cover; object-position: center top; display: block; }
.post-header { margin-bottom: 44px; }
.post-header h1 { font-size: clamp(30px, 5vw, 46px); margin-bottom: 24px; }
.post-meta {
  font-family: var(--condensed); font-size: 14px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.post-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border-dark); }
.post-meta .author { color: var(--amber); }

.post-body > *:first-child { margin-top: 0; }
.post-body h2 { font-size: clamp(22px, 3.5vw, 30px); margin: 48px 0 18px; line-height: 1.25; }
.post-body h3 {
  font-family: var(--sans); font-size: 19px; font-weight: 600; color: var(--graphite);
  margin: 36px 0 12px; line-height: 1.4;
}
.post-body p { color: var(--mid); font-size: 17px; line-height: 1.85; margin-bottom: 20px; }
.post-body strong { color: var(--graphite); font-weight: 600; }
.post-body em { font-style: italic; }
.post-body a { color: var(--amber); text-decoration: underline; text-underline-offset: 2px; }
.post-body a:hover { color: var(--amber-dark); }
.post-body ul, .post-body ol { margin: 0 0 22px 24px; color: var(--mid); }
.post-body li { margin-bottom: 10px; line-height: 1.8; }
.post-body blockquote {
  font-family: var(--serif); font-size: 19px; font-style: italic; color: var(--graphite);
  border-left: 3px solid var(--amber); padding-left: 24px; margin: 32px 0; line-height: 1.6;
}
.post-body hr { border: none; border-top: 1px solid var(--border); margin: 44px 0; }
.post-body table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 15px; }
.post-body th, .post-body td { border: 1px solid var(--border); padding: 12px 14px; text-align: left; color: var(--mid); }
.post-body th { font-family: var(--condensed); text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; color: var(--graphite); background: var(--bg-alt); }
.post-body img { max-width: 100%; height: auto; display: block; margin: 28px 0; }
.post-body code {
  font-family: ui-monospace, monospace; font-size: 0.9em;
  background: var(--bg-alt); padding: 2px 6px; border-radius: 3px; color: var(--graphite);
}

/* FAQ */
.post-faq { max-width: 720px; margin: 0 auto; padding: 0 52px 80px; }
.post-faq h2 { font-family: var(--serif); font-size: clamp(24px, 4vw, 34px); margin-bottom: 28px; }
.faq-item { border-top: 1px solid var(--border); padding: 24px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q { font-family: var(--sans); font-size: 18px; font-weight: 600; color: var(--graphite); margin-bottom: 10px; }
.faq-a { font-size: 16px; color: var(--mid); line-height: 1.8; margin: 0; }

/* ── RELATED READING (internal-link cluster) ── */
.related-reading { margin: 56px 0 8px; }
.related-reading .related-label {
  font-family: var(--condensed); font-size: 13px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); margin-bottom: 10px;
}
.related-reading ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.related-reading li { border-bottom: 1px solid var(--border); margin: 0; }
.related-reading a { display: block; padding: 18px 0; text-decoration: none; color: var(--graphite); transition: color 0.2s; }
.related-reading a:hover { color: var(--amber); }
.related-reading a:hover .related-title { color: var(--amber); }
.related-reading .related-kicker {
  display: block; font-family: var(--condensed); font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px;
}
.related-reading .related-title { font-family: var(--serif); font-size: 19px; font-weight: 700; line-height: 1.35; transition: color 0.2s; }

/* ── SHARE + SUBSCRIBE ── */
.share-section { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border); }
.share-section > p, .share-label {
  font-family: var(--condensed); font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px;
}
.share-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--condensed); font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 10px 20px;
  border-radius: 3px; text-decoration: none; border: 1px solid var(--border);
  background: var(--white); color: var(--graphite); cursor: pointer; transition: all 0.2s;
}
.share-btn:hover { border-color: var(--amber); color: var(--amber); }

.subscribe-section { margin-top: 64px; background: var(--bg-alt); padding: 40px 36px; border-radius: 4px; }
.subscribe-section h2 {
  font-family: var(--condensed); font-size: 22px; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--charcoal); margin-bottom: 8px;
}
.subscribe-section p { font-family: var(--sans); font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.embeddable-buttondown-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.embeddable-buttondown-form label { display: none; }
.embeddable-buttondown-form input[type="email"] {
  flex: 1; min-width: 220px; padding: 12px 16px; font-family: var(--sans); font-size: 14px;
  border: 1px solid var(--border); border-radius: 3px; background: var(--white); color: var(--graphite); outline: none;
}
.embeddable-buttondown-form input[type="email"]:focus { border-color: var(--amber); }
.embeddable-buttondown-form input[type="submit"] {
  padding: 12px 24px; background: var(--amber); color: var(--white);
  font-family: var(--condensed); font-size: 13px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; border: none; border-radius: 3px; cursor: pointer; transition: background 0.2s;
}
.embeddable-buttondown-form input[type="submit"]:hover { background: var(--amber-dark); }
.embeddable-buttondown-form p { width: 100%; font-size: 11px; color: var(--muted); margin: 4px 0 0; }
.embeddable-buttondown-form p a { color: var(--muted); }

/* back link */
.post-back {
  max-width: 720px; margin: 0 auto; padding: 0 52px;
  font-family: var(--condensed); font-size: 13px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.post-back a { color: var(--amber); text-decoration: none; }
.post-back a:hover { color: var(--graphite); }

@media (max-width: 768px) {
  #blog-hero { padding: 108px 24px 48px; }
  .post-list { padding: 24px 24px 80px; }
  .post-card { grid-template-columns: 1fr; gap: 20px; padding: 32px 0; }
  .post-cover-outer { padding: 100px 24px 0; }
  article.post { padding: 40px 24px 60px; }
  .post-wrapper { padding: 40px 20px 60px; }
  .hero-image { margin-top: 80px; }
  .hero-image img { height: 300px; }
  .subscribe-section { padding: 32px 24px; }
  .post-faq { padding: 0 24px 60px; }
  .post-back { padding: 0 24px; }
}
