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

:root {
  --primary-purple-50: hsl(260, 100%, 95%);
  --primary-purple-300: hsl(264, 82%, 80%);
  --primary-purple-500: hsl(263, 55%, 52%);

  --neutral-white: hsl(0, 0%, 100%);
  --neutral-grey-100: hsl(214, 17%, 92%);
  --neutral-grey-200: hsl(0, 0%, 81%);
  --neutral-grey-400: hsl(224, 10%, 45%);
  --neutral-grey-500: hsl(217, 19%, 35%);
  --neutral-dark-blue: hsl(219, 29%, 14%);
  --neutral-black: hsl(0, 0%, 7%);

  --typography: 13px;
}

@font-face {
  font-family: "Barlow Semi Condensed";
  src: url(https://fonts.google.com/specimen/Barlow+Semi+Condensed);
  font-weight: 500;
}

body {
  font-family: "Barlow Semi Condensed";
  background: var(--neutral-grey-100);
  font-size: var(--typography);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-inline: auto;
}

.container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  width: 90%;
}

section {
  border: none;
  border-radius: 10px;
  box-shadow: 0 5px 15px black;
  padding: 40px;
}
.card-1 {
  grid-column: 1/3;
  background: var(--primary-purple-500);
  color: var(--neutral-white);
  background-image: url("/images/bg-pattern-quotation.svg");
  background-repeat: no-repeat;
  background-position: top right 15%;
  background-size: 17%;
}

.card-2 {
  background: var(--neutral-grey-500);
  color: var(--neutral-white);
}

.card-3 {
  grid-row: span 2;
  background: var(--neutral-white);
}

.card-4 {
  background: var(--neutral-white);
}

.card-5 {
  grid-column: 2/4;
  background: var(--neutral-dark-blue);
  color: var(--neutral-white);
}

.autor {
  display: flex;
  align-items: center;
  color: var(--primary-purple-50);
  margin-bottom: 20px;
  gap: 16px;
}
.avatar {
  width: 2.1rem;
  border-radius: 50%;
}
.name {
  color: var(--neutral-grey-500);
}
.title {
  font-weight: 600;
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 20px;
}
.description {
  font-size: 14px;
  line-height: 1.8;
}

/* ============== FOOTER  ================================= */

.attribution {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 1rem;
  color: var(--text-color);
  margin-top: 3.3rem;
}
.attribution p {
  font-weight: 700;
}
.attribution a {
  font-style: italic;
  text-decoration: none;
  color: hsl(228, 45%, 44%);
}

@media screen and (min-width: 480px) and (max-width: 1024px) {
  body {
    height: 100%;
    padding-top: 52px;
  }

  .container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
  }
  .card-5 {
    grid-column: span 2;
  }
  .attribution {
    margin-bottom: 4rem;
  }
}

@media screen and (max-width: 479px) {
  body {
    height: 100%;
    padding-top: 52px;
  }

  .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 36px;
  }

  .card-1 {
    background-image: none;
  }

  .card-3 {
    order: 5;
  }

  .attribution {
    margin-bottom: 4rem;
  }
}
