/* Blog styles.
 *
 * Deliberately a SEPARATE file from styles.css. That stylesheet is 68KB and every live
 * page depends on it; appending to it would put the whole site at risk for the sake of
 * one section. Nothing here touches an existing selector.
 *
 * Colours and type come from the tokens in styles.css only — never a hex value — because
 * [data-theme="light"] overrides those variables and a hardcoded colour would be
 * invisible or unreadable in one of the two themes.
 */

/* ── Post list ─────────────────────────────────────────────────────────────── */

.blog-list {
  display: grid;
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
}

.blog-card {
  display: block;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 3px solid transparent;
  text-decoration: none;
  transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.blog-card:hover {
  background: var(--bg-card-hover);
  border-left-color: var(--purple-bright);
  transform: translateX(2px);
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.blog-card h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.blog-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
}

.blog-card-more {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--purple-bright);
}

.blog-empty {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 32px;
  text-align: center;
  border: 1px dashed var(--border-color);
  color: var(--text-secondary);
}

/* ── Article ───────────────────────────────────────────────────────────────── */

.post {
  padding: 72px 0 96px;
}

/* A measured line length. Prose running the full 1200px container is genuinely hard to
   read, and most of this traffic arrives on a phone anyway. */
.post-body {
  max-width: 720px;
  margin: 0 auto;
}

.post-body > * + * {
  margin-top: 24px;
}

.post-body p,
.post-body li {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.post-body h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.25;
  color: var(--text-primary);
  margin-top: 56px;
}

.post-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-top: 36px;
}

.post-body ul,
.post-body ol {
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post-body strong {
  color: var(--text-primary);
  font-weight: 600;
}

.post-body a {
  color: var(--purple-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-body blockquote {
  border-left: 3px solid var(--purple-bright);
  padding: 4px 0 4px 24px;
  color: var(--text-primary);
  font-size: 1.125rem;
}

/* A plain figures table — the kind a pricing article needs. */
.post-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.post-table th,
.post-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.post-table th {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.post-table td:first-child {
  color: var(--text-primary);
  font-weight: 600;
}

.post-table-wrap {
  overflow-x: auto;
}

/* ── Chrome around the article ─────────────────────────────────────────────── */

.post-back {
  display: inline-block;
  margin-bottom: 28px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-decoration: none;
}

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

.post-cta {
  max-width: 720px;
  margin: 64px auto 0;
  padding: 36px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--purple-bright);
}

.post-cta h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.post-cta p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.65;
}

.post-cta-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .post { padding: 48px 0 64px; }
  .blog-card { padding: 24px; }
  .blog-card h2 { font-size: 1.25rem; }
  .post-body h2 { font-size: 1.4rem; margin-top: 40px; }
  .post-cta { padding: 28px 24px; }
}
