/* blog.css — shared by all blog pages.
   Matches the site's design system: forest (navy), cream (linen), gold,
   Playfair Display for headings, Montserrat for body. */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  --forest-50:  #edf1f7;
  --forest-100: #d3dce9;
  --forest-400: #4f72a2;
  --forest-500: #2e5287;
  --forest-700: #162d55;
  --forest-800: #11223f;
  --forest-900: #1a2f4a;
  --forest-950: #0d1b2e;

  --cream-50:  #EEE6DB;
  --cream-100: #EEE6DB;
  --cream-200: #EEE6DB;
  --cream-300: #e8dcc2;
  --cream-400: #d8c9a4;

  --gold-300: #e8c84a;
  --gold-400: #d9b830;
  --gold-500: #c4a227;
  --gold-600: #a68620;
  --gold-700: #856819;

  --ink: #1a2f4a;
  --white: #ffffff;

  --font-serif: 'Playfair Display', ui-serif, Georgia, serif;
  --font-sans: 'Montserrat', ui-sans-serif, system-ui, sans-serif;

  --shadow-soft: 0 18px 50px -24px rgba(13,27,46,0.30);
  --shadow-glow: 0 0 60px -15px rgba(196,162,39,0.5);
  --radial-glow: radial-gradient(circle at 50% 0%, rgba(196,162,39,0.20), transparent 60%);

  --max-w: 72rem;
  --max-w-prose: 44rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--cream-50);
  color: var(--ink);
  line-height: 1.7;
  font-feature-settings: 'ss01', 'cv01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--gold-300);
  color: var(--forest-900);
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--forest-900);
}

a {
  color: var(--forest-500);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* ---------- Layout ---------- */
.container-x {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: var(--max-w-prose);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header ---------- */
.blog-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(238, 230, 219, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 47, 74, 0.08);
}

.blog-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.blog-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.blog-logo img {
  height: 2.75rem;
  width: auto;
  object-fit: contain;
}

.blog-logo-text {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1rem;
  color: var(--forest-900);
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.blog-logo-sub {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-600);
}

.blog-header-home {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--forest-900);
  transition: color 0.3s ease;
}

.blog-header-home:hover {
  color: var(--gold-600);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--forest-500);
  padding: 2rem 0 0;
}

.breadcrumb a {
  color: var(--forest-500);
}

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

.breadcrumb-sep {
  color: var(--forest-400);
  opacity: 0.5;
}

.breadcrumb-current {
  color: var(--forest-900);
  font-weight: 500;
}

/* ---------- Article ---------- */
.article-hero {
  padding: 2.5rem 0 2rem;
}

.article-hero h1 {
  font-size: 2.5rem;
  line-height: 1.1;
  color: var(--forest-900);
}

@media (min-width: 640px) {
  .article-hero h1 {
    font-size: 3rem;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-700);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: '';
  height: 1px;
  width: 1.5rem;
  background: currentColor;
}

.article-body {
  padding-bottom: 3rem;
}

.article-body h2 {
  font-size: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--forest-900);
}

.article-body h3 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--forest-700);
}

.article-body p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--forest-800);
  margin-bottom: 1.25rem;
}

.article-body ul, .article-body ol {
  margin: 1.25rem 0 1.5rem 1.5rem;
}

.article-body li {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--forest-800);
  margin-bottom: 0.5rem;
}

.article-body li::marker {
  color: var(--gold-500);
}

.article-body a {
  color: var(--forest-500);
  text-decoration: underline;
  text-decoration-color: var(--gold-400);
  text-underline-offset: 3px;
  transition: color 0.3s ease;
}

.article-body a:hover {
  color: var(--gold-600);
}

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

.article-body blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  border-left: 3px solid var(--gold-400);
  background: var(--forest-50);
  border-radius: 0.75rem;
  font-style: italic;
  color: var(--forest-700);
}

/* ---------- Conclusion ---------- */
.article-conclusion {
  margin: 2.5rem 0;
  padding: 2rem 2.5rem;
  background: var(--forest-50);
  border-radius: 2rem;
  border: 1px solid rgba(26, 47, 74, 0.08);
}

.article-conclusion p {
  margin-bottom: 0;
}

/* ---------- Similar articles ---------- */
.similar-section {
  padding: 3rem 0 4rem;
  border-top: 1px solid rgba(26, 47, 74, 0.08);
}

.similar-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--forest-900);
}

.similar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .similar-list {
    grid-template-columns: 1fr 1fr;
  }
}

.similar-list a {
  display: block;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(26, 47, 74, 0.10);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.6);
  color: var(--forest-900);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.similar-list a:hover {
  border-color: rgba(26, 47, 74, 0.20);
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  color: var(--gold-600);
}

/* ---------- CTA ---------- */
.article-cta {
  margin: 2.5rem 0;
  padding: 2.5rem;
  background: var(--forest-950);
  border-radius: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.article-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--radial-glow);
  opacity: 0.6;
  pointer-events: none;
}

.article-cta h3 {
  color: var(--cream-100);
  font-size: 1.5rem;
  position: relative;
  margin-bottom: 0.75rem;
}

.article-cta p {
  color: rgba(238, 230, 219, 0.7);
  font-size: 0.95rem;
  position: relative;
  margin-bottom: 1.5rem;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  background: var(--gold-500);
  padding: 0.875rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--forest-950);
  transition: all 0.3s ease;
  position: relative;
}

.btn-gold:hover {
  background: var(--gold-400);
  box-shadow: var(--shadow-glow);
  color: var(--forest-950);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  background: var(--forest-900);
  padding: 0.875rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cream-100);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--forest-800);
  box-shadow: var(--shadow-glow);
  color: var(--cream-100);
}

/* ---------- Footer ---------- */
.blog-footer {
  background: var(--forest-950);
  color: rgba(238, 230, 219, 0.7);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.blog-footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.blog-footer p {
  font-size: 0.875rem;
  color: rgba(238, 230, 219, 0.5);
  margin-top: 1rem;
}

.blog-footer a {
  color: rgba(238, 230, 219, 0.7);
  font-size: 0.875rem;
}

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

/* ---------- Blog index ---------- */
.blog-index-hero {
  padding: 4rem 0 2rem;
  text-align: center;
}

.blog-index-hero h1 {
  font-size: 2.75rem;
  color: var(--forest-900);
}

@media (min-width: 640px) {
  .blog-index-hero h1 {
    font-size: 3.5rem;
  }
}

.blog-index-hero .eyebrow {
  justify-content: center;
}

.blog-index-hero .eyebrow::before {
  display: none;
}

.blog-index-list {
  list-style: none;
  margin: 0;
  padding: 0 0 4rem;
  max-width: 48rem;
}

.blog-index-list li {
  border-bottom: 1px solid rgba(26, 47, 74, 0.08);
}

.blog-index-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0.25rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--forest-900);
  transition: all 0.3s ease;
}

.blog-index-list a:hover {
  color: var(--gold-600);
  padding-left: 1rem;
}

.blog-index-list a::after {
  content: '→';
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--gold-500);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.blog-index-list a:hover::after {
  opacity: 1;
}
