@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 {
  --main-bg: hsl(0, 0%, 81%);
  --purple-bg: hsl(263, 55%, 52%);
  --grey-bg: hsl(217, 19%, 35%);
  --white-bg: hsl(0, 0%, 100%);
  --blue-bg: hsl(219, 29%, 14%);
  --grey-text: hsl(224, 10%, 45%);
}

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

body {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 13px;
  color: var(--white-bg);
  background-color: var(--main-bg);
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2em;
  padding: 5em;
}

article {
    
  padding: 2.5em;
  border-radius: 1em;
}

.purple-bg {
  background-color: var(--purple-bg);
}

.grey-bg {
  background-color: var(--grey-bg);
}

.white-bg {
  background-color: var(--white-bg);
  color: var(--grey-text);
}

.blue-bg {
  background-color: var(--blue-bg);
}

.info {
  display: flex;
  align-items: flex-start;
  gap: 1em;
  margin-bottom: 1em;
}

img {
  border-radius: 100%;
  width: 3em;
}

h1 {
  font-size: 0.9rem;
}

p:has(strong) {
  font-size: 1.2rem;
  margin-bottom: 1em;
}

article:nth-child(1) img {
  border: 2px solid hsl(0, 0%, 81%);
}

article:nth-child(2) img {
  border: 2px solid var(--white-bg);
}

article:nth-child(4) img {
  border: 2px solid var(--purple-bg);
}

footer {
  margin-bottom: 2em;
}


@media(min-width: 720px){
   .container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* grid-auto-rows: 1fr; */
    grid-template-areas: 
        "a a"
        "b c"
        "d d"
        "e e"
    ;
  }

  article{
    width: 100%;
    height: 100%;
  }

  article:nth-child(1) {
    background-image: url(images/bg-pattern-quotation.svg);
    background-repeat: no-repeat;
    background-position: 80% 0;
    grid-area: a;
  }

  article:nth-child(2) {
    grid-area: b;
  }

  article:nth-child(3) {
    grid-area: c;
  }

  article:nth-child(4) {
    grid-area: d;
  }

  article:nth-child(5) {
    grid-area: e;
    
  } 
}


@media (min-width: 1200px) {
    body{
        font-size: 16px;
    }

  .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* grid-auto-rows: 1fr; */
    grid-template-areas: 
        "a a b e"
        "c d d e"
    ;
  }

  article{
    width: 100%;
    height: 100%;
  }

  article:nth-child(1) {
    background-image: url(images/bg-pattern-quotation.svg);
    background-repeat: no-repeat;
    background-position: 80% 0;
    grid-area: a;
  }

  article:nth-child(2) {
    grid-area: b;
  }

  article:nth-child(3) {
    grid-area: c;
  }

  article:nth-child(4) {
    grid-area: d;
  }

  article:nth-child(5) {
    grid-area: e;
    
  }
}
