:root {
    --white: hsl(0, 0%, 100%);
    --light-pink: hsl(275, 100%, 97%);
    --grayish-purple: hsl(292, 16%, 49%);
    --dark-purple: hsl(292, 42%, 14%);
    --light-blue: hsl(228, 45%, 44%);
    --pink: hsl(281, 83%, 54%);
}
  @font-face {
    font-family: 'Work Sans';
    src: url('assets/fonts/WorkSans-VariableFont_wght.ttf') format('truetype');
    font-style: normal;
  }

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

  * {
    margin: 0;
    padding: 0;
    font: inherit;
  }
  
  body {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;  
    font-size: 16px;
    font-family: 'Work Sans', sans-serif;
    background-color: var(--light-pink);
    background-image: url(assets/images/background-pattern-desktop.svg);
    background-repeat: no-repeat;
    background-size: contain;
  }

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

.accordion {
    max-width: 37.5rem;
    padding: 2.5rem;
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: 0px 32px 56px 0px rgba(80, 0, 118, 0.10);
}

.faq-title {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-block-end: 2rem;
    gap: 1.5rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--dark-purple);
}

.star-icon {
  aspect-ratio: 1;
}

hr {
  background-color: var(--light-pink);
  height: 1px;
  border: none;
  margin-block: 1.5rem;
}
.acc-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  text-align: left; 
  border: none; 
  background-color: var(--white);
}
button:focus-visible {
  outline-color: var(--dark-purple);
  outline-offset: 2px;
}
.acc-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: all 300ms ease-in-out;
  color: var(--grayish-purple);
  line-height: 1.5;
}
.acc-content > p {
  overflow: hidden;
}
.acc-content[aria-hidden="false"]{
  grid-template-rows: 1fr;
  padding-top: 1.5rem;
}

@media (width <= 768px ) {
  body {
    background-image: url(assets/images/background-pattern-mobile.svg);
    padding: 1.5rem;
  }
  h1 {
    font-size: 2rem;
  }
  .star-icon {
    width: 24px;
  }
  .acc-content {
    font-size: 0.8rem;
  }
}

@media (hover: hover) {
  .acc-btn:hover {
    color: var(--pink);
}
}