@import url("https://fonts.googleapis.com/css2?family=Castoro+Titling&display=swap");

:root {
  font-family: "Baskerville Old Face", Baskerville, serif;
  color: #e9e3c4;
  background: #141c0f;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #141c0f;
}
a {
  color: inherit;
}
main {
  position: relative;
  height: 430vh;
}
section {
  position: fixed;
  inset: 0;
  min-height: 100vh;
  opacity: 0;
  pointer-events: none;
}
section.is-visible {
  pointer-events: auto;
}
.hero {
  position: fixed;
  z-index: 1;
  overflow: hidden;
  opacity: 1;
}
.stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
}
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  /* grid-template-rows: auto 1fr auto; */
  place-items: center;
  padding: 1rem 1rem;
  text-align: center;
  transform: translateY(-10px);
}
p {
  margin: 0;
  font-weight: normal;
}
/*
h1 {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: 0.7s;
}
.hero nav {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: 1.5s;
}
h1 {
  font-family: "Castoro Titling", serif;
  font-size: clamp(3rem, 4vw, 7rem);
  letter-spacing: 1.5em;
  text-indent: 1.5em;
}
*/
.logo {
  align-self: center;
  border: 0;
  padding: 0;
  background: none;
  cursor: none;
}
.logo img {
  display: block;
  width: min(10vw, 390px);
}
/*
.hero nav {
  display: flex;
  gap: 15vw;
  font-size: clamp(1.25rem, 1.5vw, 1.35rem);
  color: #ad0000;
}
.hero nav a {
  text-decoration: none;
  letter-spacing: 2px;
}
.hero.revealed h1,
.hero.revealed nav {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
*/
#reveal-cursor {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  color: #ad0000;
  pointer-events: none;
  font-size: 1.25rem;
}
.about {
  position: fixed;
  z-index: 1;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: transparent;
  color: #000;
}
.about > div {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  padding: clamp(1.5rem, 5vw, 4rem);
  text-align: center;
}
.about p {
  line-height: 1.85rem;
  font-size: clamp(1.25rem, 1.5vw, 1.3rem);
  color: #e9e3c4;
}
.about p.red {
  color: #ad0000;
}
.ornament {
  width: clamp(10rem, 14vw, 12rem);
  margin: 2rem auto;
}
.film {
  display: grid;
  position: fixed;
  height: 100vh;
  height: 100svh;
  isolation: isolate;
  overflow: hidden;
}
.film-video {
  display: block;
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* filter: blur(1.5px); */
  mix-blend-mode: plus-lighter;
  transition: opacity 4s linear;
}
.film-video:not(.is-active) {
  opacity: 0;
}
.film-events {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  justify-items: center;
  padding: 2rem;
  color: #e9e3c4;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.film-events.is-visible {
  opacity: 1;
}
.film-events p:first-child {
  align-self: start;
  font-size: clamp(1.35rem, 1.8vw, 1.45rem);
}
.film-events p:nth-child(2) {
  align-self: center;
  font-family: "Castoro Titling", serif;
  text-shadow: 0 2px 12px #000;
  font-size: clamp(1.5rem, 2vw, 2rem);
}
.event-x {
  font-family: "Baskerville Old Face", Baskerville, serif;
}
.film-events p:last-child {
  align-self: end;
  font-size: clamp(1.35rem, 1.8vw, 1.45rem);
}
.community-contact {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  min-height: 15vh;
  min-height: 15svh;
  opacity: 1;
  pointer-events: auto;
}
.community {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  align-content: center;
  justify-content: start;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  background: #141c0f;
  color: #e9e3c4;
  text-align: center;
  font-size: 1.15rem;
  transition:
    background-color 0.4s,
    color 0.4s;
}
.community-contact:hover .community {
  background: #e9e3c4;
  color: #141c0f;
}
.mailing {
  justify-self: center;
  padding: 0.5rem 1.5rem;
}
.contact {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  align-content: center;
  justify-content: end;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  background: #e9e3c4;
  color: #ad0000;
  text-align: center;
  font-size: 1.15rem;
  transition:
    background-color 0.4s,
    color 0.4s;
}
.community-contact:hover .contact {
  background: #141c0f;
  color: #ad0000;
}
@media (max-width: 500px) {
  .logo {
    cursor: pointer;
  }
  .logo img {
    width: min(38vw, 220px);
  }
  #reveal-cursor {
    display: none !important;
  }
  .hero-content {
    padding: 3rem 1rem;
  }
  /*
  .hero h1 {
    font-size: 2rem;
    letter-spacing: 0.5em;
    text-indent: 0.5em;
  }
  .logo img {
    width: min(30vw, 220px);
  }
  .hero nav {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 3rem 4rem;
    justify-content: center;
  }
  */
  .community-contact {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, 1fr);
    min-height: 40vh;
    min-height: 40svh;
  }
  .community,
  .contact {
    grid-template-columns: 1fr;
    place-content: center;
  }
  .contact p {
    overflow-wrap: anywhere;
  }
}
