html {
  scroll-padding-top: calc(var(--header-height, 100px) + 20px);
}

.site-header {
  transition: background-color .25s ease, box-shadow .25s ease;
}

.site-header.is-scrolled {
  background-color: rgba(7, 5, 4, .96);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .2);
}

.site-header .nav-link.active {
  color: var(--gold-bright);
}

.site-header .nav-link.active::after {
  transform: scaleX(1);
}

.motion-enabled .button {
  transition: border-color .22s ease, background-color .22s ease;
}

.motion-enabled .button:hover,
.motion-enabled .product-card:hover .product-image img {
  transform: none;
}

.motion-enabled .product-image img {
  transition: filter .25s ease;
}

.news-item:hover,
.news-item:focus-visible {
  color: var(--gold-bright);
  background-color: rgba(199, 161, 90, .04);
}

a:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 5px;
}

@media (max-width: 767px) {
  .hero-inner,
  .section,
  .footer-inner,
  .site-header .container-fluid {
    width: calc(100% - 32px);
  }

  .hero-copy-block,
  .journal-copy,
  .news-panel {
    min-width: 0;
  }

  .hero-actions,
  .media-list,
  .craft-stats,
  .footer-inner,
  .footer-links {
    flex-wrap: wrap;
  }

  .footer-inner { padding-block: 28px; }
  .journal-copy { padding-left: 20px; }
  .craft-panel { padding: 28px 20px; }
  .news-item { grid-template-columns: 1fr; gap: 4px; }
  .product-card { grid-template-columns: 1fr; }
  .product-image { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-header, .button, .product-image img, .site-header .nav-link::after {
    transition: none;
  }
  .button:hover, .product-card:hover .product-image img { transform: none; }
}
