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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
}

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

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

button {
  cursor: pointer;
}

a {
  color: inherit;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--focus, #0b57d0);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  background: #fff;
  color: #111;
  padding: 0.7rem 1rem;
  border-radius: 4px;
}

.skip:focus {
  top: 1rem;
}

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

[data-reveal] {
  opacity: 1;
  transform: none;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal-in 0.7s ease forwards;
  animation-play-state: paused;
}

.js [data-reveal].is-in {
  animation-play-state: running;
}

@keyframes reveal-in {
  to {
    opacity: 1;
    transform: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
