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

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  min-width: 20rem;
  margin: 0;
  overflow-x: hidden;
  color: var(--color-text);
  background: var(--color-surface);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
}

body.has-open-overlay {
  overflow: hidden;
}

main,
header,
footer,
section,
nav {
  display: block;
}

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

img {
  height: auto;
}

button,
input,
summary {
  font: inherit;
}

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

button {
  color: inherit;
}

a {
  color: inherit;
}

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

h1,
h2,
h3,
.h1,
.h2,
.h3 {
  margin-block: 0 0.45em;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

h1,
.h1 {
  font-size: var(--text-h1);
}

h2,
.h2 {
  font-size: var(--text-h2);
}

h3,
.h3 {
  font-size: var(--text-h3);
}

p {
  margin-block: 0 var(--space-4);
}

.site-shell {
  width: min(calc(100% - (2 * var(--page-x))), var(--content-max));
  margin-inline: auto;
}

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

.section--soft {
  background: var(--color-surface-soft);
}

.eyebrow {
  margin: 0;
  color: var(--color-subtle);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  min-height: 2.875rem;
  align-items: center;
  justify-content: center;
  padding-inline: 1.125rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition:
    color var(--motion-fast),
    border-color var(--motion-fast),
    background var(--motion-fast),
    box-shadow var(--motion-fast),
    transform var(--motion-fast);
}

.button--outline {
  border: 0.0625rem solid var(--color-outline-strong);
  background: var(--color-surface);
}

.button--outline:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-soft);
  transform: translateY(-0.0625rem);
}

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

.skip-link {
  position: fixed;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 10000;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  color: var(--color-on-dark);
  background: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform var(--motion-fast);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
