/* ============================================================
   SERGEBOT — Blog-specific styles
   Shared chrome (tokens, reset, nav, buttons, footer) now lives in
   /site.css, which every blog page links BEFORE this file.
   This file only holds blog-specific layout. Bump ?v= on change.
   ============================================================ */

/* ---------- Blog Index — Hero ---------- */
.blog-hero {
  padding: clamp(130px, 18vh, 180px) 0 70px;
  border-bottom: 1px solid var(--line);
}
.blog-hero h1 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.blog-hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 520px;
  line-height: 1.65;
}

/* ---------- Post Grid ---------- */
.posts-section { padding: 80px 0 100px; }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.post-card:hover {
  border-color: var(--line-active);
  box-shadow: 0 20px 40px -20px rgba(124,92,240,0.2);
}

.post-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.post-date {
  font-family: 'Fira Code', monospace;
  font-size: 0.72rem;
  color: var(--faint);
  letter-spacing: 0.05em;
}
.post-tag {
  font-family: 'Fira Code', monospace;
  font-size: 0.68rem;
  color: var(--violet);
  background: rgba(167,139,250,0.1);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.post-card h2 {
  font-family: 'Sora', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.post-excerpt {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.7;
  flex-grow: 1;
}
.post-link {
  font-family: 'Fira Code', monospace;
  font-size: 0.8rem;
  color: var(--violet);
  font-weight: 500;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  transition: gap 0.2s ease, color 0.2s ease;
}
.post-link:hover { gap: 10px; color: var(--violet-soft); }

/* ---------- Individual Post Page ---------- */
.post-hero {
  padding: clamp(120px, 16vh, 160px) 0 60px;
  border-bottom: 1px solid var(--line);
}
.post-hero-inner { max-width: 760px; }
.back-link {
  font-family: 'Fira Code', monospace;
  font-size: 0.8rem;
  color: var(--faint);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--violet); }

.post-hero h1 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 24px;
}
.post-byline {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.post-byline-sep {
  font-family: 'Fira Code', monospace;
  font-size: 0.75rem;
  color: var(--faint);
}

/* ---------- Article Body ---------- */
.post-article {
  padding: 60px 0 40px;
}
.post-content {
  max-width: 700px;
}
.post-content p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
  margin-bottom: 24px;
}
.post-content p.lead {
  font-size: 1.12rem;
  color: var(--text);
  line-height: 1.7;
}
.post-content h2 {
  font-family: 'Sora', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 48px 0 16px;
  padding-left: 16px;
  border-left: 3px solid var(--violet);
}
.post-content ul {
  list-style: none;
  margin: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.post-content ul li {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
  padding-left: 20px;
  position: relative;
}
.post-content ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--violet);
  font-size: 0.9rem;
}
.post-content strong { color: var(--text); font-weight: 600; }

.post-source {
  margin-top: 40px;
  padding: 16px 20px;
  background: rgba(167,139,250,0.05);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: 'Fira Code', monospace;
  font-size: 0.78rem;
  color: var(--faint);
}
.post-source a { color: var(--violet); transition: color 0.2s; }
.post-source a:hover { color: var(--violet-soft); }

/* ---------- Post CTA ---------- */
.post-cta {
  margin: 60px 0 80px;
  max-width: 700px;
  background: linear-gradient(135deg, rgba(18,18,26,0.99) 0%, rgba(9,9,14,1) 100%);
  border: 1px solid rgba(167,139,250,0.25);
  border-radius: var(--radius);
  padding: 40px 36px;
}
.post-cta h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.post-cta p {
  color: var(--muted);
  font-size: 0.97rem;
  margin-bottom: 24px;
  line-height: 1.65;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .posts-grid { grid-template-columns: 1fr; }
  .post-cta { padding: 28px 24px; }
}
