/* ─── Blog design (layers on top of homepage.css) ─── */

.blog-hero {
  padding: 108px 0 40px;
  text-align: center;
}
.blog-hero .eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.blog-hero h1 {
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.blog-hero p {
  color: var(--text-2);
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.02rem;
}

/* ─── Blog index cards ─── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  padding-bottom: 5rem;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(27, 31, 42, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(27, 31, 42, 0.09);
  border-color: var(--border-l);
  text-decoration: none;
}
.post-card .tag {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(109, 94, 240, 0.1);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}
.post-card h2 {
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.post-card p { color: var(--text-2); font-size: 0.9rem; flex: 1; }
.post-card .meta {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--text-3);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.post-card .read-more {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  font-weight: 550;
  color: var(--accent);
}

/* ─── Article ─── */
.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 100px 1.5rem 5rem;
}
.article-head { margin-bottom: 2rem; }
.article-head .tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(109, 94, 240, 0.1);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.article-head h1 {
  font-size: 2.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.85rem;
}
.article-head .sub { color: var(--text-2); font-size: 1.05rem; }
.article-head .meta {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--text-3);
}
.article .back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-2);
}

.article-body { color: var(--text); font-size: 1rem; line-height: 1.7; }
.article-body h2 {
  font-size: 1.4rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin: 2.4rem 0 0.9rem;
}
.article-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.8rem 0 0.6rem;
}
.article-body p { margin-bottom: 1.05rem; color: var(--text-2); }
.article-body ul, .article-body ol { margin: 0 0 1.2rem 1.3rem; color: var(--text-2); }
.article-body li { margin-bottom: 0.5rem; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body a { color: var(--accent); font-weight: 500; }

.article-body .callout {
  background: var(--raised);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin: 1.6rem 0;
  font-size: 0.92rem;
  color: var(--text-2);
}
.article-body .callout strong { color: var(--text); }

.article-body pre {
  background: #14161d;
  color: #e7e9f0;
  border-radius: 8px;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.55;
  margin: 1.2rem 0;
}
.article-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
}
.article-body p code, .article-body li code {
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.08rem 0.35rem;
  color: var(--text);
}
.article-body pre code { background: none; border: none; padding: 0; color: inherit; }

.step-list { counter-reset: step; list-style: none; margin-left: 0 !important; }
.step-list > li {
  position: relative;
  padding-left: 2.4rem;
  margin-bottom: 1.1rem;
}
.step-list > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-cta {
  margin-top: 3rem;
  padding: 1.8rem;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(27, 31, 42, 0.05);
}
.article-cta h3 { font-size: 1.2rem; font-weight: 650; margin-bottom: 0.5rem; }
.article-cta p { color: var(--text-2); margin-bottom: 1.1rem; }

@media (max-width: 640px) {
  .blog-hero h1 { font-size: 1.7rem; }
  .article-head h1 { font-size: 1.7rem; }
}
