/* === Shared styles for article pages === */

:root {
  --bg: #F7F2E8;
  --bg-alt: #F0E9DA;
  --surface: #FFFFFF;
  --text: #1F1A12;
  --text-muted: #6B5F4D;
  --accent: #2D4A3E;
  --accent-soft: #E8E0D0;
  --accent-hover: #1F362C;
  --border: #D9CFB8;
  --border-soft: #E8DFCB;
  --shadow-md: 0 4px 16px rgba(31, 26, 18, 0.06);

  --font-serif: 'Fraunces', 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  --container: 1200px;
  --article-width: 720px;
}

* { 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(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--bg); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* === Header === */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 242, 232, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.logo {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.005em;
  color: var(--text);
  line-height: 1;
  transition: color 0.2s;
}
.logo em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  margin-left: 0.3em;
}
.logo:hover { color: var(--accent); }
.nav { display: flex; gap: 32px; align-items: center; }
.nav a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav a:hover { color: var(--text); }
.nav-cta {
  background: var(--accent);
  color: var(--bg) !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
}
.nav-cta:hover { background: var(--accent-hover); }
@media (max-width: 768px) {
  .nav-link-text { display: none; }
  .nav { gap: 12px; }
}

/* === Article === */
.article {
  padding: 64px 0 96px;
}
@media (max-width: 768px) { .article { padding: 40px 0 64px; } }

.article-back {
  max-width: var(--article-width);
  margin: 0 auto 40px;
  padding: 0 24px;
}
.article-back a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.article-back a:hover { color: var(--accent); }
.article-back svg { width: 14px; height: 14px; }

.article-hero {
  max-width: var(--article-width);
  margin: 0 auto 48px;
  padding: 0 24px;
  text-align: center;
}
.article-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 999px;
  margin-bottom: 24px;
}
.article-meta {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-bottom: 24px;
}
.article-hero h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 24px;
}
.article-hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.article-lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.45;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}
@media (max-width: 640px) {
  .article-lead { font-size: 19px; }
}

.article-divider {
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin: 48px auto;
}

/* === Body === */
.article-body {
  max-width: var(--article-width);
  margin: 0 auto;
  padding: 0 24px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--text);
}
.article-body > * + * { margin-top: 24px; }
.article-body p {
  font-size: 18px;
  line-height: 1.75;
}
.article-body strong {
  font-weight: 600;
  color: var(--text);
}
.article-body em {
  font-style: italic;
}
.article-body h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-top: 56px !important;
  margin-bottom: 8px;
}
.article-body h2 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.article-body h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
  color: var(--text);
  margin-top: 40px !important;
  margin-bottom: 4px;
}
.article-body ul,
.article-body ol {
  padding-left: 28px;
}
.article-body li {
  margin-bottom: 10px;
  line-height: 1.7;
}
.article-body li::marker {
  color: var(--accent);
  font-weight: 600;
}

/* Callout box */
.callout {
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  padding: 24px 28px;
  border-radius: 0 var(--radius-md, 8px) var(--radius-md, 8px) 0;
  margin: 32px 0 !important;
}
.callout-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}
.callout p {
  margin: 0;
  font-size: 17px !important;
  line-height: 1.6 !important;
}
.callout p + p { margin-top: 12px !important; }

/* Pull quote */
.pull-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.4;
  color: var(--accent);
  padding: 32px 0;
  margin: 32px 0 !important;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

/* Table for comparisons */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0 !important;
  font-size: 15px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  overflow: hidden;
}
.article-body th,
.article-body td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}
.article-body th {
  background: var(--accent);
  color: var(--bg);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.article-body tr:last-child td { border-bottom: none; }

/* === CTA === */
.article-cta {
  max-width: var(--article-width);
  margin: 80px auto 0;
  padding: 48px 32px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 16px;
  text-align: center;
}
.article-cta-eyebrow {
  font-size: 13px;
  color: rgba(247, 242, 232, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-bottom: 16px;
}
.article-cta h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--bg);
  margin-bottom: 16px;
}
.article-cta h3 em {
  font-style: italic;
  color: #C9A961;
}
.article-cta p {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(247, 242, 232, 0.85);
  max-width: 480px;
  margin: 0 auto 32px;
}
.article-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: var(--bg);
  color: var(--accent) !important;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.article-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* === More articles === */
.more-articles {
  max-width: var(--article-width);
  margin: 80px auto 0;
  padding: 0 24px;
  border-top: 1px solid var(--border);
  padding-top: 48px;
}
.more-articles h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 24px;
  margin-bottom: 24px;
}
.more-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 640px) { .more-list { grid-template-columns: 1fr; } }
.more-item {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  transition: all 0.2s;
}
.more-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.more-item-meta {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}
.more-item h5 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.3;
  color: var(--text);
}

/* === Footer === */
footer {
  background: var(--bg);
  padding: 48px 0 32px;
  border-top: 1px solid var(--border-soft);
  margin-top: 96px;
}
.footer-simple {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-simple a:hover { color: var(--accent); }
