/* ══════════════════════════════════════════════════════════════
   blog.css — shared styles for blog article pages (blog-*.html)
   Light system: tokens follow light-theme.css (body.home-light).
   Card/grid styles live in global.css (.blog-grid / .blog-card).
   ══════════════════════════════════════════════════════════════ */

/* ── Article shell ── */
.article-wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.article-head { padding: 150px 0 28px; }
.article-back {
  display: inline-block; font-size: 0.88rem; font-weight: 600; color: #5b4eff;
  text-decoration: none; margin-bottom: 22px;
}
.article-back:hover { text-decoration: underline; }
.article-head h1 {
  font-family: var(--font-title); font-weight: 800; color: #16161d;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem); letter-spacing: -0.03em;
  line-height: 1.14; margin: 10px 0 16px;
}
.article-meta {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  font-size: 0.85rem; color: #8a8aa0;
}
.article-meta span { white-space: nowrap; }

/* ── Hero image ── */
.article-hero { margin: 26px 0 6px; }
.article-hero img {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 14px; border: 1px solid #e6e6ef; display: block;
}
.article-photo-credit {
  font-size: 0.75rem; color: #a0a0b4; margin-top: 8px; text-align: right;
}
.article-photo-credit a { color: inherit; text-decoration: underline; }

/* ── Body typography ── */
.article-body { padding: 26px 0 8px; color: #2e2e3e; font-size: 1.04rem; line-height: 1.75; }
.article-body p { margin: 0 0 18px; }
.article-body h2 {
  font-family: var(--font-title); font-weight: 800; color: #16161d;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem); letter-spacing: -0.02em;
  margin: 40px 0 14px; line-height: 1.25;
}
.article-body h3 {
  font-family: var(--font-title); font-weight: 700; color: #16161d;
  font-size: 1.12rem; margin: 28px 0 10px;
}
.article-body ul, .article-body ol { margin: 0 0 18px; padding-left: 24px; }
.article-body li { margin-bottom: 8px; }
.article-body li::marker { color: #5b4eff; }
.article-body strong { color: #16161d; }
.article-body a { color: #5b4eff; }
.article-body blockquote {
  margin: 22px 0; padding: 14px 20px; border-left: 3px solid #5b4eff;
  background: #f7f7fb; border-radius: 0 10px 10px 0;
  color: #4b4b60; font-style: italic;
}
.article-body blockquote p:last-child { margin-bottom: 0; }

/* ── Source attribution box ── */
.article-source {
  margin: 34px 0 0; padding: 18px 22px; border: 1px solid #e6e6ef;
  border-radius: 12px; background: #f7f7fb; font-size: 0.92rem; color: #4b4b60;
  line-height: 1.6;
}
.article-source a { color: #5b4eff; font-weight: 600; }

/* ── Glossary ── */
.article-glossary { margin: 26px 0 0; }
.article-glossary-title {
  font-family: var(--font-title); font-weight: 700; color: #16161d;
  font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.article-glossary dl { display: grid; gap: 8px; margin: 0; }
.article-glossary .term-row {
  display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline;
  font-size: 0.9rem; padding: 8px 12px; border: 1px solid #e6e6ef; border-radius: 10px;
}
.article-glossary dt { font-weight: 700; color: #16161d; margin: 0; }
.article-glossary dd { margin: 0; color: #8a8aa0; }

/* ── CTA band ── */
.article-cta {
  margin: 44px 0 0; padding: 30px 28px; border-radius: 16px; text-align: center;
  background: linear-gradient(135deg, #5b4eff12, #b3aaff2e);
  border: 1px solid #e0dcff;
}
.article-cta h2 {
  font-family: var(--font-title); font-weight: 800; color: #16161d;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin-bottom: 10px;
}
.article-cta p { color: #4b4b60; font-size: 0.98rem; max-width: 480px; margin: 0 auto 20px; }
/* .article-body a would otherwise out-specify .btn-main's white text */
.article-cta .btn-main, .article-body .article-cta a.btn-main { display: inline-flex; color: #ffffff; }

/* ── Series prev/next ── */
.article-series { margin: 34px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.article-series a {
  display: block; padding: 14px 16px; border: 1px solid #e6e6ef; border-radius: 12px;
  text-decoration: none; background: #ffffff; transition: border-color 0.15s ease;
}
.article-series a:hover { border-color: #5b4eff; }
.article-series .dir { font-size: 0.75rem; color: #8a8aa0; display: block; margin-bottom: 4px; }
.article-series .ttl { font-size: 0.9rem; font-weight: 700; color: #16161d; line-height: 1.35; }
.article-series a.next { text-align: right; }
.article-series a.only { grid-column: span 2; }

.article-end { padding-bottom: 80px; }

/* ── Blog index: photo covers in cards ── */
.blog-card-cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .article-head { padding-top: 120px; }
}
@media (max-width: 640px) {
  .article-body { font-size: 1rem; }
  .article-series { grid-template-columns: 1fr; }
  .article-series a.next { text-align: left; }
  .article-series a.only { grid-column: span 1; }
}
