:root {
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  --text-display: clamp(2.7rem, 6vw, 5.4rem);
  --text-h2: clamp(2rem, 4vw, 3.25rem);
  --text-h3: clamp(1.2rem, 2vw, 1.55rem);
  --text-body: 1.0625rem;
  --text-support: 0.9375rem;
  --text-small: 0.8125rem;
  --text-label: 0.6875rem;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --max-page: 1180px;
  --measure: 66ch;
  --space-section: clamp(5.5rem, 10vw, 9rem);
  --space-block: clamp(1.5rem, 3vw, 2.5rem);
  --radius-small: 4px;
  --radius-medium: 8px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

button, a { font: inherit; }

a { color: inherit; }

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

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin-top: 0; }

h1, h2, h3, h4 {
  font-weight: var(--weight-semibold);
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 { font-size: var(--text-display); line-height: 0.98; }
h2 { font-size: var(--text-h2); line-height: 1.08; }
h3 { font-size: var(--text-h3); line-height: 1.25; }

p { max-width: var(--measure); }

.shell {
  width: min(calc(100% - 48px), var(--max-page));
  margin-inline: auto;
}

.section {
  padding-block: var(--space-section);
}

.label {
  font-size: var(--text-label);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.support { font-size: var(--text-support); }
.caption { font-size: var(--text-small); }

.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;
}

@media (max-width: 700px) {
  .shell { width: min(calc(100% - 32px), var(--max-page)); }
  .section { padding-block: clamp(4rem, 16vw, 6rem); }
}

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