@font-face {
  font-family: 'Work Sans';
  src: url('./assets/fonts/WorkSans-VariableFont_wght.ttf');
  font-style: normal;
}

@font-face {
  font-family: 'Work Sans';
  src: url('./assets/fonts/WorkSans-Italic-VariableFont_wght.ttf');
  font-style: italic;
}

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

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

picture,
img {
  pointer-events: none;
}

:root {
  --clr-white: #ffffff;
  --clr-pink-100: hsl(275, 100%, 97%);
  --clr-purple-500: hsl(292, 16%, 49%);
  --clr-purple-800: hsl(292, 42%, 14%);

  font-size: 16px;
}

html {
  font-family: 'Work Sans', sans-serif;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0;

  min-height: 100vh;

  background-image: url('./assets/images/background-pattern-desktop.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-color: var(--clr-pink-100);
}

h1 {
  font-size: 56px;
}

main {
  display: flex;
  align-items: center;
  justify-content: center;

  height: 100%;
  width: 100%;
}

.card {
  display: flex;
  flex-direction: column;

  max-width: 600px;
  width: 100%;

  padding: 40px;

  border-radius: 16pt;

  box-shadow: 0 20px 36px rgba(73, 51, 87, 0.1);

  background-color: var(--clr-white);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 32px;
}

.card-title-picture > img {
  max-width: 100%;
}

.card-button-icon {
  width: 30px;
  height: 30px;
}

/*** List Items ***/

ul {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: start;

  width: 100%;

  padding: 0;
  margin: 0;
  margin-block: auto;

  height: 100%;

  list-style-type: none;
}

hr {
  width: 100%;
  border: none;
  height: 1px;
  background-color: var(--clr-pink-100);
  margin-block: 24px;
}

li {
  position: relative;
  width: 100%;

  padding: 0;
  margin: 0;
}

.card-paragraph {
  color: var(--clr-purple-500);
  font-size: 16px;
  line-height: 150%;

  margin-top: 1rem;
}

.card-paragraph-wrapper {
  display: grid;
  transition: grid-template-rows 0.15s ease-out;
}

.card-paragraph-wrapper[data-active='true'] {
  grid-template-rows: 1fr;
}

.card-paragraph-wrapper[data-active='false'] {
  grid-template-rows: 0fr;
}

.card-paragraph-wrapper > div {
  overflow: hidden;
}

/*** Buttons ***/

button.button {
  display: flex;
  align-items: center;
  justify-content: start;

  font-size: 18px;
  font-weight: 600;
  text-align: start;

  border: none;

  padding: 0;
  margin: 0;
  padding-right: 1rem;

  background-color: transparent;

  width: 100%;
}

button.button:hover {
  cursor: pointer;
}

.button > picture {
  margin-left: auto;
}

img[data-active='false'] {
  display: none;
}

img[data-active='true'] {
  display: block;
}

@media screen and (max-width: 640px) {
  body {
    padding-inline: 1rem;
  }

  h1 {
    font-size: 32px;
  }

  .card-title-picture {
    width: 24px;
    height: 24px;
  }

  button.button {
    font-size: 16px;
  }

  .card-paragraph {
    font-size: 14px;
  }
}
