/* ============================================================
   Blog listing
   ============================================================ */

.blog-hero {
  padding: 80px 24px 64px;
  text-align: center;
}

.blog-hero h1 {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 12px 0 16px;
}

.blog-hero p {
  font-size: 18px;
  color: var(--text-soft);
  max-width: 480px;
  margin: 0 auto;
}

.blog-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  border-color: var(--teal);
  box-shadow: 0 8px 32px rgba(0,145,146,0.10);
}

.blog-card-thumb {
  background: var(--teal-bg);
  padding: 32px 28px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-thumb svg {
  width: 48px;
  height: 48px;
  color: var(--teal);
}

.blog-card-body {
  padding: 24px 28px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.blog-card h2 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin-bottom: 12px;
  color: var(--text);
}

.blog-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
  flex: 1;
}

.blog-coming-soon {
  text-align: center;
  padding: 48px 24px 100px;
  color: var(--text-muted);
  font-size: 15px;
}

.blog-card-cta {
  margin-top: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
}

/* ============================================================
   Blog post
   ============================================================ */

.post-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 100px;
}

.post-header {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1.5px solid var(--border);
}

.post-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.post-header h1 {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.post-header .post-intro {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-soft);
}

.post-body h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 40px 0 12px;
  color: var(--text);
}

.post-body p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-soft);
  margin-bottom: 16px;
}

.post-body ul, .post-body ol {
  margin: 0 0 16px 20px;
}

.post-body li {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.post-body a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 500;
}

.post-body a:hover { text-decoration: underline; }

.post-body strong { color: var(--text); }

.post-callout {
  background: var(--teal-bg);
  border-left: 3px solid var(--teal);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin: 28px 0;
}

.post-callout p {
  margin: 0;
  font-size: 15px;
}

.post-image {
  margin: 32px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--border);
}

.post-img {
  display: block;
  width: 100%;
  height: auto;
}

.post-img-placeholder {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-bg);
  padding: 16px;
}

.post-img-placeholder span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  font-family: 'SF Mono', 'Fira Code', monospace;
  background: white;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.post-img[src]:not([src=""]) + .post-img-placeholder { display: none; }
.post-img:not([src]), .post-img[src=""] { display: none; }

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 40px;
  transition: color 0.15s;
}

.post-back:hover { color: var(--teal); }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 860px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .blog-hero h1 { font-size: 36px; }
}

@media (max-width: 560px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-hero h1 { font-size: 30px; }
  .post-header h1 { font-size: 28px; }
}
