.merch {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.merch-product {
  flex: 1;
  width: min(1120px, 90%);
  margin: clamp(32px, 6vw, 84px) auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  grid-template-areas: "photo heading" "photo details";
  gap: 16px clamp(32px, 6vw, 86px);
  align-content: center;
}

.merch-heading {
  grid-area: heading;
  align-self: end;
}

.merch-heading h1 {
  margin: 0;
  color: var(--coffee);
  font: 800 clamp(42px, 5.4vw, 78px)/0.97 var(--sans);
  letter-spacing: -0.065em;
}

.merch-price {
  margin: 12px 0 0;
  color: var(--olive);
  font-size: 1.5rem;
  font-weight: 750;
}

.merch-photo {
  grid-area: photo;
  align-self: center;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border: 1px solid #bcaa8d;
}

.merch-details {
  grid-area: details;
}

.merch-details p {
  margin: 0;
  max-width: 43ch;
  line-height: 1.6;
}

.merch-specs {
  margin: 24px 0;
  border-top: 1px solid #b49d7b;
}

.merch-specs div {
  display: grid;
  grid-template-columns: 26% 1fr;
  column-gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #b49d7b;
}

.merch-specs dt {
  font-weight: 700;
}

.merch-specs dd {
  margin: 0;
}

.merch-buy {
  background: #303721;
  color: var(--cream);
  padding: 13px 20px;
}

@media (max-width: 730px) {
  .merch-product {
    width: min(90%, 520px);
    grid-template-columns: 1fr;
    grid-template-areas: "heading" "photo" "details";
    gap: 20px;
  }

  .merch-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
  }

  .merch-price {
    margin: 0;
  }

  .merch-buy {
    width: 100%;
  }
}
