/* Inner pages in the new design: a navy masthead, then ruled ledger rows
   (heading on the left five-twelfths, content on the right seven). */

.masthead {
  background: var(--navy);
  color: #fff;
  padding: 22px var(--gutter) 72px;
}
.masthead ::selection { background: #fff; color: var(--navy); }
.masthead :focus-visible { outline-color: #fff; }

.masthead-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
}
.masthead-nav { display: flex; flex-wrap: wrap; gap: 0 28px; }
.masthead-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--mist);
  text-decoration: none;
}
.masthead-nav a:hover, .masthead-nav a[aria-current="page"] { color: #fff; }
.masthead-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }

.masthead-title {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 24px var(--gutter);
  align-items: end;
  margin-top: clamp(64px, 10vh, 112px);
}
.masthead h1 {
  font-size: clamp(44px, 4.7vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.masthead-lede {
  margin: 0;
  max-width: 34em;
  font-size: 19px;
  line-height: 1.5;
  color: var(--mist);
}

/* ---------- Body ---------- */

.page { padding: 0 var(--gutter) 80px; }
/* With no closing band between, the page padding already separates the footer. */
.page + .site-footer { padding-top: 0; }

.intro {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 0 var(--gutter);
  padding: 72px 0 8px;
}
.intro > div { grid-column: 2; max-width: 40em; }
.intro p { margin: 0 0 18px; font-size: 19px; line-height: 1.55; }

.ledger { margin-top: 56px; border-top: 2px solid var(--rule-strong); }
.ledger:first-child { margin-top: 72px; }

.ledger-row {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 12px var(--gutter);
  padding: 32px 0 34px;
  border-bottom: 1px solid var(--rule);
}
.ledger-head { align-self: start; position: sticky; top: 24px; }
.ledger-head h2 {
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-stretch: 94%;
}
.ledger-n {
  display: block;
  margin-bottom: 10px;
  font-size: 40px;
  line-height: 1;
  font-weight: 250;
  font-stretch: 88%;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.ledger-body { max-width: 42em; color: #24324a; }
.ledger-body p { margin: 0 0 14px; }
.ledger-body p:last-child { margin-bottom: 0; }
.ledger-body ul { margin: 0; padding: 0; list-style: none; }
.ledger-body li {
  position: relative;
  padding: 7px 0 7px 22px;
  border-top: 1px solid #edf0f4;
}
.ledger-body li:first-child { border-top: 0; padding-top: 0; }
.ledger-body li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: calc(7px + 0.72em);
  width: 8px;
  height: 2px;
  background: var(--navy);
}
.ledger-body li:first-child::before { top: 0.72em; }
.ledger-body a { color: var(--ink); font-weight: 600; }

/* Numbered clauses (Terms of service) */
.clause { display: grid; grid-template-columns: 3.4em 1fr; gap: 0 8px; }
.clause-n { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink-soft); }

/* Testimonials: who on the left, their words on the right */
.testimonial { margin: 0; }
.testimonial-name { display: block; font-size: 20px; font-weight: 700; font-stretch: 94%; }
.testimonial-org { display: block; margin-top: 4px; font-size: 15px; color: var(--ink-soft); }
.testimonial blockquote { margin: 0; }
.testimonial .ledger-body p { font-size: 19px; line-height: 1.55; text-wrap: pretty; }
.testimonial .ledger-body p::before { content: "\201C"; }
.testimonial .ledger-body p::after { content: "\201D"; }

/* Contact form */
.contact-form { display: grid; gap: 8px; max-width: 34rem; }
.contact-form label { margin-top: 14px; font-size: 15px; font-weight: 650; color: var(--ink); }
.contact-form label:first-of-type { margin-top: 0; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #9aa6b5;
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
}
.contact-form textarea { min-height: 180px; resize: vertical; line-height: 1.5; }
.contact-form input:focus-visible, .contact-form select:focus-visible, .contact-form textarea:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 1px;
  border-color: var(--navy);
}
.contact-form .cf-turnstile { margin-top: 18px; }
.contact-form button {
  justify-self: start;
  margin-top: 22px;
  height: 56px;
  padding: 0 32px;
  border: 0;
  border-radius: 3px;
  background: var(--green);
  color: var(--navy);
  font: inherit;
  font-size: 18px;
  font-weight: 750;
  cursor: pointer;
  transition: background-color 160ms cubic-bezier(0.16, 1, 0.3, 1);
}
.contact-form button:hover { background: var(--green-hover); }
.contact-form .note { margin-top: 10px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-errors {
  margin: 0 0 24px;
  padding: 14px 18px;
  border-left: 4px solid var(--route-t);
  background: #fdf1f0;
}
.form-errors p { font-weight: 650; }
.ledger-body .form-errors li { border-top: 0; padding: 2px 0 2px 22px; }
.ledger-body .form-errors li::before { top: calc(2px + 0.72em); background: var(--route-t); }
.form-notice { font-size: 20px; line-height: 1.45; }

.address { font-style: normal; font-size: 20px; line-height: 1.5; margin: 0 0 14px; }

.note { margin: 28px 0 0; font-size: 14px; color: var(--ink-soft); }

@media (max-width: 960px) {
  .masthead-title { grid-template-columns: 1fr; margin-top: 56px; }
  .intro, .ledger-row { grid-template-columns: 1fr; }
  .intro > div { grid-column: 1; }
  .ledger-head { position: static; }
}

@media (max-width: 600px) {
  .masthead { padding-bottom: 56px; }
  .masthead-nav { gap: 0 22px; }
  .masthead-lede { font-size: 17px; }
  .page { padding-bottom: 56px; }
  .intro { padding-top: 48px; }
  .intro p { font-size: 17px; }
  .ledger:first-child { margin-top: 48px; }
  .ledger-row { padding: 26px 0 28px; }
  .ledger-n { font-size: 32px; }
  .dated .ledger-body a { font-size: 18px; }
}
