/* ============================================================
   pages.css — Blog, post, utilities
   ============================================================ */

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.post-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.post-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.post-thumb { height: 180px; display: grid; place-items: center; position: relative; }
.post-thumb .emoji { font-size: 56px; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3)); }
.post-body { padding: 24px; }
.post-meta { display: flex; gap: 14px; font-size: 13px; color: var(--text-mute); margin-bottom: 10px; }
.post-meta .cat { color: var(--accent-2); font-weight: 600; }
.post-body h3 { font-size: 19px; margin-bottom: 8px; }
.post-body p { color: var(--text-soft); font-size: 14.5px; }

/* ---------- Single post ---------- */
.article { max-width: 760px; margin: 0 auto; }
.article-thumb { height: 280px; border-radius: var(--radius); display: grid; place-items: center; margin: 30px 0 40px; }
.article-thumb .emoji { font-size: 90px; filter: drop-shadow(0 6px 16px rgba(0,0,0,0.3)); }
.grad-a { background: linear-gradient(135deg, #9a55bc, #c1e0af); }
.grad-b { background: linear-gradient(135deg, #5b3e36, #9a55bc); }
.grad-c { background: linear-gradient(135deg, #b5a58c, #c1e0af); }
.grad-d { background: linear-gradient(135deg, #9a55bc, #5b3e36); }
.article-meta { display: flex; gap: 14px; font-size: 14px; color: var(--text-mute); margin-bottom: 14px; }
.article-meta .cat { color: var(--accent-2); font-weight: 600; }
.article h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; margin-bottom: 16px; }
.article h2 { font-size: 1.6rem; font-weight: 700; margin: 36px 0 14px; }
.article p { color: var(--text-soft); font-size: 17px; margin-bottom: 18px; }
.article ul { margin: 0 0 18px; padding-left: 22px; }
.article ul li { color: var(--text-soft); margin-bottom: 8px; list-style: disc; }
.article code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.9em;
  background: var(--surface-2); border: 1px solid var(--border); padding: 2px 7px; border-radius: 6px;
}
.article blockquote {
  border-left: 3px solid var(--accent-2); padding: 6px 0 6px 20px;
  color: var(--text-soft); font-family: var(--font-serif); font-style: normal; font-size: 1.25rem; margin: 22px 0;
}
.article-back { display: inline-flex; align-items: center; gap: 8px; color: var(--text-soft); text-decoration: none; font-size: 14px; margin-bottom: 24px; transition: color 0.25s; }
.article-back:hover { color: var(--accent-2); }

/* ---------- Pull quote (home) ---------- */
.quote { font-family: var(--font-serif); font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.4; max-width: 720px; margin: 0 auto; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-soft { color: var(--text-soft); }
.text-mute { color: var(--text-mute); }
.flex-center { display: flex; align-items: center; justify-content: center; }
.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }
.stats-center { justify-content: center; }

@media (max-width: 860px) {
  .blog-grid { grid-template-columns: 1fr; }
}
