/* ═══════════════════════════════════════════════════════════
   PAGE: Blog — List page, post prose styles
   ═══════════════════════════════════════════════════════════ */

/* ── Blog List Page Header ───────────────────────────────── */
.blog-header {
  padding-top: calc(var(--nav-h) + var(--ruler-h) + 72px);
  padding-bottom: 64px;
  position: relative;
  overflow: hidden;
}
.blog-header .dot-grid-subtle {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.blog-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 30% 50%, transparent 40%, rgba(14, 26, 35, 0.8) 100%);
  z-index: 1;
  pointer-events: none;
}
.blog-header::before {
  content: '';
  position: absolute;
  top: calc(var(--nav-h) + var(--ruler-h) + 16px);
  left: 20px;
  width: 16px; height: 16px;
  border-top: 1.5px solid var(--primary);
  border-left: 1.5px solid var(--primary);
  opacity: 0.4;
  z-index: 3;
}
.blog-header .container { position: relative; z-index: 2; }

.page-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--primary);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-5);
  opacity: 0.7;
}
.page-title {
  font-family: var(--font-display);
  font-weight: var(--weight-extrabold);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: var(--space-5);
}
.page-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 500px;
  line-height: 1.65;
}

/* ── Blog Grid ───────────────────────────────────────────── */
.blog-section {
  padding: var(--space-20) 0 var(--space-24);
  border-top: 1px solid var(--border);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.blog-empty {
  font-size: var(--text-base);
  color: var(--text-muted);
  font-family: var(--font-mono);
  padding: var(--space-10) 0;
}

/* ── Blog Post Layout ────────────────────────────────────── */
.post-header {
  padding-top: calc(var(--nav-h) + var(--ruler-h) + 72px);
  padding-bottom: 56px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.post-header .dot-grid-subtle {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.post-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 30% 50%, transparent 40%, rgba(14, 26, 35, 0.8) 100%);
  z-index: 1;
  pointer-events: none;
}
.post-header .container { position: relative; z-index: 2; }

.post-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--primary);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-5);
  opacity: 0.7;
}
.post-title {
  font-family: var(--font-display);
  font-weight: var(--weight-extrabold);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: var(--space-5);
  max-width: 760px;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}
.post-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* ── Post Hero Image ─────────────────────────────────────── */
.post-hero-image {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  height: 340px;
}
.post-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.9) brightness(0.88);
}

@media (max-width: 600px) {
  .post-hero-image { height: 220px; }
}

/* ── Post Prose Body ─────────────────────────────────────── */
.post-body {
  padding: var(--space-20) 0 var(--space-24);
}
.post-prose {
  max-width: var(--prose-max);
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.75;
}

.post-prose h2 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: clamp(22px, 2.5vw, 28px);
  letter-spacing: -0.015em;
  color: var(--text);
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
  line-height: 1.2;
}
.post-prose h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: clamp(18px, 2vw, 22px);
  letter-spacing: -0.01em;
  color: var(--text);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}
.post-prose h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-lg);
  color: var(--text);
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}

.post-prose p { margin-bottom: var(--space-4); }
.post-prose p:last-child { margin-bottom: 0; }

.post-prose strong { color: var(--text); font-weight: var(--weight-medium); }
.post-prose em { color: var(--text-secondary); font-style: italic; }

.post-prose ul,
.post-prose ol {
  padding-left: 24px;
  margin-bottom: var(--space-4);
}
.post-prose li {
  margin-bottom: var(--space-2);
  line-height: 1.65;
}

.post-prose blockquote {
  border-left: 3px solid var(--primary);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-8) 0;
  background: rgba(1, 158, 219, 0.05);
  border-radius: 0 3px 3px 0;
  font-style: italic;
  color: var(--text-secondary);
}
.post-prose blockquote p { margin-bottom: 0; }

.post-prose code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--surface-raised);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 2px;
  border: 1px solid var(--border);
}

.post-prose pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: var(--space-6);
  overflow-x: auto;
  margin: var(--space-6) 0;
}
.post-prose pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}

.post-prose img {
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
  border-radius: 3px;
  border: 1px solid var(--border);
  margin: var(--space-6) 0;
}

.post-prose hr {
  border: none;
  border-top: 1px dashed var(--border);
  margin: var(--space-12) 0;
}

.post-prose a {
  color: #34B6E8;
  text-decoration-color: rgba(52, 182, 232, 0.35);
}
.post-prose a:hover { color: #6CCDF0; }

/* ── Post Footer ─────────────────────────────────────────── */
.post-footer {
  padding: var(--space-8) 0 var(--space-12);
  border-top: 1px dashed var(--border);
  margin-top: var(--space-8);
}
.post-back-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}
.post-back-link:hover { color: var(--primary); }
.post-back-link::before { content: '←'; }

/* ── Gear post: product image card treatment ─────────────── */
.post--gear .post-prose img {
  background: #fff;
  padding: 20px;
  max-width: 420px;
  border-color: rgba(255, 255, 255, 0.12);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: 1fr; }
}
