/* -------------------------------------------------------------------------- */
/*                                    Base                                    */
/* -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

body {
  box-sizing: border-box;
  background-color: hsl(30, 38%, 92%);
}

img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

*:focus-visible {
  outline: 0.125rem solid hsl(212, 21%, 14%);
  border-radius: 0.125rem;
}

/* -------------------------------------------------------------------------- */
/*                                   Helpers                                  */
/* -------------------------------------------------------------------------- */
/* ie9+ */
.visually-hidden:not(:focus):not(:active) {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.container {
  max-width: fit-content;
  margin: 5rem 12px 6.25rem;
  /*  For footer.attribution `position: absolute` */
  position: relative;
}
@media (min-width: 48rem) {
  .container {
    margin: 0 12px;
  }
}

/* -------------------------------------------------------------------------- */
/*                                 Typography                                 */
/* -------------------------------------------------------------------------- */
body {
  color: hsl(228, 12%, 48%);
  font-family: Arial, Helvetica, sans-serif;
}

.attribution {
  font-size: 0.6875rem;
  color: hsl(0, 0%, 38.9380530973%);
}
.attribution__a {
  color: hsl(0, 0%, 30.5025996534%);
  font-weight: 900;
}

/* -------------------------------------------------------------------------- */
/*                              Components/Button                             */
/* -------------------------------------------------------------------------- */
.btn {
  height: 3.125rem;
  border-radius: 0.5rem;
  border: 1px solid hsl(0, 0%, 71.7882504842%);
  background-color: hsl(30, 38%, 92%);
  color: hsl(212, 21%, 14%);
  font: 700 0.875rem / 1.1 "Montserrat", sans-serif;
  letter-spacing: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn:hover {
  background-color: hsl(30, 42%, 85%);
}
.btn:focus-visible {
  outline: 0.1875rem dashed hsl(212, 21%, 14%);
  outline-offset: 1px;
}
.btn svg {
  fill: hsl(212, 21%, 14%);
}

.btn--primary {
  background-color: hsl(158, 36%, 37%);
  color: hsl(0, 0%, 100%);
}
.btn--primary:hover {
  background-color: hsl(158, 42%, 18%);
}
.btn--primary svg {
  fill: hsl(0, 0%, 100%);
}

/* -------------------------------------------------------------------------- */
/*                       Components/Product Preview Card                      */
/* -------------------------------------------------------------------------- */
.product-preview-card {
  border-radius: 0.5rem;
  background-color: hsl(0, 0%, 100%);
  overflow: hidden;
}
.product-preview-card__text-half {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.product-preview-card__text-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.product-preview-card__prices {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.product-preview-card__prices s {
  font: 500 0.8125rem / 1.2 "Montserrat", sans-serif;
  letter-spacing: 0;
}
.product-preview-card__price {
  font: 700 2rem / 1 "Fraunces", sans-serif;
  letter-spacing: 0;
  color: hsl(158, 36%, 37%);
}
.product-preview-card__title {
  font: 700 2rem / 1 "Fraunces", sans-serif;
  letter-spacing: 0;
  color: hsl(212, 21%, 14%);
}
.product-preview-card__description {
  font: 500 0.875rem / 1.6 "Montserrat", sans-serif;
  letter-spacing: 0;
}
@media (min-width: 48rem) {
  .product-preview-card {
    width: 37.5rem;
    display: flex;
  }
  .product-preview-card__img-half {
    width: 50%;
  }
  .product-preview-card__img-half img {
    height: 100%;
  }
  .product-preview-card__text-half {
    width: 50%;
    gap: 2rem;
  }
}

/* -------------------------------------------------------------------------- */
/*                           Components/Ribbon text                           */
/* -------------------------------------------------------------------------- */
.ribbon-text {
  font: 500 0.75rem / 1.2 "Montserrat", sans-serif;
  letter-spacing: 5px;
  text-transform: uppercase;
}

/* -------------------------------------------------------------------------- */
/*                                 Layout/Body                                */
/* -------------------------------------------------------------------------- */
@media (min-width: 48rem) {
  body {
    min-height: 100vh;
    /* To center .container */
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

/* -------------------------------------------------------------------------- */
/*                                 Layout/Main                                */
/* -------------------------------------------------------------------------- */
main {
  max-width: fit-content;
}

/* -------------------------------------------------------------------------- */
/*                                Layout/Footer                               */
/* -------------------------------------------------------------------------- */
.attribution {
  --spacing: 1rem;
}
@media (min-width: 48rem) {
  .attribution {
    --spacing: 1.5rem;
  }
}
.attribution {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + var(--spacing));
  text-align: center;
}

/*# sourceMappingURL=style.css.map */
