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

@font-face {
  font-family: 'Poppins';
  src: url('./fonts/Poppins-Regular.woff2') format('woff2'),
    url('./fonts/Poppins-Regular.woff') format('woff'),
    url('./fonts/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('./fonts/Poppins-ExtraLight.woff2') format('woff2'),
    url('./fonts/Poppins-ExtraLight.woff') format('woff'),
    url('./fonts/Poppins-ExtraLight.ttf') format('truetype');
  font-weight: 200;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('./fonts/Poppins-SemiBold.woff2') format('woff2'),
    url('./fonts/Poppins-SemiBold.woff') format('woff'),
    url('./fonts/Poppins-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}

img {
  max-width: 100%;
  display: block;
}

body {
  min-height: 100vh;
  background-color: hsl(0, 0%, 98%);
}

header {
  text-align: center;
  padding: 64px 0px;
}

h1,
p {
  color: hsl(229, 6%, 66%);
}

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

h1 {
  font: normal 200 clamp(1.5rem, 5vw, 2.5rem) / 150% 'Poppins', Arial, Helvetica,
    sans-serif;
  padding-bottom: 1.25rem;
}

span {
  font-weight: 600;
}

p {
  font: normal 400 0.938rem/150% 'Poppins', Arial, Helvetica, sans-serif;
}

h2 {
  font: normal 600 clamp(1rem, 2vw, 1.2rem) / 150% 'Poppins', Arial, Helvetica,
    sans-serif;
}

article p {
  font-weight: 200;
}

main,
header {
  max-width: 19.5rem;
  margin: auto;
}

article {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.75rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

div article:nth-child(1) {
  border-top: 3px solid hsl(0, 78%, 62%);
  box-shadow: 0 3px 16px 0 hsl(229, 6%, 66%);
}
div article:nth-child(2) {
  border-top: 3px solid hsl(34, 97%, 64%);
  box-shadow: 0 3px 16px 0 hsl(229, 6%, 66%);
}

article:nth-child(1) {
  border-top: 3px solid hsl(180, 62%, 55%);
  box-shadow: 0 3px 16px 0 hsl(229, 6%, 66%);
}

article:nth-child(3) {
  border-top: 3px solid hsl(212, 86%, 64%);
  box-shadow: 0 3px 16px 0 hsl(229, 6%, 66%);
}

.icon {
  align-self: flex-end;
  margin-top: 1rem;
}

.attribution {
  font-size: 11px;
  text-align: center;
}
.attribution a {
  color: hsl(228, 45%, 44%);
}

@media screen and (min-width: 992px) {
  main {
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
  }

  article {
    min-width: 350px;
    align-self: center;
  }

  header {
    max-width: 500px;
  }

  span {
    display: block;
  }
}
