* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

::selection {
  background: rgba(83, 108, 255, 0.2);
}

:focus-visible {
  outline: 3px solid rgba(83, 108, 255, 0.5);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: break-word;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  border-radius: var(--radius);
  padding: 11px 14px;
  background: var(--text);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.section,
.page-hero,
.legal-shell,
.article-shell {
  width: min(var(--max), calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
}

.section {
  padding: 84px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading-row {
  display: flex;
  max-width: none;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.section-heading h2,
.compact-cta h2,
.final-cta h2 {
  margin: 0;
  font-size: clamp(36px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p,
.compact-cta p,
.final-cta p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 60px;
  align-items: end;
  padding: 86px 0 64px;
}

.page-hero h1 {
  max-width: 850px;
  margin: 14px 0 0;
  font-size: clamp(48px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.page-hero > div > p {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.prose {
  color: #283043;
  font-size: 17px;
  line-height: 1.78;
}

.prose > :first-child {
  margin-top: 0;
}

.prose h2 {
  margin: 54px 0 18px;
  color: var(--text);
  font-size: 31px;
  line-height: 1.16;
  letter-spacing: -0.01em;
}

.prose h3 {
  margin: 34px 0 12px;
  color: var(--text);
  font-size: 22px;
  line-height: 1.25;
}

.prose p {
  margin: 0 0 22px;
}

.prose ul,
.prose ol {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding-left: 24px;
}

.prose li::marker {
  color: var(--accent-strong);
  font-weight: 800;
}

.prose a {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose strong {
  color: var(--text);
}

.prose blockquote {
  margin: 30px 0;
  border-left: 4px solid var(--accent);
  padding: 4px 0 4px 22px;
  color: var(--muted);
  font-size: 19px;
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 72px;
  }

  .section,
  .page-hero,
  .legal-shell,
  .article-shell {
    width: min(100% - 32px, 480px);
    max-width: min(100% - 32px, 480px);
  }

  .section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .section-heading h2,
  .compact-cta h2,
  .final-cta h2 {
    font-size: clamp(30px, 8vw, 36px);
  }

  .section-heading p,
  .compact-cta p,
  .final-cta p {
    font-size: 16px;
    line-height: 1.55;
  }

  .page-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 52px 0 44px;
  }

  .page-hero h1 {
    font-size: clamp(40px, 11vw, 52px);
  }

  .page-hero > div > p,
  .prose {
    font-size: 16px;
  }

  .prose h2 {
    margin-top: 42px;
    font-size: 27px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
