/* ============================================================
   THE SOUL SYNC STORIES — Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,500;1,9..144,600&family=Inter:wght@300;400;500;600&display=swap');

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  /* Brand Palette */
  --deep-moss:   #2D3A27;
  --warm-sand:   #E6D5B8;
  --muted-clay:  #B07D62;
  --cloud-blue:  #A8B9C0;

  /* Light Mode Semantics */
  --bg-primary:    #EAE0CC;
  --bg-secondary:  #F2EAD8;
  --bg-card:       #E2D3B4;
  --bg-card-hover: #DAC9A4;
  --text-primary:  #2D3A27;
  --text-secondary:#52614A;
  --text-muted:    #8A9A7C;
  --border:        rgba(45, 58, 39, 0.13);
  --shadow-sm:     0 2px 12px rgba(45, 58, 39, 0.07);
  --shadow-md:     0 6px 28px rgba(45, 58, 39, 0.10);
  --shadow-lg:     0 12px 48px rgba(45, 58, 39, 0.14);

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

  /* Spacing scale */
  --sp-1: 0.375rem;
  --sp-2: 0.75rem;
  --sp-3: 1.25rem;
  --sp-4: 2rem;
  --sp-5: 3.25rem;
  --sp-6: 5.5rem;

  /* Layout */
  --nav-h:       72px;
  --max-w:       1280px;
  --content-w:   720px;
  --gutter:      clamp(1.25rem, 4vw, 2.5rem);

  /* Radii */
  --r-sm:  4px;
  --r-md:  10px;
  --r-lg:  18px;
  --r-xl:  28px;
  --r-pill: 100px;

  /* Transitions */
  --ease:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --t-fast:    0.18s var(--ease);
  --t-base:    0.30s var(--ease);
  --t-slow:    0.55s var(--ease);
}

[data-theme="dark"] {
  --bg-primary:    #1B2219;
  --bg-secondary:  #212919;
  --bg-card:       #252D22;
  --bg-card-hover: #2C362A;
  --text-primary:  #E6D5B8;
  --text-secondary:#B0A48A;
  --text-muted:    #6E6452;
  --border:        rgba(230, 213, 184, 0.09);
  --shadow-sm:     0 2px 12px rgba(0, 0, 0, 0.25);
  --shadow-md:     0 6px 28px rgba(0, 0, 0, 0.35);
  --shadow-lg:     0 12px 48px rgba(0, 0, 0, 0.45);
}

/* ============================================================
   RESET
   ============================================================ */
*, *::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);
  font-size: 1rem;
  line-height: 1.7;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  transition: background-color var(--t-base), color var(--t-base);
}

img, svg { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
a { color: var(--muted-clay); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--text-primary); }
[data-theme="dark"] a:hover { color: var(--warm-sand); }
ul, ol { list-style: none; }
p:not(:last-child) { margin-bottom: 1.25rem; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  line-height: 1.15;
  letter-spacing: -0.018em;
  color: var(--text-primary);
}
h1 { font-size: clamp(2.4rem, 5vw, 4.25rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

main { padding-top: var(--nav-h); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* ============================================================
   NOISE TEXTURE OVERLAY
   ============================================================ */
.noise::after {
  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.07'/%3E%3C/svg%3E");
  background-size: 220px;
  pointer-events: none;
  border-radius: inherit;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 200;
  height: var(--nav-h);
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  transition: background-color var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}
.nav.scrolled { box-shadow: var(--shadow-sm); }

.nav__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.nav__logo {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  white-space: nowrap;
  transition: color var(--t-fast);
}
.nav__logo:hover { color: var(--muted-clay); }
.nav__logo em { font-style: italic; color: var(--muted-clay); }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.nav__links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  padding-block-end: 2px;
}
.nav__links a::after {
  content: '';
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  width: 0;
  height: 1px;
  background: var(--muted-clay);
  transition: width var(--t-base);
}
.nav__links a:hover,
.nav__links a.active { color: var(--text-primary); }
.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: var(--sp-2); }

/* Theme toggle */
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent; color: var(--text-muted);
  transition: all var(--t-fast);
}
.theme-toggle:hover {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--text-muted);
}
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Mobile hamburger */
.nav__hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px;
}
.nav__hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-primary);
  transition: transform var(--t-base), opacity var(--t-base);
  border-radius: 2px;
}

@media (max-width: 760px) {
  .nav__links {
    display: none; position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--bg-primary); flex-direction: column;
    padding: var(--sp-3) var(--gutter) var(--sp-4);
    gap: var(--sp-3); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav__links.open { display: flex; }
  .nav__hamburger { display: flex; }
  .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); }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.6rem; border-radius: var(--r-pill);
  font-family: var(--font-sans); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  border: none; transition: all var(--t-base); white-space: nowrap;
}

.btn-primary {
  background: var(--muted-clay); color: #fff;
}
.btn-primary:hover {
  background: #9C6D52; color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(176, 125, 98, 0.38);
}

.btn-outline {
  background: transparent; color: var(--text-primary);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--text-secondary);
  background: var(--bg-card);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent; color: var(--muted-clay);
  padding: 0; border-radius: 0; text-transform: none;
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0; gap: 0.35rem;
}
.btn-ghost:hover { color: var(--text-primary); gap: 0.6rem; }
.btn-ghost svg { transition: transform var(--t-base); }
.btn-ghost:hover svg { transform: translateX(3px); }

/* ============================================================
   TAG / BADGE
   ============================================================ */
.tag {
  display: inline-block;
  padding: 0.22rem 0.72rem;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.11em; text-transform: uppercase;
  background: var(--cloud-blue); color: var(--deep-moss);
}
[data-theme="dark"] .tag {
  background: rgba(168, 185, 192, 0.18); color: var(--cloud-blue);
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-eyebrow {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted-clay); margin-bottom: var(--sp-2);
}
.section-eyebrow::before {
  content: ''; display: block;
  width: 26px; height: 1px; background: var(--muted-clay);
}
.section-subtitle {
  font-size: 1.05rem; color: var(--text-secondary);
  line-height: 1.7; max-width: 520px; margin-top: var(--sp-2);
}

/* ============================================================
   ARTICLE CARD
   ============================================================ */
.article-card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  text-decoration: none;
}
.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  color: inherit;
}

.article-card__visual {
  aspect-ratio: 16 / 9;
  position: relative; overflow: hidden;
}
.article-card__visual > * { position: absolute; inset: 0; }

.article-card__body {
  padding: var(--sp-3);
  display: flex; flex-direction: column; flex: 1; gap: 0.6rem;
}

.article-card__meta {
  display: flex; align-items: center;
  gap: 0.5rem; font-size: 0.72rem;
  color: var(--text-muted); flex-wrap: wrap;
}
.article-card__meta-dot {
  display: inline-block; width: 3px; height: 3px;
  border-radius: 50%; background: var(--text-muted);
}

.article-card__title {
  font-family: var(--font-serif);
  font-size: 1.1rem; font-weight: 600;
  color: var(--text-primary); line-height: 1.35;
  transition: color var(--t-fast);
}
.article-card:hover .article-card__title { color: var(--muted-clay); }

.article-card__excerpt {
  font-size: 0.875rem; color: var(--text-secondary);
  line-height: 1.65; flex: 1;
}

.article-card__cta {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: var(--sp-2); margin-top: var(--sp-2);
  border-top: 1px solid var(--border);
  font-size: 0.8rem; font-weight: 500;
  color: var(--muted-clay);
}
.article-card__cta svg {
  transition: transform var(--t-base);
}
.article-card:hover .article-card__cta svg { transform: translateX(4px); }

/* Card gradient visuals */
.v1 { background: linear-gradient(145deg, #2D3A27 0%, #455C3C 45%, #A8B9C0 100%); }
.v2 { background: linear-gradient(145deg, #1E2E3A 0%, #2D3A27 50%, #B07D62 100%); }
.v3 { background: linear-gradient(145deg, #3D2B1E 0%, #B07D62 55%, #E6D5B8 100%); }
.v4 { background: linear-gradient(145deg, #192929 0%, #A8B9C0 55%, #E0D4C0 100%); }
.v5 { background: linear-gradient(145deg, #2D3A27 0%, #6B9E8A 60%, #A8B9C0 100%); }
.v6 { background: linear-gradient(145deg, #1A2B1A 0%, #2D3A27 35%, #4A8050 100%); }
.v7 { background: linear-gradient(145deg, #252038 0%, #3E3868 50%, #A8B9C0 100%); }
.v8 { background: linear-gradient(145deg, #3C2522 0%, #B07D62 48%, #A8B9C0 100%); }

/* ============================================================
   ARTICLES GRIDS
   ============================================================ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
@media (max-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .articles-grid { grid-template-columns: 1fr; }
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}
.featured-grid .article-card--lg .article-card__visual { aspect-ratio: 16/10; }
.featured-grid .article-card--lg .article-card__title { font-size: 1.35rem; }
@media (max-width: 820px) {
  .featured-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   HOME HERO
   ============================================================ */
.hero {
  padding-block: var(--sp-6) var(--sp-5);
  min-height: calc(100vh - var(--nav-h));
  display: flex; align-items: center;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.hero__eyebrow {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--muted-clay);
  margin-bottom: var(--sp-3);
}
.hero__eyebrow::before {
  content: ''; display: block;
  width: 28px; height: 1px; background: var(--muted-clay);
}
.hero__title {
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 700; line-height: 1.06;
  letter-spacing: -0.028em; margin-bottom: var(--sp-3);
}
.hero__title em { font-style: italic; color: var(--muted-clay); }
.hero__lead {
  font-size: 1.1rem; color: var(--text-secondary);
  line-height: 1.72; max-width: 460px;
  margin-bottom: var(--sp-4);
}
.hero__actions {
  display: flex; align-items: center;
  gap: var(--sp-3); flex-wrap: wrap;
}
.hero__stat {
  display: flex; align-items: baseline; gap: 0.4rem;
}
.hero__stat-num {
  font-family: var(--font-serif);
  font-size: 2rem; font-weight: 700; color: var(--text-primary);
}
.hero__stat-label {
  font-size: 0.75rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.hero__stats {
  display: flex; gap: var(--sp-4);
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}

/* Hero featured card */
.hero__card {
  position: relative;
  border-radius: var(--r-xl); overflow: hidden;
  aspect-ratio: 4/5;
  cursor: pointer;
}
.hero__card-bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #2D3A27 0%, #3E5C38 30%, #A8B9C0 70%, #B07D62 100%);
}
.hero__card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,28,18,0.88) 0%, rgba(20,28,18,0.2) 55%, transparent 100%);
}
.hero__card-body {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: var(--sp-4);
}
.hero__card-eyebrow {
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--cloud-blue);
  opacity: 0.8; margin-bottom: 0.5rem;
}
.hero__card-title {
  font-family: var(--font-serif);
  font-size: 1.55rem; font-weight: 600;
  color: var(--warm-sand); line-height: 1.28;
  margin-bottom: var(--sp-2);
}
.hero__card-cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.06em;
  color: var(--warm-sand); opacity: 0.65;
  transition: opacity var(--t-fast), gap var(--t-base);
}
.hero__card:hover .hero__card-cta { opacity: 1; gap: 0.65rem; }
.hero__card-badge {
  position: absolute; top: var(--sp-3); right: var(--sp-3);
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__card { aspect-ratio: 16/9; max-height: 400px; }
}

/* ============================================================
   PULL QUOTE
   ============================================================ */
.pull-quote-section {
  background: var(--deep-moss);
  padding-block: var(--sp-6);
}
[data-theme="dark"] .pull-quote-section {
  background: var(--bg-secondary);
  border-block: 1px solid var(--border);
}
.pull-quote-inner {
  max-width: 780px; margin-inline: auto; text-align: center;
  padding-inline: var(--gutter);
}
.pull-quote__mark {
  display: block; font-family: var(--font-serif);
  font-size: 7rem; line-height: 0.4;
  color: var(--muted-clay); opacity: 0.45;
  margin-bottom: var(--sp-3);
}
.pull-quote__text {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 500; font-style: italic;
  color: var(--warm-sand); line-height: 1.42;
  letter-spacing: -0.01em; margin-bottom: var(--sp-3);
}
.pull-quote__attr {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cloud-blue); opacity: 0.65;
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter-section { background: var(--bg-secondary); padding-block: var(--sp-6); }
.newsletter-inner {
  max-width: 540px; margin-inline: auto;
  text-align: center; padding-inline: var(--gutter);
}
.newsletter-inner .section-eyebrow { justify-content: center; }
.newsletter-inner .section-eyebrow::before { display: none; }
.newsletter-form {
  display: flex; gap: var(--sp-2); margin-top: var(--sp-4);
}
.newsletter-input {
  flex: 1; padding: 0.7rem 1.2rem;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--border);
  background: var(--bg-primary); color: var(--text-primary);
  font-family: var(--font-sans); font-size: 0.9rem;
  outline: none; transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.newsletter-input::placeholder { color: var(--text-muted); }
.newsletter-input:focus {
  border-color: var(--muted-clay);
  box-shadow: 0 0 0 3px rgba(176,125,98,0.14);
}
@media (max-width: 480px) { .newsletter-form { flex-direction: column; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--deep-moss);
  color: var(--warm-sand);
  padding-block: var(--sp-1) var(--sp-4);
}
[data-theme="dark"] .footer { background: #0D130B; }

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(2, 1fr);
  gap: var(--sp-5);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid rgba(230, 213, 184, 0.1);
}
.footer__logo {
  display: block; font-family: var(--font-serif);
  font-size: 1.2rem; font-weight: 700;
  color: var(--warm-sand); letter-spacing: -0.025em;
  margin-bottom: var(--sp-2); text-decoration: none;
}
.footer__logo em { font-style: italic; color: var(--muted-clay); }
.footer__tagline {
  font-size: 0.875rem;
  color: rgba(230, 213, 184, 0.55);
  line-height: 1.7; max-width: 230px;
}
.footer__col-title {
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(230, 213, 184, 0.4); margin-bottom: var(--sp-3);
}
.footer__links { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__links a {
  font-size: 0.9rem; color: rgba(230, 213, 184, 0.65);
  transition: color var(--t-fast);
}
.footer__links a:hover { color: var(--warm-sand); }

.footer__bottom {
  padding-top: var(--sp-4);
  display: flex; align-items: center;
  justify-content: space-between; gap: var(--sp-3);
  font-size: 0.78rem;
  color: rgba(230, 213, 184, 0.35);
}

@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.08s; }
.fade-up:nth-child(3) { transition-delay: 0.16s; }
.fade-up:nth-child(4) { transition-delay: 0.24s; }
.fade-up:nth-child(5) { transition-delay: 0.32s; }
.fade-up:nth-child(6) { transition-delay: 0.40s; }
.fade-up:nth-child(7) { transition-delay: 0.48s; }
.fade-up:nth-child(8) { transition-delay: 0.56s; }
.stagger-parent .fade-up { transition-delay: 0s !important; }
.stagger-parent .fade-up:nth-child(2) { transition-delay: 0.07s !important; }
.stagger-parent .fade-up:nth-child(3) { transition-delay: 0.14s !important; }
.stagger-parent .fade-up:nth-child(4) { transition-delay: 0.21s !important; }
.stagger-parent .fade-up:nth-child(5) { transition-delay: 0.28s !important; }
.stagger-parent .fade-up:nth-child(6) { transition-delay: 0.35s !important; }
.stagger-parent .fade-up:nth-child(7) { transition-delay: 0.42s !important; }
.stagger-parent .fade-up:nth-child(8) { transition-delay: 0.49s !important; }

/* ============================================================
   READING PROGRESS BAR
   ============================================================ */
.progress-bar {
  position: fixed; top: var(--nav-h);
  left: 0; right: 0; height: 3px;
  background: var(--bg-card); z-index: 199;
}
.progress-bar__fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--muted-clay) 0%, var(--cloud-blue) 100%);
  transition: width 0.08s linear;
}

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article-wrapper {
  max-width: var(--content-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.article-header {
  padding-block: var(--sp-5) var(--sp-4);
}
.article-header__meta {
  display: flex; align-items: center;
  flex-wrap: wrap; gap: 0.6rem;
  margin-bottom: var(--sp-3);
}
.article-header__date,
.article-header__rt {
  font-size: 0.78rem; color: var(--text-muted);
}
.article-header__title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 700; line-height: 1.1;
  letter-spacing: -0.022em;
  margin-bottom: var(--sp-3);
}
.article-header__lead {
  font-family: var(--font-serif);
  font-size: 1.2rem; font-style: italic;
  color: var(--text-secondary); line-height: 1.65;
  border-left: 3px solid var(--muted-clay);
  padding-left: var(--sp-3);
}

.article-banner {
  width: 100%; aspect-ratio: 21 / 9;
  border-radius: var(--r-lg); overflow: hidden;
  margin-block: var(--sp-4) var(--sp-5);
  position: relative;
}
.article-banner__inner { position: absolute; inset: 0; }

.article-body {
  padding-bottom: var(--sp-6);
}
.article-body h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-block: var(--sp-5) var(--sp-2);
}
.article-body h3 {
  font-size: 1.25rem;
  margin-block: var(--sp-4) var(--sp-2);
}
.article-body h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--muted-clay);
  margin-block: var(--sp-3) var(--sp-2);
}
.article-body p {
  font-size: 1.05rem; line-height: 1.82;
  color: var(--text-secondary);
}
.article-body ul,
.article-body ol {
  margin-block: var(--sp-2);
  margin-left: 1.5rem;
  display: flex; flex-direction: column; gap: 0.8rem;
}
.article-body li {
  font-size: 1.05rem; line-height: 1.75;
  color: var(--text-secondary);
}
.article-body li strong { color: var(--text-primary); }
.article-body hr {
  border: none; height: 1px;
  background: var(--border);
  margin-block: var(--sp-5);
}
.article-body strong { color: var(--text-primary); }

/* Drop cap */
.article-body .drop-cap::first-letter {
  font-family: var(--font-serif);
  font-size: 4.2em; font-weight: 700;
  float: left; line-height: 0.78;
  margin: 0.05em 0.1em 0 0;
  color: var(--muted-clay);
}

/* Slow Media Perspective box */
.perspective-box {
  background: linear-gradient(135deg, #2D3A27 0%, #3A5035 100%);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  margin-block: var(--sp-4);
  position: relative; overflow: hidden;
}
[data-theme="dark"] .perspective-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
}
.perspective-box__label {
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cloud-blue); margin-bottom: 0.6rem;
}
.perspective-box__text {
  font-family: var(--font-serif);
  font-size: 1.05rem; font-style: italic;
  color: var(--warm-sand); line-height: 1.7;
}
[data-theme="dark"] .perspective-box__text { color: var(--text-secondary); }

/* Image placeholder */
.img-placeholder {
  width: 100%;
  aspect-ratio: 16/7;
  border-radius: var(--r-md);
  overflow: hidden;
  margin-block: var(--sp-4);
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.img-placeholder > span {
  position: relative; z-index: 1;
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(230, 213, 184, 0.55);
}

/* Article navigation */
.article-nav-row {
  display: flex; align-items: center;
  justify-content: space-between; gap: var(--sp-3);
  padding-block: var(--sp-5);
  border-top: 1px solid var(--border);
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.page-hero {
  padding-block: var(--sp-6) var(--sp-4);
  max-width: 700px;
}
.page-hero--center {
  margin-inline: auto; text-align: center;
}
.page-hero--center .section-eyebrow { justify-content: center; }
.page-hero--center .section-eyebrow::before { display: none; }

.prose {
  max-width: var(--content-w);
  margin-inline: auto;
  padding-bottom: var(--sp-6);
}
.prose h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-block: var(--sp-5) var(--sp-3);
}
.prose p {
  font-size: 1.05rem; line-height: 1.82;
  color: var(--text-secondary);
}
.prose p:not(:last-child) { margin-bottom: 1.4rem; }

.pillars-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3); margin-block: var(--sp-4);
}
.pillar-card {
  background: var(--bg-card); border-radius: var(--r-lg);
  border: 1px solid var(--border); padding: var(--sp-3);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.pillar-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pillar-card__num {
  font-family: var(--font-serif); font-size: 2.8rem;
  font-weight: 700; color: var(--muted-clay);
  opacity: 0.3; line-height: 1; margin-bottom: 0.4rem;
}
.pillar-card__title {
  font-family: var(--font-serif); font-size: 1.15rem;
  font-weight: 600; color: var(--text-primary); margin-bottom: 0.4rem;
}
.pillar-card__desc {
  font-size: 0.875rem; color: var(--text-secondary); line-height: 1.65;
}
@media (max-width: 580px) { .pillars-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FAQ PAGE
   ============================================================ */
.faq-list {
  max-width: 720px;
  margin-inline: auto;
  padding-bottom: var(--sp-6);
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-3); padding-block: var(--sp-3);
  background: none; border: none; width: 100%; text-align: left;
  font-family: var(--font-serif); font-size: 1.1rem; font-weight: 600;
  color: var(--text-primary); transition: color var(--t-fast);
}
.faq-question:hover { color: var(--muted-clay); }
.faq-icon {
  flex-shrink: 0; width: 30px; height: 30px;
  border-radius: 50%; border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: transform var(--t-base), background var(--t-base),
              border-color var(--t-base), color var(--t-base);
}
.faq-item.open .faq-icon {
  background: var(--muted-clay); border-color: var(--muted-clay);
  color: #fff; transform: rotate(45deg);
}
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height var(--t-slow), padding var(--t-base);
}
.faq-item.open .faq-answer { max-height: 600px; padding-bottom: var(--sp-3); }
.faq-answer p {
  font-size: 1rem; line-height: 1.8;
  color: var(--text-secondary);
}

/* ============================================================
   ARTICLES LIST PAGE
   ============================================================ */
.filter-bar {
  display: flex; align-items: center;
  flex-wrap: wrap; gap: 0.6rem;
  margin-bottom: var(--sp-5);
}
.filter-btn {
  padding: 0.42rem 1.1rem; border-radius: var(--r-pill);
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.04em;
  border: 1.5px solid var(--border); background: transparent;
  color: var(--text-secondary);
  transition: all var(--t-fast); cursor: pointer;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--deep-moss); color: var(--warm-sand);
  border-color: var(--deep-moss);
}
[data-theme="dark"] .filter-btn:hover,
[data-theme="dark"] .filter-btn.active {
  background: var(--muted-clay); border-color: var(--muted-clay);
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted-clay); }
