@charset "utf-8";

/* About-only layout.

   About links no page-level stylesheet of its own, so page-specific corrections
   land wherever they happened to be written. These rules give the page one
   home. */

/* "Meet the line-up" has its heading flush to the rail, but .section-intro
   carries `margin: 18px auto 0` from assets/css/pages/about-layout.css, which
   centres the box and left the introduction 335px in from its own heading.
   Constrain it to the rail and a comfortable measure instead. */
#main #line-up .section-intro {
  max-width: 62ch;
  margin: 18px 0 30px;
  text-align: left;
}

/* ------------------------------------------------------------------
   Member profile pop-out.

   Tapping a line-up card opens a native <dialog> with that member's
   name, role and biography. It is deliberately text only: no portrait
   and no decorative artwork, so the writing carries the panel and the
   backdrop fully covers the photographs behind it.

   These rules live in about.css rather than about-layout.css because
   scripts/package-site.mjs retires about-layout.css from the deployed
   bundle; anything written there styles local development only. The
   #main prefix keeps the panel ahead of the shared heading and
   paragraph rules that the compiled layer appends after this file.
   ------------------------------------------------------------------ */
html.member-dialog-open {
  overflow: hidden;
}
#main .member-dialog {
  box-sizing: border-box;
  width: min(600px, calc(100% - 40px));
  max-width: none;
  max-height: min(680px, calc(100dvh - 72px));
  margin: auto;
  padding: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  border: 1px solid rgba(223, 178, 255, 0.22);
  border-radius: 20px;
  color: #f7f3ff;
  background: #14101f;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.62),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  text-align: left;
}
#main .member-dialog[open] {
  display: flex;
  flex-direction: column;
  animation: member-dialog-in 240ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* An opaque, blurred backdrop: the line-up portraits must not read
   through the panel. */
#main .member-dialog::backdrop {
  background: rgba(4, 3, 9, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@keyframes member-dialog-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Close control: a round glass button with a drawn stroke cross.
   Drawing the icon avoids the uneven baseline and weight of the ×
   text glyph, and the 44px box keeps a comfortable touch target. */
#main .member-dialog-actions {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  display: flex;
  margin: 0;
}
#main .member-dialog-close {
  display: grid;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid rgba(223, 178, 255, 0.24);
  border-radius: 999px;
  color: #d8c6ef;
  background: rgba(255, 255, 255, 0.05);
  font: inherit;
  cursor: pointer;
  place-items: center;
  transition:
    color 170ms ease,
    background-color 170ms ease,
    border-color 170ms ease,
    transform 170ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
#main .member-dialog-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  pointer-events: none;
}
#main .member-dialog-close:hover {
  border-color: rgba(223, 178, 255, 0.58);
  color: #fff;
  background: rgba(183, 140, 255, 0.2);
}
#main .member-dialog-close:active {
  transform: scale(0.94);
}
#main .member-dialog-close:focus-visible {
  outline: 3px solid rgba(223, 178, 255, 0.85);
  outline-offset: 3px;
}

#main .member-dialog h2 {
  position: relative;
  flex: none;
  max-width: none;
  margin: 0 !important;
  padding: 34px 76px 0 32px;
  color: #f7f3ff;
  font-size: clamp(2.2rem, 4.6vw, 2.9rem) !important;
  line-height: 1 !important;
  letter-spacing: -0.025em;
  text-align: left !important;
}
#main .member-dialog h2::before {
  display: block;
  margin-bottom: 14px;
  color: #c99cf3;
  font-family: "Manrope", sans-serif;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  content: "Meet the band";
}
#main .member-dialog .member-dialog-role {
  flex: none;
  align-self: flex-start;
  max-width: calc(100% - 64px);
  margin: 16px 32px 26px;
  padding: 7px 13px;
  border: 1px solid rgba(223, 178, 255, 0.26);
  border-radius: 999px;
  color: #e3c4ff;
  background: rgba(183, 140, 255, 0.12);
  font-family: "Manrope", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-align: left !important;
  text-transform: uppercase;
}
#main .member-dialog .member-dialog-role:empty {
  display: none;
}

/* Only the biography scrolls, so the close button stays in reach at
   every viewport height. */
#main .member-dialog .member-dialog-bio {
  flex: 1 1 auto;
  min-height: 0;
  padding: 24px 32px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.015);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(223, 178, 255, 0.34) transparent;
}
#main .member-dialog .member-dialog-bio p {
  max-width: 58ch;
  margin: 0 0 16px;
  color: #e2dbe9;
  font-size: clamp(0.96rem, 0.3vw + 0.9rem, 1.04rem);
  line-height: 1.72;
  text-align: left !important;
}
#main .member-dialog .member-dialog-bio p:last-child {
  margin-bottom: 0;
}

/* Phones: the panel becomes a sheet that rises from the bottom edge. */
@media (max-width: 600px) {
  #main .member-dialog {
    width: 100%;
    max-height: min(84dvh, 720px);
    margin: auto auto 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    border-width: 1px 0 0;
    border-radius: 22px 22px 0 0;
  }
  #main .member-dialog[open] {
    animation-name: member-sheet-in;
  }
  #main .member-dialog-actions {
    top: 13px;
    right: 13px;
  }
  #main .member-dialog-close {
    width: 42px;
    height: 42px;
    min-height: 42px;
  }
  #main .member-dialog-close svg {
    width: 17px;
    height: 17px;
  }
  #main .member-dialog h2 {
    padding: 30px 68px 0 24px;
    font-size: clamp(2rem, 9.5vw, 2.5rem) !important;
  }
  #main .member-dialog h2::before {
    margin-bottom: 11px;
  }
  #main .member-dialog .member-dialog-role {
    max-width: calc(100% - 48px);
    margin: 14px 24px 22px;
    font-size: 0.7rem;
  }
  #main .member-dialog .member-dialog-bio {
    padding: 20px 24px 28px;
  }
  #main .member-dialog .member-dialog-bio p {
    font-size: 0.96rem;
    line-height: 1.68;
  }
}
@keyframes member-sheet-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 380px) {
  #main .member-dialog h2 {
    padding-left: 20px;
  }
  #main .member-dialog .member-dialog-role {
    margin-inline: 20px;
  }
  #main .member-dialog .member-dialog-bio {
    padding-inline: 20px;
  }
}
@media (forced-colors: active) {
  #main .member-dialog {
    border: 1px solid CanvasText;
  }
  #main .member-dialog-close {
    border: 1px solid ButtonText;
    color: ButtonText;
  }
}
@media (prefers-reduced-motion: reduce) {
  #main .member-dialog[open] {
    animation: none;
  }
  #main .member-dialog-close {
    transition: none;
  }
}

/* Profile pop-up refinements -------------------------------------------- */
/* Focus lands on the name after a tap; it is a reading position, not a
   control, so it needs no ring. */
#main .member-dialog h2:focus {
  outline: none;
}
/* A slimmer ring that stays clear of the screen edge on phones. */
#main .member-dialog .member-dialog-close:focus-visible {
  outline: 2px solid rgba(223, 178, 255, 0.85);
  outline-offset: 2px;
}
@media (max-width: 600px) {
  #main .member-dialog-actions {
    top: 16px;
    right: 18px;
  }
  /* iOS Safari's floating toolbar sits below the sheet; extend the sheet's
     colour down behind it so no dark strip shows under the profile. */
  #main .member-dialog {
    box-shadow:
      0 50vh 0 0 #14101f,
      0 28px 80px rgba(0, 0, 0, 0.62);
  }
}

/* Phones: a more compact profile sheet, so the name, role and bio read at
   the same scale as the rest of the page rather than filling the screen. */
@media (max-width: 600px) {
  #main .member-dialog {
    max-height: min(72dvh, 600px);
  }
  #main .member-dialog-actions {
    top: 12px;
    right: 14px;
  }
  #main .member-dialog-close {
    width: 38px;
    height: 38px;
    min-height: 38px;
  }
  #main .member-dialog-close svg {
    width: 15px;
    height: 15px;
  }
  #main .member-dialog h2 {
    padding: 22px 64px 0 20px;
    font-size: clamp(1.55rem, 6.6vw, 1.85rem) !important;
  }
  #main .member-dialog h2::before {
    margin-bottom: 8px;
    font-size: 0.6rem;
  }
  #main .member-dialog .member-dialog-role {
    max-width: calc(100% - 40px);
    margin: 10px 20px 16px;
    padding: 5px 10px;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }
  #main .member-dialog .member-dialog-bio {
    padding: 16px 20px 22px;
  }
  #main .member-dialog .member-dialog-bio p {
    margin-bottom: 12px;
    font-size: 0.9rem;
    line-height: 1.6;
  }
}
