html {
  scroll-behavior: smooth;
}

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

/* Header shadow once page has scrolled */
#site-header.is-scrolled {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.nav-link {
  position: relative;
  color: #171717;
  padding-bottom: 2px;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: #FF5A47;
  transition: right 0.25s ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  right: 0;
}

.mobile-link {
  display: block;
  padding: 1rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-link:active,
.mobile-link:hover {
  color: #FF5A47;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Focus states */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #FF5A47;
  outline-offset: 3px;
  border-radius: 2px;
}

video {
  background: #D8D2C8;
}
