/* ============================================================
   BLOG — blog.css
   Shared styles for the blog index and individual post pages.
   ============================================================ */

/* ── Blog index hero ── */
.blog-index-hero {
  padding: 8rem 1.5rem 3rem;
  background: var(--bg);
}
.blog-index-hero .sec-title { margin-bottom: .5rem; }

/* ── Blog list ── */
.blog-index-list { background: var(--bg); padding-bottom: 6rem; }
.blog-list-item {
  display: flex; flex-direction: column; gap: .75rem;
  padding: 2rem 0; border-bottom: 1px solid var(--border);
  text-decoration: none; transition: padding-left .25s;
}
.blog-list-item:hover { padding-left: .5rem; }
.blog-list-item:hover .bli-title { color: var(--blue2); }
.bli-meta { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.bli-title {
  font-family: 'Fraunces', serif; font-size: clamp(1.15rem, 3vw, 1.5rem);
  font-weight: 700; color: var(--ink); line-height: 1.25; margin: 0;
  transition: color .2s;
}
.bli-excerpt { font-size: .88rem; color: var(--muted); line-height: 1.8; max-width: 72ch; margin: 0; }

/* ── Single post ── */
.post-hero {
  padding: 8rem 1.5rem 3rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.post-meta { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.post-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700; color: var(--ink); line-height: 1.15; max-width: 20ch;
  margin: 0 0 1rem;
}
.post-subtitle {
  font-size: 1.05rem; color: var(--muted); line-height: 1.7; max-width: 58ch; margin: 0;
}

.post-body {
  background: var(--bg);
  padding: 3rem 1.5rem 6rem;
}
.post-content {
  max-width: 680px; margin: 0 auto;
  font-size: .96rem; color: var(--muted); line-height: 1.9;
}
.post-content h2 {
  font-family: 'Fraunces', serif; font-size: 1.6rem; font-weight: 700;
  color: var(--ink); margin: 2.5rem 0 .9rem; line-height: 1.2;
}
.post-content h3 {
  font-family: 'Fraunces', serif; font-size: 1.2rem; font-weight: 700;
  color: var(--ink); margin: 2rem 0 .7rem;
}
.post-content p { margin-bottom: 1.3rem; }
.post-content strong { color: var(--ink); }
.post-content em { font-style: italic; }
.post-content a { color: var(--blue2); text-decoration: underline; text-underline-offset: 3px; }
.post-content ul, .post-content ol {
  margin: 0 0 1.3rem 1.5rem; display: flex; flex-direction: column; gap: .4rem;
}
.post-content blockquote {
  border-left: 3px solid var(--blue);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--card);
  border-radius: 0 var(--r) var(--r) 0;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink);
}
.post-back {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--muted); font-size: .8rem; text-decoration: none;
  margin-bottom: 2rem; transition: color .2s;
}
.post-back:hover { color: var(--blue2); }

/* ── Article reactions & share ── */
.article-engage {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
}
.ae-inner {
  max-width: 720px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 2rem;
}
@media (min-width: 640px) {
  .ae-inner { flex-direction: row; align-items: flex-start; gap: 3rem; }
}
.ae-label {
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--dim); font-weight: 700; margin-bottom: .9rem;
  display: flex; align-items: center; gap: .6rem;
}
.ae-btns { display: flex; gap: .5rem; flex-wrap: wrap; }
.reaction-btn--lg {
  flex-direction: column; gap: .25rem; padding: .7rem 1rem;
  border-radius: 10px; border-color: var(--border);
  min-width: 72px; align-items: center;
}
.reaction-btn--lg .r-emoji { font-size: 1.4rem; }
.reaction-btn--lg .r-label { font-size: .6rem; letter-spacing: .06em; color: var(--dim); }
.reaction-btn--lg .r-count { font-size: .72rem; font-weight: 700; color: var(--sky2); min-height: 1em; }
.reaction-btn--lg:hover .r-label { color: var(--muted); }
.reaction-btn--lg.active .r-label { color: var(--sky2); }

.ae-share { flex-shrink: 0; }
.ae-share-btns { display: flex; flex-direction: column; gap: .5rem; }
.ae-share-btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .55rem 1rem; border-radius: 8px;
  border: 1px solid var(--border); background: none;
  color: var(--muted); font-size: .78rem; font-weight: 600;
  text-decoration: none; cursor: pointer; transition: all .18s;
  font-family: inherit;
}
.ae-share-btn:hover { border-color: var(--border2); color: var(--sky2); background: rgba(56,189,248,.07); }
.ae-share-btn.copied { border-color: var(--emerald); color: var(--emerald); background: rgba(16,185,129,.08); }
