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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  transition: background-color var(--transition), color var(--transition);
}

body.modal-open,
body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
}

h2 {
  font-size: clamp(1.45rem, 2.8vw, 2.3rem);
}

h3 {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}

p,
li {
  margin: 0;
  color: var(--text-muted);
}

ul {
  margin: 0;
  padding-left: 1.1rem;
}

code {
  padding: 0.15rem 0.4rem;
  border-radius: 8px;
  background: var(--bg-alt);
  color: var(--text);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
}

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

.button-reset {
  border: 0;
  background: transparent;
  padding: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.text-link {
  color: var(--blue);
  font-weight: 700;
}

.text-link:hover {
  color: var(--blue-strong);
}
