/* blog.css — blog listing + post pages */
/* Relies on CSS variables + base typography from main.css */

/* ─── Nav link variant (for Blog link in nav) ─── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link--active {
  color: var(--gold);
}

/* ─── Page wrapper ─── */
.blog-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

/* ─── Blog index header ─── */
.blog-header {
  margin-bottom: 56px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 40px;
}

.blog-header__title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--text);
  margin: 8px 0 16px;
  line-height: 1.15;
}

.blog-header__sub {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 540px;
  line-height: 1.65;
}

/* ─── Post card (index listing) ─── */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.blog-card {
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}

.blog-card:first-child {
  padding-top: 0;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-family: 'Syne', sans-serif;
}

.blog-card__dot {
  color: var(--border);
}

.blog-card__title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 400;
  margin-bottom: 12px;
  line-height: 1.3;
}

.blog-card__title a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-card__title a:hover {
  color: var(--gold);
}

.blog-card__excerpt {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.blog-card__cta {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.blog-card__cta:hover {
  color: var(--gold-light);
}

/* ─── CTA box (bottom of both pages) ─── */
.blog-cta-box {
  margin-top: 72px;
  background: var(--navy-light);
  border: 1px solid var(--border);
  padding: 40px 36px;
  text-align: center;
}

.blog-cta-box__label {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.blog-cta-box h3 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.25;
}

.blog-cta-box p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Breadcrumb ─── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  flex-wrap: wrap;
  position: static; /* override nav sticky */
  background: none;
  backdrop-filter: none;
  border: none;
  padding: 0;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--gold);
}

/* ─── Post header ─── */
.post__header {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.post__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-family: 'Syne', sans-serif;
}

.post__title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
}

/* ─── Post body typography ─── */
.post__body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}

.post__body p {
  margin-bottom: 1.5em;
}

.post__body .post-lead {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text);
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  margin-bottom: 2em;
}

.post__body h2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 400;
  color: var(--text);
  margin: 2.5em 0 0.75em;
  padding-top: 0.5em;
  border-top: 1px solid var(--border);
  line-height: 1.25;
}

.post__body h2:first-child {
  margin-top: 0;
  border-top: none;
}

.post__body h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 2em 0 0.6em;
}

.post__body ul,
.post__body ol {
  padding-left: 1.5em;
  margin-bottom: 1.5em;
}

.post__body li {
  margin-bottom: 0.5em;
  line-height: 1.7;
  color: var(--text-dim);
}

.post__body li strong {
  color: var(--text);
}

.post__body strong {
  color: var(--text);
  font-weight: 600;
}

.post__body em {
  font-style: italic;
  color: var(--text-dim);
}

/* ─── Back link ─── */
.post__back {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.post__back a {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.post__back a:hover {
  color: var(--gold);
}

/* ─── Buttons (reuse main.css .btn-primary if present, ensure it works here) ─── */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  padding: 14px 32px;
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

/* ─── Mobile ─── */
@media (max-width: 640px) {
  .blog-page {
    padding: 40px 20px 72px;
  }

  .blog-cta-box {
    padding: 28px 20px;
  }

  nav .nav-links {
    gap: 16px;
  }
}
