body {
  margin: 0;
  padding: 0;
}

#map {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 100%;
  z-index: -1;
  transition-duration: 1s;
}

.mapboxgl-map {
  opacity: 0;
}

#bg-video {
  transition-duration: 1s;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

#accent-text {
  color: #ad7a99;
}

.scrolly {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

article {
  position: relative;
  padding: 10rem 0 30rem 0;
  gap: 5rem;
  max-width: 40%;
  right: 5rem;
  margin-left: auto;
}

.step {
  margin: 0 auto 30rem 0;
  padding: 1.2rem;
  font-size: 1rem;
  background-color: #e9eeea;
  color: #000;
  min-height: 10rem;
  border-radius: 0.5rem;
  pointer-events: auto;
}

#photo-credit {
  font-size: 1rem;
  font-style: italic;
}

.step p {
  display: inline;
  font-size: 1.2rem;
  padding: 0;
  vertical-align: text-top;
  font-family: "freight-text-pro", "Times", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  line-height: 1.3rem;
}

#home {
  visibility: hidden;
}

#heading {
  min-height: 15rem;
  text-align: left;
  padding: 1rem 2rem 1.2rem 1.2rem;
  color: #000;
}

#heading h3 {
  font-size: 2.5rem;
  font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
  font-weight: 800;
  font-style: normal;
  padding: 0;
  margin-top: 16px;
  margin-bottom: 22px;
}

#heading p {
  text-align: left;
  font-style: italic;
}

#byline {
  font-weight: normal;
  font-family: "Inconsolata", serif;
  font-size: 0.8rem;
}

#byline .author {
  background-color: #e0e0e0;
  padding: 0.2rem;
  padding-left: 0.4rem;
  padding-right: 0.4rem;
  border-radius: 0.5rem;
  font-weight: bold;
  line-height: 1.5rem;
  white-space: nowrap;
}

.profile-img {
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  margin-bottom: 0.4rem;
}

#byline a {
  text-decoration: none;
}

a {
  color: #ad7a99;
  text-decoration: underline;
}

#herald-logo {
  max-width: 250px;
  display: block;
  margin: 0 auto;
}

.inline-heart {
  animation: beat 1.2s infinite;
}

@keyframes beat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

/* mobile formatting */
@media (max-width: 900px) {
  .profile-img {
    width: 100px;
    height: 100px;
  }

  #herald-logo {
    max-width: 200px;
    display: block;
    margin: 0 auto;
  }

  #heading h3 {
    font-size: 1.5rem;
  }

  .step p {
    font-size: 1.1rem;
  }

  article {
    max-width: 40%;
    right: 5%;
  }
}

/* mobile formatting */
@media (max-width: 600px) {
  .profile-img {
    width: 100px;
    height: 100px;
  }

  #herald-logo {
    display: block;
    margin: 0 auto;
  }

  #heading h3 {
    font-size: 1.5rem;
  }

  .step p {
    font-size: 1.1rem;
  }

  article {
    max-width: 70%;
    margin: 0 auto;
    left: 0;
  }

  #heading {
    text-align: center;
  }
}

.marker {
  width: 1rem;
  height: 1rem;
  background-color: gray;
  border-radius: 50%;
  cursor: pointer;
}

#legend {
  position: fixed;
  top: 2rem;
  left: 2rem;
  background: rgba(0, 0, 0, 0.7);
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  font-family: "freight-text-pro", "Times", serif;
  font-size: 12px;
  z-index: 10;
  color: #bababa;
}

#legend h4 {
  margin: 0 0 0.5rem 0;
}

#legend ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#legend li {
  display: flex;
  align-items: center;
  margin-bottom: 0.4rem;
}

#legend li span {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
  border-radius: 0.2rem;
}
