/* ============================================================
   AYURVEDITY — Main Stylesheet
   Aesthetic: Warm Organic Editorial · Earthy Luxury
   ============================================================ */

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --c-cream:       #F9F5EE;
  --c-parchment:   #F0E9DA;
  --c-warm-white:  #FFFDF9;
  --c-terracotta:  #B5522A;
  --c-terracotta-l:#D4744E;
  --c-amber:       #C4912D;
  --c-sage:        #5E7A58;
  --c-forest:      #3A5740;
  --c-rust:        #9B4020;
  --c-ink:         #1E1712;
  --c-ink-soft:    #3A3028;
  --c-ink-muted:   #6B5D52;
  --c-border:      #DDD4C4;
  --c-border-l:    #EDE5D8;

  /* Section accent colors */
  --c-amber-bg: #FBF3E3;
  --c-terracotta-bg: #FAF0EB;
  --c-sage-bg: #EEF3ED;
  --c-gold-bg: #FBF6E5;
  --c-rust-bg: #FAF0EB;
  --c-rose-bg: #FAF0F2;
  --c-forest-bg: #EBF0EB;
  --c-ochre-bg: #F9F4E8;
  --c-plum-bg: #F4EFF6;
  --c-moss-bg: #EDF2EC;
  --c-slate-bg: #EEEEF2;
  --c-mauve-bg: #F5EFF4;

  --ff-display: 'Cormorant Garamond', Georgia, serif;
  --ff-body:    'Jost', system-ui, sans-serif;

  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.25rem;
  --fs-xl:   1.5rem;
  --fs-2xl:  2rem;
  --fs-3xl:  2.625rem;
  --fs-4xl:  3.5rem;
  --fs-5xl:  5rem;

  --lh-tight: 1.15;
  --lh-snug:  1.35;
  --lh-base:  1.65;
  --lh-loose: 1.85;

  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(30,23,18,.07), 0 1px 2px rgba(30,23,18,.05);
  --shadow-md: 0 4px 12px rgba(30,23,18,.08), 0 2px 6px rgba(30,23,18,.05);
  --shadow-lg: 0 12px 32px rgba(30,23,18,.1), 0 4px 12px rgba(30,23,18,.07);

  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);

  --w-content: 68ch;
  --w-wide:    80rem;
  --w-narrow:  48rem;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--c-ink-soft);
  background: var(--c-cream);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; font: inherit; }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 {
  font-family: var(--ff-display);
  line-height: var(--lh-tight);
  color: var(--c-ink);
  font-weight: 400;
}

/* ── SKIP LINK ───────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -4rem; left: var(--sp-4);
  background: var(--c-ink); color: var(--c-cream);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-md);
  z-index: 1000;
  transition: top var(--transition);
}
.skip-link:focus { top: var(--sp-4); }

/* ── CONTAINER ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--w-wide);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

/* ══════════════════════════════════════════════════════════
   HEADER & NAV
   ══════════════════════════════════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(249,245,238,.94);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--c-border-l);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  max-width: var(--w-wide);
  margin-inline: auto;
  padding-inline: var(--sp-6);
  height: 4rem;
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-shrink: 0;
  text-decoration: none;
}
.logo-mark {
  color: var(--c-terracotta);
  font-size: var(--fs-lg);
  line-height: 1;
}
.logo-text {
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--c-ink);
}

.primary-nav { margin-left: auto; }
.primary-nav > ul {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  list-style: none;
}
.primary-nav > ul > li { position: relative; }
.primary-nav > ul > li > a {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-ink-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.primary-nav > ul > li > a:hover,
.primary-nav > ul > li:hover > a {
  color: var(--c-terracotta);
  background: var(--c-parchment);
}

.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + var(--sp-2));
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  background: var(--c-warm-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-2) 0;
  z-index: 200;
  list-style: none;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--c-ink-soft);
  transition: color var(--transition), background var(--transition);
}
.dropdown a:hover { color: var(--c-terracotta); background: var(--c-parchment); }

.menu-toggle {
  display: none;
  margin-left: auto;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
}
.menu-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--c-ink);
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-nav {
  display: none;
  position: fixed; inset: 0; top: 4rem;
  background: var(--c-cream);
  overflow-y: auto;
  z-index: 99;
  padding: var(--sp-6);
}
.mobile-nav.open { display: block; }
.mobile-nav li { border-bottom: 1px solid var(--c-border-l); }
.mobile-nav a {
  display: block;
  padding: var(--sp-4) 0;
  font-size: var(--fs-lg);
  font-family: var(--ff-display);
  font-weight: 400;
  color: var(--c-ink);
}

/* ══════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-24) var(--sp-6);
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(196,145,45,.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 80% 80%, rgba(181,82,42,.06) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(94,122,88,.05) 0%, transparent 55%),
    var(--c-cream);
}

/* Decorative grain overlay */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 740px;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-terracotta);
  margin-bottom: var(--sp-6);
}
.hero-eyebrow .ornament { font-size: 0.6em; opacity: 0.7; }

.hero-title {
  font-size: clamp(var(--fs-4xl), 8vw, var(--fs-5xl));
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--c-ink);
  margin-bottom: var(--sp-6);
}
.hero-title em {
  font-style: italic;
  color: var(--c-terracotta);
}

.hero-subtitle {
  font-size: var(--fs-lg);
  font-weight: 300;
  color: var(--c-ink-muted);
  line-height: var(--lh-loose);
  max-width: 46ch;
  margin-inline: auto;
  margin-bottom: var(--sp-10);
}

.hero-cta {
  display: flex;
  gap: var(--sp-4);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-ink-muted);
  animation: bob 2.5s ease-in-out infinite;
}
@keyframes bob {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--c-terracotta);
  color: var(--c-warm-white);
  border: 2px solid var(--c-terracotta);
}
.btn-primary:hover {
  background: var(--c-rust);
  border-color: var(--c-rust);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(181,82,42,.3);
}
.btn-ghost {
  background: transparent;
  color: var(--c-ink);
  border: 2px solid var(--c-border);
}
.btn-ghost:hover {
  border-color: var(--c-terracotta);
  color: var(--c-terracotta);
}
.btn-outline {
  background: transparent;
  color: var(--c-terracotta);
  border: 1.5px solid var(--c-terracotta);
}
.btn-outline:hover {
  background: var(--c-terracotta);
  color: var(--c-warm-white);
}

/* ══════════════════════════════════════════════════════════
   SECTION HEADERS
   ══════════════════════════════════════════════════════════ */
.section-header {
  text-align: center;
  max-width: 48ch;
  margin-inline: auto;
  margin-bottom: var(--sp-12);
}
.section-header h2 {
  font-size: clamp(var(--fs-2xl), 3.5vw, var(--fs-3xl));
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  margin-bottom: var(--sp-3);
}
.section-header p {
  font-size: var(--fs-md);
  color: var(--c-ink-muted);
  font-weight: 300;
}
.section-cta {
  text-align: center;
  margin-top: var(--sp-12);
}

/* ══════════════════════════════════════════════════════════
   TOPICS GRID
   ══════════════════════════════════════════════════════════ */
.section-topics {
  padding: var(--sp-20) 0;
  background: var(--c-warm-white);
}
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--sp-4);
}

.topic-card {
  display: flex;
  flex-direction: column;
  padding: var(--sp-6);
  border-radius: var(--radius-lg);
  border: 1.5px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.topic-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  filter: brightness(0.96);
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--transition);
}
.topic-card:hover::before { opacity: 1; }
.topic-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-border);
}

.topic-amber   { background: var(--c-amber-bg); }
.topic-terracotta { background: var(--c-terracotta-bg); }
.topic-sage    { background: var(--c-sage-bg); }
.topic-gold    { background: var(--c-gold-bg); }
.topic-rust    { background: var(--c-rust-bg); }
.topic-rose    { background: var(--c-rose-bg); }
.topic-forest  { background: var(--c-forest-bg); }
.topic-ochre   { background: var(--c-ochre-bg); }
.topic-plum    { background: var(--c-plum-bg); }
.topic-moss    { background: var(--c-moss-bg); }
.topic-slate   { background: var(--c-slate-bg); }
.topic-mauve   { background: var(--c-mauve-bg); }

.topic-icon {
  font-size: var(--fs-2xl);
  margin-bottom: var(--sp-3);
  color: var(--c-terracotta);
  position: relative;
}
.topic-name {
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--c-ink);
  margin-bottom: var(--sp-2);
  position: relative;
}
.topic-count {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-ink-muted);
  position: relative;
}

/* ══════════════════════════════════════════════════════════
   ARTICLE CARDS
   ══════════════════════════════════════════════════════════ */
.featured-grid,
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-6);
}
.articles-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-6);
}

.article-card {
  background: var(--c-warm-white);
  border: 1.5px solid var(--c-border-l);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: all var(--transition);
}
.article-card:hover {
  border-color: var(--c-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-category { display: flex; }
.category-badge {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-terracotta);
  background: var(--c-terracotta-bg);
  padding: 3px var(--sp-3);
  border-radius: var(--radius-full);
  transition: background var(--transition);
}
.category-badge:hover { background: rgba(181,82,42,.15); }
.card-title {
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  font-weight: 500;
  line-height: var(--lh-snug);
  color: var(--c-ink);
}
.card-title a { transition: color var(--transition); }
.card-title a:hover { color: var(--c-terracotta); }
.card-excerpt {
  font-size: var(--fs-sm);
  color: var(--c-ink-muted);
  line-height: var(--lh-base);
  flex: 1;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--c-ink-muted);
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-top: auto;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--c-border-l);
}
.read-time::before { content: '· '; }

/* ══════════════════════════════════════════════════════════
   PILLARS SECTION
   ══════════════════════════════════════════════════════════ */
.section-pillars {
  padding: var(--sp-20) 0;
  background: linear-gradient(to bottom, var(--c-parchment), var(--c-cream));
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-8);
}
.pillar {
  text-align: center;
  padding: var(--sp-8) var(--sp-6);
}
.pillar-icon {
  font-size: var(--fs-3xl);
  color: var(--c-terracotta);
  margin-bottom: var(--sp-4);
  line-height: 1;
}
.pillar h3 {
  font-family: var(--ff-display);
  font-size: var(--fs-2xl);
  font-weight: 500;
  margin-bottom: var(--sp-3);
  color: var(--c-ink);
}
.pillar p {
  font-size: var(--fs-sm);
  color: var(--c-ink-muted);
  line-height: var(--lh-loose);
  margin-bottom: var(--sp-5);
}
.pillar-link {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-terracotta);
  letter-spacing: 0.03em;
  transition: gap var(--transition);
}
.pillar-link:hover { text-decoration: underline; text-decoration-color: var(--c-terracotta); }

.section-featured, .section-recent { padding: var(--sp-20) 0; }

/* ══════════════════════════════════════════════════════════
   ARTICLE / SINGLE PAGE
   ══════════════════════════════════════════════════════════ */
.article-layout {
  max-width: var(--w-wide);
  margin-inline: auto;
  padding: var(--sp-8) var(--sp-6);
  display: grid;
  grid-template-columns: 1fr 280px;
  grid-template-rows: auto 1fr;
  gap: 0 var(--sp-10);
  align-items: start;
}
.article-layout > .breadcrumb { grid-column: 1 / -1; }

.article-header {
  margin-bottom: var(--sp-10);
  padding-bottom: var(--sp-8);
  border-bottom: 1px solid var(--c-border-l);
}
.article-category { margin-bottom: var(--sp-4); }
.article-title {
  font-size: clamp(var(--fs-3xl), 4vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--c-ink);
  margin-bottom: var(--sp-5);
}
.article-lead {
  font-size: var(--fs-lg);
  font-weight: 300;
  color: var(--c-ink-muted);
  line-height: var(--lh-loose);
  max-width: 58ch;
  margin-bottom: var(--sp-5);
}
.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-ink-muted);
}
.article-meta .sep { color: var(--c-border); }
.article-topic { color: var(--c-sage); }

/* Table of Contents */
.toc {
  background: var(--c-parchment);
  border-left: 3px solid var(--c-amber);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--sp-5) var(--sp-6);
  margin-bottom: var(--sp-8);
}
.toc-title {
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-ink-muted);
  margin-bottom: var(--sp-4);
}
.toc nav ul { list-style: none; }
.toc nav ul li { margin-bottom: var(--sp-2); }
.toc nav a {
  font-size: var(--fs-sm);
  color: var(--c-ink-soft);
  transition: color var(--transition);
}
.toc nav a:hover { color: var(--c-terracotta); }
.toc nav ul ul { margin-top: var(--sp-2); margin-left: var(--sp-4); }
.toc nav ul ul li { margin-bottom: var(--sp-1); }
.toc nav ul ul a { color: var(--c-ink-muted); font-size: var(--fs-xs); }

/* Article prose */
.article-content {
  font-size: var(--fs-md);
  line-height: var(--lh-loose);
  color: var(--c-ink-soft);
  max-width: var(--w-content);
}
.article-content h2 {
  font-size: clamp(var(--fs-2xl), 3vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  margin-top: var(--sp-12);
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--c-border-l);
}
.article-content h3 {
  font-size: var(--fs-xl);
  font-weight: 500;
  color: var(--c-ink);
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-4);
}
.article-content h4 {
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--c-ink);
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-3);
}
.article-content p { margin-bottom: var(--sp-5); }
.article-content p:last-child { margin-bottom: 0; }
.article-content strong { color: var(--c-ink); font-weight: 600; }
.article-content em { font-style: italic; }
.article-content a {
  color: var(--c-terracotta);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(181,82,42,.3);
  transition: text-decoration-color var(--transition);
}
.article-content a:hover { text-decoration-color: var(--c-terracotta); }

.article-content ul,
.article-content ol {
  margin-bottom: var(--sp-5);
  padding-left: var(--sp-5);
}
.article-content ul { list-style: none; }
.article-content ul li {
  position: relative;
  padding-left: var(--sp-5);
  margin-bottom: var(--sp-3);
}
.article-content ul li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--c-terracotta);
  font-size: 0.6em;
  top: 0.35em;
}
.article-content ol { list-style: decimal; }
.article-content ol li { margin-bottom: var(--sp-3); padding-left: var(--sp-2); }

.article-content blockquote {
  border-left: 3px solid var(--c-amber);
  padding: var(--sp-4) var(--sp-6);
  margin: var(--sp-8) 0;
  background: var(--c-parchment);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  font-style: italic;
  color: var(--c-ink);
  line-height: var(--lh-snug);
}

/* Tables */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-8) 0;
  font-size: var(--fs-sm);
  overflow-x: auto;
  display: block;
}
.article-content thead tr {
  background: var(--c-parchment);
  border-bottom: 2px solid var(--c-border);
}
.article-content th {
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  font-weight: 600;
  color: var(--c-ink);
  letter-spacing: 0.04em;
}
.article-content td {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--c-border-l);
  color: var(--c-ink-soft);
  vertical-align: top;
}
.article-content tr:last-child td { border-bottom: none; }
.article-content tr:hover td { background: rgba(249,245,238,.5); }

/* Article footer */
.article-footer {
  margin-top: var(--sp-12);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--c-border-l);
}
.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
}
.tags-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-ink-muted);
}
.tag {
  font-size: var(--fs-xs);
  color: var(--c-ink-muted);
  background: var(--c-parchment);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-full);
  border: 1px solid var(--c-border-l);
}
.article-disclaimer {
  background: var(--c-parchment);
  border-radius: var(--radius-md);
  padding: var(--sp-4) var(--sp-5);
  font-size: var(--fs-xs);
  color: var(--c-ink-muted);
  line-height: var(--lh-base);
}

/* ── SIDEBAR ──────────────────────────────────────────────── */
.article-sidebar {
  position: sticky;
  top: calc(4rem + var(--sp-6));
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  padding-top: var(--sp-4);
}
.sidebar-section {
  background: var(--c-warm-white);
  border: 1.5px solid var(--c-border-l);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
}
.sidebar-section h3 {
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-ink-muted);
  margin-bottom: var(--sp-4);
}
.section-links li { border-bottom: 1px solid var(--c-border-l); }
.section-links li:last-child { border-bottom: none; }
.section-links a {
  display: block;
  padding: var(--sp-2) 0;
  font-size: var(--fs-sm);
  color: var(--c-ink-soft);
  transition: color var(--transition);
}
.section-links li.active a { color: var(--c-terracotta); font-weight: 500; }
.section-links a:hover,
.see-all { color: var(--c-terracotta) !important; }
.see-all { font-size: var(--fs-xs); font-weight: 500; padding-top: var(--sp-3); }
.related-sections { display: flex; flex-direction: column; gap: var(--sp-2); }
.related-sections a {
  font-size: var(--fs-sm);
  color: var(--c-ink-muted);
  padding: var(--sp-1) 0;
  transition: color var(--transition);
}
.related-sections a:hover { color: var(--c-terracotta); }

/* ── RELATED ARTICLES ─────────────────────────────────────── */
.related-articles {
  padding: var(--sp-16) 0;
  background: var(--c-parchment);
  margin-top: var(--sp-12);
}
.related-articles h2 {
  font-family: var(--ff-display);
  font-size: var(--fs-2xl);
  font-weight: 400;
  color: var(--c-ink);
  margin-bottom: var(--sp-8);
}
.related-articles .articles-grid { gap: var(--sp-5); }

/* ══════════════════════════════════════════════════════════
   SECTION LIST PAGE
   ══════════════════════════════════════════════════════════ */
.section-layout {
  max-width: var(--w-wide);
  margin-inline: auto;
  padding: var(--sp-8) var(--sp-6) var(--sp-20);
}
.section-page-header {
  max-width: 60ch;
  margin-bottom: var(--sp-12);
}
.section-page-title {
  font-size: clamp(var(--fs-3xl), 5vw, 3.5rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--c-ink);
  margin-bottom: var(--sp-4);
}
.section-page-desc {
  font-size: var(--fs-lg);
  font-weight: 300;
  color: var(--c-ink-muted);
  line-height: var(--lh-loose);
  margin-bottom: var(--sp-5);
}
.section-page-intro {
  font-size: var(--fs-base);
  color: var(--c-ink-muted);
  line-height: var(--lh-base);
  margin-bottom: var(--sp-5);
  max-width: 60ch;
}
.section-stats {
  display: flex;
  gap: var(--sp-4);
}
.stat {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-terracotta);
  background: var(--c-terracotta-bg);
  padding: var(--sp-1) var(--sp-4);
  border-radius: var(--radius-full);
}

/* ══════════════════════════════════════════════════════════
   BREADCRUMB
   ══════════════════════════════════════════════════════════ */
.breadcrumb {
  margin-bottom: var(--sp-6);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  list-style: none;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-ink-muted);
}
.breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-left: var(--sp-2);
  color: var(--c-border);
}
.breadcrumb a { color: var(--c-ink-muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--c-terracotta); }
.breadcrumb [aria-current="page"] { color: var(--c-ink-soft); }

/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--c-ink);
  color: rgba(249,245,238,.75);
  padding-top: var(--sp-16);
}
.footer-inner {
  max-width: var(--w-wide);
  margin-inline: auto;
  padding: 0 var(--sp-6) var(--sp-12);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--sp-16);
}
.footer-brand .site-logo { margin-bottom: var(--sp-4); }
.footer-brand .logo-text { color: var(--c-cream); }
.footer-brand .logo-mark { color: var(--c-amber); }
.footer-tagline {
  font-size: var(--fs-sm);
  font-style: italic;
  font-family: var(--ff-display);
  color: rgba(249,245,238,.5);
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
}
.footer-col h3 {
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-amber);
  margin-bottom: var(--sp-4);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: var(--sp-2); }
.footer-col a {
  font-size: var(--fs-sm);
  color: rgba(249,245,238,.6);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--c-cream); }
.footer-bottom {
  border-top: 1px solid rgba(249,245,238,.1);
  padding: var(--sp-6);
  max-width: var(--w-wide);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: center;
}
.footer-disclaimer {
  font-size: var(--fs-xs);
  color: rgba(249,245,238,.4);
  line-height: var(--lh-base);
  max-width: 70ch;
  flex: 1;
}
.footer-copy {
  font-size: var(--fs-xs);
  color: rgba(249,245,238,.35);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
    display: none; /* hidden on mobile/tablet — accessible via breadcrumb */
  }
  .footer-inner { grid-template-columns: 1fr; gap: var(--sp-8); }
  .footer-nav { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --fs-base: 0.9375rem; }

  .primary-nav { display: none; }
  .menu-toggle { display: flex; }

  .hero { min-height: 85vh; padding: var(--sp-16) var(--sp-5); }
  .hero-title { font-size: clamp(var(--fs-3xl), 10vw, var(--fs-4xl)); }
  .hero-cta { flex-direction: column; align-items: center; }

  .topics-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
  .topic-card { padding: var(--sp-4); }

  .featured-grid, .articles-grid, .articles-list { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }

  .footer-nav { grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .section-layout { padding: var(--sp-6) var(--sp-4) var(--sp-16); }
  .article-layout { padding: var(--sp-5) var(--sp-4); }
}

@media (max-width: 480px) {
  .topics-grid { grid-template-columns: 1fr 1fr; }
  .footer-nav { grid-template-columns: 1fr; }
  .hero-subtitle { font-size: var(--fs-base); }
}

/* ══════════════════════════════════════════════════════════
   UTILITY
   ══════════════════════════════════════════════════════════ */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
*:focus-visible {
  outline: 2px solid var(--c-terracotta);
  outline-offset: 3px;
  border-radius: 3px;
}


/* ══════════════════════════════════════════════════════════
   404 PAGE
   ══════════════════════════════════════════════════════════ */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: var(--sp-20) var(--sp-6);
}
.error-inner {
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
}
.error-mark {
  font-size: var(--fs-3xl);
  color: var(--c-terracotta);
  opacity: 0.5;
  margin-bottom: var(--sp-4);
}
.error-code {
  font-family: var(--ff-display);
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--c-terracotta);
  margin-bottom: var(--sp-4);
}
.error-title {
  font-family: var(--ff-display);
  font-size: var(--fs-2xl);
  font-weight: 400;
  color: var(--c-ink);
  margin-bottom: var(--sp-4);
}
.error-message {
  font-size: var(--fs-md);
  color: var(--c-ink-muted);
  line-height: var(--lh-loose);
  margin-bottom: var(--sp-8);
}
.error-cta {
  display: flex;
  gap: var(--sp-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--sp-10);
}
.error-suggestions {
  padding-top: var(--sp-8);
  border-top: 1px solid var(--c-border-l);
}
.error-suggestions-label {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-ink-muted);
  margin-bottom: var(--sp-4);
}
.error-suggestions ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2) var(--sp-3);
}
.error-suggestions a {
  font-size: var(--fs-sm);
  color: var(--c-terracotta);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-full);
  background: var(--c-terracotta-bg);
  transition: all var(--transition);
}
.error-suggestions a:hover {
  background: var(--c-terracotta);
  color: var(--c-warm-white);
}
