*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --primary-font: "Montserrat", sans-serif;
  --grey: rgba(108, 114, 137, 1);
  --black: rgba(28, 35, 43, 1);
  --green: rgba(61, 129, 104, 1);
  --spacing-100: 0.5rem;
  --spacing-200: 1rem;
  --spacing-300: 1.5rem;
  --spacing-400: 2rem;
}

html {
  font-family: var(--primary-font);
  text-align: left;
  letter-spacing: 0;
  font-size: clamp(14px, 2vw, 16px);
}

body {
  background: rgba(242, 234, 226, 1);
  padding: clamp(1rem, 4vw, 2rem) clamp(0.75rem, 2vw, 1rem);
  margin: 0;
}

main,
.catalog,
.title {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

picture {
  display: block;
  width: 100%;
  height: 100%;
}

.product-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog {
  background: rgba(255, 255, 255, 1);
  padding: var(--spacing-400);
}

.catalog,
.title {
  gap: var(--spacing-400);

  color: var(--grey);
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  font-weight: 500;
  line-height: 160%;
}

.tag {
  font-size: clamp(0.75rem, 1.2vw, 0.875rem);
  font-weight: 500;
  line-height: 120%;
  letter-spacing: 5px;
}

.title h1 {
  color: var(--black);
  font-family: "Fraunces", serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 100%;
}

.title p {
  font-size: clamp(0.875rem, 1.5vw, 1rem);
}
.price {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: var(--spacing-200);
}
.price h2 {
  color: var(--color-green-500, rgba(61, 129, 104, 1));
  font-family: Fraunces;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 100%;
}

.add-to-cart button {
  width: 100%;
  height: clamp(2.5rem, 5vw, 3.125rem);

  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-100, 8);
  padding: var(--spacing-200) var(--spacing-400);

  border: none;
  border-radius: var(--spacing-100);
  background: var(--green);

  color: rgba(255, 255, 255, 1);
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  font-weight: 700;
  line-height: 110%;
}
.add-to-cart button:hover {
  background-color: rgba(26, 64, 50, 1);
  cursor: pointer;
}

.add-to-cart img {
  width: 1rem;
  height: 1rem;
}

.attribution {
  margin-block-start: 1rem;
  font-size: clamp(0.65rem, 1vw, 0.75rem);
  text-align: center;
}
.attribution a {
  color: hsl(228, 45%, 44%);
}

@media (min-width: 600px) {
  body {
    padding: clamp(2rem, 8vw, 17.875rem) clamp(1rem, 4vw, 5.25rem);
  }

  main {
    width: 100%;
    height: auto;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: stretch;
    max-width: 700px;
    gap: 0;
  }

  main picture {
    width: 50%;
    height: auto;
    display: block;
  }

  main .product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .catalog {
    width: 50%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
  }
}

@media (min-width: 1024px) {
  body {
    padding: clamp(8rem, 10vw, 17.875rem) clamp(5rem, 15vw, 26.25rem);
  }

  main {
    max-width: 900px;
  }
}
