:root {
  color-scheme: dark;
  --paper: #191215;
  --panel: #23191c;
  --ink: #f0e3da;
  --muted: #d7c2b8;
  --berry: #f4a9c4;
  --mint: #a1d4c4;
  --line: #523c41;
  font-family: system-ui, "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 112.5%;
  line-height: 1.7;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; overflow-wrap: anywhere; }
a { color: var(--mint); text-underline-offset: .2em; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
[id] { scroll-margin-top: 1rem; }
h1, h2, h3, h4 { line-height: 1.35; }
h1 { font-size: clamp(1.5rem, 5vw, 2.15rem); margin: .35rem 0 0; }
h2 { font-size: clamp(1.6rem, 5vw, 2rem); margin: 0 0 1rem; }
h3 { font-size: 1.3rem; color: var(--muted); margin: 1.7rem 0 .7rem; }
h4 { font-size: 1.25rem; margin: 0 0 .5rem; }
p { margin: .65em 0; }
img { display: block; max-width: 100%; height: auto; }

.hero {
  display: grid;
  place-content: center;
  justify-items: center;
  min-height: 100svh;
  padding: 1rem 1rem max(1rem, env(safe-area-inset-bottom));
  text-align: center;
}
.hero-art {
  display: grid;
  width: min(100%, 43vh, 28rem);
  width: min(100%, 43svh, 28rem);
  overflow: hidden;
  background: var(--panel);
}
.hero-art img { grid-area: 1 / 1; width: 100%; }
.hero-illustration {
  animation: arrive .75s ease-out both, float 2s .75s ease-in-out 2;
}
@keyframes arrive {
  from { transform: scale(.15); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(1.5%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-illustration { animation: none; }
}
.hero-subtitle { margin: .1rem 0 .65rem; color: var(--muted); }
nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem;
}
a[href] {
  display: inline-grid;
  place-items: center;
  min-height: 48px;
  padding: .3rem .65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  font-weight: 600;
  text-decoration: none;
}
a[href]:is(:hover, :focus-visible, :active) {
  border-color: var(--mint);
  background: #32242a;
}
main, footer { width: min(100% - 2rem, 58rem); margin-inline: auto; }
.content-section { padding: 1.6rem 0; border-top: 1px solid var(--line); }
.program-list { margin: 0; padding-left: 1.55rem; }
.program-item { padding: .85rem 0 1rem .15rem; }
.program-item + .program-item { border-top: 1px solid var(--line); }
.program-item::marker { color: var(--berry); font-weight: 700; }
.song-credits, .credit-list { margin: 0; }
.song-credits div {
  display: grid;
  grid-template-columns: 3em minmax(0, 1fr);
  column-gap: .25em;
  align-items: baseline;
}
.credit-list div { display: flex; flex-wrap: wrap; column-gap: .7rem; }
dt { color: var(--muted); font-weight: 700; }
dd { margin: 0; }
.credit-list div { padding-block: .4rem; border-bottom: 1px solid var(--line); }
.movements { padding-left: 1.2rem; }
.movements li + li { margin-top: .35rem; }
.people-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 1rem .8rem;
  margin-block: .8rem;
}
.person-card { min-width: 0; border-bottom: 1px solid var(--line); }
.person-card summary {
  display: grid;
  gap: .65rem;
  cursor: pointer;
  padding: 0 0 .55rem;
  list-style: none;
}
.person-card summary::-webkit-details-marker { display: none; }
.person-card summary img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}
.person-label { position: relative; padding-right: 1.4rem; }
.person-label::after {
  content: "";
  position: absolute;
  top: .55rem;
  right: .25rem;
  width: .45rem;
  height: .45rem;
  border: solid var(--muted);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.person-card[open] { grid-column: 1 / -1; }
.person-card[open] summary img { max-width: calc(50% - 1rem); }
.person-card[open] .person-label::after { transform: rotate(225deg); }
.person-label span { display: block; }
.person-role { color: var(--muted); }
.person-name { color: var(--ink); font-size: 1.2rem; font-weight: 700; }
.person-bio { padding-bottom: .65rem; }
footer { padding: 0 0 2rem; }
@media (min-width: 54rem) {
  .hero { grid-template-columns: minmax(0, 30rem) minmax(0, 24rem); align-items: center; gap: 2rem; }
  .hero-art { width: min(100%, 58vh, 29rem); }
}

.hero h1 { margin: 0 0 .4rem; }
.hero nav { gap: .35rem; }
.hero nav .primary-link { color: var(--berry); border-color: #a5687e; }
.band-intro summary { cursor: pointer; min-height: 48px; color: var(--mint); }
.band-intro img { margin: .5rem 0 1rem; }
@media (max-width: 53.999rem) {
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0 0 max(.6rem, env(safe-area-inset-bottom));
  }
  .hero > :last-child { padding: .45rem .6rem 0; }
  .hero h1 { font-size: clamp(1.12rem, 5vw, 1.6rem); }
  .hero-art { width: 100%; border-radius: 0; }
}

#program-title {
  display: flex;
  align-items: center;
  gap: .55em;
}
#program-title::before {
  content: "";
  flex: 0 0 .72em;
  height: 2px;
  background: #805665;
}
#program:target #program-title::before {
  background: var(--berry);
  animation: program-marker .5s ease-out;
}
@keyframes program-marker {
  from { background: #805665; }
  to { background: var(--berry); }
}
@media (prefers-reduced-motion: reduce) {
  #program:target #program-title::before { animation: none; }
}

.thanks-list {
  display: grid;
  gap: .45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.thanks-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-items: start;
  gap: .6rem;
  padding-inline: .85rem;
}
.thanks-list .external-arrow { justify-self: end; }

/* Keep the supplied artwork and programme; add the official event context. */
.hero-copy { min-width: 0; }
.hero-ensemble { font-size: clamp(.95rem, 2.2vw, 1.2rem); font-weight: 600; }
.hero .hero-copy h1 { font-size: clamp(1.12rem, 4vw, 1.9rem); line-height: 1.5; }
.hero-copy h1 span { display: block; text-wrap: balance; }
.hero-event { color: var(--muted); margin-block: .8rem 1rem; }
.hero-event small { font-size: .85em; }
.hero-return { margin: .35rem 0 0; }
.hero-return a[href] { border-color: transparent; background: none; font-size: .85rem; }
.hero-return a[href]:hover { text-decoration: underline; }
@media (max-width: 53.999rem) {
  .hero .hero-copy { padding: 1rem .8rem .4rem; }
}
