/* ============================================================
   Revitalize Med v2 — Design System
   ============================================================ */

:root {
  /* Color tokens */
  --cream: #F4EFE5;
  --cream-warm: #EDE6D7;
  --cream-light: #FBF8F2;
  --ink: #2A1F1A;
  --ink-2: #4A3D33;
  --ink-muted: #807268;
  --green: #1F4A38;
  --green-darker: #163428;
  --rust: #BC5C44;
  --rust-light: #E8B89E;
  --rust-dark: #9A4632;
  --border: rgba(42, 31, 26, 0.10);
  --border-strong: rgba(42, 31, 26, 0.18);
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}

a { color: var(--rust); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* ============================================================
   Layout
   ============================================================ */

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 32px; }
.container-article { max-width: 760px; margin: 0 auto; padding: 0 32px; }

/* ============================================================
   Header
   ============================================================ */

.site-header {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  background: var(--cream);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.logo:hover { text-decoration: none; }
.logo em { font-style: italic; color: var(--rust); }

.nav-list {
  list-style: none;
  display: flex;
  gap: 36px;
}
.nav-link {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
}
.nav-link:hover { color: var(--rust); text-decoration: none; }

/* ============================================================
   Buttons
   ============================================================ */

.btn-pill {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
  letter-spacing: 0.01em;
  font-family: var(--font-body);
  border: 1px solid transparent;
}
.btn-pill-filled {
  background: var(--rust);
  color: var(--cream-light);
  border-color: var(--rust);
}
.btn-pill-filled:hover { background: var(--rust-dark); border-color: var(--rust-dark); text-decoration: none; color: var(--cream-light); }
.btn-pill-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-pill-outline:hover { border-color: var(--ink); text-decoration: none; color: var(--ink); }
.btn-pill-trust {
  background: var(--cream-light);
  color: var(--green);
  border-color: var(--cream-light);
}
.btn-pill-trust:hover { background: transparent; color: var(--cream-light); text-decoration: none; }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  padding: 100px 0 80px;
  background: var(--cream);
}
.hero-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 28px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.5vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 400;
  max-width: 940px;
  margin-bottom: 32px;
}
.hero-title em {
  font-style: italic;
  color: var(--rust);
  font-weight: 400;
}
.hero-subtitle {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 620px;
  margin-bottom: 40px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

/* ============================================================
   Stats row
   ============================================================ */

.stats-row {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
  margin-top: 80px;
}
.stat-block {
  flex: 1;
  padding: 0 24px;
  border-right: 1px solid var(--border);
}
.stat-block:last-child { border-right: none; }
.stat-block:first-child { padding-left: 0; }
.stat-num {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 6px;
}
.stat-num em { font-style: italic; color: var(--rust); }
.stat-label { font-size: 13px; color: var(--ink-muted); letter-spacing: 0.02em; }

/* ============================================================
   Sections
   ============================================================ */

section.block { padding: 100px 0; }

.section-header { margin-bottom: 60px; max-width: 760px; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-weight: 400;
  margin-bottom: 16px;
}
.section-title em { font-style: italic; color: var(--rust); font-weight: 400; }
.section-lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 600px;
}

/* ============================================================
   Page header (for non-homepage pages)
   ============================================================ */

.page-header {
  padding: 80px 0 60px;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.page-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 20px;
}
.page-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 400;
  margin: 0;
  max-width: 880px;
}
.page-title em { font-style: italic; color: var(--rust); font-weight: 400; }
.page-subtitle {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-top: 24px;
  max-width: 680px;
}

/* ============================================================
   Article cards (featured articles grid)
   ============================================================ */

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.article-card {
  background: var(--cream-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px 28px 28px;
  transition: border-color 0.15s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.article-card:hover { border-color: var(--ink); text-decoration: none; }
.card-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 18px;
}
.card-title {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 14px;
  letter-spacing: -0.005em;
}
.card-byline {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 18px;
}
.card-lede {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 24px;
  flex-grow: 1;
}
.card-read {
  font-size: 14px;
  font-weight: 500;
  color: var(--rust);
  letter-spacing: 0.01em;
}

/* ============================================================
   Editorial team cards
   ============================================================ */

.team-bg { background: var(--cream-warm); }
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.team-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--cream-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px;
}
.team-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.team-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}
.team-credential {
  font-size: 13px;
  color: var(--rust);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}
.team-bio {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
}
.team-extras {
  text-align: center;
  margin-top: 44px;
  font-size: 15px;
  color: var(--ink-muted);
}
.team-extras a { color: var(--rust); text-decoration: none; font-weight: 500; }
.team-extras a:hover { text-decoration: underline; }

/* ============================================================
   Topic silos
   ============================================================ */

.silo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.silo-card {
  background: var(--cream-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px 24px;
  text-decoration: none;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  color: inherit;
}
.silo-card:hover { border-color: var(--green); transform: translateY(-2px); text-decoration: none; }
.silo-number {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--rust);
  margin-bottom: 24px;
}
.silo-title {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.15;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 14px;
  letter-spacing: -0.005em;
}
.silo-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}
.silo-link {
  font-size: 13px;
  color: var(--rust);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ============================================================
   Trust block (green)
   ============================================================ */

.trust-bg { background: var(--green); color: var(--cream-light); padding: 100px 0; }
.trust-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.1;
  font-weight: 400;
  color: var(--cream-light);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.trust-title em { font-style: italic; color: var(--rust-light); font-weight: 400; }
.trust-lede {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255, 248, 240, 0.85);
  max-width: 680px;
  margin-bottom: 48px;
}
.trust-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}
.trust-item {
  border-top: 1px solid rgba(255, 248, 240, 0.2);
  padding-top: 20px;
}
.trust-stat {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--cream-light);
  margin-bottom: 8px;
  line-height: 1.2;
}
.trust-stat em { font-style: italic; color: var(--rust-light); }
.trust-text { font-size: 14px; line-height: 1.55; color: rgba(255, 248, 240, 0.75); }

/* ============================================================
   Newsletter
   ============================================================ */

.newsletter-section { background: var(--cream-warm); padding: 100px 0; text-align: center; }
.newsletter-eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 20px;
  font-weight: 500;
}
.newsletter-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.1;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
.newsletter-title em { font-style: italic; color: var(--rust); }
.newsletter-lede {
  font-size: 17px;
  color: var(--ink-muted);
  max-width: 540px;
  margin: 0 auto 36px;
}
.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 460px;
  margin: 0 auto;
}
.newsletter-form input[type="email"] {
  flex: 1;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--cream-light);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  outline: none;
}
.newsletter-form input[type="email"]:focus { border-color: var(--rust); }
.newsletter-form button {
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}
.newsletter-note {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 16px;
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--green-darker);
  color: rgba(255, 248, 240, 0.65);
  padding: 60px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--cream-light);
  margin-bottom: 12px;
}
.footer-logo em { font-style: italic; color: var(--rust-light); }
.footer-tagline { font-size: 14px; line-height: 1.6; max-width: 280px; }
.footer-heading {
  color: var(--cream-light);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 18px;
}
.footer-list { list-style: none; }
.footer-list li { margin-bottom: 10px; }
.footer-list a {
  color: rgba(255, 248, 240, 0.7);
  text-decoration: none;
  font-size: 14px;
}
.footer-list a:hover { color: var(--cream-light); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255, 248, 240, 0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   Article body (long-form content)
   ============================================================ */

.article-body { padding: 60px 0 80px; }
.article-byline { color: var(--ink-muted); font-size: 15px; margin-bottom: 4px; }
.article-byline a { color: var(--rust); font-weight: 500; }
.article-meta {
  color: var(--ink-muted);
  font-size: 14px;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.article-body p { line-height: 1.75; margin-bottom: 22px; font-size: 17px; color: var(--ink); }
.article-body h2 {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.18;
  color: var(--ink);
  font-weight: 500;
  margin: 56px 0 20px;
  letter-spacing: -0.01em;
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
  font-weight: 500;
  margin: 40px 0 14px;
}
.article-body ul, .article-body ol { margin: 16px 0 26px 24px; line-height: 1.75; font-size: 17px; }
.article-body li { margin-bottom: 10px; color: var(--ink); }
.article-body a { color: var(--rust); }
.article-body a:hover { color: var(--rust-dark); }
.article-body em { font-style: italic; }
.article-body strong { font-weight: 600; color: var(--ink); }
.article-body sup a { font-weight: 500; }

.callout {
  background: var(--cream-warm);
  border-left: 3px solid var(--rust);
  padding: 22px 28px;
  margin: 32px 0;
  border-radius: 0 6px 6px 0;
}
.callout strong { color: var(--rust-dark); font-weight: 600; }
.callout ol, .callout ul { margin-top: 14px; }

.outcome {
  background: var(--cream-light);
  border: 1px solid var(--border);
  padding: 18px 22px;
  margin: 20px 0 28px;
  border-radius: 6px;
  font-size: 15px;
  line-height: 1.7;
}
.outcome strong { color: var(--green); }

.refs {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.refs h2 { margin-top: 0 !important; font-size: 24px !important; }
.refs ol { font-size: 14px; line-height: 1.6; padding-left: 22px; }
.refs li { margin-bottom: 12px; color: var(--ink-2); }

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 14px;
}
.data-table th, .data-table td {
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}
.data-table th {
  background: var(--cream-warm);
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--ink);
}
.data-table td { color: var(--ink-2); }

.compound-block {
  padding: 24px 28px;
  background: var(--cream-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin: 20px 0 28px;
}
.compound-block h4 {
  margin: 0 0 14px !important;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink);
  font-weight: 500;
}

.back-link {
  display: inline-block;
  margin-top: 48px;
  color: var(--rust);
  font-weight: 500;
  font-size: 15px;
}

/* ============================================================
   Articles index page
   ============================================================ */

.articles-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
}
.articles-list .article-card {
  flex-direction: row;
  align-items: flex-start;
  gap: 32px;
  padding: 36px 32px;
}
.articles-list .article-card-meta { flex: 0 0 200px; }
.articles-list .article-card-body { flex: 1; }
.articles-list .card-title { font-size: 28px; margin-bottom: 12px; }

/* ============================================================
   Long-form content pages (about, editorial policy)
   ============================================================ */

.content-body { padding: 60px 0 80px; }
.content-body p { line-height: 1.75; margin-bottom: 20px; font-size: 17px; color: var(--ink); }
.content-body h2 {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.2;
  color: var(--ink);
  font-weight: 500;
  margin: 48px 0 18px;
  letter-spacing: -0.01em;
}
.content-body h3 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
  font-weight: 500;
  margin: 36px 0 12px;
}
.content-body ul, .content-body ol {
  margin: 12px 0 24px 24px;
  line-height: 1.75;
  font-size: 17px;
}
.content-body li { margin-bottom: 10px; color: var(--ink); }
.content-body a { color: var(--rust); }
.content-body strong { font-weight: 600; color: var(--ink); }

/* ============================================================
   Team page full bios
   ============================================================ */

.team-bio-card {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}
.team-bio-card:last-child { border-bottom: none; }
.team-bio-photo {
  width: 180px;
  height: 180px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.team-bio-content { flex: 1; }
.team-bio-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}
.team-bio-credential {
  font-size: 13px;
  color: var(--rust);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.team-bio-content p { line-height: 1.7; margin-bottom: 14px; font-size: 16px; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .silo-grid { grid-template-columns: 1fr 1fr; }
  .trust-list { grid-template-columns: 1fr 1fr; }
  .articles-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .container, .container-narrow, .container-article { padding: 0 20px; }
  .nav-list { display: none; }
  .articles-grid, .silo-grid, .team-grid, .trust-list, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 40px; }
  .stats-row { flex-wrap: wrap; padding: 18px 0; }
  .stat-block { flex: 0 0 50%; padding: 16px 12px; border-right: none; }
  section.block { padding: 60px 0; }
  .articles-list .article-card { flex-direction: column; gap: 12px; padding: 28px 22px; }
  .articles-list .article-card-meta { flex: 1; }
  .team-bio-card { flex-direction: column; }
  .team-bio-photo { width: 120px; height: 120px; }
  .article-body h2 { font-size: 26px; }
  .article-body h3 { font-size: 20px; }
}
