/* Homepage layout. Detail pages have their own stylesheet in pages/. */
@font-face {
  font-family: "brant";
  src: url("../../assets/fonts/brant.ttf") format("truetype");
  font-display: swap;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Times New Roman", serif;
  font-size: 18px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  width: 100%;
  height: 55px;
}

.site-header.is-scrolled {
  background: black;
}

.site-logo {
  display: block;
  flex: 0 1 315px;
  min-width: 0;
  height: 55px;
}

.site-logo img {
  display: block;
  width: 100%;
  height: 55px;
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  display: flex;
  flex-direction: column;
}

.site-nav a {
  display: flex;
  justify-content: space-around;
  align-items: center;
  min-width: max-content;
  margin: 3px 3px 0 0;
  color: white;
  line-height: 40px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: black;
  background: rgb(255 255 255 / 40%);
}

.menu-toggle {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  margin: 10px 5px 5px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: url("../../assets/menuButtonW.png") center / contain no-repeat;
  cursor: pointer;
}

.menu-toggle[aria-expanded="true"] {
  background-image: url("../../assets/menuButtonB.png");
}

.menu-toggle:focus-visible,
.site-logo:focus-visible {
  outline: 2px solid white;
  outline-offset: -2px;
}

/* Without JavaScript, keep every navigation link visible and usable. */
@media (max-width: 1049px) {
  .site-header {
    position: relative;
    height: auto;
    flex-wrap: wrap;
    background: #333231;
  }

  .site-nav {
    width: 100%;
  }

  .js .site-header {
    position: fixed;
    height: 55px;
    flex-wrap: nowrap;
    background: transparent;
  }

  .js .site-header.is-scrolled {
    background: black;
  }

  .js .site-nav {
    position: absolute;
    top: 55px;
    left: 0;
    display: none;
    background: #333231;
  }

  .js .site-header[data-menu-open="true"] .site-nav {
    display: flex;
  }
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 10px;
  background: url("../../assets/renaissance.jpeg") center / cover no-repeat;
}

.hero-intro {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 55px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 90%;
  margin: auto;
  color: white;
}

.hero-title {
  margin: 0;
  font-size: 35px;
  font-weight: normal;
}

.hero-tagline,
.hero-affiliation {
  margin: 0;
  font-size: 15px;
}

.hero-affiliation {
  margin-top: 50px;
}

.hero-events {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
}

.events-panel {
  display: flex;
  flex-direction: column;
  width: 350px;
  height: 350px;
  max-width: 100%;
  margin-top: 55px;
  overflow: hidden;
  background: url("../../assets/frame.png") top left / 100% no-repeat;
  background-color: rgb(0 0 0 / 50%);
}

.events-heading {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  height: 10%;
  margin: 10px 0 0;
  color: darkgoldenrod;
  font-family: "brant", serif;
  font-size: 25px;
  font-weight: normal;
}

.events-list {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-height: 85%;
  overflow: auto;
}

.events-list::-webkit-scrollbar {
  width: 7px;
}

.events-list::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: rgb(100 100 100 / 40%);
}

.event {
  flex-shrink: 0;
  width: 80%;
  margin: 37px 0 0;
  color: #e0d9c1;
  font-family: "brant", serif;
  font-size: 19px;
}

.events-list:focus-visible {
  outline: 2px solid lightblue;
  outline-offset: -2px;
}

.event:last-child {
  margin-bottom: 37px;
}

.event a {
  color: lightblue;
}

.about-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: url("../../assets/Piano.png") 50% 0 no-repeat;
  font-size: 19px;
}

.about-heading {
  display: flex;
  justify-content: center;
  height: 80px;
}

.about-heading h2 {
  margin: 0.67em 0;
  font-size: 2em;
}

.mission {
  min-height: 180px;
  padding: 0 5px;
  font-size: 16px;
}

.join-heading {
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 300px;
  color: darkgoldenrod;
}

.join-heading h2 {
  margin: 0;
  padding-top: 200px;
  font-size: 30px;
  font-weight: normal;
}

.membership {
  padding: 30px 5px 5px;
  color: darkgoldenrod;
  font-size: 17px;
}

@media (min-width: 450px) {
  .events-panel {
    width: 450px;
    height: 450px;
  }
}

@media (min-width: 650px) {
  .events-panel {
    width: 550px;
    height: 550px;
  }

  .mission {
    font-size: 19px;
  }
}

@media (min-width: 1050px) {
  .menu-toggle {
    display: none;
  }

  .site-nav {
    flex-direction: row;
    justify-content: space-around;
    width: calc(100% - 315px);
    height: 100%;
  }

  .site-nav a {
    height: 80%;
    padding: 4px;
    font-size: 20px;
  }

  .hero {
    flex-direction: row;
  }

  .hero-intro {
    width: 47%;
  }

  .hero-events {
    width: 53%;
  }

  .hero-title {
    font-size: 50px;
  }

  .hero-tagline,
  .hero-affiliation {
    font-size: 20px;
  }
}

@media (min-width: 1300px) {
  .events-panel {
    width: 650px;
    height: 650px;
  }
}
