:root {
  --ink: #241c16;
  --muted: #5c534c;
  --paper: #f7f1e8;
  --card: #fffdf8;
  --line: #e4d5c4;
  --green: #2f6a4a;
  --green-deep: #1e4a34;
  --moss: #e7f0ea;
  --shadow: 0 24px 50px rgba(36, 28, 22, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
}

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

a { color: var(--green-deep); }

h1, h2, h3 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

h1 { margin: 0 0 1rem; font-size: clamp(2.6rem, 5vw, 4.4rem); }

h2 { margin: 0 0 0.75rem; font-size: clamp(1.8rem, 3vw, 2.6rem); }

h3 { margin: 0 0 0.4rem; font-size: 1.35rem; }

p { margin: 0; }

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: color-mix(in srgb, var(--paper) 90%, white);
  border-bottom: 1px solid transparent;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 0;
}

.logo { width: 240px; height: auto; }

.header-actions, .cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
}

.stack-top { margin-top: 1.25rem; }

.button, .text-link {
  font: inherit;
  font-weight: 650;
  text-decoration: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #f7f1e8;
  padding: 0.85rem 1.25rem;
  cursor: pointer;
}

.button:hover, .button:focus-visible { background: var(--green-deep); }

.text-link {
  color: var(--green-deep);
  text-underline-offset: 0.22em;
}

.text-link:hover, .text-link:focus-visible { color: var(--ink); }

.button:focus-visible, .text-link:focus-visible, input:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 3rem;
  align-items: center;
  padding: 2.75rem 0 3rem;
}

.kicker {
  margin: 0 0 0.85rem;
  color: var(--green);
  font-weight: 700;
  font-size: 0.95rem;
}

.lede {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.25rem;
}

.lede + .lede { margin-top: 0.9rem; }

.hero-photo {
  width: 100%;
  height: min(78vh, 720px);
  object-fit: cover;
  object-position: center 92%;
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
}

.film { padding: 4.25rem 0 2.5rem; }

.story {
  margin: 0 auto;
  max-width: 52rem;
}

.story-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #e7efe9;
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
}

.join {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.75rem;
  max-width: 32rem;
}

.join label { font-weight: 700; }

.join input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  padding: 0.85rem 1rem;
}

.cohort-note {
  color: var(--muted);
  font-size: 0.98rem;
}

.message {
  margin-top: 0.35rem;
  font-weight: 700;
  color: var(--green-deep);
}

.section { padding: 4.25rem 0; }

.section-test { padding-top: 1.25rem; }

.section-moss { background: var(--moss); }

.intro { max-width: 40rem; color: var(--muted); font-size: 1.2rem; }

.problem-list, .support-list, .phase-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.problem-list, .support-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.problem-list li, .support-list li, .phase-list li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.25rem 1.3rem 1.4rem;
}

.support-list li { background: transparent; }

.buddy-list { grid-template-columns: 1fr 1fr; }

.buddy-list li { background: var(--card); }

.phase-list { display: grid; gap: 1rem; }

.phase-list li {
  display: block;
}

.phase-name {
  margin: 0 0 0.65rem;
  color: var(--green);
  font-family: Fraunces, Georgia, serif;
  font-size: 1.7rem;
  font-weight: 560;
}

.phase-length {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
}

.quiet { margin-top: 0.85rem; color: var(--muted); }

.faq {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
  max-width: 44rem;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: var(--card);
  padding: 1rem 1.25rem 1.1rem;
}

.faq summary {
  cursor: pointer;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.35rem;
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.faq summary:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.faq details p {
  margin-top: 0.75rem;
  color: var(--muted);
}

.close {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: end;
  padding-bottom: 5rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  justify-content: space-between;
  align-items: baseline;
}

.prose { max-width: 40rem; }

.prose h2 { margin-top: 2.6rem; }

.prose h3 { margin-top: 1.7rem; }

.prose p + p,
.prose ul + p,
.prose ol + p,
.prose p + ul,
.prose p + ol { margin-top: 0.9rem; }

.prose ul, .prose ol {
  margin: 0.9rem 0 0;
  padding-left: 1.25rem;
}

.prose li + li { margin-top: 0.4rem; }

.prose .sources { color: var(--muted); font-size: 1rem; }

.prose .sources li + li { margin-top: 0.7rem; }

.test-intro { max-width: 40rem; }

.wizard { max-width: 40rem; margin-top: 1.5rem; }

.progress-track {
  height: 4px;
  margin: 0.8rem 0 1.6rem;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}

.progress-bar {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--green);
}

.question-step {
  margin: 0;
  border: 0;
  padding: 0;
}

.question-step legend {
  padding: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.choice-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.choice { display: block; }

.choice input {
  position: absolute;
  opacity: 0;
}

.choice span {
  display: block;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--card);
  padding: 0.95rem 1.1rem;
  cursor: pointer;
}

.choice span:hover { border-color: var(--green); }

.choice input:checked + span {
  border-color: var(--green);
  background: var(--moss);
}

.choice input:focus-visible + span {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.wizard-nav { margin-top: 1.25rem; }

.wait-banner { max-width: 40rem; margin-top: 0.4rem; }

.wait-title {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.wait-banner .progress-track { margin-top: 1.4rem; }

.wait-bar {
  width: 35%;
  animation: wait-slide 1.3s ease-in-out infinite;
}

@keyframes wait-slide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

.form-error { margin: 0 0 1rem; font-weight: 700; }

.score-value {
  margin: 0.4rem 0 0.8rem;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(3rem, 8vw, 4.5rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.score-value span {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
}

.cohort-nudge {
  max-width: 38rem;
  margin-top: 2.75rem;
}

.score-notes {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.25rem;
  max-width: 40rem;
}

.score-notes p { color: var(--muted); }

@media (max-width: 800px) {
  .site-header { position: static; }

  .site-header .wrap, .hero, .problem-list, .support-list, .close {
    grid-template-columns: 1fr;
    display: grid;
  }

  .site-header .wrap { display: flex; flex-wrap: wrap; }

  .home-header .header-actions { display: none; }

  .logo { width: 200px; }

  .hero { gap: 1.25rem; padding: 0.5rem 0 1.5rem; }

  .hero-photo {
    height: 13rem;
    order: -1;
    object-position: center bottom;
  }

  .film { padding-bottom: 2.5rem; }

  .header-actions { width: 100%; }
}
