:root {
  --ivory: #f5ede1;
  --ivory-deep: #eadfce;
  --black: #000000;
  --ink-soft: #2a2926;
  --paper: #fffaf2;
  --line: rgba(0, 0, 0, 0.2);
  --line-strong: rgba(0, 0, 0, 0.55);
  --max: 1160px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--black);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.32;
  text-rendering: geometricPrecision;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.4rem;
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--black);
  background: var(--ivory);
}

.header-inner {
  width: min(var(--max), calc(100% - 40px));
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 150px;
}

.brand img {
  width: 145px;
  height: auto;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--black);
  background: transparent;
  color: var(--black);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 1px;
  margin: 5px auto;
  background: var(--black);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 52px;
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
}

.site-nav a {
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  text-decoration: underline;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  min-height: 30px;
  padding: 0 24px;
  border: 1px solid var(--black);
  border-radius: 999px;
  background: transparent;
  color: var(--black);
  font: italic 0.95rem/1 var(--serif);
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  cursor: pointer;
}

.button.secondary {
  background: transparent;
  color: var(--black);
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.section {
  border-bottom: 1px solid var(--black);
}

section[id] {
  scroll-margin-top: 92px;
}

.section-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 76px 0 96px;
}

.hero {
  min-height: auto;
  display: block;
}

.hero-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 176px 0 104px;
  text-align: center;
}

.eyebrow {
  margin-bottom: 48px;
  font-family: var(--serif);
  font-size: 0.9rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  max-width: none;
  font-size: clamp(4rem, 6.55vw, 5.85rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(2.65rem, 3.65vw, 3.35rem);
  line-height: 1.08;
}

h3 {
  font-size: clamp(1.55rem, 2vw, 2rem);
  line-height: 1.08;
}

.hero-copy {
  margin-top: 28px;
  max-width: 520px;
  font-size: 1rem;
  line-height: 1.28;
}

.hero .hero-copy {
  max-width: 930px;
  margin: 142px auto 0;
  text-align: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 50px;
}

.hero-card {
  align-self: stretch;
  min-height: 560px;
  border-left: 1px solid var(--black);
  display: grid;
  align-content: end;
  gap: 38px;
  padding-left: 42px;
}

.mark-block {
  width: 230px;
  height: 112px;
  display: grid;
  place-items: center;
  border: 1px solid var(--black);
  background: var(--black);
}

.mark-block img {
  width: 176px;
  filter: invert(1);
}

.quote-line {
  padding-top: 28px;
  border-top: 1px solid var(--black);
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 3.25rem);
  line-height: 1.04;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 76px;
  align-items: start;
}

.lead {
  max-width: 710px;
  font-size: 1rem;
  line-height: 1.28;
}

#approach h2 {
  font-size: clamp(3.6rem, 5vw, 5.2rem);
}

#approach .lead {
  max-width: 720px;
  padding-top: 56px;
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
  line-height: 1.17;
}

.stack {
  display: grid;
  gap: 24px;
}

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

.rule-item {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 0.58fr);
  gap: 28px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.rule-item h3 {
  font-size: clamp(1.45rem, 1.9vw, 1.9rem);
}

.rule-item p {
  max-width: 360px;
  line-height: 1.22;
}

.numbered-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 88px;
  background: var(--black);
  border: 1px solid var(--black);
}

.process-card {
  min-height: 330px;
  padding: 30px 28px;
  background: var(--ivory);
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: stretch;
  gap: clamp(78px, 7vw, 104px);
}

.process-card > div {
  align-self: start;
}

.process-card span {
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 1;
}

.process-card h3 {
  font-size: clamp(2.25rem, 3vw, 3.3rem);
}

.process-card p {
  color: var(--ink-soft);
  max-width: 360px;
  font-size: clamp(1.08rem, 1.45vw, 1.3rem);
  line-height: 1.12;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(340px, 1fr);
  gap: 72px;
  align-items: start;
}

.contact-panel h2 {
  max-width: 560px;
  font-size: clamp(2.65rem, 3.65vw, 3.35rem);
}

.contact-details {
  margin-top: 40px;
  border-top: 1px solid var(--black);
}

.detail-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.detail-row dt {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-row dd {
  margin: 0;
}

.form-panel {
  border: 0;
  background: transparent;
  padding: 18px 0 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  font-family: var(--serif);
  font-size: 0.88rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

input,
textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--black);
  border-radius: 0;
  background: transparent;
  color: var(--black);
  font: 1rem/1.35 var(--serif);
  padding: 4px 0 8px;
}

textarea {
  min-height: 118px;
  resize: vertical;
}

input:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}

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

.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
}

.form-status {
  min-height: 1.4em;
  font-size: 0.95rem;
}

.form-status[data-state="error"] {
  color: #8a1f16;
}

.form-status[data-state="success"] {
  color: #1f5c35;
}

.site-footer {
  background: var(--ivory);
  color: var(--black);
}

.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  min-height: 292px;
  padding: 48px 0 34px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: end;
}

.footer-inner > div {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.footer-logo {
  width: 292px;
  filter: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px 24px;
  font-size: 0.8rem;
}

.legal-hero {
  border-bottom: 1px solid var(--black);
}

.legal-hero .section-inner {
  padding-bottom: 60px;
}

.legal-hero h1 {
  overflow-wrap: anywhere;
}

.legal-kicker {
  margin-bottom: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-layout {
  width: min(940px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 88px;
}

.legal-article {
  display: grid;
  gap: 28px;
}

.legal-article section {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.legal-article h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.legal-article h3 {
  margin: 20px 0 10px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-article p + p {
  margin-top: 0.9rem;
}

.provider-list {
  columns: 2;
  column-gap: 42px;
  margin-top: 16px;
  padding-left: 1rem;
}

.related-links {
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid var(--black);
}

.related-links ul {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 24px;
  padding: 0;
  list-style: none;
}

@media (max-width: 940px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 92px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--black);
    background: var(--ivory);
  }

  .site-nav[data-open] {
    display: flex;
  }

  .site-nav a {
    padding: 18px 20px;
    border-top: 1px solid var(--line);
  }

  .hero-grid,
  .split,
  .contact-panel {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero-card {
    min-height: auto;
    border-left: 0;
    border-top: 1px solid var(--black);
    padding: 34px 0 0;
  }

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

  .process-card {
    min-height: auto;
    gap: 56px;
  }

  .rule-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .section-inner,
  .hero-grid,
  .footer-inner,
  .legal-layout {
    width: min(100% - 28px, var(--max));
  }

  .header-inner {
    min-height: 78px;
  }

  .brand img {
    width: 172px;
  }

  .site-nav {
    top: 78px;
  }

  .section-inner {
    padding: 62px 0;
  }

  h1 {
    font-size: clamp(3.35rem, 18vw, 5.2rem);
  }

  h2 {
    font-size: clamp(2.2rem, 12vw, 3.9rem);
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding: 46px 0 48px;
  }

  .form-panel {
    padding: 22px;
  }

  .form-grid,
  .detail-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .provider-list {
    columns: 1;
  }
}
