/* =================================================================== *
 * Topography — shared stylesheet
 * Edit a token and it changes everywhere.
 * =================================================================== */

:root {
  /* Color */
  --bg: #fcfbf8;
  --bg-soft: #f6f3ea;
  --ink: #1b1b1a;
  --ink-soft: #3f3f3c;
  --ink-faint: #8a8781;
  --rule: #e2dfd7;
  --accent: #2f4a3a; /* muted forest */
  --accent-ink: #1f3327;

  /* Type */
  --serif:
    Charter, "Iowan Old Style", "Source Serif Pro", "Hoefler Text", Georgia, "Times New Roman",
    serif;
  --sans:
    -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Layout */
  --col: 660px; /* narrow reading column */
  --shell: 1080px; /* page shell for nav, multi-col sections */
  --gutter: 32px;
}

* {
  box-sizing: border-box;
}
html,
body {
  background: var(--bg);
  color: var(--ink);
}

body {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.62;
  margin: 0;
  font-feature-settings: "kern", "liga", "onum";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

/* ------------------------------------------------------------------- *
 * Masthead
 * ------------------------------------------------------------------- */

header.site {
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}
.site-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  font-weight: 100;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.005em;
}
.wordmark .mark {
  width: 1em;
  height: 1em;
  flex: none;
  color: var(--ink);
  transform: translateY(calc(-0.04em - 1px));
}
.wordmark .mark svg {
  width: 150%;
  height: 150%;
  display: block;
}
nav.top {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  gap: 26px;
}
nav.top a {
  color: var(--ink-faint);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition:
    color 200ms ease,
    border-color 200ms ease;
}
nav.top a:hover,
nav.top a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ------------------------------------------------------------------- *
 * Page chrome
 * ------------------------------------------------------------------- */

main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 56px var(--gutter) 0;
}
main.narrow {
  max-width: var(--col);
}

p {
  margin: 0 0 1.4em;
  text-wrap: pretty;
  hyphens: auto;
  -webkit-hyphens: auto;
}
ul,
ol {
  padding-left: 1.1em;
}
li {
  margin: 0 0 0.4em;
}

/* Eyebrow / section label */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 18px;
}

/* Hairline rule, used as a quiet section break */
hr.divide {
  border: 0;
  border-top: 1px solid var(--rule);
  width: 56px;
  margin: 64px 0 56px;
}
hr.section {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 80px 0;
}

/* Hero */
.hero {
  max-width: 820px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin: 0 0 28px;
  text-wrap: balance;
}
.hero .lede {
  font-size: 21px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 660px;
}
.hero .lede em {
  font-style: italic;
}

.cta-row {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  align-items: baseline;
}
.btn {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 22px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  display: inline-block;
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}
.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
}
.btn.ghost:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: transparent;
}
.link {
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  transition:
    border-color 200ms ease,
    color 200ms ease;
}
.link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Section heading inside the shell */
section.block {
  margin: 80px 0;
  max-width: var(--shell);
}
section.block:first-of-type {
  margin-top: 56px;
}
h2.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: -0.008em;
  margin: 0 0 8px;
  max-width: 640px;
  text-wrap: balance;
}
.section-sub {
  color: var(--ink-soft);
  font-size: 18px;
  max-width: 640px;
  margin: 0 0 36px;
}

/* ------------------------------------------------------------------- *
 * Card row — for offerings, audience tiles, etc.
 * ------------------------------------------------------------------- */

.row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.row.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.row.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.row.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.row > .cell {
  padding: 32px 28px 36px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.row > .cell:last-child {
  border-right: none;
}

.cell .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
}
.cell h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.22;
  letter-spacing: -0.005em;
  margin: 4px 0 4px;
}
.cell p {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
}
.cell a.more {
  margin-top: auto;
  padding-top: 14px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  align-self: flex-start;
  transition:
    color 200ms ease,
    border-color 200ms ease;
}
.cell a.more::after {
  content: " →";
}
.cell a.more:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ------------------------------------------------------------------- *
 * Step list — for "How it works"
 * ------------------------------------------------------------------- */

ol.steps {
  list-style: none;
  counter-reset: st;
  padding: 0;
  margin: 0;
}
ol.steps > li {
  counter-increment: st;
  padding: 28px 0 30px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  align-items: baseline;
}
ol.steps > li:last-child {
  border-bottom: 1px solid var(--rule);
}
ol.steps > li::before {
  content: counter(st, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
  padding-top: 6px;
}
ol.steps h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: -0.004em;
}
ol.steps p {
  margin: 0;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------------- *
 * Two-up callout (audience split: physicians / startups)
 * ------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.split > .pane {
  padding: 40px 36px 44px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.split > .pane:last-child {
  border-right: none;
}
.split .eyebrow {
  margin: 0;
}
.split h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.008em;
  line-height: 1.18;
  margin: 4px 0 8px;
  text-wrap: balance;
}
.split p {
  color: var(--ink-soft);
  margin: 0;
}
.split a.more {
  margin-top: 16px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
  align-self: flex-start;
  transition:
    color 200ms ease,
    border-color 200ms ease;
}
.split a.more::after {
  content: " →";
}
.split a.more:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ------------------------------------------------------------------- *
 * Quiet stats / proof row
 * ------------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stats > div {
  padding: 28px 24px;
  border-right: 1px solid var(--rule);
}
.stats > div:last-child {
  border-right: none;
}
.stats .n {
  font-family: var(--serif);
  font-size: 32px;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.stats .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ------------------------------------------------------------------- *
 * Long-form / essay flow used on About + interior body copy
 * ------------------------------------------------------------------- */

.prose {
  max-width: var(--col);
}
.prose p {
  margin-bottom: 1.4em;
}
.prose .notes p {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.6;
}

/* Contact block (single email, no button) */
.contact {
  margin-top: 72px;
}
.contact a {
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  transition:
    border-color 200ms ease,
    color 200ms ease;
}
.contact a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Path grid — modular numbered tiles */
ol.path-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
ol.path-grid > li {
  padding: 28px 24px 32px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
ol.path-grid > li:last-child {
  border-right: none;
}
ol.path-grid .step-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
}
ol.path-grid h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
}
ol.path-grid p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
}
@media (max-width: 880px) {
  ol.path-grid {
    grid-template-columns: 1fr 1fr;
  }
  ol.path-grid > li:nth-child(2n) {
    border-right: none;
  }
  ol.path-grid > li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--rule);
  }
}
@media (max-width: 560px) {
  ol.path-grid {
    grid-template-columns: 1fr;
  }
  ol.path-grid > li {
    border-right: none;
    border-bottom: 1px solid var(--rule);
  }
  ol.path-grid > li:last-child {
    border-bottom: none;
  }
}

/* ------------------------------------------------------------------- *
 * Footer
 * ------------------------------------------------------------------- */

footer.site {
  border-top: 1px solid var(--rule);
  margin-top: 0;
}
.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 28px var(--gutter) 36px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-soft);
}
.footer-inner h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 12px;
  font-weight: 400;
}
.footer-inner ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-inner li {
  margin: 0 0 6px;
}
.footer-inner a {
  text-decoration: none;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  transition:
    color 180ms ease,
    border-color 180ms ease;
}
.footer-inner a:hover {
  color: var(--ink);
  border-bottom-color: var(--rule);
}
.footer-inner .legal {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  border-top: 1px solid var(--rule);
  padding-top: 18px;
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

/* ------------------------------------------------------------------- *
 * Responsive
 * ------------------------------------------------------------------- */

@media (max-width: 880px) {
  main {
    padding: 48px 24px 0;
  }
  .row,
  .stats {
    grid-template-columns: 1fr;
  }
  .row > .cell,
  .stats > div {
    border-right: none;
    border-bottom: 1px solid var(--rule);
  }
  .row > .cell:last-child,
  .stats > div:last-child {
    border-bottom: none;
  }
  .row.cols-2,
  .row.cols-3,
  .row.cols-4 {
    grid-template-columns: 1fr;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .split > .pane {
    border-right: none;
    border-bottom: 1px solid var(--rule);
  }
  .split > .pane:last-child {
    border-bottom: none;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 18px;
  }
  .site-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 24px;
  }
  nav.top {
    gap: 18px;
    flex-wrap: wrap;
  }
  main {
    padding: 48px 24px 0;
  }
  section.block {
    margin: 56px 0;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-inner .legal {
    flex-direction: column;
    gap: 6px;
  }
  ol.steps > li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  ol.steps > li::before {
    padding-top: 0;
  }
  .hero h1 {
    font-size: 36px;
  }
  .hero .lede {
    font-size: 18px;
  }
}
