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

body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}

header {
  padding: 2rem 1rem;
  font-size: 1.5rem;
  font-weight: bold;
  background-color: #00ff2a;
  box-shadow: 0px 1px rgba(0, 0, 0, 0.5);
  transition: all 0.3s linear;
}

main {
  padding: 1.5rem 1rem;
}

.nav__items {
  list-style: none;
  counter-reset: fancy-link;
}
.nav__item {
  counter-increment: fancy-link;
  margin: 1rem 0;
}

.nav__item::before {
  content: counter(fancy-link);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 1.25em;
  font-weight: 800;
  color: purple;
  margin-right: 0.8rem;
  width: 1.25em;
  height: 1.25em;
  border-radius: 50%;
  background-color: #00ff2a;
  box-shadow: 1px 1px 0;
  transition: all 0.3s linear;
}

.nav__link {
  align-items: center;
  text-decoration: none;
  color: black;
  padding: 2px;
  font-size: 1.25rem;
  border-bottom: 2px solid #00ff2a;
  transition: all 0.3s linear;
}

@media (min-width: 40em) {
  header {
    font-size: 2rem;
  }
  .nav__link {
    font-size: 1.5rem;
  }
  .nav__item::before {
    width: 2em;
    height: 2em;
  }
}

footer {
  background-color: #eee;
  padding: 1rem;
  text-align: center;
}
