* { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 300 1rem/1.55 var(--sans); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.03; }
h1, h2, h3 { text-wrap: pretty; }
a, button, summary { color: inherit; }
a { text-decoration: none; }
a:hover, summary:hover { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.shell { width: min(87.5%, 75rem); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -8rem; background: var(--field); padding: .6rem 1rem; z-index: 1; }
.skip:focus { top: .5rem; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem 1.6rem; }
.opening {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
  grid-template-areas: "intro photo" "more photo" "lesson photo";
  grid-template-rows: auto auto 1fr;
  align-items: start;
  gap: .65rem clamp(1.75rem, 5vw, 5rem);
  padding-block: clamp(2.3rem, 4.4vw, 4.3rem) clamp(2.8rem, 5.4vw, 5.2rem);
}
.intro { grid-area: intro; }
.river { grid-area: photo; }
.statement { grid-area: more; }
.lesson-aside {
  grid-area: lesson;
  width: fit-content;
  padding-top: .7rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}
.lesson-aside a { color: var(--accent); font-weight: 400; white-space: nowrap; }
.opening:has(.statement[open]) { grid-template-areas: "intro photo" "more more" "lesson lesson"; }
h1 { font-size: clamp(2.5rem, 5.35vw, 4.45rem); text-wrap: balance; letter-spacing: -.045em; line-height: 1.055; }
.opening-line { font: 300 clamp(1.06rem, 1.32vw, 1.22rem)/1.55 var(--sans); max-width: 43ch; margin-top: 1.35rem; color: var(--muted); }
.river img { width: 100%; aspect-ratio: 1.14; object-fit: cover; object-position: center 50%; }
figcaption { font-weight: 400; display: flex; justify-content: space-between; gap: .6rem; margin-top: .6rem; font-size: .81rem; color: var(--muted); }
summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: .55rem; width: fit-content; min-height: 2.65rem; font-size: .96rem; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; font: 1.2rem/.9 var(--sans); width: .85rem; text-align: center; }
details[open] > summary::before { content: "−"; }
details:not([open]) > summary .when-open, details[open] > summary .when-closed { display: none; }
.statement .prose {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem clamp(2rem, 5vw, 5rem);
  max-width: 105ch;
  padding: 1rem 0 0;
}
.statement .prose > p { margin: 0; }
.statement .prose > p:first-child { grid-row: span 3; }
.prose { padding-block: .45rem; }
.prose > * + * { margin-top: 1em; }
.section { scroll-margin-top: 1.25rem; margin-bottom: clamp(3rem, 5vw, 5rem); }
.section-head { display: flex; align-items: center; gap: 1.3rem; margin-bottom: 1.55rem; }
.section-rule { height: 1px; background: var(--rule); flex: 1; }
h2 { font-size: clamp(2.05rem, 3.3vw, 3rem); letter-spacing: -.026em; }
h3 { font-size: clamp(1.55rem, 2.35vw, 2.2rem); letter-spacing: -.026em; }
.type, .year { font-size: .88rem; color: var(--muted); }
.type { margin-bottom: .45rem; }
.text-link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.text-link:hover { text-decoration-thickness: 2px; }
.feature {
  display: grid;
  grid-template-columns: minmax(10rem, .65fr) 1.5fr;
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
  background: var(--feature);
  padding: clamp(1.65rem, 3.6vw, 3.55rem);
}
.feature .cover { width: min(100%, 17rem); justify-self: center; }
.cover img { box-shadow: 0 6px 20px #28334923; }
.feature-body { align-self: center; max-width: 44rem; }
.feature-body h3 { font-size: clamp(2rem, 3.45vw, 3.25rem); margin-bottom: .7rem; }
.feature-body .prose { font: 400 1.05rem/1.5 var(--serif); margin-block: .2rem .65rem; }
.feature-body p:not(.type) { max-width: 57ch; }
.excerpt { font: 400 1rem/1.55 var(--serif); }
.listen { margin-top: .65rem; }
.listen summary { color: var(--accent); }
#player:not(:empty) { margin: .65rem 0; }
#player iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #182033; }
.listen > a { display: inline-block; margin-bottom: .6rem; }
.work-list { margin-top: .5rem; }
.work-row { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 6rem); padding-block: 1.55rem; border-bottom: 1px solid var(--rule); }
.work-row h3 { font-size: clamp(1.45rem, 2.05vw, 2.1rem); }
.work-row > div:nth-child(2) { align-self: center; max-width: 56ch; }
.work-row .actions, .work-row > div > .text-link { display: inline-flex; margin-top: .65rem; }
.work-row details { margin-top: .2rem; }
.performances {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
}
.performance { min-width: 0; }
.performance-image {
  display: grid;
  place-items: center;
  height: clamp(12rem, 22vw, 19rem);
  margin-bottom: 1rem;
  background: white;
}
.performance-image img { width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.teng .performance-image { background: #b7b7b6; }
.performance h3 { margin-bottom: .45rem; }
.performance .pull { max-width: 43ch; }
.performance .text-link { display: inline-block; margin-top: .5rem; }
.performance .prose .text-link { margin-top: 0; }
.performance details { margin-top: .15rem; }

.archive { margin-bottom: 0; background: var(--band); padding-block: clamp(2.25rem, 4.5vw, 4rem); }
.archive .section-head { margin-bottom: .65rem; }
.archive-intro { max-width: 65ch; margin-bottom: 1.6rem; }
.slide {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) minmax(0, 1.3fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: center;
}
.slide + .slide { margin-top: 1.3rem; }
.playlist.enhanced .slides { display: grid; touch-action: pan-y pinch-zoom; }
.playlist.enhanced .slide { grid-area: 1 / 1; margin: 0; }
.slide[inert] { visibility: hidden; }
.slide-image { display: grid; place-items: center; height: clamp(14rem, 24vw, 20rem); background: #292a2c; }
.slide-image img { height: 100%; width: 100%; min-height: 0; object-fit: contain; }
.slide h3 { font-size: clamp(1.85rem, 3.6vw, 3rem); line-height: 1.12; }
.slide h3:lang(zh-Hans) { font-size: clamp(1.65rem, 2.85vw, 2.5rem); line-height: 1.28; }
.slide p:not(.type) { max-width: 45ch; margin: .6rem 0 1rem; }
.carousel-controls { display: flex; align-items: center; justify-content: flex-end; gap: .9rem; margin-top: 1.15rem; }
.carousel-controls::before { content: ""; flex: 1; height: 1px; background: var(--rule); margin-right: .5rem; }
.carousel-controls button {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--edge-strong); border-radius: 50%; background: transparent;
  font: 1.33rem/1 var(--sans);
}
.carousel-controls button:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.position { min-width: 3ch; text-align: center; font-variant-numeric: tabular-nums; color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 900px) {
  .shell { width: 90%; }
}
@media (max-width: 700px) {
  .opening, .opening:has(.statement[open]) {
    grid-template-columns: 1fr;
    grid-template-areas: "intro" "more" "lesson" "photo";
    grid-template-rows: auto;
  }
  .statement .prose { display: block; max-width: 66ch; padding-top: .4rem; }
  .statement .prose > p + p { margin-top: .85rem; }
  .river { margin-top: .8rem; }
  .river img { aspect-ratio: 1.8; }
  .feature { gap: 1.35rem; grid-template-columns: minmax(5.75rem,.55fr) 1.55fr; padding: 1.25rem; }
  .work-row { gap: 1.35rem; }
}
@media (max-width: 550px) {
  .opening-line { margin-top: 1rem; }
  .section-head { margin-bottom: 1rem; }
  .feature { display: block; }
  .feature .cover { display: block; width: 8rem; margin: .1rem 0 1.3rem; }
  .work-row { grid-template-columns: 1fr; gap: .75rem; }
  .performances { grid-template-columns: 1fr; gap: 1.7rem; }
  .performance-image { height: auto; aspect-ratio: 16 / 10; }
  .slide { grid-template-columns: 1fr; gap: 1rem; align-content: start; }
  .slide-image { height: clamp(12rem, 55vw, 17rem); }
  .slide h3 { font-size: 1.75rem; }
  .slide p:not(.type) { margin-bottom: .55rem; }
}
