:root {
  --ink: #141414;
  --muted: #6e6a64;
  --paper: #f6f2ea;
  --surface: #ffffff;
  --line: #ded8ce;
  --accent: #9b1d2e;
  --olive: #596044;
  --gold: #c69c58;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  display: block;
  width: 100%;
  object-fit: cover;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(246, 242, 234, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: grid;
  line-height: 1;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.brand small {
  margin-top: 5px;
  color: var(--accent);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  color: #333;
  font-size: 0.92rem;
}

.nav a,
.service-link,
.cart-link {
  transition: color 180ms ease;
}

.nav a:hover,
.service-link:hover,
.cart-link:hover {
  color: var(--accent);
}

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

.service-link {
  font-weight: 800;
}

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
}

.cart-icon {
  position: relative;
  width: 22px;
  height: 17px;
  display: inline-block;
  border: 2px solid currentColor;
  border-top: 0;
}

.cart-icon::before {
  content: "";
  position: absolute;
  left: -5px;
  top: -7px;
  width: 9px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: skewX(-16deg);
}

.cart-icon::after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: -7px;
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 12px 0 0 currentColor;
}

.cart-link strong {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 24px;
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  color: white;
  font-size: 0.82rem;
  background: var(--accent);
  border-radius: 999px;
}

.hero {
  min-height: 78vh;
  display: flex;
  align-items: end;
  padding: clamp(24px, 6vw, 72px);
  color: white;
  background:
    linear-gradient(90deg, rgba(20, 20, 20, 0.76), rgba(20, 20, 20, 0.18)),
    url("https://images.unsplash.com/photo-1483985988355-763728e1935b?auto=format&fit=crop&w=1800&q=82")
      center/cover;
}

.hero__content {
  width: min(680px, 100%);
  padding-bottom: 32px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(3rem, 8vw, 7.4rem);
  line-height: 0.88;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

h3 {
  margin-bottom: 0;
  font-size: 1.25rem;
  line-height: 1.18;
}

p {
  color: inherit;
  line-height: 1.6;
}

.hero p:not(.eyebrow) {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
}

.hero__actions,
.filters,
.footer form div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button,
.filter,
.contact-form button,
.add-interest,
.clear-list {
  min-height: 44px;
  border: 1px solid transparent;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
}

.button--dark,
.contact-form button,
.add-interest {
  color: white;
  background: var(--ink);
}

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

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.benefits article {
  min-height: 120px;
  padding: 26px clamp(18px, 4vw, 48px);
  border-right: 1px solid var(--line);
}

.benefits span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.section {
  padding: clamp(52px, 8vw, 108px) clamp(18px, 5vw, 72px);
}

.section--muted {
  background: #ece5da;
}

.section__header {
  max-width: 760px;
  margin-bottom: 34px;
}

.section__header p:not(.eyebrow) {
  color: var(--muted);
}

.section__header--row {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.collections {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 18px;
}

.collection {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  background: var(--ink);
}

.collection--large {
  grid-row: span 2;
  min-height: 638px;
}

.collection img {
  height: 100%;
  opacity: 0.84;
  transition: transform 420ms ease;
}

.collection:hover img {
  transform: scale(1.04);
}

.collection div {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  color: white;
}

.collection span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
}

.filter {
  color: var(--ink);
  background: transparent;
  border-color: #b9b0a3;
}

.filter.is-active {
  color: white;
  background: var(--accent);
  border-color: var(--accent);
}

.shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: 22px;
  align-items: start;
}

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

.product-card {
  min-width: 0;
  background: var(--surface);
}

.product-card img {
  aspect-ratio: 4 / 5;
}

.product-card__body {
  padding: 16px;
}

.product-card__body span {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.product-card__body h3 {
  min-height: 48px;
  margin: 8px 0 14px;
  font-size: 1rem;
}

.price {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-weight: 900;
}

.add-interest {
  width: 100%;
  background: var(--accent);
  border-color: var(--accent);
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.add-interest:hover {
  background: #7d1422;
  transform: translateY(-1px);
}

.add-interest:disabled {
  cursor: default;
  opacity: 0.68;
}

.lookbook {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(52px, 8vw, 108px) clamp(18px, 5vw, 72px);
  background: var(--ink);
  color: white;
}

.lookbook p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
}

.lookbook img {
  max-height: 620px;
  aspect-ratio: 5 / 4;
}

.store {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 420px);
  gap: 32px;
  align-items: center;
}

.store p {
  color: var(--muted);
}

.store__panel {
  display: grid;
  gap: 12px;
  padding: 28px;
  color: white;
  background: var(--olive);
}

.store__panel .button {
  justify-self: start;
  margin-top: 12px;
}

.footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 38px clamp(18px, 5vw, 72px);
  color: white;
  background: #111;
}

.footer p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.68);
}

.contact-form {
  justify-self: end;
  display: grid;
  gap: 10px;
  width: min(420px, 100%);
}

.contact-form label {
  display: block;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  min-height: 44px;
  width: 100%;
  border: 1px solid #444;
  padding: 12px 14px;
  color: white;
  font: inherit;
  background: #1f1f1f;
}

.contact-form textarea {
  resize: vertical;
}

.form-feedback {
  min-height: 24px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
}

.cart-panel {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
  padding: 18px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(20, 20, 20, 0.1);
}

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

.cart-panel__header h3 {
  margin: 0;
}

.cart-panel__header .eyebrow {
  margin-bottom: 8px;
}

.cart-panel span,
.cart-item span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cart-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
}

.cart-list p {
  margin: 0;
  color: var(--muted);
}

.cart-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: #f6f2ea;
  border: 1px solid var(--line);
}

.cart-list .cart-item > img {
  width: 52px;
  min-width: 52px;
  max-width: 52px;
  height: 52px;
  min-height: 52px;
  max-height: 52px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.cart-item div {
  display: grid;
  gap: 4px;
}

.cart-item small {
  color: var(--muted);
}

.cart-item__meta {
  justify-items: end;
}

.cart-item__meta button {
  border: 0;
  padding: 0;
  color: var(--accent);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  background: transparent;
  cursor: pointer;
}

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

.cart-total strong {
  color: var(--accent);
  font-size: 1.35rem;
}

.cart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.clear-list {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

@media (max-width: 880px) {
  .topbar {
    align-items: start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: 72vh;
  }

  .benefits,
  .collections,
  .shop-layout,
  .lookbook,
  .store,
  .footer {
    grid-template-columns: 1fr;
  }

  .cart-panel {
    position: static;
  }

  .benefits article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .collection--large {
    min-height: 420px;
  }

  .section__header--row {
    align-items: start;
    flex-direction: column;
  }

  .contact-form {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .product-card__body {
    padding: 12px;
  }

  .product-card__body h3 {
    min-height: 58px;
    font-size: 0.92rem;
  }
}
