/* ==============================================
   LUSTRE BLOG — blog.css
   www.simplylustre.com/blog
   Extends ../styles.css (must be loaded first)
   ============================================== */

/* ---- Blog-specific nav overrides ---- */
.blog-nav-links a.active {
  color: var(--graphite);
  background: var(--haze);
}

/* =============================================
   BLOG INDEX — hero
   ============================================= */
.blog-hero {
  padding: 80px 0 72px;
  background: linear-gradient(180deg, var(--off-white) 0%, #fff 100%);
  border-bottom: 1px solid var(--smoke);
  text-align: center;
}

.blog-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: var(--frost-mint);
  border: 1px solid var(--sage);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--deep-forest);
  margin-bottom: 24px;
}

.blog-hero h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--graphite);
  margin-bottom: 16px;
}

.blog-hero-sub {
  font-size: 1.0625rem;
  color: var(--slate);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* =============================================
   BLOG INDEX — featured post
   ============================================= */
.blog-featured {
  padding: 72px 0 0;
}

.blog-featured-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 24px;
}

.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  background: var(--haze);
  border: 1px solid var(--smoke);
  border-radius: 16px;
  overflow: hidden;
  padding: 56px;
}

@media (max-width: 768px) {
  .featured-card {
    grid-template-columns: 1fr;
    padding: 36px 28px;
    gap: 32px;
  }
}

.featured-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 0.8125rem;
  color: var(--mist);
}

.featured-card-category {
  display: inline-block;
  padding: 3px 10px;
  background: var(--frost-mint);
  color: var(--deep-forest);
  font-weight: 600;
  font-size: 0.75rem;
  border-radius: 100px;
}

.featured-card h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--graphite);
  margin-bottom: 16px;
}

.featured-card-excerpt {
  font-size: 1rem;
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: 28px;
}

.featured-card-visual {
  background: var(--deep-forest);
  border-radius: 12px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.featured-card-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(61,122,95,0.6) 0%, transparent 60%);
}

.featured-visual-quote {
  position: relative;
  z-index: 1;
  text-align: center;
}

.featured-visual-quote .quote-mark {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 5rem;
  line-height: 0.8;
  color: var(--frost-mint);
  opacity: 0.6;
  display: block;
  margin-bottom: 16px;
}

.featured-visual-quote p {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.25rem;
  color: #fff;
  line-height: 1.5;
  font-style: italic;
}

/* =============================================
   BLOG INDEX — post grid
   ============================================= */
.blog-posts {
  padding: 64px 0 96px;
}

.blog-posts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}

.blog-posts-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 900px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .post-grid { grid-template-columns: 1fr; }
}

.post-card {
  border: 1px solid var(--smoke);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 150ms ease, border-color 150ms ease;
  background: #fff;
}

.post-card:hover {
  box-shadow: 0 8px 32px rgba(26,51,41,0.1);
  border-color: var(--sage);
}

.post-card-thumb {
  height: 180px;
  background: var(--deep-forest);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-card-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 60% 60%, rgba(61,122,95,0.5) 0%, transparent 70%);
}

.post-card-thumb-label {
  position: relative;
  z-index: 1;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 2.5rem;
  color: rgba(200,245,215,0.3);
  font-style: italic;
  text-align: center;
  padding: 0 20px;
}

.post-card-body {
  padding: 24px;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--mist);
  margin-bottom: 12px;
}

.post-card-category {
  display: inline-block;
  padding: 2px 8px;
  background: var(--frost-mint);
  color: var(--deep-forest);
  font-weight: 600;
  font-size: 0.7rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.post-card h3 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--graphite);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.post-card-excerpt {
  font-size: 0.9rem;
  color: var(--slate);
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--emerald);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 120ms ease, gap 120ms ease;
}

.post-card-link:hover {
  color: var(--deep-forest);
  gap: 10px;
}

/* Coming soon placeholder cards */
.post-card.post-card-placeholder {
  opacity: 0.45;
  pointer-events: none;
}

.post-card-placeholder .post-card-thumb {
  background: var(--smoke);
}

.post-card-placeholder .post-card-thumb::before { display: none; }

/* =============================================
   BLOG INDEX — newsletter strip
   ============================================= */
.blog-newsletter {
  background: var(--deep-forest);
  padding: 72px 0;
}

.blog-newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 768px) {
  .blog-newsletter-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
}

.blog-newsletter h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.blog-newsletter p {
  font-size: 0.9375rem;
  color: #94A3B8;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  gap: 12px;
}

@media (max-width: 480px) {
  .newsletter-form { flex-direction: column; }
}

.newsletter-input {
  flex: 1;
  padding: 12px 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: #fff;
  font-size: 0.9375rem;
  font-family: inherit;
  outline: none;
  transition: border-color 150ms ease, background 150ms ease;
}

.newsletter-input::placeholder { color: #64748B; }

.newsletter-input:focus {
  border-color: var(--sage);
  background: rgba(255,255,255,0.12);
}

.newsletter-small {
  margin-top: 10px;
  font-size: 0.8rem;
  color: #475569;
}

/* =============================================
   ARTICLE PAGE — layout
   ============================================= */
.article-hero {
  padding: 72px 0 56px;
  background: linear-gradient(180deg, var(--off-white) 0%, #fff 100%);
  border-bottom: 1px solid var(--smoke);
}

.article-hero-inner {
  max-width: 820px;
  margin: 0 auto;
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--mist);
  margin-bottom: 32px;
}

.article-breadcrumb a {
  color: var(--slate);
  transition: color 120ms ease;
}

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

.article-breadcrumb-sep {
  color: var(--smoke);
}

.article-hero-category {
  display: inline-block;
  padding: 4px 12px;
  background: var(--frost-mint);
  color: var(--deep-forest);
  font-weight: 600;
  font-size: 0.75rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.article-hero h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--graphite);
  margin-bottom: 20px;
}

.article-hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.875rem;
  color: var(--mist);
  flex-wrap: wrap;
}

.article-hero-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* =============================================
   ARTICLE PAGE — body
   ============================================= */
.article-layout {
  padding: 64px 0 96px;
}

.article-layout-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 80px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 960px) {
  .article-layout-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* ---- Article prose ---- */
.article-body {
  max-width: 680px;
}

.article-body p {
  font-size: 1.0625rem;
  color: var(--slate);
  line-height: 1.8;
  margin-bottom: 24px;
}

.article-body h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 400;
  color: var(--graphite);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-top: 48px;
  margin-bottom: 16px;
}

.article-body h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--graphite);
  line-height: 1.4;
  margin-top: 32px;
  margin-bottom: 10px;
}

.article-body ul,
.article-body ol {
  margin-bottom: 24px;
  padding-left: 0;
}

.article-body ul li,
.article-body ol li {
  font-size: 1.0625rem;
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: 10px;
  padding-left: 28px;
  position: relative;
  list-style: none;
}

.article-body ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--emerald);
  font-weight: 700;
  font-size: 0.875rem;
  top: 3px;
}

.article-body ol {
  counter-reset: article-ol;
}

.article-body ol li {
  counter-increment: article-ol;
}

.article-body ol li::before {
  content: counter(article-ol);
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  background: var(--deep-forest);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
}

.article-body strong { color: var(--graphite); font-weight: 600; }

.article-body a {
  color: var(--emerald);
  text-decoration: underline;
  text-decoration-color: rgba(61,122,95,0.3);
  transition: color 120ms ease, text-decoration-color 120ms ease;
}

.article-body a:hover {
  color: var(--deep-forest);
  text-decoration-color: var(--deep-forest);
}

/* Pull quote */
.article-pullquote {
  border-left: 3px solid var(--emerald);
  padding: 4px 0 4px 28px;
  margin: 36px 0;
}

.article-pullquote p {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.25rem !important;
  font-style: italic;
  color: var(--graphite) !important;
  line-height: 1.5 !important;
  margin-bottom: 0 !important;
}

/* Callout box */
.article-callout {
  background: var(--haze);
  border: 1px solid var(--smoke);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 32px 0;
}

.article-callout-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--emerald);
  margin-bottom: 10px;
}

.article-callout p {
  font-size: 0.9375rem !important;
  margin-bottom: 0 !important;
}

/* Numbered section heading */
.article-section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--deep-forest);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
  margin-right: 12px;
  vertical-align: middle;
  position: relative;
  top: -3px;
  font-family: 'Inter', sans-serif;
}

/* In-article CTA box */
.article-cta-box {
  background: linear-gradient(135deg, var(--deep-forest) 0%, #264d3b 100%);
  border-radius: 16px;
  padding: 40px 36px;
  margin: 48px 0;
  text-align: center;
}

.article-cta-box h3 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.article-cta-box p {
  font-size: 0.9375rem !important;
  color: #94A3B8 !important;
  margin-bottom: 24px !important;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.article-cta-box .btn {
  display: inline-flex;
}

.article-cta-small {
  margin-top: 12px !important;
  font-size: 0.8rem !important;
  color: #475569 !important;
  margin-bottom: 0 !important;
}

/* ---- Article sidebar ---- */
.article-sidebar {
  position: sticky;
  top: 88px;
}

.sidebar-card {
  background: var(--haze);
  border: 1px solid var(--smoke);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-card-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--emerald);
  margin-bottom: 16px;
}

.sidebar-toc {
  list-style: none;
}

.sidebar-toc li {
  margin-bottom: 0;
}

.sidebar-toc a {
  display: block;
  padding: 7px 0;
  font-size: 0.875rem;
  color: var(--slate);
  border-bottom: 1px solid var(--smoke);
  transition: color 120ms ease, padding-left 120ms ease;
}

.sidebar-toc li:last-child a { border-bottom: none; }

.sidebar-toc a:hover {
  color: var(--deep-forest);
  padding-left: 6px;
}

.sidebar-cta {
  background: var(--deep-forest);
  border: none;
  color: #fff;
  padding: 28px;
  text-align: center;
}

.sidebar-cta .sidebar-card-title { color: var(--sage); }

.sidebar-cta h3 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 10px;
}

.sidebar-cta p {
  font-size: 0.875rem;
  color: #94A3B8;
  line-height: 1.6;
  margin-bottom: 20px;
}

.sidebar-cta .btn {
  width: 100%;
  justify-content: center;
}

/* =============================================
   ARTICLE — footer section
   ============================================= */
.article-footer-cta {
  background: var(--haze);
  border-top: 1px solid var(--smoke);
  padding: 72px 0;
  text-align: center;
}

.article-footer-cta h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 400;
  color: var(--graphite);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.article-footer-cta p {
  font-size: 1.0625rem;
  color: var(--slate);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .article-hero { padding: 48px 0 40px; }
  .article-layout { padding: 40px 0 64px; }
  .blog-featured { padding: 48px 0 0; }
  .blog-posts { padding: 48px 0 72px; }
}
