/* ═══════════════════════════════════════════════
   MeaningVs — Ink & Paper theme
   Palette : #F5F0E8 ivoire · #1A1A1A encre · #C4A882 caramel
   Fonts   : Playfair Display (titres) · Source Serif 4 (corps)
═══════════════════════════════════════════════ */

:root {
  --bg:           #F5F0E8;
  --fg:           #1A1A1A;
  --muted:        #6B5E4E;
  --accent:       #C4A882;
  --accent-dark:  #8B6914;
  --line:         #D5CAB8;
  --soft:         #EDE6D8;
  --maxw:         820px;
  --radius:       6px;
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body { margin: 0; background: var(--bg); color: var(--fg); line-height: 1.7; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
main { min-height: 60vh; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ── Header ── */
.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0;
  background: rgba(245,240,232,.95);
  backdrop-filter: blur(6px);
  z-index: 10;
}
.site-header .wrap {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 64px; gap: 16px;
}
.logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900; font-size: 1.45rem;
  color: var(--fg); letter-spacing: -.02em;
}
.logo span { color: var(--accent); }
.site-header nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-header nav a {
  font-family: 'Source Serif 4', serif;
  color: var(--muted); font-size: .92rem; letter-spacing: .02em;
}
.site-header nav a:hover { color: var(--fg); text-decoration: none; }

/* ── Article hero (full-bleed) ── */
.article-hero {
  position: relative;
  height: 420px;
  overflow: hidden;
}
@media (max-width: 600px) { .article-hero { height: 280px; } }

.article-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.article-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,26,26,.88) 0%, rgba(26,26,26,.08) 65%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 36px clamp(18px, 5vw, 64px) 40px;
}
.article-breadcrumb {
  font-size: .8rem; color: var(--accent);
  margin-bottom: 12px; letter-spacing: .04em;
}
.article-breadcrumb a { color: var(--accent); }
.article-breadcrumb a:hover { text-decoration: underline; }

.article-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900; color: #F5F0E8;
  line-height: 1.15; max-width: 780px;
  margin: 0 0 12px;
}
.article-hero-byline {
  font-size: .85rem; color: var(--accent);
  font-style: italic; margin: 0;
}
.article-hero-byline a { color: #D5C9B8; }
.article-hero-byline a:hover { text-decoration: underline; }

/* ── Article body grid ── */
.article-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 44px 24px 64px;
}
@media (min-width: 900px) {
  .article-body {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 0;
    padding: 48px 48px 80px;
  }
  .article-main {
    padding-right: 48px;
    border-right: 1px solid var(--line);
  }
  .article-sidebar {
    padding-left: 32px;
    position: sticky;
    top: 84px;
    align-self: start;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }
}

/* ── Prose ── */
.prose { max-width: var(--maxw); }
.prose p, .prose li { font-size: 1.06rem; line-height: 1.85; }
.prose p { margin: 0 0 1.2em; }

/* Drop cap on first paragraph */
.prose > p:first-of-type::first-letter {
  font-family: 'Playfair Display', serif;
  font-size: 4.2em; font-weight: 900;
  float: left; line-height: .82;
  margin: .06em .1em 0 0;
  color: var(--accent);
}

.prose h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700;
  color: var(--fg); margin: 2em 0 .6em;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}
.prose h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; font-weight: 700;
  margin: 1.4em 0 .4em;
}
h2[id], h3[id], #faq-heading { scroll-margin-top: 84px; }
.prose a { color: var(--accent-dark); text-decoration: underline; text-decoration-color: rgba(139,105,20,.35); }
.prose a:hover { text-decoration-color: var(--accent-dark); }
.prose strong { color: var(--fg); }
.prose ul, .prose ol { padding-left: 1.4em; margin-bottom: 1.2em; }
.prose li { margin-bottom: .4em; }

/* ── Quick Answer / info / warning boxes ── */
.info-box {
  background: var(--soft);
  border-left: 4px solid var(--accent);
  padding: 18px 22px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 0 0 1.6em;
}
.info-box strong {
  display: block; margin-bottom: 6px;
  font-family: 'Playfair Display', serif;
  font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
}
.warning-box {
  background: #fdf6e3;
  border-left: 4px solid #b8860b;
  padding: 18px 22px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 0 0 1.6em;
}
.warning-box strong { display: block; margin-bottom: 6px; color: #8B6914; }

/* ── Table of Contents (sidebar) ── */
.toc { }
.toc-title {
  font-family: 'Playfair Display', serif;
  font-size: .68rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc li {
  counter-increment: toc;
  position: relative;
  padding: 7px 0 7px 34px;
  border-bottom: 1px solid var(--soft);
}
.toc li::before {
  content: counter(toc);
  position: absolute; left: 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 900;
  color: var(--line); line-height: 1; top: 4px;
}
.toc li.toc-d3 { padding-left: 44px; font-size: .88rem; }
.toc a { font-size: .87rem; color: var(--muted); line-height: 1.4; display: block; }
.toc a:hover { color: var(--fg); text-decoration: none; }

/* ── Versus / Comparison card ── */
.versus {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 12px;
  padding: 18px; border-radius: var(--radius);
  background: var(--soft);
  border: 1px solid var(--line);
  margin: 0 0 1.6em;
}
.versus-side { padding: 12px 14px; background: var(--bg); border-radius: var(--radius); }
.versus-side h3 { margin: 0 0 4px; font-family: 'Playfair Display', serif; }
.versus-side p { margin: 0; font-size: .9rem; color: var(--muted); }
.versus-vs { font-family: 'Playfair Display', serif; font-weight: 900; color: var(--accent); font-size: 1.1rem; }
.versus-verdict { grid-column: 1 / -1; margin: 4px 0 0; font-size: .93rem; }
@media (max-width: 560px) { .versus { grid-template-columns: 1fr; } .versus-vs { justify-self: center; } }

/* ── Steps ── */
ol.steps { padding-left: 1.2em; }

/* ── Tables ── */
table, .meaning-table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .96rem; }
th, td { border: 1px solid var(--line); padding: 10px 13px; text-align: left; vertical-align: top; }
th { background: var(--soft); font-family: 'Playfair Display', serif; font-size: .88rem; letter-spacing: .04em; }

/* ── FAQ ── */
.faq { margin: 2em 0; clear: both; }
#faq-heading { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; margin: 0 0 1em; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin: 8px 0; background: var(--bg); }
.faq-item summary { font-weight: 600; cursor: pointer; font-family: 'Source Serif 4', serif; }
.faq-item p { margin: 10px 0 0; font-size: .95rem; color: var(--muted); }

/* ── Hub block / Related / Author ── */
.hub-block, .related, .author-signature { clear: both; margin: 2em 0; }
.hub-block { border-top: 1px solid var(--line); padding-top: 1.2em; font-size: .93rem; color: var(--muted); }
.author-signature { border-top: 1px solid var(--line); padding-top: 1em; color: var(--muted); font-size: .88rem; font-style: italic; }

/* ── Homepage ── */
main > * + * { }

.hero-home {
  text-align: center;
  padding: 56px 24px 36px;
  border-bottom: 1px solid var(--line);
  max-width: 680px;
  margin: 0 auto;
}
.hero-home h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900; letter-spacing: -.02em;
  line-height: 1.15; margin-bottom: .4em;
}
.hero-home h1 span { color: var(--accent); font-style: italic; }
.hero-home p { color: var(--muted); font-style: italic; font-size: 1.05rem; margin: 0; }

.clusters-nav {
  padding: 28px 24px 0;
  max-width: 1100px; margin: 0 auto;
}
.clusters-nav h2 {
  font-family: 'Playfair Display', serif;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.cluster-chip {
  display: inline-block;
  border: 1px solid var(--line); background: var(--bg);
  border-radius: 999px; padding: 7px 18px;
  font-family: 'Source Serif 4', serif;
  font-size: .88rem; color: var(--muted);
  white-space: nowrap; transition: all .15s;
}
.cluster-chip:hover {
  background: var(--soft); color: var(--fg);
  border-color: var(--accent); text-decoration: none;
}

/* ── Cards grid ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px; margin: 24px 0;
}
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--bg);
  transition: box-shadow .18s, border-color .18s;
}
.card:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(196,168,130,.18); }
.card a { color: inherit; display: block; text-decoration: none; }
.card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.card h3 {
  margin: 12px 14px 6px;
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; font-weight: 700; line-height: 1.3;
}
.card p { margin: 0 14px 14px; color: var(--muted); font-size: .88rem; line-height: 1.55; }

/* ArticleCardsGrid section heading */
.cards-section { max-width: 1100px; margin: 0 auto; padding: 32px 24px 0; }
.cards-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}

/* ── SEO content block (homepage bottom) ── */
.seo-content {
  max-width: 820px; margin: 0 auto;
  padding: 48px 24px 64px;
  border-top: 1px solid var(--line);
}
.seo-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 700;
  margin: 1.8em 0 .5em;
  padding-left: 12px; border-left: 3px solid var(--accent);
}
.seo-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; font-weight: 700; margin: 1.4em 0 .4em;
}
.seo-content p { font-size: 1rem; line-height: 1.85; color: var(--muted); margin-bottom: 1em; }
.seo-content a { color: var(--accent-dark); text-decoration: underline; text-decoration-color: rgba(139,105,20,.3); }

/* ── Cluster / hub pages ── */
.hub-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 52px 24px 40px;
  border-bottom: 1px solid var(--line);
}
.hub-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 900; margin-bottom: .6em; line-height: 1.15;
}
.hub-description {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--muted);
  text-align: left;
  margin-top: 1em;
}
.hub-description em { font-style: italic; color: var(--fg); }
.hub-description.is-bio { text-align: center; font-style: italic; max-width: 56ch; margin-inline: auto; }
.hub-empty { color: var(--muted); font-style: italic; padding: 24px 0; }

/* ── All / author pages ── */
.page-header {
  max-width: 1100px; margin: 0 auto;
  padding: 36px 24px 24px;
  border-bottom: 1px solid var(--line);
}
.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 900; margin-bottom: .3em;
}
.page-header p { color: var(--muted); font-style: italic; }

/* ── All guides page ── */
.all-content {
  max-width: 1100px; margin: 0 auto;
  padding: 40px 24px 64px;
  columns: 2; gap: 48px;
}
@media (max-width: 640px) { .all-content { columns: 1; } }

.all-cluster-section {
  break-inside: avoid;
  margin-bottom: 32px;
}
.all-cluster-title {
  font-family: 'Playfair Display', serif;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.all-cluster-title a { color: var(--muted); text-decoration: none; }
.all-cluster-title a:hover { color: var(--accent-dark); }

.all-link-list { list-style: none; padding: 0; margin: 0; }
.all-link-list li { padding: 5px 0; border-bottom: 1px solid var(--soft); }
.all-link-list a { font-size: .93rem; color: var(--fg); text-decoration: none; }
.all-link-list a:hover { color: var(--accent-dark); text-decoration: underline; }

/* ── Pagination ── */
.pagination {
  display: flex; justify-content: space-between; align-items: center;
  margin: 32px 0; padding: 0 24px;
  max-width: 1100px; margin-inline: auto;
}
.pagination a, .pagination .disabled {
  font-family: 'Source Serif 4', serif;
  font-size: .9rem; color: var(--muted);
}
.pagination .disabled { opacity: .4; }
.pagination a:hover { color: var(--fg); }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 48px; padding: 28px 0;
  color: var(--muted); font-size: .88rem;
}
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }
.site-footer nav a { color: var(--muted); }
.site-footer nav a:hover { color: var(--fg); }
.site-footer .disclaimer { max-width: 60ch; font-style: italic; font-size: .82rem; }

/* ── Misc ── */
.ad-card { display: none; }
.link-list { columns: 2; gap: 24px; }
@media (max-width: 560px) { .link-list { columns: 1; } }
.breadcrumb { color: var(--muted); font-size: .85rem; margin-bottom: 12px; }
.breadcrumb a { color: var(--muted); }

/* ── Pillar callout (cluster hub) ── */
.pillar-callout {
  display: block;
  border: 1px solid var(--accent);
  border-left: 4px solid var(--accent-dark);
  background: var(--soft);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 8px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .18s ease, border-color .18s ease;
}
.pillar-callout:hover { box-shadow: 0 4px 16px rgba(196,168,130,.22); }
.pillar-eyebrow {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 8px;
}
.pillar-callout h2 { margin: 0 0 8px; font-size: 1.32rem; line-height: 1.28; }
.pillar-callout p { margin: 0 0 12px; color: var(--muted); font-size: .93rem; line-height: 1.6; }
.pillar-cta { font-size: .88rem; color: var(--accent-dark); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .article-body { padding: 28px 18px 48px; }
  .article-sidebar { margin-top: 32px; }
  .hero-home { padding: 36px 18px 24px; }
  .clusters-nav, .cards-section { padding-inline: 18px; }
}
