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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  margin: 0 0 var(--space-sm);
  line-height: var(--line-height-tight);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--font-size-2xl); }
h2 { font-size: var(--font-size-xl); }
h3 { font-size: var(--font-size-lg); }
h4 { font-size: var(--font-size-md); }

@media (min-width: 768px) {
  h1 { font-size: var(--font-size-3xl); }
  h2 { font-size: var(--font-size-2xl); }
  h3 { font-size: var(--font-size-xl); }
}

p {
  margin: 0 0 var(--space-sm);
  color: var(--color-text-muted);
}

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

ul, ol {
  padding-left: 1.25em;
  color: var(--color-text-muted);
}

button {
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: var(--font-size-base);
  max-width: 100%;
}

::selection {
  background: var(--color-yellow);
  color: var(--color-black);
}

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