/* Blog layout. Loaded after landing.css and reuses its tokens (--ink, --paper, --buzz ...), so the blog
   inherits the marketing site's header, footer, buttons and type scale rather than restating them. */

.blog-main {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) var(--pad) clamp(48px, 8vw, 96px);
}

.post-head { margin-bottom: clamp(28px, 5vw, 48px); }
.post-head h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.post-head .eyebrow a { color: inherit; text-decoration: none; }
.post-head .eyebrow a:hover { text-decoration: underline; }
.post-head .lead { font-size: 1.15rem; color: var(--text-2); margin: 0; }

.post-meta { color: var(--text-2); font-size: 0.92rem; margin: 0; }

/* ---- index ---- */

.post-list { display: grid; gap: 18px; }

.post-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.post-card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(14, 11, 30, 0.1); }
.post-card-link { display: block; padding: clamp(20px, 3vw, 30px); text-decoration: none; color: inherit; }
.post-card h2 {
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.post-card .post-excerpt { color: var(--text-2); margin: 10px 0 14px; }
.post-more { font-weight: 600; color: var(--pink); }
.post-empty { color: var(--text-2); padding: 32px 0; }

/* ---- article ---- */

.post-body { font-size: 1.06rem; line-height: 1.75; }
.post-body h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 2em 0 0.5em;
}
.post-body h3 { font-size: 1.2rem; margin: 1.6em 0 0.4em; }
.post-body p { margin: 0 0 1.1em; }
.post-body ul, .post-body ol { margin: 0 0 1.2em; padding-inline-start: 1.3em; }
.post-body li { margin-bottom: 0.45em; }
.post-body a { color: var(--pink); }
.post-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--paper-2);
  padding: 0.15em 0.4em;
  border-radius: 6px;
}
.post-body blockquote {
  margin: 1.4em 0;
  padding: 2px 0 2px 18px;
  border-inline-start: 4px solid var(--buzz);
  color: var(--text-2);
  font-style: italic;
}
.post-body img { max-width: 100%; height: auto; border-radius: 12px; }

.post-foot {
  margin-top: clamp(36px, 6vw, 60px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.post-back { width: 100%; margin: 8px 0 0; }
.post-back a { color: var(--text-2); }

@media (max-width: 560px) {
  .post-foot .btn { width: 100%; text-align: center; }
}

/* Comparison tables. Wrapped in .table-scroll so a wide table scrolls inside the article column instead of
   stretching the page on a phone. */
.post-body .table-scroll { overflow-x: auto; margin: 1.5em 0; -webkit-overflow-scrolling: touch; }
.post-body table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 0.95rem; }
.post-body th, .post-body td {
  text-align: start;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.post-body thead th { background: var(--paper-2); font-weight: 700; white-space: nowrap; }
.post-body tbody tr:last-child td { border-bottom: 0; }

.post-body figure { margin: 1.6em 0; }
.post-body figure img { width: 100%; height: auto; border-radius: 14px; display: block; }
