html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', sans-serif;
  background: #F7F4EC;
  color: #14171F;
}

h1, h2, h3, .font-display {
  font-family: 'Space Grotesk', sans-serif;
}

.crop {
  position: relative;
}

.crop::before,
.crop::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.crop::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
}

.crop::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.reg-dot,
.logo-mark {
  mix-blend-mode: multiply;
}

input[type="range"] {
  -webkit-appearance: none;
  height: 4px;
  background: #14171F;
  border-radius: 2px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background: #D62828;
  border: 3px solid #F7F4EC;
  box-shadow: 0 0 0 1.5px #14171F;
  cursor: pointer;
  margin-top: -8px;
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background: #D62828;
  border: 3px solid #F7F4EC;
  box-shadow: 0 0 0 1.5px #14171F;
  cursor: pointer;
  border: none;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
  background-color: #0a1430;
  isolation: isolate;
}

.hero-slider__slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slider__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.06);
  animation: hero-fade 15s ease-in-out infinite both;
  will-change: opacity, transform;
}

.hero-slider__slide:nth-child(1) {
  animation-delay: 0s;
}

.hero-slider__slide:nth-child(2) {
  animation-delay: 5s;
}

.hero-slider__slide:nth-child(3) {
  animation-delay: 10s;
}

@keyframes hero-fade {
  0% {
    opacity: 0;
    transform: scale(1.06);
  }
  8% {
    opacity: 1;
  }
  33.33% {
    opacity: 1;
  }
  41.33% {
    opacity: 0;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

.hero-slider__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 14, 38, 0.88) 0%, rgba(8, 14, 38, 0.7) 45%, rgba(8, 14, 38, 0.35) 100%),
    linear-gradient(180deg, rgba(8, 14, 38, 0.25) 0%, rgba(8, 14, 38, 0) 30%, rgba(8, 14, 38, 0.45) 100%);
}

.hero-slider__content {
  position: relative;
  z-index: 2;
  width: 100%;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

@media (min-width: 768px) {
  .hero-slider {
    min-height: 640px;
  }
}

@media (max-width: 767px) {
  .hero-slider__overlay {
    background: rgba(8, 14, 38, 0.78);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .hero-slider__slide {
    animation: none;
    transform: none;
  }

  .hero-slider__slide:first-child {
    opacity: 1;
  }
}

.site-neon {
  position: relative;
  background-color: #0a1430;
  background-image:
    linear-gradient(180deg, rgba(8, 14, 38, 0.45) 0%, rgba(8, 14, 38, 0.7) 100%),
    url('../img/bg/neon-brick-tile-seamless.png'),
    radial-gradient(ellipse 60% 140% at 12% 0%, rgba(56, 120, 255, 0.38) 0%, rgba(56, 120, 255, 0) 70%),
    radial-gradient(ellipse 50% 140% at 88% 100%, rgba(130, 80, 255, 0.28) 0%, rgba(130, 80, 255, 0) 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='48' viewBox='0 0 96 48'%3E%3Cg fill='none' stroke='%233d7bff' stroke-opacity='0.42' stroke-width='1.5'%3E%3Cpath d='M0 0.75H96M0 24.75H96M24 0.75V24.75M72 0.75V24.75M0 24.75V48M48 24.75V48M96 24.75V48'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat, repeat, no-repeat, no-repeat, repeat;
  background-size: 100% 100%, auto, 100% 100%, 100% 100%, 96px 48px;
  background-position: 0 0, center top, 0 0, 0 0, center top;
}

.site-header {
  color: #F7F4EC;
  border-bottom: 1px solid rgba(227, 167, 59, 0.55);
  box-shadow: 0 1px 0 rgba(212, 46, 36, 0.35), 0 8px 24px rgba(30, 80, 220, 0.25);
}

.site-header nav a {
  color: rgba(247, 244, 236, 0.9);
  transition: color 0.2s, text-shadow 0.2s;
}

.site-header nav a:hover,
.site-header nav a.text-press {
  color: #E3A73B;
  text-shadow: 0 0 10px rgba(227, 167, 59, 0.55);
}

.site-header .logo-mark {
  mix-blend-mode: normal;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(227, 167, 59, 0.6), 0 0 14px rgba(61, 123, 255, 0.45);
}

.site-header .dprint-cart-link {
  color: #F7F4EC;
  border-color: rgba(227, 167, 59, 0.6);
  background: rgba(8, 14, 38, 0.45);
}

.site-header .dprint-cart-link:hover {
  color: #E3A73B;
  border-color: #E3A73B;
  box-shadow: 0 0 12px rgba(227, 167, 59, 0.35);
}

.site-header .dprint-cart-link [data-cart-count] {
  color: #E3A73B;
  font-weight: 800;
}

.site-footer {
  color: rgba(247, 244, 236, 0.78);
  border-top: 1px solid rgba(227, 167, 59, 0.55);
  box-shadow: 0 -1px 0 rgba(212, 46, 36, 0.35), 0 -8px 24px rgba(30, 80, 220, 0.2);
}

.site-footer .font-display.text-paper {
  color: #E3A73B;
  text-shadow: 0 0 12px rgba(227, 167, 59, 0.35);
}

.site-footer .font-semibold.text-paper {
  color: #F2C46D;
}

.site-footer a {
  color: rgba(247, 244, 236, 0.85);
  transition: color 0.2s;
}

.site-footer a:hover {
  color: #E3A73B;
}

.site-footer [data-cart-count] {
  color: #E3A73B;
  font-weight: 700;
}

.site-footer .border-paper\/10 {
  border-color: rgba(227, 167, 59, 0.2);
}

.site-footer .text-paper\/40 {
  color: rgba(247, 244, 236, 0.55);
}

.neon-section {
  border-top: 1px solid rgba(227, 167, 59, 0.55);
  border-bottom: 1px solid rgba(227, 167, 59, 0.55);
  box-shadow: inset 0 1px 0 rgba(212, 46, 36, 0.3), inset 0 -1px 0 rgba(212, 46, 36, 0.3);
}

.neon-card {
  color: #F7F4EC;
  background: rgba(8, 14, 38, 0.66);
  border: 1px solid rgba(61, 123, 255, 0.4);
  border-radius: 4px;
  box-shadow: 0 0 18px rgba(61, 123, 255, 0.22), inset 0 0 24px rgba(61, 123, 255, 0.08);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.neon-card:hover {
  border-color: rgba(227, 167, 59, 0.75);
  box-shadow: 0 0 22px rgba(227, 167, 59, 0.28), inset 0 0 24px rgba(61, 123, 255, 0.1);
  transform: translateY(-2px);
}

.neon-card h3 {
  color: #F2C46D;
}

.neon-panel {
  color: #F7F4EC;
  border: 1px solid rgba(227, 167, 59, 0.6);
  border-radius: 4px;
  box-shadow: inset 0 0 0 2000px rgba(8, 14, 38, 0.42), 0 0 26px rgba(61, 123, 255, 0.3);
}

@media (prefers-reduced-motion: reduce) {
  .neon-card,
  .neon-card:hover {
    transform: none;
  }
}

.lightbox-trigger {
  cursor: zoom-in;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.lightbox-trigger:hover {
  transform: scale(1.04);
  filter: brightness(1.05);
}

.lightbox-trigger:focus-visible {
  outline: 3px solid #E3A73B;
  outline-offset: -3px;
}

.lightbox-lock,
.lightbox-lock body {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 16px 24px;
  background: rgba(6, 10, 28, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-open {
  opacity: 1;
}

.lightbox__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: min(1200px, 100%);
  transform: scale(0.94);
  transition: transform 0.3s ease;
}

.lightbox.is-open .lightbox__figure {
  transform: scale(1);
}

.lightbox__image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 150px);
  max-height: calc(100dvh - 150px);
  width: auto;
  height: auto;
  object-fit: contain;
  border: 2px solid #E3A73B;
  border-radius: 6px;
  background: #0a1430;
  box-shadow: 0 0 0 1px rgba(212, 46, 36, 0.6), 0 0 28px rgba(227, 167, 59, 0.35), 0 0 60px rgba(212, 46, 36, 0.25);
}

.lightbox__caption {
  max-width: 90vw;
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #F7F4EC;
  text-shadow: 0 0 12px rgba(227, 167, 59, 0.45);
}

.lightbox__close {
  position: fixed;
  top: 14px;
  right: 14px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #E3A73B;
  border-radius: 9999px;
  background: rgba(10, 20, 48, 0.85);
  color: #F7F4EC;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(227, 167, 59, 0.45);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.lightbox__close:hover,
.lightbox__close:focus-visible {
  background: #D42E24;
  border-color: #D42E24;
  transform: rotate(90deg);
  outline: none;
}

@media (max-width: 640px) {
  .lightbox {
    padding: 72px 10px 16px;
  }

  .lightbox__image {
    max-height: calc(100vh - 140px);
    max-height: calc(100dvh - 140px);
    border-width: 1.5px;
  }

  .lightbox__caption {
    font-size: 14px;
  }

  .lightbox__close {
    width: 52px;
    height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox,
  .lightbox__figure,
  .lightbox-trigger,
  .lightbox__close {
    transition: none;
  }

  .lightbox-trigger:hover {
    transform: none;
  }
}

.brand-link {
  text-decoration: none;
}

.brand-name {
  display: inline-block;
  letter-spacing: 0.01em;
  color: #E3A73B;
  background: linear-gradient(180deg, #FBE3A1 0%, #E3A73B 55%, #C08628 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(227, 167, 59, 0.45));
  transition: filter 0.2s;
}

.brand-link:hover .brand-name {
  filter: drop-shadow(0 0 12px rgba(227, 167, 59, 0.7));
}

@media (max-width: 400px) {
  .site-header .header-order {
    display: none;
  }
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.brand-tagline {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.04em;
  color: rgba(242, 196, 109, 0.85);
  white-space: nowrap;
}

.footer-tagline {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(242, 196, 109, 0.8);
  margin: 4px 0 12px;
}

@media (max-width: 1023px) {
  .brand-tagline {
    font-size: 9px;
    letter-spacing: 0.02em;
  }

  .brand-tagline__line {
    display: block;
  }
}

@media (max-width: 1023px) and (min-width: 768px) {
  .site-header .header-order {
    display: none;
  }
}

@media (max-width: 520px) {
  .site-header .header-order {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .site-header nav {
    gap: 20px;
  }
}

@media (min-width: 640px) {
  .site-header .logo-mark {
    width: 48px;
    height: 48px;
  }
}
