/* Build 20: Blog typography + listing cards. Loaded after oddly-chrome.css.
   Listing uses a responsive grid; posts use a 720px article column with
   readable line-length and tabular content support. */

/* ---------- Listing page ---------- */
.blog-listing {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 22px 80px;
}
.blog-listing-head { margin: 0 0 40px; max-width: 760px; }
.blog-listing-head h1 {
  font-size: clamp(32px, 4.4vw, 44px);
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0;
  color: #18181b;
}
.blog-listing-head .lede {
  margin-top: 14px;
  color: #475569;
  font-size: 17px;
  line-height: 1.55;
}
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 640px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (min-width: 980px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
.blog-card {
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 14px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}
.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(76, 29, 149, 0.08);
  border-color: #ddd6fe;
  text-decoration: none;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 12px;
  color: #94a3b8;
}
.blog-card-tag {
  display: inline-block;
  background: #f5f3ff;
  color: #5b21b6;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}
.blog-card-date { font-variant-numeric: tabular-nums; }
.blog-card h2 {
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.012em;
  font-weight: 700;
  color: #18181b;
  margin: 0 0 10px;
}
.blog-card p {
  font-size: 14px;
  line-height: 1.55;
  color: #475569;
  margin: 0 0 16px;
  flex: 1;
}
.blog-card-more {
  font-size: 14px;
  font-weight: 600;
  color: #7c3aed;
  margin-top: auto;
}
.blog-card-more::after { content: " \2192"; }

/* ---------- Article page ---------- */
.post-shell { max-width: 720px; margin: 0 auto; padding: 56px 22px 32px; }
.post-shell h1 {
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.025em;
  line-height: 1.18;
  font-weight: 800;
  color: #18181b;
  margin: 0 0 14px;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #94a3b8;
  margin: 0 0 36px;
}
.post-meta .blog-card-tag { font-size: 11px; }
.post-meta time { font-variant-numeric: tabular-nums; }
.post-meta .read-time::before { content: "\00B7"; margin-right: 12px; color: #cbd5e1; }
.post-back { margin-top: 12px; font-size: 13px; }
.post-back a { color: #5b21b6; font-weight: 500; }
.post-back a::before { content: "\2190 "; }

article.post {
  font-size: 16px;
  line-height: 1.75;
  color: #334155;
}
article.post p { margin: 0 0 22px; }
article.post h2 {
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.018em;
  font-weight: 700;
  color: #18181b;
  margin: 44px 0 16px;
}
article.post h3 {
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.012em;
  font-weight: 700;
  color: #18181b;
  margin: 32px 0 12px;
}
article.post h2 + p, article.post h3 + p { margin-top: 0; }
article.post a { color: #5b21b6; font-weight: 500; }
article.post a:hover { text-decoration: underline; }
article.post strong { font-weight: 700; color: #18181b; }
article.post em { font-style: italic; }
article.post ul, article.post ol { margin: 0 0 22px; padding-left: 24px; }
article.post li { margin: 8px 0; }
article.post li > p { margin: 0 0 10px; }
article.post blockquote {
  margin: 24px 0;
  padding: 14px 22px;
  border-left: 3px solid #7c3aed;
  background: #faf8ff;
  color: #334155;
  font-style: italic;
}
article.post blockquote p:last-child { margin-bottom: 0; }
article.post code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: #f1f5f9;
  color: #5b21b6;
  padding: 2px 6px;
  border-radius: 4px;
}
article.post pre {
  margin: 24px 0;
  padding: 16px 18px;
  background: #1e1b2e;
  color: #ddd6fe;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
}
article.post pre code { background: transparent; color: inherit; padding: 0; }
article.post hr {
  border: 0;
  border-top: 1px solid #e4e4e7;
  margin: 36px 0;
}

.post-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
}
.post-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.post-table-wrap th, .post-table-wrap td {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  text-align: left;
  vertical-align: top;
}
.post-table-wrap th {
  background: #faf8ff;
  font-weight: 600;
  color: #18181b;
  font-size: 13px;
}
.post-table-wrap tr:last-child td { border-bottom: none; }
.post-table-wrap td:not(:first-child) { font-variant-numeric: tabular-nums; }

/* ---------- End-of-post CTA ---------- */
.post-cta {
  margin: 44px auto 0;
  max-width: 720px;
  padding: 28px 26px;
  border-radius: 16px;
  background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 100%);
  color: #fafaf9;
  text-align: center;
}
.post-cta h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #ffffff;
  margin: 0 0 10px;
}
.post-cta p {
  font-size: 14px;
  color: rgba(250, 250, 249, 0.82);
  margin: 0 0 18px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.post-cta a {
  display: inline-block;
  background: #ffffff;
  color: #5b21b6;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 10px;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.post-cta a:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  text-decoration: none;
}
.post-back-bottom {
  max-width: 720px;
  margin: 28px auto 0;
  padding: 0 22px;
  font-size: 14px;
}
.post-back-bottom a { color: #5b21b6; font-weight: 500; }
.post-back-bottom a::before { content: "\2190 "; }
