:root {
  /* primary */
  --purple: hsl(263, 55%, 52%);
  --grey-blue: hsl(217, 19%, 35%);
  --black-blue: hsl(219, 29%, 14%);
  --white: hsl(0, 0%, 100%);
  /* neutrals */
  --light-grey: hsl(0, 0%, 81%);
  --light-grey-blue: hsl(210, 46%, 95%);
}

* {
  font-family: "Barlow Semi Condensed", serif;
  font-size: 13px;
  font-weight: 500;
  padding: 0;
  margin: 0;
}

html {
  background-color: var(--light-grey-blue);
}

.profile-pic {
  margin-top: 0.5rem;
  width: 3rem;
  border-radius: 100%;
  object-fit: cover;
}

.svg {
  position: relative;
  left: 24rem;
  top: -2rem;
  transform: scale(1.3);
  z-index: 1;
}

.tagline {
  font-size: 1.7rem;
  padding-top: 1rem;
  z-index: 2;
}
.quote {
  padding-top: 1.5rem;
}

.quote,
.graduate {
  opacity: 50%;
  line-height: 1.5;
}

article {
  margin: 2rem;
}

.who {
  display: grid;
  grid-template-columns: 3rem 8rem;
  grid-template-rows: 2rem 2rem;
  column-gap: 1.5rem;
  row-gap: -0.5rem;
}

.who > .name {
  grid-area: 1 / 2 / 1 / 3;
  padding-top: 0.7rem;
}
.who > .graduate {
  grid-area: 2 / 2 / 2 / 3;
}
.who > .profile-pic {
  grid-area: 1 / 1 / 1 / 1;
}

#clifford-testimonial {
  display: flex;
  flex-direction: column;
  background-color: var(--purple);
  color: var(--white);
  padding: 2rem;
  border-radius: 1rem;
}
#clifford-testimonial .profile-pic {
  box-shadow: 0rem 0rem 0rem 0.2rem hsl(263, 49%, 58%); /*best I could figure to adjust the border opacity without creating a new :root colour for a single item.*/
}

#walters-testimonial {
  background-color: var(--grey-blue);
  color: var(--white);
  padding: 2rem;
  border-radius: 1rem;
}

#harmon-testimonial {
  color: var(--black-blue);
  background-color: var(--white);
  padding: 2rem;
  border-radius: 1rem;
}

#abrams-testimonial {
  color: var(--light-grey);
  background-color: var(--black-blue);
  padding: 2rem;
  border-radius: 1rem;
}
#abrams-testimonial .profile-pic {
  box-shadow: 0rem 0rem 0rem 0.2rem hsl(263, 49%, 58%); /*best I could figure to adjust the border opacity without creating a new :root colour for a single item.*/
}

#whittle-testimonial {
  color: var(--black-blue);
  background-color: var(--white);
  padding: 2rem;
  border-radius: 1rem;
}

.profile-pic:hover {
  animation: pulse 1s infinite;
}
.name:hover {
  opacity: 65%;
}

@keyframes pulse {
  0%,
  100% {
    animation-timing-function: ease-out;
  }
  50% {
    transform: scale(1.33);
  }
}

/* Media queries */
/* phones and smaller screens - column*/
@media (min-width: 570px) and (max-width: 900px) {
  article {
    width: 35rem;
    margin: auto;
  }
  .testimonial {
    margin-bottom: 1rem;
    margin-top: 2rem;
  }
}
/* tablets, etc - smaller grid*/
@media (min-width: 901px) and (max-width: 1399px) {
  body {
    display: grid;
    grid-template-columns: 28rem 28rem;
    grid-template-rows: 26rem 26rem 26rem 26rem;
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: 20rem;
    margin-bottom: 20rem;
  }
  #clifford-testimonial {
    grid-area: 1 / span 2 / 1 / 3;
  }
  #whittle-testimonial {
    grid-area: 2 / 2 / span 2 / 2;
  }
  #abrams-testimonial {
    grid-area: 4 / span 2 / 5 / 3;
  }
  article {
    margin: 1rem;
  }
  .tagline {
    font-size: 1.5rem;
  }
  .quote {
    font-size: 1.2rem;
  }
  .svg {
    left: 40rem;
}
}
/* laptops and above */
@media (min-width: 1400px) {
  body {
    display: grid;
    grid-template-columns: 26rem 26rem 26rem 26rem;
    grid-template-rows: 28rem 26rem;
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  article {
    margin: 1rem;
  }
  #clifford-testimonial {
    grid-area: 1 / span 2 / 1 / 3;
  }
  #harmon-testimonial {
    grid-area: 2 / 1 / 2 / 1;
  }
  #harmon-testimonial > .quote,
  .tagling {
    margin-top: 2em;
  }
  #whittle-testimonial {
    grid-area: 1 / 4 / span 2 / 5;
  }
  #abrams-testimonial {
    grid-area: 2 / span 2 / 2 / 4;
  }
  .tagline {
    font-size: 1.8rem;
  }
  .quote {
    font-size: 1.2rem;
  }
  .svg {
    left: 35rem;
}
}

/* TODO
 
- add hovers (maybe a pulse when you hover over the profile pic? can it be done with css (not js)?
- add quote marks to clifford-testimonial!!!


/

- Mobile: 375px
- Desktop: 1440px
*/
