:root {
  --black: #0b0b0b;
  --white: #ffffff;
  --cream: #f5f1ea;
  --stone: #ded8cd;
  --muted: #666;
  --line: #e8e2d8;
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--black);
  background: var(--cream);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.promo-bar {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  letter-spacing: .02em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 72px;
  padding: 0 34px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  background: rgba(245, 241, 234, .9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(11, 11, 11, .08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  letter-spacing: 0;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 34px;
  font-weight: 700;
}

.main-nav a {
  position: relative;
  padding: 26px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 2px;
  background: var(--black);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button,
.nav-toggle {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 800;
  padding: 10px 12px;
  border-radius: 999px;
}

.icon-button:hover,
.nav-toggle:hover {
  background: rgba(11, 11, 11, .08);
}

.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 5px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-size: 12px;
}

.nav-toggle {
  display: none;
}

.hero {
  min-height: calc(100vh - 112px);
  display: grid;
  align-items: end;
  padding: 24px;
}

.hero-image {
  min-height: 680px;
  border-radius: 38px;
  background:
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.5)),
    radial-gradient(circle at 70% 20%, #f1d8b8 0 12%, transparent 13%),
    linear-gradient(135deg, #2b2b2b, #a79b8c 52%, #ded8cd);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}

.hero-copy {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 72px;
  width: min(920px, calc(100% - 48px));
  text-align: center;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 13px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(52px, 9vw, 118px);
  line-height: .86;
  letter-spacing: -.075em;
  text-transform: uppercase;
}

.hero p:not(.eyebrow) {
  margin: 22px auto 0;
  max-width: 650px;
  font-size: 19px;
  line-height: 1.5;
}

.button-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform .2s ease, opacity .2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-dark {
  background: var(--black);
  color: var(--white);
}

.button-light {
  background: var(--white);
  color: var(--black);
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--black);
  border-top: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
}

.quick-links a {
  padding: 26px;
  text-align: center;
  background: var(--cream);
  font-size: 20px;
  font-weight: 900;
}

.quick-links a:hover {
  background: var(--black);
  color: var(--white);
}

.section {
  padding: 80px 34px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-heading h2,
.story h2,
.newsletter h2,
.feature-card h2,
.category-copy h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 72px);
  line-height: .92;
  letter-spacing: -.055em;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.product-image {
  aspect-ratio: 4 / 5;
  background: #d6cec0;
  transition: transform .3s ease;
}

.product-card:hover .product-image {
  transform: scale(1.025);
}

.image-tee {
  background:
    radial-gradient(circle at 50% 18%, #1f1f1f 0 10%, transparent 11%),
    linear-gradient(145deg, transparent 0 34%, rgba(0,0,0,.12) 35% 36%, transparent 37%),
    linear-gradient(180deg, #eee9df, #c9bca9);
}

.image-pants {
  background:
    linear-gradient(90deg, transparent 0 42%, rgba(0,0,0,.14) 43% 45%, transparent 46%),
    linear-gradient(180deg, #2b2b2b, #57534e);
}

.image-hoodie {
  background:
    radial-gradient(circle at 50% 17%, #ded8cd 0 12%, transparent 13%),
    linear-gradient(180deg, #9b8f81, #3a3632);
}

.image-jacket {
  background:
    linear-gradient(135deg, rgba(255,255,255,.15), transparent 35%),
    linear-gradient(180deg, #161616, #746d64);
}

.product-info {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
}

.product-info h3,
.product-info p {
  margin: 0;
}

.product-info h3 {
  font-size: 18px;
}

.product-info p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.add-to-cart {
  width: calc(100% - 40px);
  margin: 0 20px 20px;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--black);
  font-weight: 900;
  cursor: pointer;
}

.add-to-cart:hover {
  opacity: .86;
}

.split-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 0 34px 80px;
}

.feature-card {
  min-height: 520px;
  border-radius: 38px;
  padding: 38px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
}

.feature-dark {
  color: var(--white);
  background:
    linear-gradient(180deg, transparent, rgba(0,0,0,.65)),
    linear-gradient(135deg, #111, #56504a);
}

.feature-light {
  background:
    linear-gradient(180deg, transparent, rgba(255,255,255,.75)),
    linear-gradient(135deg, #e9ddce, #b8aa9a);
}

.feature-card .button {
  margin-top: 22px;
  width: fit-content;
}

.category-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding-top: 0;
}

.category-card {
  position: relative;
  min-height: 640px;
  border-radius: 38px;
  overflow: hidden;
  background: #ccc;
}

.category-image {
  position: absolute;
  inset: 0;
}

.men-image {
  background:
    linear-gradient(180deg, transparent, rgba(0,0,0,.65)),
    linear-gradient(135deg, #2f302e, #b8afa2);
}

.women-image {
  background:
    linear-gradient(180deg, transparent, rgba(0,0,0,.55)),
    linear-gradient(135deg, #d7c7b8, #514a45);
}

.category-copy {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 34px;
  color: var(--white);
}

.category-copy a {
  display: inline-block;
  margin-top: 18px;
  font-weight: 900;
  border-bottom: 2px solid currentColor;
}

.story {
  padding: 120px 34px;
  text-align: center;
  background: var(--black);
  color: var(--white);
}

.story p:not(.eyebrow) {
  max-width: 820px;
  margin: 24px auto;
  color: #d6d6d6;
  font-size: 22px;
  line-height: 1.5;
}

.newsletter {
  padding: 90px 34px;
  text-align: center;
}

.newsletter p {
  color: var(--muted);
  font-size: 18px;
}

.newsletter form {
  display: flex;
  gap: 10px;
  max-width: 560px;
  margin: 26px auto 0;
}

.newsletter input {
  flex: 1;
  min-height: 54px;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0 20px;
  background: var(--white);
}

.newsletter button,
.checkout-button {
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  background: var(--black);
  color: var(--white);
  font-weight: 900;
  cursor: pointer;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 42px 34px;
  background: var(--black);
  color: var(--white);
}

.site-footer h2,
.site-footer p {
  margin: 0;
}

.site-footer p {
  margin-top: 8px;
  color: #c8c8c8;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  font-weight: 800;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,.35);
  display: none;
  justify-content: end;
}

.cart-drawer.open {
  display: flex;
}

.cart-panel {
  width: min(440px, 100%);
  height: 100%;
  background: var(--white);
  padding: 26px;
  display: flex;
  flex-direction: column;
  animation: slideIn .25s ease;
}

@keyframes slideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.cart-header,
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h2 {
  margin: 0;
  font-size: 30px;
}

.close-cart {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: var(--cream);
  font-size: 28px;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow: auto;
  padding: 22px 0;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item p {
  margin: 4px 0 0;
  color: var(--muted);
}

.cart-footer {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.checkout-button {
  width: 100%;
  margin-top: 18px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto 1fr;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: start;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 82px;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 12px;
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(0,0,0,.16);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 16px;
  }

  .main-nav a::after {
    display: none;
  }

  .header-actions {
    justify-self: end;
  }

  .hero-image {
    min-height: 620px;
  }

  .product-grid,
  .quick-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-feature,
  .category-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .promo-bar {
    font-size: 12px;
  }

  .site-header {
    height: 66px;
    padding: 0 16px;
    gap: 12px;
  }

  .brand span:last-child {
    display: none;
  }

  .icon-button:first-child {
    display: none;
  }

  .hero {
    padding: 12px;
    min-height: 740px;
  }

  .hero-image {
    min-height: 710px;
    border-radius: 28px;
  }

  .hero-copy {
    bottom: 42px;
  }

  .hero p:not(.eyebrow) {
    font-size: 16px;
  }

  .button {
    width: 100%;
  }

  .quick-links {
    grid-template-columns: 1fr;
  }

  .section,
  .newsletter,
  .story {
    padding-left: 18px;
    padding-right: 18px;
  }

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

  .split-feature {
    padding-left: 18px;
    padding-right: 18px;
  }

  .feature-card,
  .category-card {
    min-height: 420px;
    border-radius: 28px;
  }

  .category-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .newsletter form,
  .site-footer {
    flex-direction: column;
  }

  .newsletter button {
    width: 100%;
  }
}
