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

  --ff-base: "Work Sans", sans-serif;

  --fs-body: 1rem;

  --fw-regular: 400;
  --fw-semi-bold: 600;
  --fw-bold: 700;
}

html {
  box-sizing: border-box;
}

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

body,
h1,
h2,
p {
  margin: 0;
}

img {
  max-width: 100%;
  display: block;
}



body {
  min-height: 100vh;
  font-family: var(--ff-base);
  font-size: var(--fs-body);
  color: var(--clr-purple-950);

  background-color: var(--clr-purple-100);
  background-image: url("./assets/images/background-pattern-mobile.svg");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
}


main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 8rem 1.5rem 2rem;
}


.faq-card {
  width: 100%;
  max-width: 37.5rem;

  background-color: var(--clr-white);
  border-radius: 5px;
  box-shadow: 0 2rem 4rem hsla(292, 42%, 14%, 0.15);
  padding: 1.5rem;
}


.faq-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.faq-star {
  width: 1.5rem;
  height: 1.5rem;
}

.faq-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: var(--fw-bold);
  line-height: 1;
}



.faq-item {
  padding-block: 1.25rem;
  border-bottom: 1px solid hsl(275, 100%, 97%);
}

.faq-item:first-of-type {
  padding-top: 0;
}

.faq-item:last-of-type {
  padding-bottom: 0;
  border-bottom: 0;
}



.faq-question {
  font-size: inherit;
  line-height: inherit;
}


.faq-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;

  border: 0;
  background: transparent;
  padding: 0;

  font-family: var(--ff-base);
  font-size: 1rem;
  font-weight: var(--fw-semi-bold);
  line-height: 1.25;
  color: var(--clr-purple-950);
  text-align: left;
  cursor: pointer;
}

.faq-button span {
  flex: 1;
  min-width: 0;
}

.faq-button:hover {
  color: hsl(281, 83%, 54%);
}

.faq-button:focus-visible {
  outline: 2px solid hsl(281, 83%, 54%);
  outline-offset: 4px;
}

.faq-icon {
  width: 1.875rem;
  height: 1.875rem;
  flex-shrink: 0;
}

.faq-answer {
  margin-top: 1.5rem;
  color: var(--clr-purple-600);
  line-height: 1.5;
}

@media (min-width: 768px) {
  body {
    background-image: url("./assets/images/background-pattern-desktop.svg");
  }

  .faq-card {
    padding: 2.5rem;
  }
}