@font-face {
  font-family: "Univers 67";
  src: url("assets/OPTIUniversSixtySeven.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --background: #ffffff;
  --foreground: #000000;
  --hoodie-shadow: rgb(0 0 0 / 34%);
  --hoodie-shadow-hover: rgb(0 0 0 / 42%);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

html {
  background: var(--background);
  overscroll-behavior: none;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--background);
  color: var(--foreground);
  font-family: "Univers 67", "Arial Narrow", Arial, sans-serif;
  transition: background-color 280ms cubic-bezier(0.22, 1, 0.36, 1),
              color 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

html.theme-dark {
  --background: #000000;
  --foreground: #ffffff;
  --hoodie-shadow: rgb(255 255 255 / 19%);
  --hoodie-shadow-hover: rgb(255 255 255 / 26%);
  color-scheme: dark;
}

html.theme-red {
  --background: #ff0000;
  --foreground: #000000;
  --hoodie-shadow: rgb(0 0 0 / 38%);
  --hoodie-shadow-hover: rgb(0 0 0 / 46%);
  color-scheme: light;
}

.stage {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  isolation: isolate;
}

.display {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(-4.5vh);
}

.logo-button {
  position: relative;
  z-index: 2;
  display: inline-flex;
  max-width: 94vw;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  appearance: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: clamp(4.5rem, min(18vw, 29vh), 16rem);
  line-height: 0.76;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transform-origin: center;
}

.logo-button.intro {
  animation: arrive 760ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.logo-button:active {
  transform: scale(0.985);
}

.logo-button:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 0.12em;
}

.logo-button::selection,
.logo-button *::selection {
  background: currentColor;
  color: var(--background);
}

.logo-text {
  display: inline-block;
}

.date-time {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 3.5vw, 3rem);
  margin-top: clamp(1.8rem, 5.1vw, 4.5rem);
  color: inherit;
  font-size: clamp(2.115rem, min(8.82vw, 14.4vh), 8.1rem);
  line-height: 0.76;
  letter-spacing: -0.055em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  user-select: none;
}

.clock,
.date {
  min-width: max-content;
}

.nav-button {
  position: fixed;
  z-index: 4;
  bottom: max(18px, calc(env(safe-area-inset-bottom) + 12px));
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7.5rem;
  padding: 0.58em 1.35em 0.64em;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font-size: clamp(0.72rem, 1.05vw, 0.9rem);
  line-height: 1;
  letter-spacing: 0.08em;
  text-decoration: none;
  transform: translateX(-50%);
  transition: background-color 160ms ease, color 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.nav-button:hover,
.nav-button:focus-visible {
  background: var(--foreground);
  color: var(--background);
  outline: none;
}

.explore-stage,
.placeholder-stage {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 2rem;
  place-items: center;
}

.product-grid {
  display: grid;
  width: min(94vw, 1100px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(0.5rem, 4vw, 4.5rem);
  padding: 1rem 0 5.5rem;
}

.product-card {
  display: grid;
  min-width: 0;
  align-self: center;
  grid-template-rows: auto auto;
  place-items: center;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.product-visual {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  align-self: center;
  animation: garment-float 5.4s ease-in-out infinite;
  will-change: transform;
}

.product-card-black .product-visual {
  width: min(92.9%, 50.2vh);
  aspect-ratio: 1009 / 908;
}

.product-card-red .product-visual {
  width: min(71.8%, 38.8vh);
  aspect-ratio: 1081 / 1259;
  animation-delay: -2.35s;
  animation-duration: 6.1s;
}

.product-image {
  position: absolute;
  z-index: 1;
  display: block;
  max-width: none;
  height: auto;
  max-height: none;
  object-fit: contain;
  filter: drop-shadow(0 28px 17px var(--hoodie-shadow));
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
              filter 220ms ease;
}

.product-card-black .product-image {
  top: -30.4%;
  left: -4.96%;
  width: 107.63%;
}

.product-card-red .product-image {
  top: -7.31%;
  left: -0.28%;
  width: 100.46%;
}

.product-card:hover .product-image,
.product-card:focus-visible .product-image {
  transform: scale(1.035);
  filter: drop-shadow(0 34px 20px var(--hoodie-shadow-hover));
}

.product-name {
  position: relative;
  z-index: 2;
  margin-top: clamp(0.65rem, 1.2vw, 1rem);
  font-size: clamp(0.76rem, 1.45vw, 1.15rem);
  line-height: 1;
  letter-spacing: 0.06em;
  text-align: center;
}

.product-card:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 0.75rem;
}

.empty-message {
  max-width: 92vw;
  margin: 0;
  font-size: clamp(2.4rem, min(7.5vw, 12vh), 7rem);
  line-height: 0.88;
  letter-spacing: -0.035em;
  text-align: center;
}

.noscript {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  margin: 0;
  font: 12px/1.4 Arial, sans-serif;
  text-align: center;
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: scale(0.985);
    filter: blur(9px);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

@keyframes garment-float {
  0%,
  100% {
    transform: translateY(0) rotate(-0.45deg);
  }
  50% {
    transform: translateY(-14px) rotate(0.45deg);
  }
}

@media (max-width: 520px) {
  .logo-button {
    font-size: 18vw;
  }

  .date-time {
    gap: 1rem;
    margin-top: 1.7rem;
    font-size: 8.82vw;
  }

  .nav-button {
    font-size: 0.72rem;
  }

  .explore-stage {
    padding: 1rem;
  }

  .product-grid {
    width: 96vw;
    gap: 0;
    padding-bottom: 4.75rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  body {
    transition: none;
  }

  .logo-button.intro {
    animation: none;
  }

  .logo-button:active {
    transform: none;
  }

  .nav-button {
    transition: none;
  }

  .product-visual {
    animation: none;
  }

  .product-image {
    transition: none;
  }
}
