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

html {
  background: var(--color-surface-page);
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

html[data-qa-text-scale="2"] {
  font-size: 200%;
}

html[data-qa-motion] body::after {
  position: fixed;
  z-index: 1100;
  bottom: var(--space-3);
  left: var(--space-3);
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--color-action-primary);
  color: var(--color-content-inverse);
  content: "QA · motion: normal";
  font-family: var(--font-text);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  pointer-events: none;
}

html[data-qa-motion="reduced"] body::after {
  content: "QA · motion: reduced";
}

body {
  margin: 0;
  background: var(--color-surface-page);
  color: var(--color-content-primary);
  font-family: var(--font-text);
  font-size: 1rem;
  font-synthesis: none;
  font-weight: 400;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
summary {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  touch-action: manipulation;
}

a {
  color: var(--color-content-secondary);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.13em;
}

p,
h1,
h2,
h3,
ul,
ol,
dl,
dd,
figure,
blockquote,
pre {
  margin-block: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-wrap: balance;
  word-break: normal;
}

h1 {
  font-size: 2.25rem;
  line-height: 1.1667;
}

h2 {
  font-size: 1.875rem;
  line-height: 1.2;
}

h3 {
  font-size: 1.5rem;
  line-height: 1.25;
}

strong {
  font-weight: 600;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 0.125rem solid var(--color-focus-light);
  outline-offset: 0.1875rem;
}

.on-dark :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--color-focus-dark);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: var(--space-3);
  left: var(--space-3);
  min-height: 2.75rem;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-control);
  background: var(--color-action-primary);
  color: var(--color-content-inverse);
  font-weight: 600;
  transform: translateY(calc(-100% - 2rem));
  transition: transform var(--motion-fast) linear;
}

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

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

.page-frame {
  width: min(100%, var(--layout-page-max));
  margin-inline: auto;
  padding-inline: var(--layout-page-pad);
}

.reading-column {
  width: min(100%, var(--layout-reading-max));
  margin-inline: auto;
}

.eyebrow,
.section-kicker {
  color: var(--color-content-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.prose-flow {
  display: grid;
  gap: var(--space-5);
}

.prose-flow p,
.prose-flow li,
.legal-prose p,
.legal-prose li,
.legal-data dd {
  font-size: 1rem;
  line-height: 1.5;
}

.prose-flow a,
.legal-prose a {
  color: var(--color-content-secondary);
}

main:focus {
  outline: none;
}

@media (min-width: 48rem) {
  h1 {
    font-size: 3rem;
    line-height: 1.125;
  }

  h2 {
    font-size: 2.625rem;
    line-height: 1.238;
  }
}

@media (min-width: 75rem) {
  h1 {
    font-size: 3.5rem;
    line-height: 1.107;
  }

  h2 {
    font-size: 3rem;
    line-height: 1.208;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:not([data-qa-motion="normal"]) {
    scroll-behavior: auto;
  }

  html:not([data-qa-motion="normal"]) *,
  html:not([data-qa-motion="normal"]) *::before,
  html:not([data-qa-motion="normal"]) *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

html[data-motion="reduced"] {
  scroll-behavior: auto;
}

html[data-motion="reduced"] *,
html[data-motion="reduced"] *::before,
html[data-motion="reduced"] *::after {
  animation-duration: 1ms !important;
  animation-iteration-count: 1 !important;
  scroll-behavior: auto !important;
  transition-duration: 1ms !important;
}
