:root {
  --black: #000000;
  --white: #ffffff;
  --line: rgba(0, 0, 0, .18);
  --soft: rgba(0, 0, 0, .06);
  --overlay: rgba(0, 0, 0, .38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--black);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

a,
button {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 68px;
  padding: 0 clamp(18px, 4vw, 54px);
  color: var(--white);
  mix-blend-mode: difference;
  text-transform: uppercase;
}

.brand {
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: .08em;
}

.menu-button,
.cart-button,
.desktop-nav a,
.menu-close {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
}

.cart-button {
  justify-self: end;
}

.cart-button span {
  margin-left: 5px;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
}

.hero-slideshow,
.hero-slide,
.hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slideshow {
  z-index: 1;
}

.hero-slide {
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1s ease, transform 6s ease;
}

.hero-slide.loaded.active {
  opacity: 1;
  transform: scale(1);
}

.hero-fallback {
  z-index: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--white);
  color: var(--white);
  background:
    linear-gradient(135deg, transparent 0 49.8%, var(--white) 50%, transparent 50.2%),
    linear-gradient(45deg, transparent 0 49.8%, var(--white) 50%, transparent 50.2%),
    var(--black);
  opacity: .9;
}

.hero-fallback span,
.media-slot span,
.product-media span {
  padding: 10px 12px;
  border: 1px solid currentColor;
  background: var(--white);
  color: var(--black);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--overlay);
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 18px;
  justify-items: center;
  padding: 86px 18px 42px;
  text-align: center;
}

.hero-copy p,
.section-head p,
.panel-caption p,
.journal p,
.drawer-panel p {
  margin: 0;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(4.8rem, 18vw, 15rem);
  font-weight: 700;
  letter-spacing: .08em;
  line-height: .8;
}

.text-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border-bottom: 1px solid currentColor;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

.category-strip a {
  display: grid;
  min-height: 92px;
  place-items: center;
  border-right: 1px solid var(--line);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background .25s ease, color .25s ease;
}

.category-strip a:last-child {
  border-right: 0;
}

.category-strip a:hover {
  background: var(--black);
  color: var(--white);
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1.35fr .85fr;
  gap: 1px;
  background: var(--line);
}

.editorial-panel {
  display: grid;
  min-height: 720px;
  grid-template-rows: 1fr auto;
  background: var(--white);
}

.editorial-panel.large {
  min-height: 820px;
}

.media-slot,
.product-media {
  position: relative;
  display: grid;
  min-height: 360px;
  place-items: center;
  overflow: hidden;
  background: var(--soft);
}

.media-slot::before,
.product-media::before {
  position: absolute;
  inset: 18px;
  border: 1px solid var(--line);
  content: "";
}

.media-slot img,
.product-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .35s ease;
}

.media-slot img.loaded,
.product-media img.loaded {
  opacity: 1;
}

.panel-caption {
  display: grid;
  gap: 12px;
  padding: clamp(24px, 4vw, 48px);
}

.panel-caption h2,
.section-head h2,
.journal h2,
.drawer-panel h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 5rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: .96;
}

.shop-section {
  padding: clamp(54px, 8vw, 110px) clamp(16px, 4vw, 54px);
}

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 34px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.product-card {
  background: var(--white);
}

.product-media {
  aspect-ratio: 3 / 4;
  min-height: 0;
}

.product-info {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 18px;
}

.product-info h3,
.product-info p {
  margin: 0;
  font-size: .86rem;
  font-weight: 400;
  letter-spacing: .02em;
}

.product-info button {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 12px;
  border-bottom: 1px solid currentColor;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.journal {
  display: grid;
  gap: 18px;
  min-height: 70svh;
  align-content: center;
  justify-items: center;
  padding: clamp(58px, 10vw, 140px) 18px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.journal h2 {
  max-width: 940px;
}

.text-link.dark {
  color: var(--black);
}

.mobile-menu,
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  background: var(--white);
  color: var(--black);
}

.mobile-menu.open,
.cart-drawer.open {
  display: grid;
}

.mobile-menu {
  align-content: center;
  gap: 18px;
  padding: 24px;
}

.mobile-menu a {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  font-size: clamp(2.4rem, 12vw, 5rem);
  line-height: .95;
  text-transform: uppercase;
}

.menu-close {
  position: absolute;
  top: 22px;
  right: 20px;
}

.cart-drawer {
  justify-items: end;
  background: rgba(0, 0, 0, .38);
}

.drawer-panel {
  width: min(100vw, 430px);
  height: 100%;
  display: grid;
  align-content: start;
  gap: 20px;
  padding: 24px;
  background: var(--white);
  transform: translateX(100%);
  animation: drawerIn .35s ease forwards;
}

.drawer-close {
  justify-self: end;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.drawer-line {
  min-height: 86px;
  display: grid;
  align-items: center;
  border-block: 1px solid var(--line);
}

.checkout-button {
  min-height: 54px;
  border: 1px solid var(--black);
  background: var(--black);
  color: var(--white);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .75s ease, transform .75s ease;
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drawerIn {
  to {
    transform: translateX(0);
  }
}

@media (max-width: 900px) {
  .site-header {
    min-height: 58px;
    padding: 0 16px;
  }

  .desktop-nav {
    display: none;
  }

  .hero-copy h1 {
    font-size: clamp(4rem, 24vw, 8rem);
  }

  .category-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-strip a {
    min-height: 74px;
  }

  .editorial-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .editorial-panel,
  .editorial-panel.large {
    min-height: 610px;
  }

  .media-slot {
    min-height: 440px;
  }
}

@media (max-width: 520px) {
  .brand {
    font-size: 1.25rem;
  }

  .menu-button,
  .cart-button {
    font-size: .68rem;
  }

  .hero {
    min-height: 92svh;
  }

  .hero-copy {
    gap: 14px;
    padding-top: 64px;
  }

  .hero-copy h1 {
    font-size: clamp(3.4rem, 25vw, 6rem);
    letter-spacing: .05em;
  }

  .hero-copy p {
    font-size: .68rem;
  }

  .category-strip a {
    min-height: 64px;
    font-size: .72rem;
  }

  .editorial-panel,
  .editorial-panel.large {
    min-height: auto;
  }

  .media-slot {
    min-height: 72svh;
  }

  .panel-caption,
  .shop-section {
    padding: 28px 16px;
  }

  .panel-caption h2,
  .section-head h2,
  .journal h2,
  .drawer-panel h2 {
    font-size: clamp(2rem, 12vw, 3.7rem);
  }

  .product-grid {
    border-inline: 0;
  }

  .product-info {
    padding: 16px;
  }

  .journal {
    min-height: 56svh;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
