/* === FONTS === */
  @font-face {
  font-family: 'Work Sans';
  src: url('assets/fonts/work-sans-v24-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap; 
}

@font-face {
  font-family: 'Work Sans';
  src: url('assets/fonts/work-sans-v24-latin-600.woff2') format('woff2'); 
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Work Sans';
  src: url('assets/fonts/work-sans-v24-latin-700.woff2') format('woff2'); 
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */
body, h1, h2, h3, h4, p,
figure, blockquote, dl, dd {
  margin-block-end: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set shorter line heights on headings and interactive elements */
h1, h2, h3, h4,
button, input, label {
  line-height: 1.1;
}

/* Balance text wrapping on headings */
h1, h2,
h3, h4 {
  text-wrap: balance;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input, button,
textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
  min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
  scroll-margin-block: 5ex;
}

:root {
  /* == COLOR PALLETTE == */

  /* Colors */
  --clr-purple-100: hsl(275, 100%, 97%);
  --clr-purple-300: hsl(292, 16%, 49%);
  --clr-purple-600: hsl(293, 58%, 50%);
  --clr-purple-950: hsl(292, 42%, 14%);
  --clr-white: hsl(0, 100%, 100%);
  
  /* == TYPOGRAPHY == */

  /* font family */
  --ff-body: 'Work Sans', sans-serif;

  /* font size */
  --fs-paragraph: 1rem;

  /* font weights */
  --fw-regular: 400;
  --fw-bold: 600;
  --fw-bolder: 700;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xlg: 2.5rem;
  --space-xxlg: 3rem;
  --space-sr:  0.0625rem;
}

@media (prefers-reduced-motion: reduce) {
  .title {
    transition: none;
  }
}

@media (hover: hover) {
  .title:hover {
    color: var(--clr-purple-600);
  }
}

body {
  min-height: 100svh;
  background-color: var(--clr-purple-100);
  font-family: var(--ff-body);
  line-height: 1.5;
}

.hero {
  height: 100%;
}

.hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card__container {
  width: 88%;
  max-width: 24rem;
  margin: 0 auto;
}

.card {
  background-color: var(--clr-white);
  border-radius: 0.8rem;
  padding: var(--space-md);
  transform: translateY(-7rem);
}

.card__title--wrapper {
  display: flex;
  gap: var(--space-sm);
  margin-block-end: - var(--space-xs);
}

.card__title {
  font-size: var(--space-xxlg);
  color: var(--clr-purple-950);
}

.faq {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: var(--space-sm);
}

.faq:not(:last-child) {
  border-bottom: 0.125rem solid var(--clr-purple-100);
}

button {
  all: unset;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: none;
  cursor: pointer;
  padding-block: var(--space-sm);
  min-width: 0;
  -webkit-tap-highlight-color: transparent;
}

button .icon {
  width: var(--space-lg);
  height: var(--space-lg);
  flex-shrink: 0;
}

.title {
  display: inline-block;
  color: var(--clr-purple-950);
  font-size: 1.14rem;
  font-weight: 600;
  min-width: 0;
  overflow-wrap: break-word;
}

.icon--minus {
  display: none;
}

button[aria-expanded="true"] .icon--minus {
  display: block;
}

button[aria-expanded="true"] .icon--plus {
  display: none;
}

.ans {
  color: var(--clr-purple-300);
  font-size: 0.9rem;
  font-weight: var(--fw-regular);
}


@media screen and (min-width: 48rem) {
  
  .card__container {
    width: 50%;
    max-width: 36rem;
  }

  .card {
    transform: translateY(-9rem);
    padding: 1.8rem;
  }

  .card__title--wrapper {
    margin-block-start: 0.7rem;
  }

  .ans {
    font-size: var(--fs-paragraph);
  }
}