:root {
  --ink: #1a1815;
  --ink-soft: #2d2a25;
  --paper: #faf8f3;
  --paper-warm: #f4f0e6;
  --paper-deep: #ede7d8;
  --accent: #b35a1a;
  --accent-soft: #d27838;
  --accent-bg: #f5e8d8;
  --muted: #6b6660;
  --muted-soft: #9a948a;
  --line: #d8d2c4;
  --line-soft: #e6e0d2;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 48px; }

/* NAV */
nav {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(250, 248, 243, 0.94);
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; }
.logo-link { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-img { height: 56px; width: auto; display: block; }
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-size: 14.5px; font-weight: 500; transition: color 0.2s ease; }
.nav-links a:hover { color: var(--accent); }
.nav-cta { background: var(--accent); color: var(--paper) !important; padding: 10px 18px; border: 1px solid var(--accent); transition: all 0.25s ease; font-weight: 500 !important; }
.nav-cta:hover { background: var(--ink) !important; border-color: var(--ink); color: var(--paper) !important; }
.nav-hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; cursor: pointer; padding: 6px 4px; background: none; border: none; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--ink-soft); transition: all 0.2s ease; border-radius: 1px; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile { display: none; background: var(--paper); border-top: 1px solid var(--line); }
.nav-mobile.open { display: block; }
.nav-mobile .container { padding-top: 16px; padding-bottom: 20px; }
.nav-mobile a { display: block; padding: 13px 0; color: var(--ink-soft); text-decoration: none; font-size: 15px; font-weight: 500; border-bottom: 1px solid var(--line-soft); transition: color 0.2s ease; }
.nav-mobile a:hover { color: var(--accent); }
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile .nav-cta { display: block; text-align: center; margin-top: 12px; padding: 12px 18px; border-bottom: none; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}
@media (max-width: 820px) {
  .container { padding: 0 24px; }
  .logo-img { height: 44px; }
}

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 28px; text-decoration: none; font-size: 15px; font-weight: 500; letter-spacing: 0.01em; transition: all 0.25s ease; border: 1px solid; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--paper); }
.btn-arrow { transition: transform 0.25s ease; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* SHARED TYPOGRAPHY */
.eyebrow { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); font-weight: 500; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; display: block; width: 24px; height: 1px; background: var(--accent); }
.section-label { font-family: 'Fraunces', serif; font-style: italic; font-size: 14px; color: var(--accent); margin-bottom: 12px; font-weight: 400; }

/* FOOTER */
footer { background: var(--ink); color: var(--paper); padding: 50px 0 60px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(250,248,243,0.15); padding-top: 40px; font-size: 13px; color: rgba(250,248,243,0.6); flex-wrap: wrap; gap: 16px; }
.footer-inner a { color: rgba(250,248,243,0.85); text-decoration: none; border-bottom: 1px solid rgba(250,248,243,0.3); transition: color 0.2s ease; }
.footer-inner a:hover { color: var(--accent-soft); border-bottom-color: var(--accent-soft); }
@media (max-width: 820px) {
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ===== BLOG LISTING ===== */
.blog-header { padding: 90px 0 60px; border-bottom: 1px solid var(--line); }
.blog-header h1 { font-family: 'Fraunces', serif; font-size: clamp(36px, 5vw, 56px); line-height: 1.1; font-weight: 400; letter-spacing: -0.02em; margin-bottom: 18px; }
.blog-header p { font-size: 18px; color: var(--muted); max-width: 600px; font-weight: 300; }

.post-list { padding: 70px 0 110px; }
.post-card { display: block; text-decoration: none; color: inherit; padding: 40px 0; border-bottom: 1px solid var(--line-soft); }
.post-card:first-child { padding-top: 0; }
.post-card-meta { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-soft); margin-bottom: 14px; }
.post-card h2 { font-family: 'Fraunces', serif; font-size: clamp(24px, 3vw, 32px); line-height: 1.2; font-weight: 400; letter-spacing: -0.01em; margin-bottom: 12px; transition: color 0.2s ease; }
.post-card:hover h2 { color: var(--accent); }
.post-card p { font-size: 16px; color: var(--muted); line-height: 1.6; max-width: 640px; margin-bottom: 16px; }
.post-card .read-more { font-size: 14px; font-weight: 500; color: var(--accent); }

/* ===== ARTICLE ===== */
.article-header { padding: 80px 0 50px; border-bottom: 1px solid var(--line); }
.article-meta { font-size: 13px; color: var(--muted); margin-bottom: 24px; display: flex; gap: 10px; align-items: center; }
.article-header h1 { font-family: 'Fraunces', serif; font-size: clamp(34px, 5vw, 54px); line-height: 1.12; font-weight: 400; letter-spacing: -0.02em; margin-bottom: 20px; max-width: 820px; }
.article-header h1 em { font-style: italic; color: var(--accent); }
.article-dek { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 680px; font-weight: 300; }

.article-body { padding: 60px 0 40px; }
.article-body .prose { max-width: 680px; }
.prose h2 { font-family: 'Fraunces', serif; font-size: 30px; font-weight: 400; letter-spacing: -0.01em; line-height: 1.2; margin: 52px 0 20px; }
.prose h3 { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 500; letter-spacing: -0.005em; margin: 40px 0 14px; }
.prose p { font-size: 17px; line-height: 1.75; color: var(--ink-soft); margin-bottom: 22px; }
.prose ul, .prose ol { margin: 0 0 26px 22px; color: var(--ink-soft); }
.prose li { font-size: 17px; line-height: 1.7; margin-bottom: 12px; padding-left: 6px; }
.prose li::marker { color: var(--accent); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose blockquote { border-left: 2px solid var(--accent); padding: 4px 0 4px 26px; margin: 36px 0; font-family: 'Fraunces', serif; font-style: italic; font-size: 21px; line-height: 1.5; color: var(--ink); }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 48px 0; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--accent); }

/* Lede paragraph */
.prose .lede { font-size: 21px; line-height: 1.6; font-weight: 300; color: var(--ink); }

/* Inline stat highlight */
.stat-inline { color: var(--accent); font-weight: 600; }

/* Stat strip */
.stat-strip {
  display: flex;
  gap: 8px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  margin: 8px 0 44px;
  padding: 8px;
}
.stat-strip .stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 22px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
}
.stat-strip .stat .num { font-family: 'Fraunces', serif; font-size: 42px; font-weight: 500; color: var(--accent); letter-spacing: -0.02em; line-height: 1; }
.stat-strip .stat .label { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
@media (max-width: 560px) { .stat-strip { flex-direction: column; } }

/* Numbered pattern cards */
.pattern-list { margin: 8px 0 36px; border-top: 1px solid var(--line); }
.pattern {
  display: grid;
  grid-template-columns: 48px 52px 1fr;
  gap: 0 18px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.pattern-num { font-family: 'Fraunces', serif; font-size: 26px; font-weight: 500; color: var(--line); letter-spacing: -0.01em; line-height: 1.3; }
.pattern-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-bg);
  flex-shrink: 0;
}
.pattern-icon svg { width: 22px; height: 22px; }
.pattern-body h3 { font-family: 'Fraunces', serif; font-size: 21px; font-weight: 500; margin: 0 0 10px; }
.pattern-body p { margin: 0; }
@media (max-width: 560px) {
  .pattern { grid-template-columns: 40px 1fr; }
  .pattern-num { display: none; }
}

/* Legacy conditions grid */
.legacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 0 0 26px;
}
.legacy-item { background: var(--paper); padding: 22px 24px; }
.legacy-item .legacy-label {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Fraunces', serif; font-size: 16px; font-weight: 500; color: var(--ink);
  margin-bottom: 8px;
}
.legacy-item .legacy-label::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.legacy-item p { font-size: 15px; color: var(--muted); line-height: 1.6; margin: 0; }
@media (max-width: 640px) { .legacy-grid { grid-template-columns: 1fr; } }

.sources { margin-top: 8px; }
.sources-label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-soft); font-weight: 500; margin-bottom: 14px; }
.sources ul { margin: 0 0 0 20px; }
.sources li { font-size: 14px; line-height: 1.7; color: var(--muted); margin-bottom: 8px; padding-left: 0; }
.sources li::marker { color: var(--muted-soft); }

.article-cta { background: var(--paper-warm); border: 1px solid var(--line); padding: 44px 48px; margin: 56px 0 0; max-width: 680px; }
.article-cta h3 { font-family: 'Fraunces', serif; font-size: 24px; font-weight: 400; margin-bottom: 12px; }
.article-cta p { font-size: 15.5px; color: var(--muted); margin-bottom: 24px; line-height: 1.6; }

.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; margin: 40px 0 0; }
.back-link:hover { color: var(--accent); }

@media (max-width: 820px) {
  .blog-header { padding: 60px 0 44px; }
  .post-list { padding: 50px 0 80px; }
  .article-header { padding: 50px 0 36px; }
  .article-body { padding: 40px 0 20px; }
  .article-cta { padding: 32px 28px; }
}
