/* ===== Blog list ===== */
.blog-head {
  max-width: 900px;
  margin: 0 auto;
  padding: 72px 24px 0;
  text-align: center;
}
.blog-head h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 52px;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--ink);
}
.blog-head p {
  margin-top: 14px;
  font-size: 18px;
  color: var(--slate-2);
}

.blog-grid {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 24px 120px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .4s var(--ease, cubic-bezier(.22,1,.36,1)), box-shadow .4s;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -24px rgba(13,23,38,.24); }
.blog-cover {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #3C88C6, #3B87C8 60%, #2f6fa8);
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-cover img.ph { width: 46px; height: auto; opacity: .9; }
.blog-card-body { padding: 20px 20px 24px; display: flex; flex-direction: column; flex: 1; }
.blog-meta { font-size: 13px; font-weight: 500; color: var(--slate-2); }
.blog-card h2 {
  margin-top: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  color: var(--ink);
}
.blog-card p { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--slate); flex: 1; }
.blog-card .read { margin-top: 16px; font-size: 14px; font-weight: 600; color: #2f6df0; }

/* ===== Single post ===== */
.post {
  max-width: 740px;
  margin: 0 auto;
  padding: 56px 24px 120px;
}
.post-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-2);
  text-decoration: none;
}
.post-back:hover { color: var(--ink); }
.post-meta { margin-top: 28px; font-size: 14px; font-weight: 500; color: var(--slate-2); }
.post h1.post-title {
  margin-top: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 42px;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--ink);
}
.post-cover {
  margin-top: 28px;
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  display: block;
}
.post-body { margin-top: 32px; }
.post-body h1 { font-family: var(--font-head); font-weight: 700; font-size: 30px; line-height: 1.2; color: var(--ink); margin-top: 40px; }
.post-body h2 { font-family: var(--font-head); font-weight: 600; font-size: 24px; line-height: 1.3; color: var(--ink); margin-top: 36px; }
.post-body h3 { font-family: var(--font-head); font-weight: 600; font-size: 19px; line-height: 1.3; color: var(--ink); margin-top: 28px; }
.post-body p { margin-top: 16px; font-size: 17px; line-height: 1.7; color: var(--slate); }
.post-body ul, .post-body ol { margin-top: 16px; padding-left: 4px; list-style: none; }
.post-body ol { counter-reset: li; }
.post-body li { position: relative; padding-left: 24px; margin-top: 9px; font-size: 17px; line-height: 1.6; color: var(--slate); }
.post-body ul > li::before { content: ""; position: absolute; left: 5px; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: #4ADE80; }
.post-body ol > li { counter-increment: li; }
.post-body ol > li::before { content: counter(li); position: absolute; left: 0; top: 0; font-weight: 700; color: #3C88C6; font-size: 15px; }
.post-body strong { color: var(--text); font-weight: 600; }
.post-body a { color: #2f6df0; font-weight: 500; text-decoration: none; }
.post-body a:hover { text-decoration: underline; }
.post-body code { background: var(--pale); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; font-size: 14px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.post-body blockquote {
  margin-top: 20px;
  padding: 14px 20px;
  border-left: 3px solid #3C88C6;
  background: var(--pale);
  border-radius: 0 12px 12px 0;
  color: var(--text);
  font-size: 17px;
}
.post-body figure { margin-top: 24px; }
.post-body figure img, .post-body p img { max-width: 100%; border-radius: 14px; border: 1px solid var(--border); display: block; }
.post-body hr { border: none; border-top: 1px solid var(--border); margin: 36px 0; }
.post-body .table-wrap { margin-top: 24px; overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 15px; }
.post-body th, .post-body td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--border); vertical-align: top; }
.post-body thead th { background: var(--pale); font-family: var(--font-head); font-weight: 600; color: var(--ink); white-space: nowrap; }
.post-body tbody tr:last-child td { border-bottom: none; }
.post-body td:first-child, .post-body th:first-child { font-weight: 600; color: var(--text); }
.post-body tbody tr:nth-child(even) { background: rgba(244,247,249,.5); }

.blog-empty { text-align: center; color: var(--slate-2); padding: 80px 24px; }

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .blog-head h1 { font-size: 38px; }
  .blog-grid { grid-template-columns: 1fr; padding: 32px 20px 80px; }
  .post h1.post-title { font-size: 32px; }
  .post { padding: 36px 20px 80px; }
}
