/* =========================================================
   PrimaryCare.Solutions — Shared Stylesheet
   Palette: Warm cream · Forest green · Gold
   Type: Cormorant Garamond (display) · Lora (body)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Lora:ital,wght@0,400;0,500;1,400&family=Source+Sans+3:wght@300;400;600&display=swap');

/* ── Variables ─────────────────────────────────────────── */
:root {
  --cream:        #F7F3EC;
  --cream-dark:   #EDE8DF;
  --cream-border: #DDD8CF;
  --green-deep:   #1C3A2E;
  --green-mid:    #2E5942;
  --green-light:  #4A7C59;
  --gold:         #9B6E1A;
  --gold-light:   #C4933F;
  --text:         #1A1A1A;
  --text-mid:     #444444;
  --text-light:   #666666;
  --white:        #FFFFFF;
  --max-width:    740px;
  --sidebar-w:    240px;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 18px; scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--text);
  font-family: 'Lora', Georgia, serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green-mid); text-decoration: none; }
a:hover { color: var(--gold); }

/* ── Site Header ───────────────────────────────────────── */
.site-header {
  background: var(--green-deep);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--gold);
}
.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.site-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: 0.03em;
}
.site-name span { color: var(--gold-light); }
.site-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.site-nav a {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-dark);
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--gold-light); }

/* ── Page Layout ───────────────────────────────────────── */
.page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  background: var(--green-deep);
  color: var(--cream);
  padding: 5rem 2rem 4rem;
  text-align: center;
}
.hero-eyebrow {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--cream);
  max-width: 780px;
  margin: 0 auto 1.5rem;
  letter-spacing: -0.01em;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}
.hero-sub {
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  color: #B5C9BE;
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-rule {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 2.5rem;
}
.mission-statement {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 400;
  font-style: italic;
  color: var(--cream-dark);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── Posture Block ─────────────────────────────────────── */
.posture-block {
  background: var(--cream-dark);
  border-left: 4px solid var(--gold);
  padding: 2.5rem 3rem;
  margin: 3.5rem 0;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}
.posture-block p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--green-deep);
  margin-bottom: 0.75rem;
}
.posture-block p:last-child { margin-bottom: 0; }
.posture-block .attribution {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.78rem;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 1rem;
}

/* ── Section Navigation Grid ───────────────────────────── */
.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5px;
  background: var(--cream-border);
  border: 1.5px solid var(--cream-border);
  margin: 3rem 0;
}
.section-card {
  background: var(--white);
  padding: 2rem 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: background 0.2s;
  text-decoration: none;
  color: inherit;
}
.section-card:hover { background: #FDFAF6; }
.section-card-number {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--green-deep);
  margin-bottom: 0.6rem;
  line-height: 1.25;
}
.section-card p {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.55;
  flex-grow: 1;
}
.section-card-link {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-top: 1.25rem;
}

/* ── Primer List ───────────────────────────────────────── */
.primer-list {
  max-width: var(--max-width);
  margin: 0 auto;
  list-style: none;
}
.primer-list-item {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--cream-border);
}
.primer-list-item:first-child { border-top: 1px solid var(--cream-border); }
.primer-num {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.06em;
  min-width: 28px;
}
.primer-list-item a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--green-deep);
  flex-grow: 1;
}
.primer-list-item a:hover { color: var(--gold); }
.primer-status {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  white-space: nowrap;
}
.status-live    { background: #DFF0E3; color: #1C5E30; }
.status-soon    { background: #FDF3DC; color: #7A5200; }
.status-planned { background: var(--cream-dark); color: var(--text-light); }

/* ── Content Page Layout ───────────────────────────────── */
.content-page {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  gap: 4rem;
  max-width: 1060px;
  margin: 0 auto;
  padding: 3.5rem 2rem 5rem;
  align-items: start;
}
.content-sidebar {
  position: sticky;
  top: 72px;
}
.sidebar-back {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.sidebar-back:hover { color: var(--green-mid); }
.sidebar-label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}
.sidebar-nav { list-style: none; }
.sidebar-nav li {
  border-left: 2px solid var(--cream-border);
  padding: 0.35rem 0 0.35rem 0.9rem;
  margin-bottom: 0.1rem;
}
.sidebar-nav li.active { border-left-color: var(--gold); }
.sidebar-nav a {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.35;
}
.sidebar-nav li.active a { color: var(--green-deep); font-weight: 600; }
.sidebar-nav a:hover { color: var(--green-mid); }

/* ── Article Typography ────────────────────────────────── */
.article-header { margin-bottom: 2.5rem; }
.article-group {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.article-num {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 0.4rem;
}
.article-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--green-deep);
  margin-bottom: 1rem;
}
.article-header .deck {
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-mid);
  line-height: 1.6;
  max-width: 560px;
}
.article-rule {
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: 1.75rem 0 2.25rem;
}
.article-body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.65rem;
  font-weight: 500;
  color: var(--green-deep);
  margin: 2.5rem 0 0.75rem;
  line-height: 1.2;
}
.article-body h3 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 2rem 0 0.6rem;
}
.article-body p {
  margin-bottom: 1.25rem;
  color: var(--text);
}
.article-body p:last-child { margin-bottom: 0; }
.article-body blockquote {
  border-left: 3px solid var(--gold);
  margin: 2rem 0;
  padding: 0.25rem 0 0.25rem 1.5rem;
}
.article-body blockquote p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--green-deep);
  line-height: 1.55;
}
.article-body ul, .article-body ol {
  margin: 0 0 1.25rem 1.25rem;
}
.article-body li { margin-bottom: 0.4rem; }

/* ── Callout Box ───────────────────────────────────────── */
.callout {
  background: var(--cream-dark);
  border: 1px solid var(--cream-border);
  border-top: 3px solid var(--green-mid);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  border-radius: 0 0 2px 2px;
}
.callout-label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 0.6rem;
}
.callout p {
  font-size: 0.95rem;
  color: var(--text-mid);
  margin-bottom: 0;
}

/* ── Primer Navigation Footer ──────────────────────────── */
.primer-nav-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--cream-border);
}
.primer-nav-link {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-mid);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.primer-nav-link:hover { color: var(--gold); }
.primer-nav-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--text-mid);
  margin-top: 0.2rem;
}

/* ── Open Access Badge ─────────────────────────────────── */
.open-access-bar {
  background: var(--green-deep);
  color: var(--cream-dark);
  text-align: center;
  padding: 0.65rem 2rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.07em;
}
.open-access-bar span { color: var(--gold-light); }

/* ── Site Footer ───────────────────────────────────────── */
.site-footer {
  background: var(--green-deep);
  color: #7A9E8A;
  padding: 3rem 2rem;
  margin-top: 5rem;
}
.site-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--cream-dark);
  margin-bottom: 0.4rem;
}
.footer-tagline {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.78rem;
  line-height: 1.5;
}
.footer-meta {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.75rem;
  text-align: right;
  line-height: 1.7;
}
.footer-meta span { color: var(--gold); display: block; }

/* ── Section Divider ───────────────────────────────────── */
.section-divider {
  max-width: var(--max-width);
  margin: 3rem auto;
  border: none;
  border-top: 1px solid var(--cream-border);
}
.section-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--green-deep);
  margin-bottom: 0.4rem;
}
.section-sub {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
  .content-page {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1.25rem 4rem;
  }
  .content-sidebar { position: static; }
  .sidebar-nav { display: none; }
  .site-nav { display: none; }
  .section-grid { grid-template-columns: 1fr; gap: 1px; }
  .hero { padding: 3rem 1.25rem 2.5rem; }
  .primer-nav-footer { flex-direction: column; gap: 1.5rem; }
  .site-footer-inner { flex-direction: column; }
  .footer-meta { text-align: left; }
}
