/* Editorial work pages share the Board Theatre palette and interaction states. */
html[data-home-design="theatre"] .works-page {
  box-sizing: border-box;
  margin: 0;
  color: var(--theatre-ink, #faf0de);
  background: var(--theatre-bg, #181613);
  font: 400 1rem/1.6 system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.works-page *, .works-page *::before, .works-page *::after { box-sizing: inherit; }
.works-page [hidden] { display: none !important; }
.works-page h1, .works-page h2, .works-page p, .works-page figure { margin: 0; }
.works-page a { color: inherit; text-decoration: none; }
.works-page svg { display: block; flex: none; fill: none; stroke: currentColor; }
.works-page :focus-visible {
  outline: 2px solid var(--theatre-focus, #ffe0aa);
  outline-offset: 4px;
}
.works-wrap {
  width: min(100%, 1410px);
  margin-inline: auto;
  padding-inline: var(--page-left, clamp(16px, 5.7vw, 84px)) var(--page-right, clamp(16px, 5.7vw, 84px));
}
.works-header {
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid var(--theatre-rule, #faf0de37);
}
.works-top {
  min-height: 71px;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}
.works-top nav {
  display: flex;
  align-items: center;
  gap: clamp(4px, 2.8vw, 32px);
}
.works-top a, .works-footer a {
  display: inline-flex;
  align-items: center;
  gap: .48em;
  min-height: 44px;
  min-width: 44px;
  padding-inline: 8px;
  font-size: .9rem;
  font-weight: 650;
}
.works-top a:hover, .works-footer a:hover { color: var(--theatre-copper, #e3b27c); }
.works-top .works-wordmark, .works-footer a {
  padding-left: 0;
  font-size: 1.13rem;
  font-weight: 800;
  letter-spacing: .12em;
}
.works-top .works-language { border-bottom: 1px solid var(--theatre-rule, #faf0de37); }
.works-entry { padding-block: clamp(26px, 5vw, 85px) clamp(44px, 6vw, 102px); }
.works-stage {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr);
  gap: clamp(16px, 4.2vw, 72px);
  align-items: center;
}
.works-entry[data-visual="art-left"] .works-stage { grid-template-columns: minmax(0, 1.25fr) minmax(0, .95fr); }
.works-entry[data-visual="art-left"] .works-art { grid-row: 1; grid-column: 1; }
.works-entry[data-visual="art-left"] .works-intro { grid-row: 1; grid-column: 2; }
.works-entry[data-visual="folio"] .works-stage { grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); }
.works-intro { min-width: 0; }
.works-intro .works-series {
  color: var(--theatre-copper, #e3b27c);
  font-size: .87rem;
  font-weight: 700;
  letter-spacing: .085em;
}
.works-intro h1 {
  margin: .38em 0 .35em;
  color: var(--theatre-ink, #faf0de);
  font: 630 clamp(2.5rem, 5.1vw, 5.5rem)/1.04 var(--theatre-serif, Georgia, "Songti SC", serif);
  letter-spacing: -.055em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.works-intro .works-description {
  max-width: 42ch;
  color: var(--theatre-muted, #c9b9a4);
  font-size: clamp(1rem, 1.52vw, 1.2rem);
  line-height: 1.62;
}
.works-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: clamp(16px, 3vw, 30px);
}
.works-actions :is(a, button) {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  min-width: 44px;
  padding: 6px 13px;
  color: var(--theatre-ink, #faf0de);
  background: var(--theatre-panel, #27211a);
  border: 1px solid var(--theatre-rule, #faf0de37);
  border-radius: 4px;
  font: 700 .95rem/1.35 system-ui, sans-serif;
}
.works-actions button { cursor: pointer; }
.works-actions .works-primary {
  color: #24190f;
  background: var(--theatre-copper, #e3b27c);
  border-color: transparent;
}
.works-actions .works-primary:hover { background: #f0caa0; }
.works-actions button:hover { border-color: var(--theatre-copper, #e3b27c); }
.works-actions :is(a, button):active { transform: translateY(1px); }
.works-intro .works-feedback {
  margin-top: .7em;
  color: var(--theatre-copper, #e3b27c);
}
.works-art {
  margin: 0;
  display: grid;
  justify-items: center;
  overflow: hidden;
  border: 1px solid var(--theatre-rule, #faf0de37);
  background: var(--theatre-panel, #27211a);
}
.works-art :is(picture, img) {
  display: block;
  max-inline-size: 100%;
}
.works-art img {
  inline-size: auto;
  block-size: auto;
}
.works-art-folio {
  padding: clamp(8px, 1.5vw, 22px);
  background: radial-gradient(ellipse at 50% 0%, #554031, #231c16 75%);
}
.works-art-folio img {
  max-block-size: min(660px, 74svh);
  object-fit: contain;
}
.works-stage-text {
  grid-template-columns: 1fr;
  border-top: 1px solid var(--theatre-rule, #faf0de37);
  border-bottom: 1px solid var(--theatre-rule, #faf0de37);
  padding: clamp(25px, 5vw, 72px) clamp(17px, 5vw, 70px);
  background: radial-gradient(ellipse at 100% 2%, #443123, transparent 68%), #231c16;
}
.works-stage-text h1 { max-width: 20ch; }
.works-links {
  margin-top: clamp(24px, 5.2vw, 72px);
}
.works-links h2 {
  color: var(--theatre-muted, #c9b9a4);
  font-size: .93rem;
  letter-spacing: .05em;
  margin-bottom: 10px;
}
.works-links ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr));
  gap: 9px 12px;
  padding: 0;
  margin: 0;
}
.works-links li { min-width: 0; }
.works-row {
  display: flex;
  min-height: 48px;
  height: 100%;
  min-width: 44px;
  align-items: center;
  gap: 9px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--theatre-rule, #faf0de37);
  color: var(--theatre-ink, #faf0de);
  font-weight: 650;
}
.works-row:hover {
  color: var(--theatre-copper, #e3b27c);
  background: var(--theatre-panel, #27211a);
}
.works-row span { overflow-wrap: anywhere; }
.works-row svg { color: var(--theatre-copper, #e3b27c); }
.works-footer {
  border-top: 1px solid var(--theatre-rule, #faf0de37);
  padding-bottom: env(safe-area-inset-bottom);
  color: var(--theatre-muted, #c9b9a4);
}
.works-footer .works-wrap {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
@media (max-width:650px) {
  .works-top { min-height: 58px; gap: 4px; }
  .works-top a { font-size: .85rem; }
  .works-top .works-wordmark { font-size: 1rem; }
  .works-top a { padding-inline: 5px; }
  .works-top svg { width: 17px; height: 17px; }
  .works-entry .works-stage,
  .works-entry[data-visual] .works-stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 19px;
  }
  .works-entry[data-visual] .works-art { grid-row: 1; grid-column: 1; }
  .works-entry[data-visual] .works-intro { grid-row: auto; grid-column: 1; }
}
@media (max-width:650px) and (max-height:480px) and (orientation:landscape) {
  .works-entry { padding-top: 17px; }
  .works-entry[data-visual] .works-stage:not(.works-stage-text) {
    grid-template-columns: minmax(0, 1fr) minmax(0, .98fr);
  }
  .works-entry[data-visual] .works-intro { grid-row: 1; }
  .works-entry[data-visual] .works-art { grid-column: 2; }
  .works-intro h1 { font-size: clamp(1.9rem, 5.4vw, 2.5rem); }
  .works-art-folio img { max-block-size: 61svh; }
}
@media (prefers-reduced-motion:reduce) {
  .works-actions :is(a, button):active { transform: none; }
}
@media (max-width:650px) and (max-height:660px) and (orientation:portrait) {
  .works-entry { padding-top: 16px; }
  .works-entry[data-visual] .works-stage { gap: 14px; }
  .works-art img {
    max-block-size: min(205px, 34svh);
    object-fit: contain;
  }
  .works-intro h1 { font-size: clamp(2rem, 8.9vw, 2.5rem); }
  .works-intro .works-description { font-size: .95rem; line-height: 1.5; }
  .works-actions { margin-top: 14px; }
}
@media (max-width:650px) and (max-height:480px) and (orientation:landscape) {
  .works-entry { padding-top: 12px; }
  .works-entry[data-visual] .works-stage:not(.works-stage-text) {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    gap: 14px;
  }
  .works-entry .works-stage-text { padding: 10px 14px; }
  .works-stage-text .works-intro h1 { max-width: none; margin-block: 7px 9px; font-size: clamp(1.65rem, 4.8vw, 1.95rem); }
  .works-intro .works-description { font-size: .95rem; line-height: 1.46; }
  .works-actions { margin-top: 10px; }
}

/* Read the work notes like a small programme, then pause at a scene. */
.works-notes {
  margin-top: clamp(34px, 7.4vw, 106px);
  border-block: 1px solid var(--theatre-rule, #faf0de37);
}
.works-notes-copy {
  display: grid;
  grid-template-columns: minmax(9rem, .85fr) minmax(0, 1.65fr);
  align-items: start;
  gap: clamp(12px, 4.4vw, 62px);
  padding: clamp(22px, 4.8vw, 70px) clamp(16px, 5vw, 77px);
  color: #443024;
  background:
    radial-gradient(ellipse at 100% 0, #e8d8bd, transparent 61%),
    var(--theatre-paper, #f0e3ce);
}
.works-notes-copy h2 {
  color: #4b3221;
  font: 630 clamp(1.8rem, 3.9vw, 3.6rem)/1.18 var(--theatre-serif, Georgia, "Songti SC", serif);
  letter-spacing: -.035em;
}
.works-notes-copy h2::after {
  content: "";
  display: block;
  width: 42px;
  margin-top: .54em;
  border-top: 2px solid #a87546;
}
.works-notes-copy p { max-width: 52ch; line-height: 1.63; }
.works-notes-copy .works-notes-lead {
  font: 560 clamp(1.19rem, 2.25vw, 1.78rem)/1.54 var(--theatre-serif, Georgia, "Songti SC", serif);
}
.works-notes-copy .works-notes-detail {
  margin-top: .85em;
  color: #5c4634;
  font-size: clamp(.95rem, 1.4vw, 1.08rem);
}
.works-page .works-scene {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(11rem, .28fr);
  align-items: end;
  justify-items: center;
  gap: clamp(13px, 3vw, 46px);
  padding: clamp(12px, 3.4vw, 44px);
  margin: 0;
  background: var(--theatre-panel, #27211a);
  border-top: 1px solid var(--theatre-rule, #faf0de37);
}
.works-scene img {
  display: block;
  justify-self: center;
  align-self: center;
  inline-size: auto;
  block-size: auto;
  max-inline-size: min(100%, 1050px);
  max-block-size: min(640px, 80svh);
  object-fit: contain;
}
.works-scene figcaption {
  justify-self: start;
  max-width: 30ch;
  padding-top: 10px;
  color: var(--theatre-muted, #c9b9a4);
  border-top: 1px solid var(--theatre-rule, #faf0de37);
  font-size: .93rem;
}
.works-related ul {
  gap: 0 24px;
}
.works-related-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  height: 100%;
  padding: 9px 8px 9px 0;
  border-bottom: 1px solid var(--theatre-rule, #faf0de37);
}
.works-related-entry:hover { color: var(--theatre-copper, #e3b27c); }
.works-related-entry :is(strong, small) { display: block; overflow-wrap: anywhere; }
.works-related-entry strong { font-weight: 670; }
.works-related-entry small, .works-related-entry svg { color: var(--theatre-muted, #c9b9a4); }
.works-related-entry small { margin-top: 4px; font-size: .81rem; }
@media (max-width:690px) {
  .works-notes-copy {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .works-page .works-scene {
    grid-template-columns: 1fr;
  }
}
