/* these two colours are also used by the shell bands in the script */
:root {
  --edge: #16336B;
  --mid: #BBD5F8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Arial", Arial, serif;
  font-size: 18px;
  line-height: 1.6;
  color: #141477;
  background: #FFFFFF;
}

h1, h2, h3, nav, .btn, dt, summary {
  font-family: "Arial", Arial, sans-serif;
}

a {
  color: inherit;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* header */

header {
  border-bottom: 5px solid #d5e1f3;
}

header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  padding-bottom: 16px;
}

header b {
  font-family: "Arial", Arial, sans-serif;
  font-size: 19px;
  color: #1E6BD6;
}

nav a {
  margin-left: 22px;
  text-decoration: none;
}

nav a:hover {
  color: #1e6bd6;
}

/* hero */

.hero {
  display: flex;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  flex-direction: column;
  gap: 48px;
  align-items: center;
  text-align: center;
  padding-top: 50px;
  padding-bottom: 70px;
  background-image: url("images/group-photo.jpeg");
  background-size: fit;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(255,255,255,0.6);
  background-blend-mode: lighten;
}

h1 {
  font-size: 72px;
  line-height: 1;
  margin: 0 0 20px;
}

.tag {
  max-width: 540px;
  font-size: 22px;
  font-style: italic;
  color: #4A5D7A;
  margin: 0 auto 16px;
}

.lead {
  max-width: 540px;
  margin: 0 0 28px;
}

.btn {
  display: inline-block;
  padding: 13px 24px;
  background: #1e6bd6;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: #16336b;
}

/* the shell on the right, bands are added by the script */

.shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1.05;
  margin: 0 auto;
  border-radius: 50% 50% 8px 8px / 42% 42% 8px 8px;
  overflow: hidden;
}

.shell i {
  flex: 1;
  transform-origin: left;
  animation: band 0.7s backwards;
  animation-delay: calc(var(--n) * 70ms);
}

@keyframes band {
  from { transform: scaleX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .shell i { animation: none; }
}

/* sections */

section {
  padding: 25px 0;
  border-top: 5px solid #d5e1f3;
}

.alt {
  background: #f0f6fe;
}

.centre {
  text-align: center;
}

h2 {
  font-size: 38px;
  line-height: 1.1;
  margin: 28px 0 34px;
}

h3 {
  font-size: 20px;
  margin: 0 0 8px;
}

.three {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 36px;
}

.three p {
  margin: 0;
  color: #4a5d7a;
}

.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

dl {
  margin: 0;
}

dt {
  margin-top: 14px;
  font-weight: bold;
}

dd {
  margin: 0;
  color: #4a5d7a;
}

.post {
  max-width: 600px;
}

.post time {
  color: #4a5d7a;
  font-size: 15px;
}

/* members */

.gate {
  margin-top: 14px;
}

.gate input {
  padding: 12px 14px;
  font-size: 16px;
  border: 1px solid #4a5d7a;
  border-radius: 5px;
  margin-right: 8px;
}

.err {
  min-height: 28px;
  margin: 10px 0 0;
  color: #b3261e;
}

.songs details {
  padding: 14px 0;
  border-top: 1px solid #d5e1f3;
}

.songs summary {
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
}

.songs p {
  margin: 10px 0 0;
  color: #4a5d7a;
  white-space: pre-line;
}

/* section switcher & letter jump bar */

.view-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 28px 0 20px;
}

.view-btn.active {
  background: #16336b;
  outline: 3px solid #bbd5f8;
}

.letter-jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 28px;
}

.letter-jump a {
  padding: 6px 12px;
  background: #f0f6fe;
  border: 1px solid #d5e1f3;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}

.letter-jump a:hover {
  background: #d5e1f3;
  color: #1e6bd6;
}

.view-panel h2:first-child {
  margin-top: 8px;
}

.plainbtn {
  background-color: #3498DB;
  color: white;
  padding: 16px;
  font-size: 16px;
  font-family: "Arial", Arial, sans-serif;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-bottom: 50px;
}

.plainbtn:hover, .plainbtn:focus {
  background-color: #2980B9;
}

[hidden] {
  display: none !important;
}

/* dropdown display */

.dropbtn {
  background-color: #3498DB;
  color: white;
  padding: 16px;
  font-size: 16px;
  border: none;
  cursor: pointer;
}

.dropbtn:hover, .dropbtn:focus {
  background-color: #2980B9;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f1f1f1;
  min-width: 160px;
  overflow: auto;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown a:hover {background-color: #ddd;}

.show {display: block;}

.dropdown-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px; /* Desktop */
}

/* footer */

footer {
  padding: 36px 0;
  border-top: 1px solid #d5e1f3;
  color: #4a5d7a;
  font-size: 15px;
  text-align: center;
}

/* phones */

@media (max-width: 760px) {
  .hero, .cols, .three {
    grid-template-columns: 1fr;
  }

  .dropdown-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .dropdown-group .dropbtn,
  .dropdown-group .plainbtn {
    width: 100%;
  }

  .view-nav {
    gap: 14px;
  }

  .letter-jump {
    gap: 10px;
  }

  .hero {
    gap: 28px;
  }

  .shell {
    order: -1;
    max-width: 240px;
    aspect-ratio: 1 / 0.8;
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 30px;
    margin-bottom: 28px;
  }

  nav a {
    margin-left: 14px;
  }
}