/* === BLOG SHARED === */
.blog-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.blog-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.blog-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font-heading);
  flex-shrink: 0;
}

.blog-nav-logo {
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.blog-nav-links {
  display: flex;
  gap: 0.25rem;
  flex: 1;
}

.blog-nav-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--fg-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.blog-nav-link:hover { background: rgba(255,255,255,0.05); color: var(--fg); }
.blog-nav-link.active { background: rgba(212,160,84,0.12); color: var(--accent); }

.blog-nav-cta { margin-left: auto; }

/* === BLOG LAYOUT === */
.blog-main { padding: 3rem 0 6rem; min-height: calc(100vh - 56px); }
.blog-inner { max-width: 720px; margin: 0 auto; padding: 0 2rem; }

/* === BLOG INDEX === */
.blog-header { text-align: center; margin-bottom: 3rem; }

.blog-header-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
  padding: 4px 12px;
  border: 1px solid rgba(212, 160, 84, 0.25);
  border-radius: 4px;
}

.blog-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 0.75rem;
}

.blog-header p {
  font-size: 1rem;
  color: var(--fg-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}

.posts-list { display: flex; flex-direction: column; gap: 1rem; }

.post-card {
  display: block;
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem 2rem;
  transition: border-color 0.2s, transform 0.2s;
}

.post-card:hover {
  border-color: rgba(212, 160, 84, 0.35);
  transform: translateY(-2px);
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.post-card-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-card-readtime {
  font-size: 0.72rem;
  color: var(--fg-dim);
  font-family: var(--font-mono);
}

.post-card-date::before { content: ''; }
.post-card-readtime::before { content: '· '; }

.post-card h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.post-card-desc {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.post-card-cta {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* === BLOG POST === */
.post-header { margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }

.post-tag-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.post-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.post-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-dim);
  text-transform: uppercase;
}

.post-date::before { content: '· '; }

.post-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.post-desc {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* === PROSE CONTENT === */
.prose {
  line-height: 1.8;
  color: var(--fg-muted);
  font-size: 0.975rem;
}

.prose h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 2.5rem 0 1rem;
}

.prose h1:first-child { margin-top: 0; }

.prose h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.prose h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg);
  margin: 1.75rem 0 0.75rem;
}

.prose .lead {
  font-size: 1.1rem;
  color: var(--fg);
  font-weight: 500;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.prose p { margin-bottom: 1rem; }
.prose p:last-child { margin-bottom: 0; }

.prose ul, .prose ol {
  margin: 0.75rem 0 1.25rem;
  padding-left: 1.5rem;
}

.prose li { margin-bottom: 0.5rem; }

.prose strong { color: var(--fg); font-weight: 600; }

.prose em { font-style: italic; }

.prose a { color: var(--accent); text-decoration: none; }
.prose a:hover { text-decoration: underline; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.875rem;
}

.prose table th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-weight: 600;
  color: var(--fg);
  font-size: 0.8rem;
}

.prose table td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  color: var(--fg-muted);
}

.prose table tr:hover td { background: rgba(255,255,255,0.02); }

.prose blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--fg-muted);
  font-style: italic;
}

/* === CTA BOX === */
.cta-box {
  background: var(--bg-card);
  border: 1px solid rgba(212, 160, 84, 0.3);
  border-radius: 12px;
  padding: 2rem;
  margin: 2.5rem 0;
  text-align: center;
}

.cta-box h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.5rem;
}

.cta-box p {
  color: var(--fg-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.btn-primary {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--accent);
  color: #0a0a0c;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease;
  border: none;
}

.btn-primary:hover { background: var(--accent-bright); }

/* === BACK LINK === */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--fg-dim);
  font-size: 0.85rem;
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.15s;
}

.back-link:hover { color: var(--fg); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .blog-nav-inner { padding: 0 1rem; gap: 1rem; }
  .blog-inner { padding: 0 1.25rem; }
  .post-card { padding: 1.25rem 1.5rem; }
  .prose table { font-size: 0.8rem; }
  .prose table th, .prose table td { padding: 0.5rem 0.75rem; }
}