:root {
  color-scheme: dark;
  --navy: #091b3f;
  --cream: #f6eddb;
  --gold: #e8c776;
  --muted: #d3d7df;
  --line: rgb(232 199 118 / 32%);
  --serif: Baskerville, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --sky-height: 100vh;
}

/* Keep the sky's cover crop stable when iOS Safari hides its browser bars.
   The large viewport also covers the area revealed as those bars retract. */
@supports (height: 100lvh) {
  :root { --sky-height: 100lvh; }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--serif);
  line-height: 1.45;
  isolation: isolate;
}
body::before {
  position: fixed;
  z-index: -1;
  inset: 0 0 auto;
  height: var(--sky-height);
  background: linear-gradient(180deg, rgb(5 17 45 / 12%), rgb(5 17 45 / 28%) 50%, rgb(5 17 45 / 42%));
  content: "";
  pointer-events: none;
}
.night-sky { position: fixed; z-index: -2; inset: 0 0 auto; height: var(--sky-height); pointer-events: none; }
.night-sky img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.sky-twinkles { position: fixed; z-index: -1; inset: 0 0 auto; height: var(--sky-height); overflow: hidden; pointer-events: none; }
/* Match the sky image's cover sizing and 30% vertical position. */
.sky-twinkles > svg { position: absolute; left: 50%; top: 30%; width: max(100%, calc(var(--sky-height) * .7130125)); height: max(100%, 140.25vw); max-width: none; transform: translate(-50%, -30%); stroke: none; }
.sky-star { opacity: 0; }
.stars-active .sky-star { animation: soft-twinkle var(--duration) var(--delay) ease-in-out infinite; }
.stars-paused .sky-twinkles { visibility: hidden; }
.stars-paused .sky-star { animation-play-state: paused; }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; border-radius: 2px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, p { margin: 0; }
h2 { font-size: inherit; font-weight: 400; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.external-link-icon { display: inline-block; width: .9em; height: .9em; margin-left: .2em; vertical-align: -.08em; color: var(--gold); stroke-width: 1.25; }
::selection { background: var(--gold); color: var(--navy); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 12px 20px; background: var(--gold); color: var(--navy); font-family: var(--sans); }
.skip-link:focus { top: 16px; }

.page-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(1120px, calc(100% - 64px)); min-height: 58px; margin-inline: auto; font-family: var(--sans); font-size: .69rem; color: var(--muted); }
.page-header a { padding-block: 10px; transition: color .2s; }
.page-header a:hover { color: var(--gold); }
.page-header a > span { margin-right: 7px; }

.concert-flyer { width: min(840px, calc(100% - 64px)); margin-inline: auto; padding-top: 32px; text-align: center; line-height: 1.25; }
.flyer-heading { animation: arrive 1s both; }
.celestial-art { position: relative; width: min(680px, 100%); height: 205px; margin: 0 auto 10px; }
.angel { position: absolute; top: 20px; width: 238px; filter: drop-shadow(0 5px 16px rgb(0 0 0 / 15%)); }
.angel-left { left: 17px; animation: angel-arrive 1.5s .1s both; }
.angel-right { right: 17px; animation: angel-arrive 1.5s .2s both; }
.guiding-star { position: absolute; top: -90px; left: 50%; width: 180px; height: 205px; transform: translateX(-50%); animation: starlight 4.8s ease-in-out both; }
.stars-active .guiding-star { animation: starlight 4.8s ease-in-out both, guiding-twinkle 7s 4.8s ease-in-out infinite; }
.stars-active.stars-paused .guiding-star { animation-play-state: paused; }
h1 { display: inline-block; max-width: 100%; color: #efca6b; font-size: clamp(5.8rem, 15.3vw, 11.7rem); font-weight: 400; line-height: .95; letter-spacing: .025em; background: #efca6b url("assets/gold-leaf.webp") center / cover; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.concert-subtitle { margin-top: 6px; color: var(--gold); font-size: 1.17rem; font-style: italic; }

.presenters { margin-top: 8px; animation: arrive 1s .2s both; }
.ensemble { font-size: clamp(1.4rem, 3.2vw, 2rem); line-height: 1.15; }
.director { margin-top: 2px; color: var(--gold); font-size: 1.18rem; }
.director strong { font-weight: 400; }
.present { margin-top: 1px; color: var(--gold); font-size: 1rem; font-style: italic; }

.programme { --programme-font-size: clamp(1.3rem, 3.2vw, 1.85rem); margin-top: 4px; animation: arrive 1s .3s both; }
.programme h2, .programme li { font-size: var(--programme-font-size); }
.programme h2 { line-height: 1.18; }
.programme-and { margin-block: 0; color: var(--gold); font-size: 1.06rem; font-style: italic; }
.programme ul { list-style: none; margin: 0; padding: 0; }
.programme li { margin-top: 3px; line-height: 1.2; }
.programme cite { font-style: italic; }
.work-dash { margin-inline: 3px; color: var(--gold); }

.performers { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; width: min(690px, 100%); margin: 13px auto 0; padding-block: 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--gold); font-size: 1.14rem; line-height: 1.25; }
.performers > div + div { border-left: 1px solid var(--line); }
.performers strong { font-weight: 400; }

.event-details { margin-top: 11px; }
.event-details h2 { color: var(--gold); font-size: 1.45rem; font-weight: 600; line-height: 1.25; }
.date-divider { margin-inline: 6px; }
.venue-link { display: block; width: fit-content; max-width: 100%; margin: 5px auto 0; }
.venue-name { display: block; color: var(--gold); font-size: 1.12rem; font-weight: 600; letter-spacing: .025em; text-transform: uppercase; }
.venue-address { display: block; margin-top: 1px; color: var(--cream); font-size: 1.13rem; }
.map-arrow { margin-left: 4px; transition: transform .2s; }
.venue-link:hover .venue-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.venue-link:hover .map-arrow { transform: translate(2px, -2px); }
.calendar-link { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; margin-top: 3px; padding-inline: 6px; color: var(--muted); font-family: var(--sans); font-size: .64rem; }
.calendar-link svg { width: 14px; height: 14px; }
.calendar-link:hover { color: var(--gold); }

.booking { display: flex; align-items: center; justify-content: space-between; gap: 32px; width: min(720px, 100%); margin: 6px auto 0; padding-top: 11px; border-top: 1px solid var(--line); text-align: left; }
.admission { flex: 1; }
.admission h2 { margin-bottom: 6px; color: var(--gold); font-size: 1.05rem; font-weight: 600; letter-spacing: .055em; text-transform: uppercase; }
.admission ul { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 22px; list-style: none; margin: 0; padding: 0; }
.admission li { font-size: 1.2rem; line-height: 1.3; }
.admission strong { color: var(--gold); font-weight: 400; white-space: nowrap; }
.ticket-button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 64px; padding: 16px 27px; border: 1px solid var(--gold); border-radius: 1px; background: transparent; color: var(--gold); font-family: var(--serif); font-size: 1.4rem; font-weight: 400; line-height: 1.25; letter-spacing: .025em; box-shadow: none; transition: color .3s, background-color .3s, box-shadow .3s, transform .3s; flex: 0 0 auto; }
.ticket-button::before { position: absolute; inset: 4px; border: 1px solid rgb(232 199 118 / 35%); content: ""; pointer-events: none; }
.ticket-button:hover { color: #fff0bb; background-color: rgb(232 199 118 / 5%); transform: translateY(-1px); box-shadow: 0 0 22px rgb(232 199 118 / 13%), inset 0 0 24px rgb(232 199 118 / 5%); }
.ticket-button:active { transform: translateY(0); }
.ticket-button svg { width: 19px; height: 19px; transition: transform .3s; }
.ticket-button:hover svg { transform: translateX(3px); }

.beneficiary { margin-top: 13px; color: var(--gold); }
.beneficiary p { font-size: 1rem; font-style: italic; }
.beneficiary > a { display: inline-block; margin-top: 1px; font-size: 1.24rem; }
.beneficiary > a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

.page-footer { width: min(840px, calc(100% - 64px)); margin: 17px auto 0; padding-block: 12px 18px; border-top: 1px solid var(--line); text-align: center; font-family: var(--sans); }
.footer-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 18px; }
.footer-actions a, .share-button, .motion-toggle { padding: 5px 0; color: var(--muted); font-family: inherit; font-size: .65rem; line-height: 1.5; }
.footer-actions a:hover, .share-button:hover, .motion-toggle:hover { color: var(--gold); }
.footer-divider { color: var(--gold); }
.share-button, .motion-toggle { border: 0; background: none; cursor: pointer; }
.share-button[hidden], .motion-toggle[hidden] { display: none; }
.motion-toggle { padding-left: 18px; border-left: 1px solid var(--line); }
.footer-actions:has(.share-button[hidden]) .footer-divider { display: none; }
.share-status { margin-top: 6px; color: var(--gold); font-size: .67rem; }
.share-status:empty { display: none; }
.copyright { margin-top: 9px; color: var(--muted); font-size: .58rem; }

@keyframes arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes angel-arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes starlight { 0% { opacity: .3; filter: brightness(.9); } 45% { opacity: 1; filter: brightness(1.25) drop-shadow(0 0 12px rgb(232 199 118 / 20%)); } 100% { opacity: 1; filter: brightness(1); } }
@keyframes soft-twinkle { 0%, 15%, 100% { opacity: .04; } 42% { opacity: .95; } 56% { opacity: .6; } 80% { opacity: .08; } }
@keyframes guiding-twinkle { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.28) drop-shadow(0 0 9px rgb(232 199 118 / 34%)); } }

@media (max-width: 760px) {
  .page-header { width: calc(100% - 40px); min-height: 50px; font-size: .62rem; }
  .concert-flyer { width: calc(100% - 48px); }
  .celestial-art { width: min(580px, 100%); height: 185px; }
  .angel { width: 213px; top: 14px; }
  .angel-left { left: 0; }
  .angel-right { right: 0; }
  .guiding-star { width: 162px; height: 185px; top: -86px; }
  h1 { font-size: 17vw; }
  .concert-subtitle { font-size: 1.08rem; }
  .presenters { margin-top: 8px; }
  .ensemble { font-size: 1.58rem; }
  .director { font-size: 1.09rem; }
  .programme { --programme-font-size: 1.55rem; }
  .performers { margin-top: 12px; font-size: 1.03rem; }
  .event-details h2 { font-size: 1.3rem; }
  .venue-name { font-size: 1rem; }
  .booking { gap: 23px; }
  .admission ul { grid-template-columns: 1fr; gap: 3px; }
  .admission li { font-size: 1.13rem; }
  .ticket-button { gap: 18px; padding-inline: 23px; }
}

@media (max-width: 480px) {
  .concert-flyer { width: calc(100% - 36px); padding-top: 22px; }
  .celestial-art { height: 144px; margin-bottom: 10px; }
  .angel { width: 153px; top: 16px; }
  .guiding-star { width: 126px; height: 144px; top: -65px; }
  h1 { font-size: 19.4vw; line-height: 1.02; letter-spacing: .015em; }
  .concert-subtitle { font-size: 1.02rem; margin-top: 3px; }
  .presenters { margin-top: 7px; }
  .ensemble { font-size: 1.35rem; }
  .director { margin-top: 2px; font-size: .98rem; }
  .present { margin-top: 1px; font-size: .9rem; }
  .programme { --programme-font-size: 1.31rem; margin-top: 4px; }
  .programme h2 { max-width: 310px; margin-inline: auto; }
  .programme-and { margin-block: 1px; font-size: .95rem; }
  .programme li { margin-top: 5px; line-height: 1.2; }
  .programme li:first-child .composer { display: block; }
  .programme li:first-child .work-dash { display: none; }
  .work-dash { margin-inline: 1px; }
  .performers { gap: 12px; padding-block: 8px; font-size: .98rem; line-height: 1.25; }
  .performers > div + div { padding-left: 10px; }
  .event-details { margin-top: 10px; }
  .event-details h2 { font-size: 1.2rem; }
  .concert-date, .concert-time { display: block; }
  .concert-time { margin-top: 1px; }
  .date-divider { display: none; }
  .venue-link { margin-top: 6px; }
  .venue-name { max-width: 300px; margin-inline: auto; font-size: .96rem; line-height: 1.25; }
  .venue-address { margin-top: 3px; font-size: 1.01rem; }
  .calendar-link { margin-top: 2px; }
  .booking { flex-direction: column; align-items: stretch; gap: 13px; margin-top: 6px; padding-top: 10px; }
  .admission h2 { font-size: 1rem; margin-bottom: 6px; text-align: center; }
  .admission ul { grid-template-columns: 1fr 1fr; gap: 5px 16px; }
  .admission li { font-size: 1.1rem; line-height: 1.3; }
  .ticket-button { width: min(300px, 100%); align-self: center; min-height: 64px; }
  .beneficiary { margin-top: 12px; }
  .beneficiary p { font-size: .9rem; }
  .beneficiary > a { font-size: 1.13rem; }
  .page-footer { width: calc(100% - 40px); margin-top: 15px; padding-top: 11px; }
}

@media (max-width: 360px) {
  .celestial-art { height: 126px; }
  .angel { width: 133px; top: 14px; }
  .guiding-star { width: 110px; height: 126px; top: -58px; }
  .ensemble { font-size: 1.22rem; }
  .concert-subtitle { font-size: .92rem; }
  .programme { --programme-font-size: 1.18rem; }
  .performers { font-size: .87rem; }
  .event-details h2 { font-size: 1.1rem; }
  .admission li { font-size: 1.03rem; }
  .beneficiary > a { font-size: 1.01rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .sky-twinkles, .motion-toggle { display: none; }
}

@media (forced-colors: active) {
  h1 { -webkit-text-fill-color: CanvasText; background: none; }
  .ticket-button { border: 1px solid ButtonText; }
}
