.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 12px 16px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  box-shadow: 0 8px 30px rgb(37 36 38 / 5%);
}

.colour-grid {
  max-height: 265px;
  overflow: auto;
  padding: 3px;
  scrollbar-width: thin;
}

.colour-choice {
  min-height: 46px;
}

.colour-choice span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-grid figure {
  cursor: zoom-in;
}

.gallery-grid figure:focus-visible {
  outline-offset: 4px;
}

.image-lightbox {
  width: min(92vw, 980px);
  max-height: 90vh;
  padding: 0;
  border: 0;
  overflow: visible;
  background: transparent;
}

.image-lightbox::backdrop {
  background: rgb(20 19 20 / 88%);
  backdrop-filter: blur(5px);
}

.image-lightbox img {
  display: block;
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
  background: #111;
}

.lightbox-close {
  position: absolute;
  top: -18px;
  right: -18px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

@media (max-width: 600px) {
  .colour-grid {
    max-height: 320px;
  }

  .image-lightbox {
    width: 94vw;
  }

  .lightbox-close {
    top: 8px;
    right: 8px;
  }

  .hero h1 {
    font-size: clamp(46px, 14vw, 64px);
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
