html {
  scroll-behavior: smooth;
  font-size: 17px;
}

body {
  min-height: 100vh;
  color: var(--color-text);
  background: var(--gradient-surface);
  font-family: var(--font-sans);
  font-size: var(--font-size-body);
  font-weight: 400;
  line-height: var(--line-height-body);
  letter-spacing: var(--letter-spacing-body);
  word-break: keep-all;
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.hero-title {
  font-weight: 700;
  letter-spacing: var(--letter-spacing-tight);
  line-height: 1.2;
  text-wrap: balance;
}

p,
li,
.section-desc,
.hero-desc,
.form-text,
.field-help,
.footer-text,
.footer-note {
  text-wrap: pretty;
}

strong,
b {
  font-weight: 700;
}

em {
  font-style: normal;
}

a,
button,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

::selection {
  background: rgba(37, 99, 235, 0.16);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 0;
  box-shadow: var(--shadow-focus);
}

section[id] {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

img {
  border-radius: inherit;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 2000;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  color: var(--color-white);
  background-color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 600;
}

.skip-link:focus {
  top: 20px;
}

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

.link-underline {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-underline:hover {
  color: var(--color-primary-strong);
}

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

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