@import url("https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
:root {
  /* primary colors */
  --clr-moderate-violet: hsl(263, 55%, 52%);
  --clr-dark-grayish-blue: hsl(217, 19%, 35%);
  --clr-dark-blackish-blue: hsl(219, 29%, 14%);
  --clr-white: hsl(0, 0%, 100%);
  /* neutral */
  --clr-light-gray: hsl(0, 0%, 81%);
  --clr-light-grayish-blue: hsl(210, 46%, 95%);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Barlow Semi Condensed", serif;
  background-color: var(--clr-light-grayish-blue);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  min-height: 100vh;
}
.card__grid {
  width: min(95%, 70rem);
  display: grid;
  grid-template-areas: "one" "two" "three" "four" "five";
  grid-auto-columns: 1fr;
  gap: 1.5rem;
}
.card {
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: 1rem 1rem 2rem var(--clr-light-gray);
}
.card:nth-child(1) {
  grid-area: one;
}
.card:nth-child(2) {
  grid-area: two;
}
.card:nth-child(3) {
  grid-area: three;
}
.card:nth-child(4) {
  grid-area: four;
}
.card:nth-child(5) {
  grid-area: five;
}
.card__intro {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.person__name {
  font-size: 1rem;
  letter-spacing: 0.02em;
  font-weight: 500;
}
.person__profession {
  opacity: 50%;
}
.card__quotation {
  opacity: 70%;
}
.profile__photo {
  border-radius: 50%;
  height: 2.2rem;
}
.violet__border {
  border: 2px solid var(--clr-moderate-violet);
}
.gray__border {
  border: 2px solid hsla(0, 0%, 81%, 0.5);
}
.card__text {
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  font-weight: 600;
  margin: 1rem 0;
}
.text__light {
  color: var(--clr-white);
}
.card__one {
  background-color: var(--clr-moderate-violet);
  background-image: url(images/bg-pattern-quotation.svg);
  background-repeat: no-repeat;
  background-position: top right 10%;
}
.card__two {
  background-color: var(--clr-dark-grayish-blue);
}
.card__three,
.card__five {
  background-color: var(--clr-white);
}
.even__textcolor {
  color: var(--clr-dark-blackish-blue);
}
.card__four {
  background-color: var(--clr-dark-blackish-blue);
}
footer {
  margin-top: 2rem;
}

@media screen and (min-width: 54rem) {
  .card__grid {
    grid-template-areas:
      "one one two"
      "three four four"
      "five five five";
  }
}
@media screen and (min-width: 75rem) {
  .card__grid {
    grid-template-areas:
      "one one two five"
      "three four four five";
  }
}