:root {
  --bg: #F5F0E6;
  --bg-alt: #ECE5D5;
  --surface: #FFFCF6;
  --primary: #1B2D4D;
  --primary-dark: #0E1B33;
  --primary-tint: #E1E5EE;
  --accent: #B85C38;
  --accent-tint: #F2E3D7;
  --text: #1B1A17;
  --text-muted: #5B574F;
  --border: #DDD3BD;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a { color: inherit; }
.topnav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px 48px;
  background: rgba(255, 252, 246, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.logo {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  color: var(--primary);
  text-decoration: none;
}

.logo-img {
  display: block;
  height: 28px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.nav-links a.primary {
  color: var(--primary);
  font-family: "Fraunces", Georgia, serif;
  font-size: 16px;
  font-weight: 400;
}

.nav-links a.current { color: var(--accent); }
.nav-pillar-divider {
  width: 1px;
  height: 22px;
  background: var(--border);
}

.begin-pill,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 24px;
  border: 1px solid var(--primary);
  border-radius: 999px;
  background: var(--primary);
  color: var(--surface);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a.begin-pill {
  color: var(--surface);
  min-height: 0;
  padding: 6px 16px;
  font-size: 13px;
}

.button.ghost {
  background: transparent;
  color: var(--primary);
}

.button.ghost:hover {
  background: var(--primary);
  color: var(--surface);
}

.disabled-link {
  cursor: default;
  opacity: 0.68;
}

.button.ghost.disabled-link:hover {
  background: transparent;
  color: var(--primary);
}

.hero {
  min-height: 78vh;
  display: grid;
  align-items: end;
  padding: 64px 42px 40px;
  background:
    linear-gradient(90deg, rgba(245, 240, 230, 0.94) 0%, rgba(245, 240, 230, 0.82) 54%, rgba(245, 240, 230, 0.34) 100%),
    linear-gradient(180deg, rgba(245, 240, 230, 0.24), rgba(245, 240, 230, 0.92)),
    url("/assets/images/content/Wanting-1.webp") center / cover;
}

.hero-inner,
.section-inner,
.page-header-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.hero-copy {
  max-width: 780px;
  padding-top: 10vh;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--primary);
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  line-height: 1.1;
}

h1 {
  max-width: 820px;
  font-size: clamp(46px, 6vw, 74px);
}

h1 em, h2 em {
  color: var(--accent);
  font-style: italic;
}

.lead {
  max-width: 740px;
  margin: 24px 0 0;
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 36px;
  background: var(--border);
  border: 1px solid var(--border);
}

.principle,
.card {
  background: var(--surface);
  padding: 28px;
}

.principle-num,
.card-num {
  color: var(--accent);
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: 28px;
}

.principle h3,
.card h3 { margin-top: 12px; font-size: 25px; }
.principle p,
.card p { margin: 12px 0 0; color: var(--text-muted); }

.section {
  padding: 86px 42px;
}

.section.alt { background: var(--bg-alt); }
.section-header {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
  margin-bottom: 34px;
}

.section-header h2 {
  max-width: 720px;
  font-size: clamp(36px, 5vw, 58px);
}

.section-header p {
  max-width: 420px;
  margin: 0;
  color: var(--text-muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }

.card {
  border: 1px solid var(--border);
  border-radius: 4px;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

a.card:hover {
  border-color: var(--primary);
  box-shadow: 0 14px 30px rgba(27, 45, 77, 0.12);
  transform: translateY(-2px);
}

.card.featured {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--surface);
}

.card.featured h3,
.card.featured p { color: var(--surface); }

.card.muted {
  background: transparent;
  border-style: dashed;
}

.meta {
  margin-top: 20px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.page-header {
  padding: 82px 42px 56px;
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  margin-bottom: 28px;
  color: var(--text-muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.content-section {
  padding: 76px 42px;
}

.content-section.alt { background: var(--bg-alt); }
.content-inner {
  width: min(760px, 100%);
  margin: 0 auto;
}

.content-inner h2 {
  margin-top: 44px;
  font-size: 34px;
}

.content-inner h3 {
  margin-top: 34px;
  font-size: 25px;
}

.content-figure {
  margin: 34px 0;
}

.content-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
}

.three-in-content {
  grid-template-columns: 1fr;
  margin: 34px 0;
}

.defined-term {
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.cite {
  color: var(--accent);
  font-size: 0.72em;
  font-weight: 800;
  text-decoration: none;
  vertical-align: super;
}

.footnotes {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
}

.footnotes-label {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.footnotes a {
  color: var(--accent);
}

.key-fact {
  margin: 30px 0;
  padding: 24px;
  border-left: 3px solid var(--accent);
  background: var(--accent-tint);
}

.key-fact.warning {
  background: var(--primary-tint);
}

.key-fact-label,
.clinical-label,
.study-meta {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.key-fact p {
  margin: 10px 0 0;
  color: var(--primary);
  font-family: "Fraunces", Georgia, serif;
  font-size: 21px;
  line-height: 1.4;
}

.med-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 30px 0;
}

.clinical-box,
.study-card,
.option-row {
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  padding: 24px;
}

.clinical-box p,
.study-card p,
.option-row p {
  margin: 12px 0 0;
}

.study-card {
  margin: 24px 0;
  border-top: 3px solid var(--primary);
}

.study-card h3 {
  margin-top: 10px;
}

.option-stack {
  display: grid;
  gap: 14px;
  margin: 30px 0;
}

.option-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
}

.option-badge {
  color: var(--accent);
  font-weight: 800;
}

.reading-pill {
  display: inline-flex;
  margin-bottom: 20px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--primary-tint);
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.time-options {
  padding: 52px 42px;
}

.options-label {
  width: min(1120px, 100%);
  margin: 0 auto 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.options-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.option-card {
  display: block;
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  text-decoration: none;
}

.option-card.featured {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--surface);
}

.option-time {
  color: var(--accent);
  font-family: "Fraunces", Georgia, serif;
  font-size: 48px;
  line-height: 1;
}

.unit {
  margin-left: 4px;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.option-name {
  margin-top: 18px;
  color: var(--primary);
  font-family: "Fraunces", Georgia, serif;
  font-size: 25px;
}

.option-card.featured .option-name,
.option-card.featured .option-desc,
.option-card.featured .option-cta { color: var(--surface); }

.option-desc {
  margin-top: 10px;
  color: var(--text-muted);
}

.option-cta {
  margin-top: 18px;
  color: var(--accent);
  font-weight: 800;
}

blockquote {
  margin: 32px 0;
  padding: 24px;
  border-left: 3px solid var(--accent);
  background: var(--accent-tint);
  color: var(--primary);
  font-family: "Fraunces", Georgia, serif;
  font-size: 22px;
  font-style: italic;
  line-height: 1.35;
}

.downloads-section {
  margin-top: 64px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.downloads-label {
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.videos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.video-card {
  display: block;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  overflow: hidden;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.video-card:hover {
  border-color: var(--primary);
  box-shadow: 0 14px 30px rgba(27, 45, 77, 0.12);
  transform: translateY(-2px);
}

.video-card.primary {
  grid-column: 1 / -1;
}

.video-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-alt);
}

.video-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(27, 45, 77, 0.88);
  color: var(--surface);
  font-size: 22px;
  line-height: 68px;
  text-align: center;
  padding-left: 6px;
}

.video-card:hover .video-play {
  background: var(--accent);
}

.video-text {
  display: block;
  padding: 22px 24px 24px;
}

.video-label {
  display: block;
  color: var(--primary);
  font-family: "Fraunces", Georgia, serif;
  font-size: 25px;
  line-height: 1.2;
}

.video-meta {
  display: block;
  margin-top: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.video-embed {
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  background: #000;
}

.video-embed.primary,
.videos-grid .video-embed:first-child {
  grid-column: 1 / -1;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.footer {
  padding: 56px 42px 34px;
  background: var(--primary);
  color: var(--surface);
}

.footer-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-tagline {
  max-width: 520px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 26px;
}

.footer a { color: var(--surface); }
.footer-bottom {
  width: min(1120px, 100%);
  margin: 36px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.22);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: rgba(255,255,255,0.72);
  font-size: 13px;
}

@media (max-width: 900px) {
  .topnav { padding: 16px 24px; }
  .nav-links { display: none; }
  .hero, .section, .page-header, .content-section, .time-options, .footer {
    padding-left: 24px;
    padding-right: 24px;
  }
  .hero { min-height: auto; padding-top: 92px; }
  h1 { font-size: 44px; }
  .lead { font-size: 18px; }
  .principles, .grid, .grid.two, .grid.four, .options-grid, .videos-grid { grid-template-columns: 1fr; }
  .med-grid { grid-template-columns: 1fr; }
  .option-row { grid-template-columns: 1fr; }
  .section-header, .footer-inner, .footer-bottom {
    display: block;
  }
  .section-header p { margin-top: 18px; }
  .footer-bottom span { display: block; margin-top: 10px; }
}
