@font-face {
  font-display: swap;
  font-family: "Libre Baskerville";
  font-style: normal;
  font-weight: normal;
  src: url("/libre-baskerville-v24-latin-regular.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Libre Baskerville";
  font-style: normal;
  font-weight: bold;
  src: url("/libre-baskerville-v24-latin-700.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "DM Serif Display";
  font-style: normal;
  font-weight: normal;
  src: url("/dm-serif-display-v17-latin-regular.woff2") format("woff2");
}

body {
  margin: 0;
  font-family: "Libre Baskerville", serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 1.25rem;
  line-height: 1.5;
  background: #f6f4ef;
  color: #144e2d;
}

a {
  color: inherit;
}

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

.site-header {
  padding-block: 1rem;

  .logo {
    height: 4rem;
    vertical-align: top;
  }
}

.section-heading {
  font-family: "DM Serif Display", sans-serif;
  font-size: 3rem;
  font-weight: normal;
  line-height: 1.125;
  text-align: center;
  margin-block: 0 2rem;
}

.hero-block {
  background: url("/bg.jpeg") no-repeat top center / cover;
  color: #f6f4ef;
  font-size: 1.75rem;
  line-height: 1.25;
  padding-block: 5rem;

  .content {
    max-width: 35ch;
  }

  .big-if {
    font-size: 3.5rem;
    display: inline-block;
    margin-block: 1.5rem;
  }

  .sentence {
    display: inline-block;
    margin-block: 0.5rem;
  }
}

.text-block {
  padding-block: 5rem;
  max-width: 45ch;

  .big-if {
    font-size: 3rem;
    line-height: 1.5rem;
  }
}

.features-block {
  padding-block: 4rem;
  background: url("/bg.jpeg") no-repeat bottom center / cover;
  color: #f6f4ef;
  text-align: center;

  .features {
    margin-block: 4rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    font-family: "DM Serif Display", sans-serif;
    font-size: 1.25rem;
    line-height: 1.25;

    > * {
      background: #f6f4ef;
      color: #144e2d;
      padding: 3rem 2rem;
      text-align: center;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0.125rem 0.125rem 0.25rem rgba(0, 0, 0, 0.25), 0.5rem 0.5rem 0 #ffe586;
    }
  }
}

.site-footer {
  background: #c2d2ae;
  padding-block: 2rem 2rem;
  font-size: 0.6875rem;

  .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }

  .logo {
    vertical-align: top;
    height: 8rem;
  }
}

@media (min-width: 40em) {
  .features-block .features {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer {
    .container {
      flex-direction: row-reverse;
      text-align: left;
      justify-content: space-between;
    }
  }
}

@media (min-width: 50em) {
  .features-block .features {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
