* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font: 12px/1.4 Helvetica, "Helvetica Neue", Arial, sans-serif;
  color: #000;
  background: #fff;
}

body {
  padding: 24px;
  min-height: 100vh;
}

a {
  color: #0000ee;
  text-decoration: underline;
}

@media (hover: hover) {
  a:hover {
    color: #000;
    background: #ff0;
  }
}

/* ---- header: vertical nav left, logo top-right ---- */
header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 80px;
}

nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

nav a {
  text-decoration: none;
  color: #000;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.04em;
}

@media (hover: hover) {
  nav a:hover {
    text-decoration: underline;
    background: transparent;
    color: #000;
  }
}

nav a[aria-current="page"] {
  font-weight: bold;
}

/* ---- page title row ---- */
.page-title {
  display: flex;
  justify-content: space-between;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.page-title.with-rule {
  border-top: 2px solid #000;
  padding-top: 16px;
}

/* ---- home page: stacked right-justified type ---- */
body.home-page {
  position: relative;
  min-height: 100vh;
}

body.home-page .home-nav {
  position: absolute;
  left: 80px;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2;
}

body.home-page .home-nav a {
  font-size: 14px;
  letter-spacing: 0;
  text-decoration: none;
  color: #000;
  text-transform: uppercase;
  line-height: 1.6;
  font-weight: 300;
  display: flex;
  justify-content: space-between;
  width: 160px;
}

body.home-page .home-nav a[aria-current="page"] {
  font-weight: 400;
}

@media (hover: hover) {
  body.home-page .home-nav a:hover {
    background: transparent;
    text-decoration: underline;
  }
}

body.home-page .home-logo {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
}

body.home-page .home-logo a {
  display: block;
  text-decoration: none;
  color: #000;
  text-align: right;
}

body.home-page .home-logo span {
  display: block;
  /* 7 lines fill the viewport height minus 48px of total padding */
  font-size: calc((100vh - 48px) / 5);
  font-weight: 300;
  letter-spacing: 0.35em;
  line-height: 1.0;
  text-align: right;
  /* trailing letter-spacing pushes text left of the right edge — offset it */
  margin-right: -0.35em;
}

@media (hover: hover) {
  body.home-page .home-logo a:hover { background: transparent; }
}

/* ---- home ---- */
main.home {
  margin-top: 15vh;
  display: flex;
  justify-content: center;
}

.home-image {
  width: 38vw;
  max-width: 560px;
}

.home-image img {
  display: block;
  width: 100%;
  height: auto;
}

@media (hover: hover) {
  .home-image:hover img {
    filter: invert(1);
  }
}

/* ---- live / schedule ---- */
table.schedule {
  width: 100%;
  border-collapse: collapse;
}

table.schedule td {
  border-top: 1px solid #000;
  padding: 14px 16px;
  vertical-align: middle;
}

table.schedule tr:last-child td {
  border-bottom: 1px solid #000;
}

table.schedule .date    { width: 16%; white-space: nowrap; }
table.schedule .billing { width: 32%; }
table.schedule .venue   { width: 40%; text-align: right; }
table.schedule .tickets { width: 12%; text-align: right; padding-right: 0; }

.pieces {
  display: flex;
  gap: 32px;
}

.piece {
  flex: 0 0 auto;
}

.tickets-btn {
  display: inline-block;
  border: 1px solid #000;
  padding: 6px 14px;
  text-decoration: none;
  color: #000;
  background: #fff;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.04em;
}

@media (hover: hover) {
  .tickets-btn:hover {
    background: #000;
    color: #fff;
  }
}

/* ---- members ---- */
.member-row {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  align-items: flex-start;
}

.member-row .photo {
  width: 180px;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.member-row .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.member-row .meta { padding-top: 4px; }
.member-row .name { font-size: 16px; font-weight: bold; margin-bottom: 4px; }
.member-row .instrument { font-size: 12px; }

/* member bio: always visible (touch-safe default); collapses on hover-capable >mobile */
.member-bio {
  max-width: 60ch;
  font-size: 12px;
  line-height: 1.5;
  margin-top: 12px;
}

@media (hover: hover) and (min-width: 561px) {
  .member-bio {
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, margin-top 0.3s ease-out;
  }
  .member-row:hover .member-bio {
    max-height: 260px;
    margin-top: 12px;
  }
}

/* ---- bio & contact combined ---- */
.bio-contact {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: flex-start;
}

.bio-body {
  flex: 0 1 52ch;
  max-width: 52ch;
  text-align: justify;
}

.bio-body p + p { margin-top: 1em; }

.contact-info {
  flex: 0 0 auto;
  min-width: 200px;
}

.contact-info dt {
  font-weight: bold;
  text-transform: uppercase;
  margin-top: 16px;
}

.contact-info dt:first-child { margin-top: 0; }

.contact-info dd { margin-top: 4px; }

/* ---- tablet ---- */
@media (max-width: 900px) {
  body { padding: 20px; }
  header { margin-bottom: 60px; }
  main.home { margin-top: 10vh; }
  .home-image { width: 55vw; max-width: none; }
  table.schedule td { padding: 12px; }
  .member-row .photo { width: 140px; }

  body.home-page .home-nav { left: 40px; bottom: 60px; }
  body.home-page .home-nav a { font-size: 11px; width: 125px; }
  body.home-page .home-logo { top: 40px; right: 40px; }
  body.home-page .home-logo span { font-size: 56px; letter-spacing: 0.3em; margin-right: -0.3em; }

  .bio-contact {
    flex-direction: column;
    gap: 48px;
  }
  .bio-body { max-width: 100%; flex: 1 1 auto; }
  .contact-info { flex: 1 1 auto; }
}

/* ---- mobile ---- */
@media (max-width: 560px) {
  body { padding: 16px; }

  header {
    margin-bottom: 40px;
  }
  nav a { font-size: 13px; padding: 2px 0; }

  body.home-page .home-nav { left: 16px; top: 16px; bottom: auto; }
  body.home-page .home-nav a { font-size: 10px; letter-spacing: 0; width: 100px; line-height: 1.7; }
  body.home-page .home-logo {
    position: absolute;
    top: auto;
    bottom: 24px;
    left: auto;
    right: 16px;
  }
  body.home-page .home-logo span {
    font-size: 36px;
    letter-spacing: 0.2em;
    margin-right: 0;
    line-height: 1.05;
  }

  main.home { margin-top: 6vh; }
  .home-image { width: 88vw; }

  /* live schedule — clean stacked event blocks */
  table.schedule,
  table.schedule tbody {
    display: block;
  }
  table.schedule tr {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "date    tickets"
      "billing billing"
      "venue   venue";
    column-gap: 16px;
    row-gap: 6px;
    padding: 18px 0;
    border-top: 1px solid #000;
  }
  table.schedule tr:last-child {
    border-bottom: 1px solid #000;
  }
  table.schedule td {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
    text-align: left;
  }
  table.schedule .date    { grid-area: date;    font-weight: bold; font-size: 13px; }
  table.schedule .billing { grid-area: billing; }
  table.schedule .venue   { grid-area: venue;   text-align: left; }
  table.schedule .tickets { grid-area: tickets; align-self: center; }

  .member-row {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
  }
  .member-row .photo {
    width: 100%;
    max-width: 280px;
  }
}
