:root {
  --white: #fff;
  --purple-100: #f9f0ff;
  --purple-600: #8c6991;
  --purple-700: #a924f0;
  --purple-950: #2f1533;

  --font-1-weight: 400;
  --font-1-letter-spacing: 0.2px;

  --font-2-weight: 600;
  --font-2-size: var(--sz-2);
  --font-2-res-size: var(--sz-1);

  --font-3-weight: 700;
  --font-3-size: 60px;
  --font-3-res-size: var(--sz-3);

  --sz-1: 16px;
  --sz-2: 20px;
  --sz-3: 24px;
  --sz-4: 32px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Work Sans", sans-serif;
  font-size: var(--sz-1);
  color: var(--purple-600);
  line-height: 1.4;
  transition: 300ms;
}

body {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  background-color: var(--purple-100);
}

img.desktop {
  height: 316px;
  width: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-image: url("background-pattern-desktop.svg");
  background-position: top;
}

img.mobile {
  display: none;
}

main {
  position: absolute;
  padding-top: 140px;
  display: flex;
  flex-direction: column;
  align-self: center;
}

.card {
  display: inherit;
  flex-direction: inherit;
  padding: var(--sz-4);
  gap: var(--sz-3);
  background-color: var(--white);
  width: 620px;
  border-radius: var(--sz-1);
  box-shadow: 0px 0px 80px -40px var(--purple-950);
}

.section-title {
  display: inherit;
  flex-direction: row;
  gap: var(--sz-3);
}

h1 {
  font-size: var(--font-3-size);
  font-weight: var(--font-3-weight);
  color: var(--purple-950);
}

.accordion {
  display: inherit;
  flex-direction: inherit;
  gap: var(--sz-3);
  border-bottom: 1px solid var(--purple-100);
  padding-bottom: var(--sz-2);
}

.accordion:last-of-type {
  border-bottom: none;
  padding-bottom: var(--sz-1);
}

.title {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
}

.title:hover {
  cursor: pointer;
}

.title-text {
  font-weight: var(--font-2-weight);
  font-size: var(--font-2-size);
  color: var(--purple-950);
}

.title-text:hover {
  color: var(--purple-700);
}

.desc {
  display: block;
  letter-spacing: var(--font-1-letter-spacing);
}

.open:hover,
.close:hover {
  opacity: 0.8;
}

.hidden {
  display: none;
}

@media screen and (width <= 701px) {
  img.desktop {
    display: none;
  }
  img.mobile {
    display: block;
    height: 200px;
    width: 100%;
    background-size: cover;
    background-image: url("background-pattern-desktop.svg");
    background-position: center;
  }
  .card {
    width: auto;
    margin: var(--sz-3);
  }
  h1 {
    font-size: var(--font-3-res-size);
  }
  .title-text {
    font-size: var(--font-2-res-size);
    text-wrap: balance;
  }
  .icon {
    width: var(--sz-3);
  }
}
