/* ─────────────────────────────────────────
   BLOG — blog index + post pages
   Depends on: sidekick.css
   ───────────────────────────────────────── */

/* ── Hero ── */
.hero {
  padding: 140px 0 72px;
  border-bottom: 1px solid var(--border);
}
.hero-headline {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800; line-height: 1.05; letter-spacing: -0.03em;
  color: var(--ink); margin-bottom: 16px;
}
.hero-sub {
  font-size: 17px; line-height: 1.7;
  color: var(--ink-3); max-width: 560px;
}

/* ── Blog index — post grid ── */
.posts-section { padding: 80px 0; }
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.post-card {
  background: var(--bg);
  padding: 36px 32px;
  display: flex; flex-direction: column;
  text-decoration: none;
  transition: background 0.15s;
}
.post-card:hover { background: var(--bg-softer); }
.post-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 16px; display: block;
}
.post-title {
  font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: -0.02em;
  color: var(--ink); margin-bottom: 12px; flex: 1;
}
.post-excerpt { font-size: 13px; line-height: 1.7; color: var(--ink-3); margin-bottom: 24px; }
.post-meta { display: flex; align-items: center; gap: 10px; }
.post-author-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--border); border: 1px solid var(--border-dark);
  overflow: hidden; flex-shrink: 0;
}
.post-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-author { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.post-date { font-size: 12px; color: var(--ink-4); }
.post-meta-sep { color: var(--border-dark); }

/* ── Single post ── */
.post-hero { padding: 140px 0 64px; border-bottom: 1px solid var(--border); }
.post-hero-inner { max-width: 720px; }
.post-breadcrumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-4); margin-bottom: 24px;
}
.post-breadcrumb a { color: var(--ink-4); text-decoration: none; }
.post-breadcrumb a:hover { color: var(--orange); }
.post-headline {
  font-size: clamp(30px, 4vw, 48px); font-weight: 800;
  line-height: 1.05; letter-spacing: -0.03em;
  color: var(--ink); margin-bottom: 20px;
}
.post-byline { display: flex; align-items: center; gap: 12px; }
.post-byline-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0; border: 1px solid var(--border-dark);
}
.post-byline-avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-byline-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.post-byline-date { font-size: 12px; color: var(--ink-4); margin-top: 2px; }

/* ── Post body ── */
.post-body-section { padding: 72px 0 96px; }
.post-body {
  max-width: 680px;
  font-size: 17px; line-height: 1.8; color: var(--ink-2);
}
.post-body h2 {
  font-size: clamp(22px, 2.5vw, 28px); font-weight: 800;
  letter-spacing: -0.025em; line-height: 1.15;
  color: var(--ink); margin: 52px 0 16px;
}
.post-body h3 {
  font-size: 20px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--ink); margin: 36px 0 12px;
}
.post-body p { margin-bottom: 24px; }
.post-body a { color: var(--orange); text-decoration: none; border-bottom: 1px solid rgba(232,71,42,0.35); }
.post-body a:hover { border-bottom-color: var(--orange); }
.post-body ul, .post-body ol { margin: 0 0 24px 24px; }
.post-body li { margin-bottom: 8px; }
.post-body blockquote {
  border-left: 3px solid var(--orange); padding-left: 24px;
  margin: 36px 0; font-style: italic;
  color: var(--ink-2); font-size: 18px; line-height: 1.7;
}
.post-body hr { border: none; border-top: 1px solid var(--border); margin: 48px 0; }
.post-body strong { color: var(--ink); font-weight: 700; }
.post-body code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 14px; background: var(--bg-warm);
  border: 1px solid var(--border); padding: 2px 6px;
  border-radius: 3px; color: var(--ink-2);
}
.post-body pre {
  background: var(--ink); color: var(--bg);
  padding: 24px 28px; overflow-x: auto;
  border-radius: 4px; margin-bottom: 28px;
  font-size: 14px; line-height: 1.7;
}
.post-body pre code { background: none; border: none; padding: 0; color: inherit; font-size: inherit; }
.post-body img { width: 100%; height: auto; border: 1px solid var(--border); margin: 8px 0 28px; }
.post-body figure.post-img { margin: 36px 0; }
.post-body figure.post-img img { margin: 0; }
.post-body figure.post-img figcaption { font-size: 13px; color: var(--ink-3); margin-top: 8px; text-align: center; }

/* ── Related posts ── */
.related-section { padding: 72px 0; border-top: 1px solid var(--border); background: var(--bg-warm); }

/* ── Featured post ── */
.featured-section { padding: 72px 0 0; }
.featured-post {
  display: block; text-decoration: none;
  border: 1px solid var(--border);
  transition: border-color 0.15s;
}
.featured-post:hover { border-color: var(--border-dark); }
.featured-post-inner {
  display: grid; grid-template-columns: 1fr 420px;
}
.featured-post-left {
  padding: 52px 48px;
  display: flex; flex-direction: column; justify-content: center;
  border-right: 1px solid var(--border);
}
.featured-post-title {
  font-size: clamp(22px, 2.5vw, 32px); font-weight: 800;
  line-height: 1.15; letter-spacing: -0.025em;
  color: var(--ink); margin-bottom: 16px;
}
.featured-post-excerpt {
  font-size: 14px; line-height: 1.75; color: var(--ink-3);
  margin-bottom: 28px; max-width: 520px;
}
.featured-post-right {
  background: var(--bg-warm);
  display: flex; align-items: center; justify-content: center;
  padding: 48px 40px;
}
.featured-post-visual {
  width: 100%;
}
.featured-visual-inner {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px 28px 24px;
}
.fv-eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-4); margin-bottom: 12px;
}
.fv-stat {
  font-size: 52px; font-weight: 800; letter-spacing: -0.04em;
  color: var(--ink); line-height: 1; margin-bottom: 8px;
}
.fv-label {
  font-size: 12px; line-height: 1.6; color: var(--ink-3);
  margin-bottom: 20px; max-width: 240px;
}
.fv-divider { height: 1px; background: var(--border); margin-bottom: 16px; }
.fv-row {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 12px; line-height: 1.5; color: var(--ink-3);
  margin-bottom: 10px;
}
.fv-row:last-child { margin-bottom: 0; }
.fv-dot {
  width: 6px; height: 6px; border-radius: 50%;
  flex-shrink: 0; margin-top: 4px;
}
.fv-dot.red { background: #E8472A; }
.fv-dot.green { background: #22C55E; }

/* ── Filter tabs ── */
.filter-section { padding: 40px 0 0; }
.filter-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.filter-tab {
  padding: 8px 18px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--ink-3);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.15s;
}
.filter-tab:hover { color: var(--ink); border-color: var(--border-dark); }
.filter-tab.active {
  color: var(--bg);
  background: var(--ink);
  border-color: var(--ink);
}

/* ── Newsletter CTA ── */
.newsletter-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-warm);
}
.newsletter-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 48px;
}
.newsletter-headline {
  font-size: clamp(22px, 2.5vw, 30px); font-weight: 800;
  letter-spacing: -0.025em; color: var(--ink);
  margin-bottom: 8px; margin-top: 8px;
}
.newsletter-sub { font-size: 14px; line-height: 1.7; color: var(--ink-3); max-width: 400px; }
.newsletter-form { display: flex; gap: 10px; flex-shrink: 0; }
.newsletter-input {
  padding: 10px 16px;
  font-size: 14px; font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg); color: var(--ink);
  width: 240px;
  outline: none;
  transition: border-color 0.15s;
}
.newsletter-input:focus { border-color: var(--border-dark); }
.newsletter-input::placeholder { color: var(--ink-4); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-post-inner { grid-template-columns: 1fr; }
  .featured-post-left { border-right: none; border-bottom: 1px solid var(--border); padding: 40px 36px; }
  .featured-post-right { padding: 36px; }
  .newsletter-inner { flex-direction: column; align-items: flex-start; gap: 28px; }
}
@media (max-width: 768px) {
  .posts-grid { grid-template-columns: 1fr; }
  .post-card { padding: 28px 24px; }
  .post-body { font-size: 16px; }
  .featured-post-left { padding: 32px 24px; }
  .featured-post-right { padding: 24px; }
  .newsletter-form { flex-direction: column; width: 100%; }
  .newsletter-input { width: 100%; }
}
