.masthead {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 10%;
  background-color: #1f1c1d;
}

nav {
  position: sticky;
  top: 0;
  z-index: 1;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  top: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

nav ul {
  list-style-type: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

nav li {
  margin: 0;
  padding: 10px;
  text-align: center;
}

nav a {
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
}

nav a:hover {
  text-decoration: overline underline;
  text-underline-offset: 4px;
}

@media (max-width: 450px) {
  nav {
    position: static;
  }
  .masthead {
    padding: 10px 5%;
  }
  nav ul {
    flex-direction: column;
  }
}
