/* ================================================================
   article.css — shared styling for the educational article pages
   (article-insulin-resistance.html, article-cortisol-blood-sugar.html,
    article-morning-routine.html). Matches the design tokens used across
   the rest of the site.
   ================================================================ */

:root {
  --bg-primary:   #FBF9F6;
  --bg-accent:    #E8ECE7;
  --text-heading: #1E2D24;
  --text-body:    #3A443F;
  --green:        #3D6B4A;
  --green-light:  #5A8A66;
  --green-pale:   #EBF2E8;
  --border:       #D7CDCC;
  --white:        #FFFFFF;
  --serif:        'Playfair Display', Georgia, serif;
  --sans:         'DM Sans', system-ui, sans-serif;
  --shadow:       0 6px 30px rgba(30,45,36,.10);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  background: var(--bg-primary);
  color: var(--text-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Top bar ── */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 10;
}
.top-bar img { height: 40px; mix-blend-mode: multiply; }
.top-bar a.home-link {
  font-size: .85rem;
  font-weight: 500;
  color: var(--green);
  text-decoration: none;
}
.top-bar a.home-link:hover { color: var(--text-heading); }

/* ── Article layout ── */
.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 40px;
}

.article__eyebrow {
  display: inline-block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-pale);
  padding: 5px 12px;
  border-radius: 50px;
  margin-bottom: 18px;
}

.article__title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.8rem);
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.18;
  margin-bottom: 16px;
}

.article__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .82rem;
  color: var(--text-body);
  opacity: .6;
  margin-bottom: 28px;
}
.article__meta span.dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }

.article__dek {
  font-size: 1.15rem;
  color: var(--text-heading);
  font-weight: 400;
  line-height: 1.55;
  padding-bottom: 28px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

/* ── Prose ── */
.article__body h2 {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.3;
  margin: 40px 0 14px;
}
.article__body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-heading);
  margin: 28px 0 10px;
}
.article__body p { margin-bottom: 18px; font-size: 1.02rem; }
.article__body a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.article__body strong { color: var(--text-heading); font-weight: 600; }

.article__body ul, .article__body ol {
  margin: 0 0 20px 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.article__body li { font-size: 1.02rem; padding-left: 4px; }
.article__body ul li::marker { color: var(--green); }

/* Key-takeaways callout */
.takeaways {
  background: var(--bg-accent);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 28px;
  margin: 36px 0;
}
.takeaways h3 {
  margin: 0 0 12px;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
}
.takeaways ul { margin: 0 0 0 1.1rem; }
.takeaways li { margin-bottom: 8px; }
.takeaways li:last-child { margin-bottom: 0; }

/* Pull-quote */
.pullquote {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--text-heading);
  line-height: 1.45;
  border-left: 3px solid var(--green);
  padding: 6px 0 6px 22px;
  margin: 32px 0;
}

/* Disclaimer */
.disclaimer {
  font-size: .82rem;
  color: var(--text-body);
  opacity: .65;
  line-height: 1.6;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  margin-top: 40px;
}
.disclaimer strong { color: var(--text-heading); }

/* ── CTA panel ── */
.article-cta {
  max-width: 720px;
  margin: 48px auto 0;
  padding: 0 24px;
}
.article-cta__inner {
  background: var(--green);
  border-radius: 20px;
  padding: 44px 36px;
  text-align: center;
  color: var(--white);
}
.article-cta__inner h2 {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 10px;
}
.article-cta__inner p { opacity: .85; margin-bottom: 24px; font-size: 1rem; }
.article-cta__btn {
  display: inline-block;
  background: var(--white);
  color: var(--green);
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
  transition: all .3s;
}
.article-cta__btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(30,45,36,.28); }

/* ── More articles ── */
.more {
  max-width: 720px;
  margin: 52px auto 0;
  padding: 0 24px;
}
.more h3 {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}
.more__links { display: flex; flex-direction: column; gap: 10px; }
.more__links a {
  color: var(--text-heading);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  transition: color .2s;
}
.more__links a:hover { color: var(--green); }

/* ── Footer ── */
.article-footer {
  max-width: 720px;
  margin: 56px auto 0;
  padding: 28px 24px 48px;
  border-top: 1px solid var(--border);
  font-size: .82rem;
  color: var(--text-body);
  opacity: .6;
  text-align: center;
}
.article-footer a { color: var(--green); text-decoration: none; }
