@font-face {
  font-family: "Work Sans";
  src: url(./assets/fonts/WorkSans-Italic-VariableFont_wght.ttf)
    format("truetype");
  font-weight: 100 900;
  font-style: italic;
}

@font-face {
  font-family: "Work Sans";
  src: url(./assets/fonts/WorkSans-VariableFont_wght.ttf) format("truetype");
  font-weight: 100 900;
  font-style: normal;
}

:root {
  /* Colors */
  --White: hsl(0, 100%, 100%);
  --Purple-100: hsl(275, 100%, 97%);
  --Purple-600: hsl(292, 16%, 49%);
  --Purple-950: hsl(292, 42%, 14%);

  /* Font */
  --fw-regular: 400;
  --fw-semi-bold: 600;
  --fw-bold: 700;
}

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

html {
  font-size: 16px;
  font-family: "work sans", sans-serif;
}

body {
  height: 100%;
  background-color: var(--Purple-100);
}

.wrapper {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  place-items: center;
  padding-block: 8rem;
}

picture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: -1;
}

picture > source,
picture > img {
  width: 100%;
}

.main-container {
  padding: 1.5rem;
  z-index: 1;
  max-width: 330px;
  width: 90%;
  background-color: white;
  position: relative;
  border-radius: 10px;
}

header {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
}

header > img {
  width: 1.5rem;
}

h1 {
  font-size: 1.5rem;
  font-weight: var(--fw-bold);
}

.icon-minus {
  display: none;
}

.icons {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
  margin-block: 1.5rem;
}

.faq-question {
  all: unset;
  font-weight: var(--fw-semi-bold);
  color: var(--Purple-950);
}

h2 {
  font-size: 1rem;
  margin-right: 2rem;
  font-weight: var(--fw-semi-bold);
}

p {
  font-size: 0.9rem;
  font-weight: var(--fw-regular);
  color: var(--Purple-600);
  margin-block: 1.5rem;
  display: none;
}

hr {
  border: none;
  height: 1px;
  background-color: var(--Purple-100);
}

/* Active states */

.icons > img,
h2 {
  cursor: pointer;
}

.faq-question:focus,
.faq-question:hover {
  color: hsl(283, 82%, 55%);
}

@media screen and (min-width: 600px) {
  .main-container {
    min-width: 620px;
    min-height: 560px;
    padding: 2.5rem;
  }

  header {
    margin-bottom: 0.5rem;
  }

  header > img {
    width: 2.5rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.2rem;
    margin-right: 0;
  }

  p {
    font-size: 1rem;
  }

  .icons {
    margin-block: 2rem;
  }
}
