@import url(./reset.css);
@import url(./fonts.css);

:root {
  --cyan: hsl(180, 62%, 55%);
  --red: hsl(0, 78%, 62%);
  --orange: hsl(34, 97%, 64%);
  --blue: hsl(212, 86%, 64%);

  --very-dark-blue: hsl(234, 12%, 34%);
  --grayish-blue: hsl(229, 6%, 66%);
  --very-light-gray: hsl(0, 0%, 98%);
  --fs-title: clamp(1.25rem, 0.771067415730337rem + 2.471910112359551vw, 2.625rem);
}

body {
  font-family: 'Poppins', sans-serif;
  display: flex;
  flex-flow: column;
  justify-content: center;
}

main {
  text-align: center;
  max-width: 90%;
  margin: 0 auto;
}

.card-icon {
  width: 64px;
  align-self: flex-end;
  margin-top: auto;
}

.card-title {
  font-size: 20px;
  color: var(--very-dark-blue);
}

.feature-paragraph {
  font-weight: 200;
  color: var(--grayish-blue);
}

.feature {
  max-width: 400px;
  min-height: 15.625rem;
  box-shadow: 0px 8px 28px -10px var(--grayish-blue);
  border-radius: 8px;
  border-top: 5px solid;

  margin-top: 1.875rem;

  padding: 1.5rem;

  text-align: left;
  display: flex;
  flex-flow: column;
}

.title {
  color: var(--very-dark-blue);
  margin: 0 auto;
  margin-top: 3rem;
  font-size: var(--fs-title);
  font-weight: 200;

  & .sub-title {
    font-weight: 800;
  }
}

.flex {
  display: flex;
  flex-flow: column nowrap;
}

.container .feature:nth-child(1) {
  border-color: var(--cyan);
}

.flex:nth-child(2) .feature {
  border-color: var(--red);
}

.flex:nth-child(2) .feature:last-child {
  border-color: var(--orange);
}

.container .feature:nth-child(3) {
  border-color: var(--blue);
}

@media (width >=768px) {

  main {
    max-width: initial;
    margin: initial;
  }

  .feature {
    margin-top: initial;
  }

  .title {
    width: 35%;
    text-align: center;
    margin-top: initial;
  }

  .paragraph {
    max-width: 55ch;
    text-align: center;
    margin-inline: auto;
    margin-top: 1rem;
    color: var(--grayish-blue);
  }

  .container {
    width: 75%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    row-gap: 1.875rem;
    margin-top: 2rem;

    align-items: center;
    justify-items: center;
  }

  .flex:nth-child(2) {
    gap: 1.875rem;
  }

}