/* =========================
   Basic Reset
========================= */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #18333d;
  background: #f5f8f9;
}

/* =========================
   Hero Section
========================= */

.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem 1.5rem;
  background: #e8f3f6;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 7vw, 5rem);
  color: #176d8c;
}

.hero p {
  max-width: 700px;
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.6;
}

/* =========================
   Scrollytelling Layout
========================= */

#scrolly {
  position: relative;
}

/* Sticky Leaflet map */

#map {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
}

/* Story text */

#story {
  position: relative;
  z-index: 500;
  width: min(90%, 500px);
  margin-left: 5%;
  margin-top: -100vh;
  padding-bottom: 30vh;
}

/* =========================
   Story Steps
========================= */

.step {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 10vh;

  opacity: 0.55;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.step h2,
.step p {
  background: rgba(255, 255, 255, 0.94);
  margin: 0;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.step h2 {
  padding-top: 1.5rem;
  padding-bottom: 0.5rem;
  border-radius: 12px 12px 0 0;
  color: #176d8c;
}

.step p {
  padding-top: 0.5rem;
  padding-bottom: 1.5rem;
  border-radius: 0 0 12px 12px;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Active step */

.step.is-active {
  opacity: 1;
  transform: translateX(10px);
}

.step.is-active h2,
.step.is-active p {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

/* =========================
   Mobile
========================= */

@media (max-width: 700px) {

  #story {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  .step {
    min-height: 100vh;
  }

}
