* {
  box-sizing: border-box;
}

:root {
  --white: hsl(0, 100%, 100%);
  --purple-100: hsl(275, 100%, 97%);
  --purple-600: hsl(292, 16%, 49%);
  --purple-950: hsl(292, 42%, 14%);
}

body {
  font-family: "Work Sans", sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--purple-100);
}

body .bg-pattern-mobile {
  width: 100%;
  height: auto;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}
body .bg-pattern-desktop {
  display: none;
}
.container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  position: relative;
}
p {
  font-size: 14px;
  color: var(--purple-600);
  font-weight: 400;
  line-height: 1.5;
}
h2 {
  font-size: 16px;
  color: var(--purple-950);
  font-weight: 600;
}
h1 {
  font-size: 34px;
  color: var(--purple-950);
  font-weight: 700;
}
.card {
  background-color: var(--white);
  width: 100%;
  max-width: 325px;
  border-radius: 0.625rem;
  padding: 0px 25px 10px 25px;
  box-shadow: 0 20px 40px -12px hsla(292, 42%, 14%, 0.2);
}
.card-header {
  display: flex;
  align-items: center;
  gap: 25px;
}
.card-header .star-icon {
  width: 23px;
  height: 23px;
}
.question-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.question-item:hover h2,
.question-item:focus-within h2 {
  color: var(--purple-600);
  cursor: pointer;
  outline: none;
}

.toggle-button:focus-visible {
  outline: 0px solid transparent;
}

#first-question {
  margin-top: 0px;
}

.faq-item {
  margin-top: 25px;
}

.faq-item p {
  display: none;
}

.faq-item.open p {
  display: block;
  margin-bottom: 35px;
}

.faq-item .plus-icon {
  width: 30px;
  height: 30px;
  display: block;
}

.faq-item .minus-icon {
  display: none;
}
.faq-item.open .plus-icon {
  display: none;
}
.faq-item.open .minus-icon {
  width: 30px;
  height: 30px;
  display: block;
}

.toggle-button {
  background: none;
  border: none;
  cursor: pointer;
}
.attribution {
  font-size: 0.6875rem;
  text-align: center;
}
.attribution a {
  color: hsl(228, 45%, 44%);
}

@media (min-width: 768px) {
  .card {
    max-width: 610px;
    padding: 10px 40px 30px 40px;
  }
  body .bg-pattern-desktop {
    display: block;
    width: 100%;
    height: auto;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
  }
  body .bg-pattern-mobile {
    display: none;
  }
  p {
    font-size: 16px;
    padding: 0px 20px 0px 0px;
  }
  h2 {
    font-size: 18px;
  }
  h1 {
    font-size: 55px;
  }
  .card-header .star-icon {
    width: 40px;
    height: 40px;
  }
}
