@font-face {
  font-family: "WorkSans";
  src: url(assets/fonts/WorkSans-VariableFont_wght.ttf);
  font-style: normal;
  font-weight: 400 600 700;
}
:root {
  --White: hsl(0, 100%, 100%);
  --Purple-100: hsl(275, 100%, 97%);
  --Purple-600: hsl(292, 16%, 49%);
  --Purple-950: hsl(292, 42%, 14%);
  --h2-hover: #9939d8;
  --Fontsize-paragraph: clamp(1rem, 0.957rem + 0.187vw, 1.125rem);
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background-color: var(--Purple-100);
  font-family: "WorkSans", Arial, Helvetica, sans-serif;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.mobile-icon,
.desktop-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: auto;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.desktop-icon {
  display: none;
  max-width: 100dvw;
}

main {
  position: relative;
  z-index: 1;
  background-color: var(--White);
  max-width: 600px;
  width: 90dvw;
  border-radius: 15px;
  padding: 2.5rem 2rem;
  margin: auto;
  box-shadow: 0 8px 32px rgba(110, 107, 123, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.main-header {
  display: flex;
  flex-direction: row;
  gap: 30px;
}
h2 {
  font-size: clamp(1.125rem, 1.082rem + 0.187vw, 1.25rem);
  font-weight: 600;
}

button {
  outline: none;
  border: none;
  background: none;
  cursor: pointer;
  user-select: none;
}

button:focus {
  outline: none;
}
.question-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.question-header:hover {
  color: var(--h2-hover);
}
.icon-minus {
  display: none;
}
.icon-plus.active {
  display: none;
}
.icon-minus.active {
  display: flex;
}
p {
  color: var(--Purple-600);
  font-size: var(--Fontsize-paragraph);
  display: none;
  line-height: 1.5rem;
}
p.active {
  display: flex;
}
.question {
  border-bottom: 0.1px solid rgba(110, 107, 123, 0.3);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}
.question:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.attribution {
  font-size: clamp(0.688rem, 0.645rem + 0.187vw, 0.813rem);
  text-align: center;
}
.attribution a {
  color: hsl(228, 45%, 44%);
}

@media (min-width: 376px) {
  .desktop-icon {
    display: flex;
  }
  .mobile-icon {
    display: none;
  }
  main {
    max-width: 600px;
    width: 100%;
    margin: 4rem auto 2rem auto;
  }
}

@media (max-width: 600px) {
  main {
    max-width: 95vw;
    width: 95vw;
    padding: 1.25rem 0.75rem;
    gap: 1rem;
    margin: 1.5rem auto 1.5rem auto;
  }
  .main-header {
    gap: 16px;
  }
  h2 {
    font-size: 1rem;
  }
  button {
    min-width: 40px;
    min-height: 40px;
  }
  .mobile-icon,
  .desktop-icon {
    width: 100vw;
    height: auto;
    max-width: 100vw;
  }
}
