:root {
  --red: #be0000;
  --gold: #f7be10;
  --paper: #fff;
  --ink: #000;
  --page: 782px; /* 750px of content plus 16px side padding */
  --nav: 3.5rem;
  --font: "Segoe UI", "Trebuchet MS", system-ui, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav);
  scroll-snap-type: y proximity;
}

body {
  margin: 0;
  background: var(--red);
  color: var(--ink);
  font: 0.9375rem/1.4 var(--font);
}

img { max-width: 100%; height: auto; border: 0; }

h1, h2, h3 {
  margin: 0 0 0.5em;
  color: var(--red);
  font-weight: normal;
  line-height: 1.15;
}
h1 { font-size: 1.9rem; }
h2 { font-size: 1.9rem; text-align: center; }
h3 { font-size: 1.6rem; margin-bottom: 0; }

a {
  color: var(--red);
  text-decoration: none;
  transition: color 0.2s linear;
}
a:hover,
a:focus-visible { border-bottom: 2px solid var(--gold); }

/* Shared width for header, content and footer */
.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: 1rem;
}

/* Fixed top bar */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  height: var(--nav);
  background: var(--red);
  border-bottom: 5px solid var(--gold);
}
.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header a { color: #fff; font-size: 1.25rem; }
.site-header a:hover,
.site-header a:focus-visible { color: var(--gold); }
.site-header nav { display: flex; gap: 1.5rem; }
.brand { font-weight: 600; }
.site-header .nav-social { display: flex; align-items: center; }
.nav-social img { display: block; }

/* Full-screen sections that the page snaps between */
.panel {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: calc(var(--nav) + 1.5rem) 1rem 2rem;
  scroll-snap-align: start;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.panel--hero { background-color: var(--red); }
.panel--band  { background-image: url("../img/band-bg.webp"); }
.panel--music { background-image: url("../img/band-bg.webp"); }

/* Backgrounds stay put while the content scrolls over them (desktop only) */
@media (min-width: 1024px) and (hover: hover) {
  .panel--band,
  .panel--music { background-attachment: fixed; }
}

/* Hero: banner and band photo */
.hero { text-align: center; }
.hero h1 { margin-bottom: 1rem; }
.hero h1 img { display: block; margin-inline: auto; }
.hero-photo {
  display: block;
  margin: 0 auto;
  border: 3px solid var(--gold);
}

/* White card that holds each section's content */
.card {
  width: 100%;
  max-width: var(--page);
  padding: 1.25rem;
  background: rgb(255 255 255 / 0.85);
  border: 5px solid var(--gold);
}

/* Bio: text between two columns of band members */
.bio {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "andrew text steve"
    "leon   text shawn";
  border: 1px solid var(--gold);
}
.bio-text {
  grid-area: text;
  padding: 0.75rem;
  border-inline: 1px solid var(--gold);
}
.bio-text p { margin: 0 0 1em; }
.bio-text p:last-child { margin-bottom: 0; }

.member {
  margin: 0;
  padding: 0.75rem;
  text-align: center;
}
.member--andrew { grid-area: andrew; }
.member--steve  { grid-area: steve; }
.member--leon   { grid-area: leon; }
.member--shawn  { grid-area: shawn; }
.member figcaption { max-width: 8rem; margin-inline: auto; }
.member strong { display: block; }

/* Photo swaps to the alternate shot on hover */
.member-photo {
  display: grid;
  width: 100px;
  margin: 0 auto 0.25rem;
}
.member-photo img {
  grid-area: 1 / 1;
  width: 100px;
  height: 132px;
  object-fit: cover;
  transition: opacity 0.2s;
}
.member-photo img + img { opacity: 0; }
.member-photo:hover img + img { opacity: 1; }

/* Music */
.album {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
  text-align: center;
}
.tracks {
  margin: 0;
  padding: 0;
  list-style: none;
}
.tracks li {
  display: grid;
  gap: 4px;
  justify-items: center;
  margin-bottom: 0.9rem;
  font-weight: bold;
}
.tracks audio { width: 100%; max-width: 420px; }
.tracks img { border: 1px solid var(--gold); }

/* Footer */
.site-footer {
  padding-block: 5px;
  background: var(--red);
  border-top: 5px solid var(--gold);
  color: #fff;
  scroll-snap-align: end;
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.5rem 1rem;
}
.site-footer a { color: #fff; }
.site-footer a:hover,
.site-footer a:focus-visible { color: var(--gold); border-bottom-color: var(--gold); }
.footer-social { display: inline-flex; align-items: center; gap: 0.4rem; }
.footer-social img { width: 24px; height: 24px; }
.footer-end { text-align: right; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .member-photo img { transition: none; }
}

/* Phones */
@media (max-width: 640px) {
  .card { padding: 0.75rem; }
  .bio {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "text   text"
      "andrew steve"
      "leon   shawn";
  }
  .bio-text { border-inline: 0; border-bottom: 1px solid var(--gold); }
  .album { grid-template-columns: 1fr; justify-items: center; gap: 1rem; }
  .site-footer .wrap { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer-end { text-align: center; }
}
