@import url("https://fonts.googleapis.com/css2?family=Poppins: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");

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

body {
  background-color: hsl(0, 0%, 98%);
  font-family: "Poppins", serif;
}

main {
  padding: 20px;
}

.header {
  text-align: center;
}

p {
  color: hsl(234, 12%, 34%);
}

h1 {
  font-size: 1.3rem;
}

h1:first-of-type {
  font-weight: 200;
  color: hsl(234, 12%, 34%);
}

.header p {
  margin-top: 20px;
}

section {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 25px;
  padding: 20px;
  width: 100%;
  max-height: 125vh;
  height: 100vh;
}

section p {
  font-size: clamp(1rem, 1vw, 1.3rem);
}

section h2 {
  font-size: clamp(1.2rem, 3vw, 1.4rem);
  font-weight: 400;
}

section .child {
  border-radius: 10px;
  padding: 10px;
  flex-grow: 1;
  box-shadow: 0px 0px 14px 14px rgba(142, 164, 190, 0.404);
}

.child div {
  margin-top: 10px;
  width: 100%;
  padding-right: 50px;
  display: flex;
  justify-content: flex-end;
}

img {
  width: 20%;
  height: auto;
}

.one {
  border-top: 5px solid hsl(180, 62%, 55%);
}

.two {
  border-top: 5px solid hsl(0, 78%, 62%);
}

.three {
  border-top: 5px solid hsl(34, 97%, 64%);
}

.four {
  border-top: 5px solid hsl(212, 86%, 64%);
}

footer {
  margin-top: 10px;
}

.attribution {
  font-size: 14px;
  text-align: center;
}

.attribution a {
  color: hsl(228, 45%, 44%);
}

@media (min-width: 430px) and (max-width: 1100px) {
  section {
    width: 100%;
  }
}

@media (min-width: 630px) {
  section {
    margin: 20px auto;
    height: 65vh;
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    grid-template-columns: repeat(3, 1fr);
  }

  .one {
    grid-row: 2 /4;
  }

  .two {
    grid-row: 1 / 3;
    grid-column: 2/3;
  }

  .three {
    grid-column: 2/ 3;
    grid-row: 3/5;
  }

  .four {
    grid-column: 3/5;
    grid-row: 2/4;
  }
}

@media (min-width: 1100px) {
  section {
    width: 60%;
  }

  .header {
    width: 40%;
    margin: 0px auto;
  }
}
