
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 200;
  src: url('./fonts/poppins-v23-latin-200.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  src: url('./fonts/poppins-v23-latin-regular.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  src: url('./fonts/poppins-v23-latin-600.woff2') format('woff2');
  font-display: swap;
}
:root {
  /* ======== Primary Colors ======== */
  --red: hsl(0, 78%, 62%);
  --cyan: hsl(180, 62%, 55%);
  --orange: hsl(34, 97%, 64%);
  --blue: hsl(212, 86%, 64%);

  /* ======== Neutral Colors ======== */
  --grey-500: hsl(234, 12%, 34%);
  --grey-400: hsl(212, 6%, 44%);
  --white: hsl(0, 0%, 100%);
    --shadow-card: 0 1rem 2rem rgba(15, 117, 218, 0.152);
}
*,
*::after,
*::before {
  box-sizing: border-box;
}
body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--white);
  margin-block: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(0.75rem, 2vw, 1.5rem);

}

.title {
  text-align: center;
  font-size: 2.125rem;
  font-weight: 200;
  color: var(--grey-400);
  margin-block-start: 4rem;
  letter-spacing: 0;
  line-height: 1.1;
  margin-block-end: 0;
}

.subtitle {
  text-align: center;
  font-size: 2.25rem;
  font-weight: 600;
  margin-block-start: 0.5rem;
  margin-block-end: 1rem;
  color: var(--grey-500);
}

.description {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--grey-500);
  margin-block-end: 2rem;
  max-width: 30rem;
  text-align: center;
  margin-inline: auto;
  padding-bottom: 2rem;

}

.card-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 2rem 2rem;
  max-width: 68.75rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.card {
  background-color: var(--white);
  border-radius: 0.25rem;
  box-shadow: var(--shadow-card);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  text-align: left;
  max-width: 20rem;
  max-height: 20rem;
}

/* Supervisor: left, vertically centered, spans both rows */
.card:nth-child(1) {
  grid-column: 1;
  grid-row: 1 / span 2;
  border-top: 4px solid var(--cyan);
  align-self: center;
}

/* Team Builder: center top */
.card:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
  border-top: .25rem solid var(--red);
}

/* Karma: center bottom */
.card:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
  border-top: .25rem solid var(--orange);
}

/* Calculator: right, vertically centered, spans both rows */
.card:nth-child(4) {
  grid-column: 3;
  grid-row: 1 / span 2;
  border-top: .25rem solid var(--blue);
  align-self: center;
}
.card-icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  align-self: flex-end;
}
.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--grey-500);
  margin-bottom: 0;
}
.card-description {
  font-size: 0.94rem;
  font-weight: 400;
  color: var(--grey-400);
  margin-top: 0.5rem;
}

@media (max-width: 48rem) {
  body{
    padding: 0 1rem;
    margin-bottom: 2rem;
  }
  .card-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;    
    justify-content: center;
    gap: 1.5rem;    
    max-width: 100%;
    padding: 0;
}
    .title {
        font-size: 1.5rem;
        margin-top: 1.5rem;
    }
    .subtitle {
        font-size: 1.5rem;
        margin: 0.5rem 0;
    }
    .description {
        font-size: 0.7rem;
        margin: 0.5rem auto 2rem auto;
        max-width: 70%;
        font-weight: 400;
    }

    .card {
    min-width: 0;
    width: 100%;
    padding: 1.5rem 1rem;
    height: 12rem;
    }
  .card-icon {
    width: 3.2rem;
    height: 3.2rem;
    margin-bottom: 0.25rem;
   }
  .card-title {
    font-size: 1.125rem;
    margin-bottom: 0;
    padding: 0;
  }
  .card-description {
    font-size: 0.875rem;
    margin-top: 0;
    padding: 0;
    color: var(--grey-400);
  }
}


 
  