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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

img,
svg,
video,
iframe {
  max-width: 100%;
  height: auto;
}

svg:not([width]):not([height]) {
  width: 1.4em;
  height: 1.4em;
}

.icon {
  width: 1.4em;
  height: 1.4em;
  max-width: 32px;
  max-height: 32px;
  flex: 0 0 auto;
  vertical-align: middle;
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.15;
  font-weight: 600;
  margin: 0 0 0.6em;
  text-wrap: balance;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-h1); line-height: 1.05; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p {
  margin: 0 0 1.1em;
  max-width: 65ch;
  text-wrap: pretty;
  color: var(--text);
}

p.lead {
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.4rem);
  color: var(--text-muted);
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 2px;
}

ul, ol {
  padding-left: 1.3em;
  max-width: 65ch;
}

li {
  margin-bottom: 0.4em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.visually-hidden {
  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: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--primary);
  color: #fff;
  padding: 0.6em 1em;
  border-radius: var(--radius);
  z-index: 200;
  transition: top 160ms var(--ease-out);
}

.skip-link:focus {
  top: 1rem;
}

button {
  font-family: inherit;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-small);
  letter-spacing: 0.01em;
  padding: 0.95em 1.6em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms var(--ease-out), background-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
  min-height: 44px;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--primary-dark);
}

.btn--ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--border);
}

.btn--ghost:hover {
  background: var(--primary-tint);
  border-color: var(--primary);
}

.btn--on-dark {
  background: #fff;
  color: var(--primary-dark);
}

.btn--on-dark:hover {
  background: var(--accent-tint);
}

strong { font-weight: 700; }

.logo-bg {
  fill: var(--accent);
}
