/* PATH — mypathhealth.org
   The page is the logo's landscape read top to bottom: sky, sun, hills, ground.
   Colours are the logo's own. One type family, set from the system so nothing is fetched from a third party. */

:root {
  --forest: #173d2b;
  --pine: #066137;
  --ink: #1f3324;
  --muted: #51635a;
  --link: #02607d;
  --sky-deep: #037da2;
  --sky: #24a5c5;
  --sky-light: #58bfd5;
  --sky-pale: #e8f4f8;
  --sun: #f77a18;
  --sun-light: #fc9d1e;
  --meadow: #478434;
  --lime: #a5b732;
  --field: #eff4e4;
  --paper: #ffffff;
  --rule: #d3dcd3;
  --danger: #a3320f;
  --font: "Avenir Next", Avenir, "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --wrap: 70rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --band: clamp(3.5rem, 8vw, 6.25rem);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1.5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--font);
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.25rem); line-height: 1.08; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.45rem); line-height: 1.12; }
h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.005em; }
p, ul, ol, dl { margin: 0 0 1rem; }
p { max-width: 68ch; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { color: var(--pine); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 2px; }
strong { font-weight: 600; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--forest); color: #fff; padding: 0.6rem 1rem; z-index: 10; }
.skip:focus { left: 0.5rem; top: 0.5rem; }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.5; color: var(--ink); max-width: 46ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; text-align: center;
  padding: 0.85rem 1.4rem; border: 0; border-radius: 0.5rem; cursor: pointer;
}
.btn--sun { background: var(--sun-light); color: #1d2a12; }
.btn--sun:hover { background: #f28c0c; color: #1d2a12; }
.btn--forest { background: var(--forest); color: #fff; }
.btn--forest:hover { background: #0d2a1c; color: #fff; }
.btn[disabled] { opacity: 0.65; cursor: progress; }

/* ---------- sky: header + page lead ---------- */
.sky { background: var(--sky-pale); }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.1rem; }
.site-header .logo { display: block; flex: none; line-height: 0; }
.site-header .logo img { display: block; height: 4.4rem; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); font-size: 1rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--pine); text-decoration: underline; text-decoration-thickness: 0.12em; }
.nav .btn { padding: 0.65rem 1.1rem; color: #1d2a12; }
.nav a.btn:hover, .nav a.btn[aria-current="page"] { text-decoration: none; color: #1d2a12; }
.nav-toggle { display: none; }

@media (max-width: 52rem) {
  .site-header { flex-wrap: wrap; row-gap: 0; }
  .site-header .logo img { height: 3.6rem; }
  .js .nav-toggle {
    display: block; font: inherit; font-weight: 600; font-size: 1rem; color: var(--ink);
    background: none; border: 1.5px solid var(--ink); border-radius: 0.5rem; padding: 0.5rem 0.9rem; cursor: pointer;
  }
  .nav { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-top: 0.9rem; }
  .js .nav { display: none; }
  .js .nav.is-open { display: flex; }
  .nav a { padding: 0.8rem 0; border-top: 1px solid rgba(31, 51, 36, 0.18); font-size: 1.0625rem; }
  .nav .btn { margin-top: 0.9rem; border-top: 0; padding: 0.85rem 1.1rem; }
}

.page-lead { padding-block: clamp(1.75rem, 5vw, 3.5rem) clamp(2.25rem, 5vw, 3.5rem); }
.page-lead .lede { margin: 1rem 0 0; max-width: 56ch; }

/* thin strata under inner-page leads: the landscape, folded flat */
.strata { display: block; width: 100%; height: 1.5rem; }

/* ---------- home hero ---------- */
.hero { padding-block: clamp(2rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem); }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); line-height: 1.02; letter-spacing: -0.028em; max-width: 17ch; }
.hero .lede { margin: 1.5rem 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }
.hero-actions a:not(.btn) { font-weight: 600; }

.landscape-wrap { position: relative; }
.landscape { display: block; width: 100%; height: auto; }
.landscape .trail { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.landscape .trail--shade { stroke: var(--forest); stroke-width: 12; opacity: 0.22; }
.landscape .stop { fill: #fff; stroke: var(--forest); stroke-width: 4; }

/* the three stops: a short list above the landscape, pinned onto the trail when there is room */
.waypoints {
  list-style: none; margin: 0 auto; padding: 0 var(--gutter) 1.75rem; max-width: var(--wrap);
  display: grid; gap: 0.7rem; counter-reset: stop;
}
.waypoints li {
  counter-increment: stop; display: flex; align-items: flex-start; gap: 0.65rem;
  font-weight: 600; font-size: 1rem; line-height: 1.35; color: var(--forest);
}
.waypoints li::before {
  content: counter(stop); display: inline-grid; place-items: center; flex: none;
  width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--forest); color: #fff; font-size: 0.8125rem; font-weight: 600;
}
@media (max-width: 39.99rem) { .landscape { height: 11.5rem; } }
@media (min-width: 40rem) and (max-width: 67.99rem) {
  .waypoints { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; position: relative; z-index: 1; }
  .landscape { margin-top: -2.5rem; }
}
@media (min-width: 68rem) {
  /* the landscape rises into the empty sky beside the hero text */
  .hero { position: relative; z-index: 1; }
  .landscape-wrap { margin-top: -7rem; }
  .waypoints { display: block; padding: 0; max-width: none; }
  .waypoints li {
    position: absolute; align-items: center; gap: 0.5rem; white-space: nowrap;
    background: #fff; font-size: 0.9375rem; line-height: 1.2;
    padding: 0.4rem 0.85rem 0.4rem 0.4rem; border-radius: 2rem; transform: translateY(-100%);
  }
  .waypoints li:nth-child(1) { left: 12.5%; top: 79.5%; }
  .waypoints li:nth-child(2) { left: 50%; top: 74%; transform: translate(-50%, -100%); }
  .waypoints li:nth-child(3) { right: 7%; top: 39%; }
}

@media (prefers-reduced-motion: no-preference) {
  .landscape .trail { animation: trail 1.9s cubic-bezier(0.4, 0, 0.2, 1) 0.25s both; }
  .landscape .stop { animation: stop 0.4s ease-out both; transform-box: fill-box; transform-origin: center; }
  .landscape .stop--1 { animation-delay: 0.5s; }
  .landscape .stop--2 { animation-delay: 1.2s; }
  .landscape .stop--3 { animation-delay: 2s; }
  @keyframes trail { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  @keyframes stop { from { opacity: 0; transform: scale(0.3); } to { opacity: 1; transform: scale(1); } }
}

/* ---------- bands ---------- */
.band { padding-block: var(--band); }
.band--ground { background: var(--pine); color: #fff; padding-top: clamp(2rem, 5vw, 3.5rem); }
.band--field { background: var(--field); }
.band--sky { background: var(--sky-pale); }
.band--sun { background: var(--sun-light); color: #1d2a12; }
.band > .wrap > h2 + p, .split-head p { margin-top: 1rem; }

.split { display: grid; gap: 2rem clamp(2rem, 6vw, 5rem); }
@media (min-width: 56rem) { .split { grid-template-columns: minmax(0, 21rem) minmax(0, 1fr); } }
.split-head p { color: var(--muted); }

/* who it is for */
.audiences { list-style: none; margin: clamp(1.75rem, 4vw, 3rem) 0 0; padding: 0; display: grid; gap: 0 clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 40rem) { .audiences { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68rem) { .audiences { grid-template-columns: repeat(4, 1fr); } }
.audiences li { border-top: 1px solid rgba(255, 255, 255, 0.38); padding: 1.25rem 0 1.5rem; }
.audiences h3 { margin-bottom: 0.5rem; }
.audiences p { margin: 0; color: rgba(255, 255, 255, 0.9); font-size: 1.0625rem; }

/* what members get */
.rows { margin: 0; }
.rows > div { border-top: 1px solid var(--rule); padding: 1.15rem 0 1.25rem; display: grid; gap: 0.25rem 2rem; }
.rows > div:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 40rem) { .rows > div { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); } }
.rows dt { font-weight: 600; }
.rows dd { margin: 0; color: var(--muted); }

/* the three tools */
.tools { width: 100%; border-collapse: collapse; margin-top: clamp(1.75rem, 4vw, 2.75rem); }
.tools th, .tools td { text-align: left; vertical-align: top; padding: 1.2rem 1.5rem 1.3rem 0; border-top: 1px solid #c3cfb4; }
.tools tr:last-child th, .tools tr:last-child td { border-bottom: 1px solid #c3cfb4; }
.tools thead th { font-size: 0.9375rem; font-weight: 500; color: var(--muted); border-top: 0; padding-block: 0 0.6rem; }
.tools tbody th { font-size: 1.25rem; font-weight: 600; width: 14rem; }
.tools td:nth-child(2) { width: 17rem; }
.tools td { color: var(--ink); }
@media (max-width: 47.99rem) {
  .tools thead { position: absolute; left: -9999px; }
  .tools, .tools tbody, .tools tr, .tools th, .tools td { display: block; width: auto; }
  .tools tr { border-top: 1px solid #c3cfb4; padding: 1.15rem 0 1.25rem; }
  .tools tr:last-child { border-bottom: 1px solid #c3cfb4; }
  .tools tbody th, .tools td, .tools tr:last-child th, .tools tr:last-child td { border: 0; padding: 0; }
  .tools td:nth-child(2) { width: auto; color: var(--muted); margin: 0.15rem 0 0.5rem; }
}

/* rollout: a real sequence, so it is numbered, along a trail */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 2rem 3.75rem; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -0.1rem; display: grid; place-items: center;
  width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--paper); border: 2px solid var(--sky-deep); color: var(--sky-deep); font-weight: 600;
}
.steps li::after { content: ""; position: absolute; left: calc(1.2rem - 1px); top: 2.55rem; bottom: 0.15rem; border-left: 2px dashed #b6c4bb; }
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: 0.3rem; }
.steps p { margin: 0; color: var(--muted); }

.plain { list-style: none; margin: 0; padding: 0; }
.plain li { border-top: 1px solid rgba(3, 125, 162, 0.28); padding: 1rem 0 1.05rem; }
.plain li:last-child { border-bottom: 1px solid rgba(3, 125, 162, 0.28); }

.cta { display: grid; gap: 1.5rem 3rem; align-items: center; }
@media (min-width: 52rem) { .cta { grid-template-columns: minmax(0, 1fr) auto; } }
.cta p { margin: 0.75rem 0 0; font-size: 1.1875rem; }

/* ---------- inner pages ---------- */
.page { padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--band); }
.prose { max-width: 44rem; }
.prose h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin: 2.75rem 0 0.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.75rem 0 0.4rem; }
.prose ul, .prose ol { padding-left: 1.35rem; }
.prose li { margin-bottom: 0.45rem; max-width: 64ch; }
.prose .updated { color: var(--muted); font-size: 1rem; }
.with-aside { display: grid; gap: 2.5rem clamp(2rem, 6vw, 5rem); align-items: start; }
@media (min-width: 60rem) { .with-aside { grid-template-columns: minmax(0, 1fr) minmax(0, 19rem); } }
.aside { border-top: 3px solid var(--meadow); padding-top: 1.1rem; font-size: 1.0625rem; }
.aside h2 { font-size: 1.25rem; margin: 0 0 0.5rem; letter-spacing: -0.005em; }
.aside p { color: var(--muted); }

.notice { border-left: 4px solid var(--sun); background: #fff6ea; padding: 1rem 1.25rem; margin: 0 0 2.25rem; max-width: 44rem; }
.notice p { margin: 0; }

/* ---------- forms ---------- */
.form { display: grid; gap: 1.2rem; max-width: 40rem; }
.form .pair { display: grid; gap: 1.2rem; }
@media (min-width: 40rem) { .form .pair { grid-template-columns: 1fr 1fr; } }
.field label, .field .label { display: block; font-weight: 600; font-size: 1rem; margin-bottom: 0.35rem; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  display: block; width: 100%; font: inherit; font-size: 1.0625rem; color: var(--ink); background: #fff;
  border: 1.5px solid #93a79a; border-radius: 0.5rem; padding: 0.7rem 0.85rem;
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--sky); outline-offset: 1px; border-color: var(--sky-deep); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field .error { color: var(--danger); font-size: 0.9375rem; margin: 0.35rem 0 0; font-weight: 500; }
.check { display: flex; gap: 0.75rem; align-items: flex-start; }
.check input { width: 1.3rem; height: 1.3rem; margin: 0.2rem 0 0; flex: none; accent-color: var(--pine); }
.check label { font-weight: 500; margin: 0; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.5rem; }
.form-foot p { margin: 0; font-size: 0.9375rem; color: var(--muted); max-width: 30ch; }
.form-status { color: var(--danger); font-weight: 500; }
.form-status:empty { display: none; }
.form-done { border-left: 4px solid var(--meadow); background: var(--field); padding: 1.25rem 1.5rem; max-width: 40rem; }
.form-done h2 { font-size: 1.5rem; margin: 0 0 0.4rem; }
.form-done p { margin: 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer: the roots ---------- */
.site-footer { background: var(--forest); color: #dfe9df; font-size: 1rem; padding-block: clamp(2.75rem, 6vw, 4.25rem) 2rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; gap: 2.25rem 3rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.footer-grid .brand img { display: block; height: 5.25rem; width: auto; }
.footer-grid h2 { font-size: 1rem; font-weight: 600; letter-spacing: 0; color: #a9c98a; margin: 0 0 0.7rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.footer-note { border-top: 1px solid rgba(255, 255, 255, 0.2); margin-top: 2.5rem; padding-top: 1.5rem; display: grid; gap: 0.6rem; }
.footer-note p { margin: 0; max-width: 72ch; }
.footer-note .legal { color: #b9c9bb; font-size: 0.9375rem; }

@media print {
  .site-header .nav, .nav-toggle, .landscape-wrap, .site-footer .footer-grid { display: none; }
  .sky, .band--ground, .band--field, .band--sky, .band--sun, .site-footer { background: none; color: #000; }
}
