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

:root {
  --White: hsl(0, 100%, 100%);
  --Purple-1: hsl(275, 100%, 97%);
  --Purple-2: hsl(292, 16%, 49%);
  --Purple-3: hsl(292, 42%, 14%);
  --hover: hsl(281, 83%, 54%);
  --shadow: hsla(292, 42%, 14%, 0.08);
}

body {
  background-image: url(../images/background-pattern-mobile.svg);
  background-repeat: no-repeat;
  background-position: top -80px center;
  background-size: 600px;
  background-color: var(--Purple-1);
  color: var(--Purple-3);
  font-family: "Work Sans", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

main {
  background-color: var(--White);
  margin: 1.5rem;
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 2rem 2rem var(--shadow);
}

header {
  display: flex;
  gap: 2rem;
}

header img,
.icon {
  width: 2rem;
}

.faq-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
}

.question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  color: var(--Purple-3);
  cursor: pointer;
}

.question:hover {
  color: var(--hover);
}

.question span {
  margin-inline-start: 1.5rem;
}

.answer {
  display: none;
}

.answer.show {
  display: block;
  color: var(--Purple-2);
  line-height: 1.5;
}

hr {
  height: 0.07rem;
  background-color: var(--Purple-1);
  border: none;
  margin: 1rem 0;
}

@media (min-width: 601px) {
  body {
    background-image: url(../images/background-pattern-desktop.svg);
    background-size: auto;
    background-position: top center;
  }

  main {
    width: 35rem;
  }

  header h1 {
    font-size: 2.5rem;
  }

  .faq-item {
    gap: 0.5rem;
  }
}
