/* ==========================================================================
   SelectAWheel — Blog Styles
   Only loaded on /blog/ pages. Complements css/style.css.
   ========================================================================== */

/* -------------------------------------------------------------------------
   Blog Index — Article Grid
   ------------------------------------------------------------------------- */

.blog-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}

.blog-card-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-600);
  letter-spacing: 0.05em;
}

.blog-card-title {
  font-size: 1.25rem;
  margin: 8px 0 12px;
  color: var(--ink-900);
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
}

.blog-card-title a:hover {
  color: var(--brand-600);
}

.blog-card-excerpt {
  font-size: 0.9rem;
  color: var(--ink-600);
  line-height: 1.5;
  margin-bottom: 16px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--ink-400);
  border-top: 1px solid var(--ink-100);
  padding-top: 12px;
}

/* -------------------------------------------------------------------------
   Blog Post — Article Typography
   ------------------------------------------------------------------------- */

.blog-article {
  max-width: 780px;
  margin: 0 auto;
}

.blog-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--ink-800);
}

.blog-byline {
  font-size: 0.9rem;
  color: var(--ink-500);
  margin-top: 8px;
}

.blog-byline strong {
  color: var(--ink-700);
  font-weight: 600;
}

.blog-article h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -0.02em;
  margin: 40px 0 16px;
}

.blog-article h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink-900);
  margin: 28px 0 12px;
}

.blog-article p {
  color: var(--ink-700);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

.blog-article ul,
.blog-article ol {
  margin: 16px 0 24px 24px;
  color: var(--ink-700);
  font-size: 1.02rem;
  line-height: 1.75;
}

.blog-article li {
  margin-bottom: 8px;
}

.blog-article pre {
  background: var(--ink-900);
  color: #e2e8f0;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 20px 0;
}

.blog-article code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--ink-100);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--ink-800);
}

.blog-article pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

.blog-article a {
  color: var(--brand-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-article a:hover {
  color: var(--brand-700);
  text-decoration-thickness: 2px;
}

/* Blog CTA buttons override the article link color */
.blog-article .cta-btn,
.blog-article .cta-btn:visited {
  color: #fff;
  text-decoration: none;
}

.blog-article .cta-btn:hover {
  color: #fff;
  text-decoration: none;
}

/* -------------------------------------------------------------------------
   Blog Post — Call-to-Action Box
   ------------------------------------------------------------------------- */

.blog-cta {
  background: var(--brand-50);
  border: 1px solid var(--brand-200);
  border-radius: var(--radius);
  padding: 32px 24px;
  margin: 40px 0;
  text-align: center;
}

.blog-cta-heading {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--brand-800);
  margin: 0 0 12px;
}

.blog-cta-text {
  font-size: 1rem;
  color: var(--brand-700);
  margin: 0 0 20px;
  line-height: 1.6;
}

/* -------------------------------------------------------------------------
   Blog Post — Stepper list (used for "How to" steps)
   ------------------------------------------------------------------------- */

.blog-article .steps {
  margin: 20px 0;
}

/* -------------------------------------------------------------------------
   Blog — Responsive Tweaks
   ------------------------------------------------------------------------- */

@media (max-width: 640px) {
  .blog-lead {
    font-size: 1.05rem;
  }

  .blog-article h2 {
    margin-top: 32px;
  }

  .blog-cta {
    padding: 24px 20px;
    margin: 32px 0;
  }

  .blog-cta-heading {
    font-size: 1.15rem;
  }
}
.blog-figure {
  margin: 28px 0;
}
.blog-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.blog-figure figcaption {
  font-size: 0.85rem;
  color: var(--ink-500);
  text-align: center;
  margin-top: 10px;
  font-style: italic;
}
