/* ── Reset SPA shell constraints ─────────────────────────────────────────── */
/* styles.css sets body { height: 100dvh; overflow: hidden } for the SPA.     */
/* Blog pages are standalone — override so the page scrolls normally.         */

html, body {
  height: auto !important;
  overflow: visible !important;
  overflow-x: hidden;
}

/* ── Blog Layout ──────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

.blog-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.blog-logo .accent { color: var(--accent); }

.blog-logo:hover { opacity: 0.85; }

.blog-header-link {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--accent);
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  transition: background 0.15s;
}

.blog-header-link:hover { background: var(--accent-subtle); }

/* ── Blog Article Container ───────────────────────────────────────────────── */

.blog-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

/* ── Article Typography ───────────────────────────────────────────────────── */

.article-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.article-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin: 0 0 1.25rem;
}

.article-intro {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-style: italic;
}

.article-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
  margin: 2rem 0;
  opacity: 0.5;
}

.article-body p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin: 0 0 1.25rem;
}

.article-body h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.article-body h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  margin: 1.75rem 0 0.5rem;
}

.article-body strong { color: var(--text-primary); font-weight: 700; }

.article-body em { color: var(--text-secondary); }

.article-body a { color: var(--accent); }
.article-body a:hover { opacity: 0.8; }

/* Numbered task entries */
.task-entry {
  margin-bottom: 1.5rem;
  padding-left: 0;
}

.task-number {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
  min-width: 2rem;
}

/* ── Article Footer / CTA ─────────────────────────────────────────────────── */

.article-cta {
  background: var(--bg-surface);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 8px;
  padding: 2rem 2rem 1.75rem;
  margin-top: 3rem;
  text-align: center;
}

.article-cta p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 1.25rem;
}

.article-cta p:last-of-type { margin-bottom: 1.25rem; }

.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #0f0e0d;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.7rem 1.75rem;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.15s;
}

.cta-btn:hover { background: var(--accent-hover); color: #0f0e0d; }

/* ── Series Note ──────────────────────────────────────────────────────────── */

.article-series-note {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(201, 168, 76, 0.15);
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Blog Index ───────────────────────────────────────────────────────────── */

.blog-index-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
}

.blog-index-sub {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

.blog-article-card {
  display: block;
  background: var(--bg-surface);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.blog-article-card:hover {
  border-color: rgba(201, 168, 76, 0.45);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.blog-card-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.blog-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 0.75rem;
}

.blog-card-meta {
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}

/* ── Blog Footer ──────────────────────────────────────────────────────────── */

.blog-footer {
  margin-top: 4rem;
  padding: 1.5rem 1.5rem;
  border-top: 1px solid rgba(201, 168, 76, 0.15);
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.blog-footer a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 0.4rem;
}

.blog-footer a:hover { color: var(--accent); }

/* ── Mobile ───────────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
  .blog-container { padding: 2rem 1rem 4rem; }
  .article-title { font-size: 1.75rem; }
  .article-cta { padding: 1.5rem 1.25rem; }
}
