/* Background-first event timeline: client-supplied past-event text over the supplied starry meadow. */
.events-page {
  background:
    linear-gradient(180deg, rgba(1, 9, 17, 0.08) 0%, rgba(2, 15, 21, 0.4) 37%, rgba(2, 11, 17, 0.88) 100%),
    url("../images/classes-events-starry-meadow.jpeg") center 23% / cover fixed;
}

.events-sky {
  min-height: auto;
  display: block;
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 5rem) clamp(4rem, 8vw, 8rem);
}

.events-sky__inner {
  width: min(100%, 79rem);
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.events-kicker,
.events-title {
  text-align: center;
}

.events-kicker {
  margin-bottom: 1rem;
  color: rgba(219, 255, 244, 0.88);
}

.events-title {
  margin: 0 auto;
  max-width: 13ch;
  font-size: clamp(2.8rem, 7vw, 6.8rem);
  text-shadow: 0 0 2.5rem rgba(95, 229, 205, 0.4), 0 0 0.8rem rgba(1, 11, 18, 0.9);
}

.events-upcoming-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.85rem, 2.6vw, 2rem);
  margin: clamp(3rem, 7vw, 5.5rem) auto clamp(3.5rem, 8vw, 7rem);
  padding: 1.2rem 0;
  border-top: 1px solid rgba(191, 247, 230, 0.36);
  border-bottom: 1px solid rgba(191, 247, 230, 0.36);
  font-family: "Comfortaa", sans-serif;
  color: #eafff8;
  text-shadow: 0 0 1.3rem rgba(78, 210, 187, 0.33), 0 0 0.8rem rgba(1, 10, 16, 0.9);
}

.events-upcoming-line__label {
  font-size: clamp(1rem, 2.25vw, 1.65rem);
  font-weight: 700;
  white-space: nowrap;
}

.events-upcoming-line__separator {
  color: #89dec8;
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  line-height: 0.7;
}

.events-upcoming-line__status {
  font-size: clamp(1.85rem, 5vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.08em;
  white-space: nowrap;
  color: #9cebd3;
}

.events-past-heading {
  margin: 0 0 1.8rem;
  text-align: center;
  font-family: "Comfortaa", sans-serif;
  font-size: clamp(1.65rem, 3.4vw, 2.6rem);
  color: #d3faeb;
  text-shadow: 0 0 1.4rem rgba(90, 218, 194, 0.24), 0 0 0.7rem rgba(1, 10, 16, 0.9);
}

.events-past-list {
  display: grid;
  gap: 1rem;
}

.past-event {
  padding: clamp(1.3rem, 3vw, 2.3rem) clamp(1.2rem, 3.2vw, 2.8rem);
  border-top: 1px solid rgba(189, 243, 225, 0.32);
  border-bottom: 1px solid rgba(189, 243, 225, 0.14);
  background: linear-gradient(90deg, rgba(2, 18, 27, 0.68), rgba(3, 28, 34, 0.25));
  text-shadow: 0 1px 1rem rgba(0, 0, 0, 0.84);
}

.past-event h3 {
  margin: 0;
  font-family: "Comfortaa", sans-serif;
  font-size: clamp(1.13rem, 2.3vw, 1.55rem);
  line-height: 1.45;
  color: #d7fcec;
}

.past-event__meta {
  margin: 0.7rem 0 1rem;
  color: #9de4cf;
  font-family: "Comfortaa", sans-serif;
  font-size: clamp(0.84rem, 1.65vw, 1rem);
  font-weight: 700;
  line-height: 1.65;
}

.past-event p,
.past-event li {
  margin: 0;
  color: rgba(240, 255, 249, 0.93);
  font-size: clamp(0.98rem, 1.6vw, 1.1rem);
  line-height: 1.72;
}

.past-event ul {
  margin: 0.85rem 0 0;
  padding-left: 1.25rem;
}

.events-instagram-link {
  display: block;
  width: fit-content;
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  color: #d7faeb;
  font-family: "Comfortaa", sans-serif;
  font-weight: 700;
  text-decoration-color: rgba(215, 250, 235, 0.55);
  text-underline-offset: 0.35em;
  text-shadow: 0 0 0.8rem rgba(0, 0, 0, 0.8);
}

@media (max-width: 640px) {
  .events-page {
    background-attachment: scroll;
    background-position: center 16%;
  }

  .events-sky {
    padding-inline: 1rem;
  }

  .events-upcoming-line {
    gap: 0.55rem;
    margin-top: 2.7rem;
    margin-bottom: 3.4rem;
  }

  .events-upcoming-line__label {
    white-space: normal;
    text-align: right;
  }

  .events-upcoming-line__status {
    white-space: normal;
  }

  .past-event {
    padding-inline: 1rem;
  }
}
