/* ============================================================
   CINTIA WELLNESS — design system
   Mediterranean-inspired editorial palette. Warm, calm, premium.
   ============================================================ */

:root {
  --cream: #FBF6EF;
  --cream-deep: #F3EADA;
  --paper: #FFFDF9;
  --charcoal: #2B2723;
  --charcoal-soft: #524B43;
  --terracotta: #B5563A;
  --terracotta-deep: #96432B;
  --olive: #6E7B4F;
  --olive-deep: #545E3C;
  --sea: #33505A;
  --sea-deep: #22383F;
  --gold: #C99A3E;
  --line: rgba(43, 39, 35, 0.12);
  --shadow: rgba(43, 39, 35, 0.10);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1280px;
  --radius: 18px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --cream: #211E1B;
    --cream-deep: #2A2622;
    --paper: #262220;
    --charcoal: #F3EADA;
    --charcoal-soft: #C9C0B2;
    --line: rgba(243, 234, 218, 0.14);
    --shadow: rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--terracotta-deep); text-decoration-thickness: 1.5px; }
a:hover { color: var(--terracotta); }

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 64px);
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; color: var(--charcoal); }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-top: 2.2em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { margin: 0 0 1.3em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive-deep);
  font-weight: 700;
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--gold); display: inline-block; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 18px;
}
.brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--charcoal);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.brand span { color: var(--terracotta); }
.nav-links { display: flex; gap: clamp(16px, 3vw, 36px); list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-links a { color: var(--charcoal-soft); text-decoration: none; font-size: 0.98rem; font-weight: 600; }
.nav-links a:hover { color: var(--terracotta); }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--cream);
    flex-direction: column;
    justify-content: flex-start;
    padding: 32px 24px;
    gap: 22px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--charcoal); border-radius: 2px; }
}

/* ---------- hero ---------- */
.hero {
  padding-block: clamp(48px, 9vw, 110px);
  overflow: hidden;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
}
.hero p.lead { font-size: 1.2rem; color: var(--charcoal-soft); max-width: 46ch; }
.hero-art { border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -20px var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--terracotta);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--terracotta-deep); color: #fff; transform: translateY(-2px); }
.btn.ghost { background: transparent; border: 1.5px solid var(--charcoal); color: var(--charcoal); }
.btn.ghost:hover { background: var(--charcoal); color: var(--cream); }

/* ---------- section shells ---------- */
section { padding-block: clamp(40px, 7vw, 96px); }
.section-alt { background: var(--cream-deep); }
.section-head { max-width: 62ch; margin-bottom: 2.4em; }

/* ---------- pillar / cluster grid ---------- */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--line);
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -22px var(--shadow); }
.card img { border-radius: 12px; margin-bottom: 18px; aspect-ratio: 4/3; object-fit: cover; }
.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--charcoal-soft); font-size: 0.98rem; flex-grow: 1; }
.card .tag { font-size: 0.75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--olive-deep); font-weight: 700; margin-bottom: 10px; }
.card .read-more { font-size: 0.92rem; font-weight: 700; margin-top: 14px; }

.card.locked { opacity: 0.72; }
.card.locked .tag::after { content: " · coming soon"; color: var(--charcoal-soft); font-weight: 600; text-transform: none; letter-spacing: 0; }

/* ---------- article ---------- */
.article-hero { padding-top: clamp(32px, 6vw, 64px); }
.article-meta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--charcoal-soft); font-size: 0.92rem; margin-bottom: 1.4em; }
.article-cover { border-radius: var(--radius); overflow: hidden; margin: 1.6em 0 0.4em; box-shadow: 0 30px 60px -24px var(--shadow); }
.article-cover img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.article-cover figcaption { font-size: 0.85rem; color: var(--charcoal-soft); padding-top: 8px; }

.answer-block {
  background: var(--sea);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 36px);
  margin: 2em 0 2.6em;
}
.answer-block .eyebrow { color: var(--gold); }
.answer-block .eyebrow::before { background: var(--gold); }
.answer-block p { color: #F3EFE6; margin-bottom: 0; font-size: 1.05rem; }
.answer-block p:not(:last-child) { margin-bottom: 0.9em; }
.answer-block strong { color: #fff; }

.article-body { max-width: 74ch; margin-inline: auto; }
.article-body h2 { scroll-margin-top: 100px; }
.article-body blockquote {
  border-left: 3px solid var(--terracotta);
  margin: 1.8em 0;
  padding: 0.2em 0 0.2em 1.4em;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--charcoal-soft);
}
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body li { margin-bottom: 0.5em; }
.source-note { font-size: 0.88rem; color: var(--charcoal-soft); border-top: 1px solid var(--line); padding-top: 10px; margin-top: -0.6em; }

/* Table of contents */
.toc {
  background: var(--cream-deep);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 2em auto 2.6em;
  max-width: 74ch;
}
.toc .eyebrow { margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc a { color: var(--charcoal); font-weight: 600; text-decoration: none; }
.toc a:hover { color: var(--terracotta); }

/* Affiliate honesty box */
.affiliate-box {
  max-width: 74ch;
  margin: 2.6em auto;
  background: var(--cream-deep);
  border: 1.5px dashed var(--gold);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 30px);
}
.affiliate-box .eyebrow { margin-bottom: 10px; }
.affiliate-box p { margin-bottom: 0.8em; font-size: 0.98rem; color: var(--charcoal-soft); }
.affiliate-box p:last-of-type { margin-bottom: 0; }
.affiliate-box .disclosure { font-size: 0.82rem; color: var(--charcoal-soft); opacity: 0.85; margin-top: 14px; }

/* FAQ */
.faq { max-width: 74ch; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-item summary {
  font-family: var(--serif);
  font-size: 1.15rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--terracotta); transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 12px; color: var(--charcoal-soft); }

/* Compact author card (article byline, "meet the author" style) */
.author-mini-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 20px;
  margin: 0 auto 2em;
  max-width: 74ch;
}
.author-mini-card img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.author-mini-card .who { flex-grow: 1; }
.author-mini-card .name { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; display: block; }
.author-mini-card .badge {
  font-size: 0.78rem;
  color: var(--olive-deep);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.author-mini-card .know-more {
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .author-mini-card { flex-wrap: wrap; }
  .author-mini-card .know-more { margin-left: 72px; }
}

/* About / author */
.author-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
@media (max-width: 760px) { .author-card { grid-template-columns: 1fr; } }
.author-portrait { border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 48px -20px var(--shadow); width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover; }
.about-facts { list-style: none; margin: 1.6em 0 0; padding: 0; display: grid; gap: 14px; }
.about-facts li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.98rem; }
.about-facts li::before { content: "✦"; color: var(--gold); flex-shrink: 0; }

/* Footer */
.site-footer { background: var(--sea-deep); color: #EFE7D8; padding-block: 56px 32px; }
.site-footer a { color: #EFE7D8; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 0.94rem; opacity: 0.85; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.14); margin-top: 40px; padding-top: 20px; font-size: 0.85rem; opacity: 0.65; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Utility */
.center { text-align: center; margin-inline: auto; }
.small { font-size: 0.85rem; color: var(--charcoal-soft); }
