:root {
  color-scheme: dark;
  --black: #050505;
  --surface: #0b0b0b;
  --white: #f5f3ef;
  --muted: #c1bbb4;
  --line: #2a2826;
  --coral: #e5a28f;
  --gold: #b99459;
  font-family: "Noto Sans TC", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--black);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--white);
  background: var(--black);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header,
.site-footer {
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto;
}

.site-header {
  padding: 18px 0 12px;
  background: var(--black);
}

.main-nav,
.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  color: #f0ece7;
  font-family: "Arial Narrow", "Noto Sans TC", sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.main-nav a,
.footer-nav a {
  padding: 7px 0;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a[aria-current="page"],
.footer-nav a:hover,
.footer-nav a:focus-visible,
.footer-nav a[aria-current="page"] {
  color: var(--coral);
}

.brand {
  display: block;
  width: min(100%, 940px);
  margin: 6px auto 0;
}

.brand img {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #4c4945;
  border-radius: 3px;
  background: var(--black);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--white);
}

.social-rail {
  position: fixed;
  top: 50%;
  left: 18px;
  z-index: 10;
  display: grid;
  gap: 16px;
  transform: translateY(-50%);
}

.social-rail a {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--white);
  font-size: 15px;
  font-weight: 900;
}

.social-rail a:hover,
.social-rail a:focus-visible {
  color: var(--coral);
}

.page-main {
  width: min(1080px, calc(100% - 48px));
  min-height: 62vh;
  margin: 0 auto;
  padding: 54px 0 100px;
}

.home-main {
  width: min(920px, calc(100% - 48px));
  margin: 0 auto;
  padding: 12px 0 72px;
}

.home-poster-link {
  display: block;
  width: min(760px, 100%);
  margin: 0 auto;
}

.home-poster-link img {
  width: 100%;
  height: auto;
}

.page-band {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: center;
  width: min(620px, 100%);
  margin-bottom: 58px;
}

.page-band span {
  position: relative;
  z-index: 1;
  padding: 10px 16px;
  background: var(--white);
  color: #111;
  font-size: 24px;
  line-height: 1.1;
  text-transform: uppercase;
}

.page-band strong {
  position: relative;
  padding: 10px 18px;
  background: var(--coral);
  color: #111;
  font-family: "Arial Narrow", "Noto Sans TC", sans-serif;
  font-size: 25px;
  line-height: 1.1;
}

.page-band strong::after {
  position: absolute;
  right: 0;
  bottom: -10px;
  width: 120px;
  height: 5px;
  background: var(--white);
  content: "";
}

.story-grid {
  display: grid;
  gap: 70px;
}

.story-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 60px;
}

.story-row.reverse img {
  order: 2;
}

.story-row img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.copy {
  color: #d3cec8;
  font-size: 17px;
  line-height: 2;
}

.copy p {
  margin: 0 0 22px;
}

.conductor-title,
.programme-title {
  margin: 0 0 44px;
  font-family: "Arial Narrow", "Noto Sans TC", sans-serif;
  font-size: 54px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.conductor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.55fr);
  align-items: start;
  gap: 70px;
}

.conductor-name {
  margin: 0 0 28px;
  color: var(--coral);
  font-family: "Noto Serif TC", serif;
  font-size: 32px;
}

.conductor-photo {
  width: 100%;
  aspect-ratio: 7 / 12;
  object-fit: cover;
  object-position: center top;
}

.members-intro {
  margin: 0 0 36px;
  color: var(--coral);
  font-family: "Arial Narrow", "Noto Sans TC", sans-serif;
  font-size: 42px;
  text-transform: uppercase;
}

.member-table {
  width: min(760px, 100%);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.member-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 52px;
  border-bottom: 1px solid var(--line);
}

.member-row dt,
.member-row dd {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 12px 16px;
}

.member-row dt {
  color: var(--coral);
  font-weight: 800;
}

.member-row dd {
  border-left: 1px solid var(--line);
  color: #e1ddd7;
  line-height: 1.7;
}

.programme-sheet {
  width: min(820px, 100%);
}

.programme-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.programme-item h2,
.programme-item p {
  margin: 0;
}

.programme-item h2 {
  color: var(--white);
  font-size: 19px;
}

.programme-item p {
  margin-top: 6px;
  color: var(--muted);
}

.programme-item .arranger {
  color: #817b74;
  font-size: 13px;
}

.programme-item.intermission {
  color: var(--coral);
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.programme-notes {
  width: min(840px, 100%);
  margin-top: 100px;
}

.programme-notes > h2 {
  margin: 0 0 50px;
  color: var(--coral);
  font-family: "Arial Narrow", "Noto Sans TC", sans-serif;
  font-size: 44px;
  text-transform: uppercase;
}

.note-section {
  padding: 0 0 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.note-section h3 {
  margin: 0;
  color: var(--coral);
  font-family: "Noto Serif TC", serif;
  font-size: 26px;
}

.note-section h4 {
  margin: 6px 0 24px;
  color: var(--white);
  font-size: 18px;
}

.note-section p {
  margin: 0 0 18px;
  color: #cbc5be;
  font-size: 16px;
  line-height: 1.95;
}

.archive-list {
  display: grid;
  gap: 100px;
}

.archive-entry {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
}

.archive-entry:nth-child(even) img {
  order: 2;
}

.archive-entry img {
  width: 100%;
  aspect-ratio: 5 / 7;
  object-fit: cover;
  object-position: top;
}

.archive-copy {
  text-align: center;
}

.archive-copy .zh-title {
  margin: 0;
  color: var(--coral);
  font-family: "Noto Serif TC", serif;
  font-size: 28px;
}

.archive-copy h2 {
  margin: 8px 0 14px;
  font-family: "Arial Narrow", "Noto Sans TC", sans-serif;
  font-size: 32px;
}

.archive-copy .meta,
.archive-copy .repertoire {
  color: #cbc5be;
  line-height: 1.9;
}

.archive-copy .repertoire {
  margin-top: 22px;
  white-space: pre-line;
}

.site-footer {
  padding: 34px 0 54px;
  border-top: 1px solid var(--line);
}

.site-footer .brand {
  margin-top: 10px;
}

.ticket-link {
  display: block;
  width: max-content;
  margin: 30px auto 0;
  padding: 12px 20px;
  border: 1px solid var(--white);
  font-weight: 800;
}

.ticket-link:hover,
.ticket-link:focus-visible {
  color: var(--black);
  background: var(--white);
}

@media (max-width: 820px) {
  .site-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    padding: 12px 0;
  }

  .site-header .brand {
    width: min(76%, 440px);
    margin: 0;
  }

  .nav-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .main-nav {
    position: absolute;
    top: 68px;
    right: 0;
    left: 0;
    z-index: 20;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 18px;
    border: 1px solid var(--line);
    background: #0c0c0c;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
  }

  .social-rail {
    display: none;
  }

  .story-row,
  .conductor-grid,
  .archive-entry {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .story-row.reverse img,
  .archive-entry:nth-child(even) img {
    order: 0;
  }

  .conductor-photo {
    width: min(480px, 100%);
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .page-main,
  .home-main {
    width: calc(100% - 32px);
  }

  .page-main {
    padding-top: 38px;
  }

  .page-band {
    grid-template-columns: 112px minmax(0, 1fr);
    margin-bottom: 44px;
  }

  .page-band span,
  .page-band strong {
    padding: 9px 11px;
    font-size: 18px;
  }

  .conductor-title,
  .programme-title {
    font-size: 40px;
  }

  .members-intro {
    font-size: 34px;
  }

  .member-row {
    grid-template-columns: 125px minmax(0, 1fr);
  }

  .member-row dt,
  .member-row dd {
    padding: 10px;
    font-size: 14px;
  }

  .archive-list {
    gap: 76px;
  }

  .archive-copy h2 {
    font-size: 28px;
  }

  .footer-nav {
    gap: 13px;
    font-size: 11px;
  }
}
