/* ==========================================================================
   Breathe Easy Kenya
   Editorial treatment: Newsreader for display, Inter for text and UI.
   Warm paper, hairline rules, no drop shadows, no rounded cards.
   Type stays large and high-contrast — a lot of readers are older.
   ========================================================================== */

:root {
  /* paper & ink */
  --paper:      #faf7f0;
  --paper-warm: #f1ebdf;
  --paper-cool: #e9eff6;
  --paper-green: #ecf1e2;
  --white:      #ffffff;

  --ink:    #101e33;
  --ink-2:  #364459;
  --ink-3:  #6d788b;

  --rule:        #e2dacb;
  --rule-strong: #ccc2ae;
  --rule-dark:   rgba(255, 255, 255, .18);

  /* brand, pulled from the logo but taken down a few notches */
  --blue:      #1b4a8f;
  --blue-deep: #0f2f5c;
  --green:     #3f7f2c;
  --green-on-dark: #9ed37f;

  --serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --gut:  clamp(1.5rem, 5vw, 4.5rem);
  --rhythm: clamp(4rem, 9vw, 8rem);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (min-width: 48em) { body { font-size: 1.125rem; } }

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

/* ---------- type ---------- */

h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--ink); font-weight: 400; }

h1, h2 {
  font-family: var(--serif);
  line-height: 1.06;
  letter-spacing: -.02em;
  font-optical-sizing: auto;
}

h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); }

h3 {
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.005em;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-underline-offset: .2em; }
a:hover { color: var(--blue-deep); }

strong { color: var(--ink); font-weight: 600; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* the big serif lead paragraph that opens a section */
.statement {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.5vw, 1.95rem);
  line-height: 1.38;
  letter-spacing: -.012em;
  font-weight: 300;
  color: var(--ink);
  max-width: 45ch;
  margin: 0;
  text-wrap: pretty;
}

.lead {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.42;
  color: var(--ink);
  font-weight: 300;
  letter-spacing: -.01em;
}

.label {
  display: block;
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1.5rem;
}
.label::before {
  content: "";
  display: inline-block;
  width: 1.75rem;
  height: 1px;
  margin-right: .85rem;
  vertical-align: middle;
  position: relative;
  top: -.08em;
  background: var(--green);
}
.band-ink .label { color: rgba(255,255,255,.5); }
.band-ink .label::before { background: var(--green-on-dark); }

/* ---------- layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.wrap--narrow { max-width: 780px; }

section { padding-block: var(--rhythm); }

.band-warm { background: var(--paper-warm); }
.band-cool { background: var(--paper-cool); }
.band-green { background: var(--paper-green); }
.band-ink  { background: var(--blue-deep); color: rgba(255,255,255,.78); }
.band-ink h2, .band-ink h3, .band-ink strong { color: #fff; }

.rule-top { border-top: 1px solid var(--rule); }

/* two-column editorial split: heading left, prose right */
.split { display: grid; gap: clamp(2rem, 4vw, 4.5rem); }
@media (min-width: 56em) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
  .split--even { grid-template-columns: 1fr 1fr; }
  .split--wide-left { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
}
.split > * { min-width: 0; }

/* A heading and the text explaining it should sit on the same line. Aligning
   the columns on their first baselines does that properly - the right-hand
   copy no longer floats above the heading it belongs to. */
@media (min-width: 56em) {
  .split--baseline { align-items: baseline; }
}

.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--ink);
  color: #fff;
  padding: .9rem 1.4rem;
  z-index: 200;
}
.skip-link:focus { left: 0; top: 0; color: #fff; }

/* ---------- links & buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  min-height: 3.4rem;
  padding: .9rem 1.75rem;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn svg { width: 17px; height: 17px; transition: transform .25s ease; }
.btn:hover svg { transform: translateX(3px); }

.btn--outline { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn--outline:hover { background: transparent; color: var(--blue); border-color: var(--blue); }

.btn--light { background: #fff; color: var(--blue-deep); border-color: #fff; }
.btn--light:hover { background: rgba(255,255,255,.88); color: var(--blue-deep); border-color: rgba(255,255,255,.88); }

.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost-light:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.7); }

.btn--block { width: 100%; justify-content: center; }

.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.25rem; }

/* understated arrow link */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: .3rem;
  transition: color .2s ease, border-color .2s ease;
}
.arrow-link:hover { color: var(--blue); border-color: var(--blue); }
.arrow-link svg { width: 16px; height: 16px; transition: transform .25s ease; }
.arrow-link:hover svg { transform: translateX(3px); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease;
}
.site-header[data-scrolled="true"] {
  border-bottom-color: var(--rule);
  background: rgba(250, 247, 240, .92);
  backdrop-filter: saturate(1.3) blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 5.75rem;
}

.brand { display: inline-flex; align-items: center; gap: .85rem; text-decoration: none; }
.brand img { width: 68px; height: 68px; object-fit: contain; }
.brand__name {
  display: block;
  white-space: nowrap;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -.015em;
  color: var(--ink);
  line-height: 1;
}
.brand__rule { display: block; white-space: nowrap; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin-top: .25rem; }

.nav { display: flex; align-items: center; gap: clamp(1.1rem, 2.4vw, 2.15rem); }

.nav a {
  position: relative;
  white-space: nowrap;
  font-size: .975rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  padding-block: .35rem;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .35s cubic-bezier(.2,.7,.3,1);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.85rem;
  padding: .55rem 1.3rem !important;
  border: 1px solid var(--ink);
  border-radius: 2px;
  color: var(--ink) !important;
  transition: background-color .2s ease, color .2s ease;
}
.nav__cta::after { display: none; }
.nav__cta:hover { background: var(--ink); color: #fff !important; }
.nav__cta svg { width: 15px; height: 15px; }

/* hamburger */
.nav-toggle {
  display: none;
  align-items: center;
  gap: .6rem;
  background: none;
  border: 0;
  padding: .5rem 0;
  font: inherit;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  z-index: 120;
}
.nav-toggle__bars { display: block; width: 26px; height: 10px; position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: var(--ink);
  transition: transform .3s ease, top .3s ease;
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after  { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 4px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { top: 4px; transform: rotate(-45deg); }

@media (max-width: 68em) {
  .nav-toggle { display: inline-flex; }

  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    padding: 6rem var(--gut) 3rem;
    background: var(--paper-warm);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s;
    overflow-y: auto;
  }
  .nav[data-open="true"] { opacity: 1; visibility: visible; }

  .nav a {
    font-family: var(--serif);
    font-size: clamp(1.9rem, 8vw, 2.6rem);
    font-weight: 400;
    color: var(--ink);
    padding: .55rem 0;
    border-bottom: 1px solid var(--rule);
    opacity: 0;
    transform: translateY(12px);
  }
  .nav a::after { display: none; }
  .nav[data-open="true"] a {
    opacity: 1;
    transform: none;
    transition: opacity .4s ease, transform .4s ease;
  }
  .nav[data-open="true"] a:nth-child(1) { transition-delay: .06s; }
  .nav[data-open="true"] a:nth-child(2) { transition-delay: .12s; }
  .nav[data-open="true"] a:nth-child(3) { transition-delay: .18s; }
  .nav[data-open="true"] a:nth-child(4) { transition-delay: .24s; }
  .nav[data-open="true"] a:nth-child(5) { transition-delay: .30s; }

  .nav__cta {
    margin-top: 2rem;
    justify-content: space-between;
    font-family: var(--sans) !important;
    font-size: 1.05rem !important;
    padding: 1.1rem 1.5rem !important;
    border-bottom: 1px solid var(--ink) !important;
  }
}

body[data-nav-open="true"] { overflow: hidden; }
/* keep the wordmark above the overlay so the page never looks blank */
body[data-nav-open="true"] .brand { position: relative; z-index: 120; }

/* ---------- hero ---------- */

.hero {
  background: var(--paper-warm);
  padding-block: clamp(2.75rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem);
}

.hero__intro { display: grid; gap: clamp(2rem, 4vw, 4rem); align-items: end; }
@media (min-width: 60em) {
  .hero__intro { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
}
.hero__intro > * { min-width: 0; }

.hero h1 { margin-bottom: 0; max-width: 16ch; text-wrap: balance; }
.hero h1 em { font-style: italic; color: var(--blue); }

.hero__sub {
  margin-top: 1.9rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
  max-width: 36ch;
  font-size: 1.1rem;
  color: var(--ink-2);
}
.hero__intro .btn-row { margin-top: 1.75rem; }

.hero__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--green);
  margin-bottom: 1.4rem;
  display: block;
}

/* definition rows in the hero margin */
.factbar {
  margin: clamp(2.75rem, 6vw, 4.5rem) 0 0;
  border-top: 1px solid var(--ink);
  display: grid;
}
@media (min-width: 44em) { .factbar { grid-template-columns: repeat(4, 1fr); } }
.factbar > div { padding: 1.35rem 0 1.5rem; border-bottom: 1px solid var(--rule); }
@media (min-width: 44em) {
  .factbar > div { padding-right: clamp(1rem, 2.2vw, 2rem); }
  .factbar > div + div {
    border-left: 1px solid var(--rule);
    padding-left: clamp(1rem, 2.2vw, 2rem);
  }
}
.factbar dt {
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--green);
  margin-bottom: .5rem;
}
.factbar dd { margin: 0; color: var(--ink); font-size: 1rem; line-height: 1.5; }

/* ---------- editorial lists ---------- */

/* numbered rows: 01 — Title — description */
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.steps > li {
  display: grid;
  gap: .5rem 2.5rem;
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 52em) {
  .steps > li { grid-template-columns: 4.5rem minmax(0, 14rem) minmax(0, 1fr); align-items: start; }
}
.steps__num {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--rule-strong);
  line-height: 1.2;
}
.steps h3 { font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 400; letter-spacing: -.01em; margin: 0; }
.steps p { margin: 0; }

/* index-style list of conditions */
.index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0 clamp(1.5rem, 4vw, 4rem);
  border-top: 1px solid var(--rule);
}
@media (min-width: 40em) { .index-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 68em) { .index-list { grid-template-columns: 1fr 1fr 1fr; } }
.index-list li {
  display: grid;
  grid-template-columns: 1.15rem 1fr;
  gap: .7rem;
  align-items: start;
  padding: .95rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  font-size: 1rem;
}
.index-list svg { width: 14px; height: 14px; color: var(--green); margin-top: .42rem; }

/* plain tick list */
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: .75rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--rule);
}
.ticks li:first-child { border-top: 1px solid var(--rule); }
.ticks svg { width: 15px; height: 15px; color: var(--green); margin-top: .5rem; }

/* four short value statements */
.approach { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.approach > div {
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 46em) and (max-width: 66em) {
  .approach { grid-template-columns: 1fr 1fr; }
  .approach > div { padding-right: clamp(1.5rem, 4vw, 3rem); }
  .approach > div:nth-child(even) {
    padding-left: clamp(1.5rem, 4vw, 3rem);
    padding-right: 0;
    border-left: 1px solid var(--rule);
  }
}

@media (min-width: 66.001em) {
  .approach { grid-template-columns: repeat(4, 1fr); }
  .approach > div { padding-right: clamp(1rem, 2vw, 1.75rem); }
  .approach > div + div {
    border-left: 1px solid var(--rule);
    padding-left: clamp(1rem, 2vw, 1.75rem);
  }
}
.approach h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 400; letter-spacing: -.01em; margin-bottom: .6rem; }
.approach p { margin: 0; font-size: .98rem; line-height: 1.65; }

/* ---------- pull quote ---------- */

.pullquote {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 2.9rem);
  line-height: 1.22;
  letter-spacing: -.018em;
  color: var(--ink);
  font-weight: 300;
  max-width: 22ch;
  margin: 0;
}
.pullquote em { font-style: italic; color: var(--blue); }

.band-ink .pullquote { color: #fff; max-width: 17ch; font-size: clamp(2.1rem, 5.4vw, 4.1rem); }
.band-ink .pullquote em { color: var(--green-on-dark); }
.band-ink .note { border-left-color: rgba(255,255,255,.3); color: rgba(255,255,255,.72); }
.band-ink .credentials li,
.band-ink .index-list li { border-color: var(--rule-dark); color: #fff; }

/* ---------- notes ---------- */

.note {
  border-left: 1px solid var(--rule-strong);
  padding: .35rem 0 .35rem 1.5rem;
  font-size: .97rem;
  color: var(--ink-3);
}
.note strong { color: var(--ink); font-weight: 600; }
.note + .note { margin-top: 1.75rem; }
.note--green { border-left-color: var(--green); }

/* ---------- fees ---------- */

.fees { border-top: 1px solid var(--ink); }
.fee {
  display: grid;
  gap: .5rem 2rem;
  padding: clamp(1.75rem, 3.5vw, 2.75rem) 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
@media (min-width: 52em) {
  .fee { grid-template-columns: minmax(0, 16rem) minmax(0, 1fr) auto; }
}
.fee h3 { font-family: var(--serif); font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 400; letter-spacing: -.01em; margin: 0; }
.fee__meta { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-top: .5rem; font-weight: 500; }
.fee ul { margin: 0; padding: 0; list-style: none; font-size: 1rem; }
.fee li { padding-left: 1.1rem; position: relative; margin-bottom: .3rem; }
.fee li::before { content: ""; position: absolute; left: 0; top: .82em; width: 5px; height: 1px; background: var(--rule-strong); }
.fee__price {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--ink);
  white-space: nowrap;
  letter-spacing: -.02em;
}
@media (min-width: 52em) { .fee__price { text-align: right; } }

/* ---------- portrait ---------- */

.portrait {
  aspect-ratio: 4 / 5;
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
  color: var(--ink-3);
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.portrait:has(img) { padding: 0; background: none; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }

.role {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  margin: -.15rem 0 0;
}

.credentials { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.credentials li {
  padding: .8rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: .97rem;
  color: var(--ink);
}

/* ---------- contact rows ---------- */

.contact-list { border-top: 1px solid var(--ink); }
.contact-list a {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
  transition: padding-left .25s ease, color .2s ease;
}
.contact-list a:hover { padding-left: .6rem; color: var(--blue); }
.contact-list .k { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.contact-list .v { font-size: 1.05rem; overflow-wrap: anywhere; }
.contact-list svg { width: 16px; height: 16px; color: var(--rule-strong); }
.contact-list a:hover svg { color: var(--blue); }

@media (max-width: 34em) {
  .contact-list a { grid-template-columns: 1fr auto; }
  .contact-list .k { grid-column: 1 / -1; margin-bottom: -.5rem; }
}

/* ---------- forms ---------- */

.form-grid { display: grid; gap: 1.6rem; }
@media (min-width: 42em) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }
.field--full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: .5rem; }

.field > label,
.legend {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.field .hint { display: block; margin-top: .4rem; font-size: .85rem; letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--ink-3); }
.req { color: var(--green); }

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 1.0625rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  border-radius: 0;
  padding: .7rem 0;
  min-height: 3rem;
  width: 100%;
  transition: border-color .2s ease;
}
.field textarea { min-height: 7rem; resize: vertical; line-height: 1.65; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d788b' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .25rem center;
  background-size: 18px;
  padding-right: 2rem;
  cursor: pointer;
}

.field input:hover,
.field select:hover,
.field textarea:hover { border-bottom-color: var(--ink-3); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--blue);
  box-shadow: 0 1px 0 0 var(--blue);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-bottom-color: #a8352b; box-shadow: 0 1px 0 0 #a8352b; }

.field input::placeholder, .field textarea::placeholder { color: var(--rule-strong); }

fieldset { border: 0; margin: 0; padding: 0; }
.legend { display: block; margin-bottom: 1.1rem; }

.error-text { font-size: .85rem; color: #a8352b; font-weight: 500; }
.error-text:empty { display: none; }

/* radio choices as bordered blocks */
.choices { display: grid; gap: 0; border-top: 1px solid var(--rule); }
@media (min-width: 38em) { .choices { grid-template-columns: 1fr 1fr; gap: 0 2.5rem; } }

.choice {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: .85rem;
  align-items: start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
}
.choice input { width: 1.15rem; height: 1.15rem; margin: .3rem 0 0; accent-color: var(--blue); }
.choice strong { display: block; font-family: var(--serif); font-size: 1.2rem; font-weight: 400; color: var(--ink); letter-spacing: -.01em; }
.choice span.sub { display: block; font-size: .92rem; color: var(--ink-3); margin-top: .2rem; }
.choice:has(input:checked) strong { color: var(--blue); }

.checkbox { display: grid; grid-template-columns: 1.3rem 1fr; gap: .85rem; align-items: start; font-size: .95rem; color: var(--ink-2); letter-spacing: 0; text-transform: none; font-weight: 400; }
.checkbox input { width: 1.1rem; height: 1.1rem; margin: .38rem 0 0; accent-color: var(--blue); }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { padding: 1.15rem 0 1.15rem 1.5rem; margin-top: 2rem; font-size: 1rem; border-left: 2px solid; }
.form-status[hidden] { display: none; }
.form-status--ok  { border-color: var(--green); color: var(--ink); }
.form-status--err { border-color: #a8352b; color: var(--ink); }

.btn[aria-busy="true"] { opacity: .55; pointer-events: none; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--blue-deep);
  color: rgba(255, 255, 255, .72);
  padding-block: clamp(3.5rem, 7vw, 6rem) 2.5rem;
  font-size: .97rem;
}
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer h4 {
  color: rgba(255, 255, 255, .45);
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: .42rem 0; }

.footer__grid { display: grid; gap: 3rem; }
@media (min-width: 52em) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; } }

.footer__mark {
  font-family: var(--serif);
  font-size: 1.75rem;
  color: #fff;
  letter-spacing: -.02em;
  margin-bottom: .75rem;
  line-height: 1.15;
}
.footer__blurb { max-width: 30ch; }

.footer__bottom {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule-dark);
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 2rem;
  justify-content: space-between;
  font-size: .85rem;
  color: rgba(255, 255, 255, .5);
}
.footer__bottom p { margin: 0; }

/* ---------- prose (legal pages) ---------- */

.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 3.25rem; }
.prose h2:first-of-type { margin-top: 2.5rem; }
.prose ul { padding-left: 0; list-style: none; border-top: 1px solid var(--rule); }
.prose ul li { padding: .7rem 0; border-bottom: 1px solid var(--rule); }
.prose > p:first-of-type { font-family: var(--serif); font-size: 1.3rem; line-height: 1.5; color: var(--ink); font-weight: 300; }

/* ---------- reveal ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- utilities ---------- */

.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;
}
.mt   { margin-top: clamp(2rem, 4vw, 3.25rem); }
.mt-s { margin-top: 1.5rem; }
.measure { max-width: 62ch; }
