/* montserrat-latin-wght-normal */
@font-face {
  font-family: 'Montserrat Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(https://cdn.jsdelivr.net/fontsource/fonts/montserrat:vf@latest/latin-wght-normal.woff2)
    format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* fraunces-latin-wght-normal */
@font-face {
  font-family: 'Fraunces Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(https://cdn.jsdelivr.net/fontsource/fonts/fraunces:vf@latest/latin-wght-normal.woff2)
    format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  font-size: 14px;
}

body {
  max-width: 100vw;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr 10vh;
  align-items: center;
  justify-items: center;
  gap: 2rem;
  padding: 2rem 0;
  background-color: hsl(30, 38%, 92%);
}

.card {
  height: fit-content;
  width: 24rem;
  border-radius: 1rem;
  overflow: hidden;
  background-color: white;
  font-family: 'Montserrat Variable';
  cursor: default;
}
.card img {
  width: 100%;
  border-radius: 1rem 1rem 0 0;
  object-fit: contain;
}
.desktopImage {
  display: none;
}
.info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  font-weight: 500;
}
.info h1 {
  font-family: 'Fraunces Variable';
  font-size: clamp(2rem, 1.8vw + 1.5rem, 3rem);
  line-height: 1.25;
}
.info p {
  color: hsl(228, 12%, 48%);
  font-size: clamp(1rem, 1vw + 0.5rem, 1.1rem);
}
.info p.tag {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 6px;
}
.info .price {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: 'Fraunces Variable';
  font-weight: 700;
  font-size: 2.5rem;
  color: hsl(158, 36%, 37%);
}
.info .price span {
  font-size: 1rem;
  font-weight: 500;
  text-decoration: line-through;
  color: hsl(228, 12%, 48%);
  font-family: 'Montserrat Variable';
}
.info button {
  height: 3rem;
  color: white;
  background-color: hsl(158, 36%, 37%);
  border-radius: 0.5rem;
  outline: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.info button img {
  width: auto;
  height: 1rem;
  width: auto;
}
.info button:hover {
  background-color: hsl(159, 35%, 19%);
}

@media (min-width: 767px) {
  .card {
    display: flex;
    width: 44rem;
  }
  .card .mobileImage {
    display: none;
  }
  .card .desktopImage {
    display: block;
    height: 100%;
    width: 50%;
    object-fit: contain;
    border-radius: 1rem 0 0 1rem;
  }
  .info {
    justify-content: space-around;
  }
}
