body {
  font-family: 'Rubik', sans-serif;
  
}

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p {
  margin: 0;
  padding: 0;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  line-height: 1.5;
  background-color: rgb(248, 248, 248);
}

main {
  padding-bottom: 10rem;
}

.header {
  background: rgb(226,144,89);
  background-image: linear-gradient(140deg, rgba(226,144,89,0.3) 0%, rgba(238,189,123,0.3) 72%, rgba(240,185,153,0.3) 100%), url('background_small.jpg');
  background-size: cover;
  background-position: 100%;
  padding-block: 6rem 8rem;
  margin-bottom: 2rem;
}

@media (max-width: 40rem) {
  .header {
    background-image: linear-gradient(140deg, rgba(226,144,89,0.9) 0%, rgba(238,189,123,0.9) 72%, rgba(240,185,153,0.9) 100%), url('background_small.jpg');
  } 
}

.container {
  max-width: 75rem;
  margin-inline: auto;
  padding-inline: 2rem;
}


.gridwrapper {
  display: grid;
  grid-template-columns: 
    repeat(auto-fit, minmax(15rem, 1fr) );
  gap: 1.5rem;
  margin-top: -5rem;
}

@media (min-width: 30rem) {
  .gridwrapper {
    grid-template-columns: 
    repeat(auto-fit, minmax(15rem, 1fr) );  
  }
}

@media (min-width: 50rem) {
  .gridwrapper {
    grid-template-columns: 
    repeat(auto-fit, minmax(20rem, 1fr) );  
  }

  .card.featured {
    grid-column: span 2;
    border: 2px solid rgb(48, 96, 228);
    box-shadow: 0 0.4rem 0.8rem rgba(48, 96, 228, 0.1);
  }
  
}

@media (min-width: 68rem) {
  .card.featured2 {
    grid-column: span 2;
    border: 2px solid rgb(48, 96, 228);
    box-shadow: 0 0.4rem 0.8rem rgba(48, 96, 228, 0.1);
  }
  
}

.card {
  border-radius: 8px;
  padding: 1.75rem;
  background-color: white;
  box-shadow: 0 0.4rem 0.8rem rgba(0, 0, 0, 0.1);
  position: relative;
}

p {
  color: rgb(37, 37, 37);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.8;
}

a {
  text-decoration: none;
  color: rgb(48, 96, 228);
  font-weight: 560;
  transition: 0.3s ease;
}

h1 {
  font-size: 2.5rem;
  font-weight: 400;
  color: rgba(0, 0, 0 / 0.9);
  max-width: 20ch;
  text-shadow: 0 0.2rem 0.4rem rgba(0 0 0 / 0.1);
  line-height: 1.3;
}

@media (min-width: 65rem) {
  h1 {
    max-width: 35ch;
  }
  
}

h1 > a {
  font-weight: 450;
  color: rgb(48, 96, 228);
  background-color: rgba(255, 255, 255, 0.2);
  padding: 0.2rem 1.2rem;
  border-radius: 0.4rem;
}

h1 > a:hover {
  background-color: rgba(48 96 228 / 1);
  color: rgb(255, 255, 255);
  text-decoration: none;
}

a:hover {
  color: rgb(223, 102, 10);
  background-color: rgba(255, 255, 255, 0.815);
  text-decoration: underline;
}

h2 {
  font-size: 1.8rem;
  font-weight: 400;
  color: rgb(34, 82, 145);
  line-height: 1.3;
}

.small {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: rgb(246, 119, 46);
  font-weight: 500;
}

#button {
  padding: 0.8rem 1.8rem;
  font-weight: 600;
  border: 0;
  border-radius: 0.4rem;
  background-color: rgba(48 96 228 / 0.2);
  color: rgba(48 96 228 / 1);
  display: block;
  width: max-content;
  margin-top: 1.5rem;
  transition: 0.3s ease;
}

#button:hover {
  background-color: rgba(48 96 228 / 1);
  color: rgb(255, 255, 255);
  text-decoration: none;
}
