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

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

body {
  margin: 0;
  background-color: var(--et-bg);
  color: var(--et-text);
  font-family: var(--et-font-sans);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--et-duration) var(--et-ease);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--et-accent);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.75rem;
  font-family: var(--et-font-serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--et-text);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4.1rem);
}

h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.85rem);
}

h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
}

p {
  margin: 0 0 1rem;
  color: var(--et-text-muted);
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.et-skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 999;
  padding: 0.75rem 1.25rem;
  background: var(--et-accent);
  color: var(--et-accent-ink);
  font-weight: 600;
  border-radius: var(--et-radius-sm);
}

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