:root {
  color-scheme: light;
  --ink: #17211c;
  --ink-strong: #0f1f18;
  --muted: #54645b;
  --soft: #f7f5ef;
  --panel: #fffdf8;
  --line: #d7d0c4;
  --green: #146c5c;
  --green-soft: #e7f2ed;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  color: var(--ink);
  background: var(--soft);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
}

.brand {
  color: var(--ink-strong);
  font-weight: 850;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #e09f3e;
  outline-offset: 3px;
}

.status-pill,
.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #c9ddd2;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.65fr);
  gap: 44px;
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: 48px 0 72px;
}

h1 {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--ink-strong);
  font-size: clamp(3.2rem, 8vw, 6.75rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.lede {
  max-width: 700px;
  margin: 24px 0 0;
  color: #33433b;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 0;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  border: 0;
  text-decoration: none;
  cursor: pointer;
}

.button-link.secondary {
  border: 1px solid var(--green);
  background: transparent;
  color: var(--green);
}

.button-link.compact { min-height: 40px; padding: 0 14px; }
.text-link { color: var(--green); font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.foundation-card,
article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.foundation-card {
  box-shadow: 0 18px 48px rgba(23, 33, 28, 0.08);
}

.foundation-card h2,
article h2 {
  margin: 18px 0 8px;
  color: #13271f;
  line-height: 1.2;
}

.foundation-card p:last-child,
article p:last-child {
  margin: 0;
  color: #4d5c53;
}

.section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-heading h2 { margin: 14px 0 0; color: var(--ink-strong); font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1; letter-spacing: -.035em; }
.section-heading p:last-child { max-width: 640px; margin: 14px 0 0; color: var(--muted); }
.listing-section { background: #f1eee6; }
.filters { display: flex; gap: 8px; margin-bottom: 24px; }
.filter-link { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--muted); font-weight: 800; text-decoration: none; }
.filter-link.selected { border-color: var(--green); background: var(--green); color: #fff; }
.cohort-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cohort-card { display: flex; flex-direction: column; min-height: 100%; }
.card-heading, .progress-copy { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-heading .status-pill { min-height: 26px; padding: 0 9px; }
.status-pill.expired { border-color: var(--line); background: #eeeae1; color: var(--muted); }
.category { color: var(--muted); font-size: .8rem; font-weight: 800; text-transform: uppercase; }
.cohort-card h3 { margin: 18px 0 8px; font-size: 1.45rem; }
.cohort-card h3 a { color: var(--ink-strong); text-decoration: none; }
.cohort-card > p { margin: 0 0 18px; color: var(--muted); }
.cohort-card > .text-link { margin-top: auto; padding-top: 20px; }
.cohort-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 4px 0 20px; }
.cohort-facts div { min-width: 0; }
.cohort-facts dt { color: var(--muted); font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.cohort-facts dd { margin: 2px 0 0; color: var(--ink-strong); font-weight: 700; }
.local-time { font-variant-numeric: tabular-nums; }
.quorum-progress { margin: 4px 0 0; }
.progress-copy { font-size: .9rem; }
.progress-copy span { color: var(--muted); }
.progress-track { height: 8px; margin-top: 8px; overflow: hidden; border-radius: 99px; background: #dfe4df; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.empty-state { grid-column: 1 / -1; padding: 48px; border: 1px dashed var(--line); border-radius: 8px; text-align: center; }
.empty-state h3, .empty-state p { margin: 0; }
.empty-state p { margin-top: 8px; color: var(--muted); }
.detail-shell { padding: 40px 0 80px; }
.detail-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .48fr); gap: 40px; align-items: start; margin: 34px 0; }
.detail-heading h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); }
.meeting-access { padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.meeting-access.unlocked { border-color: #9fc9b7; background: var(--green-soft); }
.meeting-access h2 { margin: 16px 0 10px; }
.meeting-access .button-link { margin-top: 8px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; margin-top: 46px; padding-top: 40px; border-top: 1px solid var(--line); }
.detail-grid h2 { color: var(--ink-strong); }
.local-note { color: var(--muted); font-size: .9rem; }
.interest-panel { margin-top: 30px; padding: 24px; border: 1px solid #9fc9b7; border-radius: 8px; background: var(--green-soft); }
.interest-panel h2 { margin: 8px 0; color: var(--ink-strong); }
.interest-panel > p { max-width: 680px; }
.interest-form { display: grid; grid-template-columns: minmax(180px, 1fr) auto; gap: 8px 12px; align-items: end; max-width: 680px; margin-top: 18px; }
.interest-form label { grid-column: 1 / -1; color: var(--ink-strong); font-weight: 750; }
.interest-form input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); font: inherit; }

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

.step {
  margin: 0;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 850;
}

footer {
  padding: 30px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.research-hero {
  max-width: 920px;
  padding: 88px 0 104px;
}

.research-hero h1,
.article-header h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
}

.research-lanes { background: var(--panel); }
.editorial-lanes { display: flex; flex-wrap: wrap; gap: 10px; }
.editorial-lanes span { padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-weight: 800; }
.research-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.research-card { display: flex; flex-direction: column; min-height: 100%; }
.research-card h2 { margin: 20px 0 10px; font-size: clamp(1.7rem, 3vw, 2.35rem); }
.research-card h2 a { color: var(--ink-strong); text-decoration: none; }
.research-card > p { color: var(--muted); }
.research-card > .text-link { margin-top: auto; padding-top: 20px; }
.research-card:first-child:last-child { grid-column: 1 / -1; max-width: 760px; }
.research-meta, .article-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; color: var(--muted); font-size: .9rem; }
.research-meta { justify-content: space-between; }

.article-shell { max-width: 900px; padding: 48px 0 96px; }
.article-header { padding: 52px 0 48px; border-bottom: 1px solid var(--line); }
.article-header .lede { max-width: 800px; }
.article-byline { margin-top: 24px; }
.article-body { max-width: 760px; margin: 0 auto; padding: 48px 0 0; border: 0; background: transparent; }
.article-body h2 { margin: 52px 0 14px; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.025em; }
.article-body p, .article-body li { color: #33433b; font-size: 1.08rem; line-height: 1.75; }
.article-body .article-intro { margin-top: 0; color: var(--ink-strong); font-size: 1.35rem; font-weight: 700; }
.article-body li + li { margin-top: 10px; }
.article-body blockquote { margin: 40px 0; padding: 8px 0 8px 26px; border-left: 4px solid var(--green); }
.article-body blockquote p { margin: 0; color: var(--ink-strong); font-size: 1.35rem; font-weight: 750; }
.article-cta { margin-top: 64px; padding: 30px; border: 1px solid #9fc9b7; border-radius: 8px; background: var(--green-soft); }
.article-cta h2 { margin-top: 16px; }

.video-embed { position: relative; width: 100%; margin: 0 0 12px; padding-top: 56.25%; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--ink-strong); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-link { margin: 0 0 40px; }
.editorial-note { margin: 36px 0; padding: 24px; border: 1px solid #9fc9b7; border-radius: 8px; background: var(--green-soft); }
.editorial-note h2 { margin: 14px 0 8px; }
.editorial-note p:last-child { margin-bottom: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.form-shell {
  max-width: 820px;
  padding: 48px 0 80px;
}

.form-shell h1 {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
}

.cohort-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.cohort-form label {
  display: grid;
  align-content: start;
  align-self: start;
  gap: 7px;
  color: var(--ink-strong);
  font-weight: 750;
}

.cohort-form input,
.cohort-form select,
.cohort-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.cohort-form input::placeholder,
.cohort-form textarea::placeholder {
  color: #8b948f;
  font-size: 0.72rem;
  font-weight: 400;
  opacity: 1;
}

.cohort-form textarea { min-height: 110px; resize: vertical; }
.cohort-form input[readonly] { background: #f1f2ef; color: var(--muted); cursor: not-allowed; }
.cohort-form [aria-invalid="true"] { border-color: #b55; outline-color: #b55; }
.cohort-form .full, .field-note.full { grid-column: 1 / -1; }
.control-note { color: var(--muted); font-size: 0.78rem; font-weight: 400; }
.recurrence-summary { margin: -4px 0 0; padding: 12px 14px; border-radius: 6px; background: #eef5f1; color: var(--ink); font-weight: 700; }
.field-note { margin: -8px 0 0; color: var(--muted); font-size: 0.9rem; }
.form-error { margin-top: 24px; padding: 14px; border: 1px solid #b55; border-radius: 6px; background: #fff1ef; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 820px) {
  .hero,
  .grid,
  .cohort-grid,
  .detail-heading,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .research-grid { grid-template-columns: 1fr; }

  .hero {
    min-height: auto;
    padding-top: 32px;
  }
}

@media (max-width: 520px) {
  .shell {
    width: min(100% - 24px, 640px);
  }

  h1 {
    font-size: clamp(3rem, 17vw, 4.25rem);
  }

  .button-link {
    width: 100%;
  }

  .topbar .button-link.compact, .section-heading .button-link.compact { width: auto; }
  .topbar { align-items: flex-start; }
  .site-nav { align-items: flex-end; flex-direction: column; gap: 8px; text-align: right; }
  .section-heading { align-items: start; flex-direction: column; }
  .cohort-facts { grid-template-columns: 1fr; }

  .cohort-form { grid-template-columns: 1fr; padding: 18px; }
  .cohort-form .full, .field-note.full { grid-column: auto; }
  .interest-form { grid-template-columns: 1fr; }
}
