@font-face {
  font-family: Pretendard;
  src: url(PretendardVariable.woff2) format("woff2");
  font-weight: 45 920;
  font-display: swap;
}

:root {
  --paper: #15111e;
  --ink: #f9f5fd;
  --muted: #cec3dc;
  --accent: #e1cef7;
  --soft: #2b223c;
  --rule: #4d415d;
  --dark: #221937;
  --deep: #181126;
  --light: #fcf8ff;
  --glow: #e1cef7;
  --line-on-dark: #ffffff33;
}

.changsha {
  --paper: #fcf8f0;
  --ink: #34241f;
  --muted: #6c5148;
  --accent: #873a28;
  --soft: #f4e5d9;
  --rule: #e6d1c1;
  --dark: #30212b;
  --deep: #211722;
  --light: #fff5e8;
  --glow: #ffc396;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.68 Pretendard, "Noto Sans CJK KR", system-ui, sans-serif;
}
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible, video:focus-visible, iframe:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
img { display: block; max-width: 100%; }
figure, dl, dd { margin: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.18; word-break: keep-all; }
h1, h2, .work h3, .feature-title { font-family: Georgia, Pretendard, "Noto Serif CJK KR", serif; font-weight: 650; }
h2 { font-size: clamp(1.85rem, 4.3vw, 3rem); }
h3 { font-size: clamp(1.22rem, 2.9vw, 1.65rem); }
h4 { font-size: 1.05rem; }
p { margin: .55rem 0 1rem; }
.wrap { width: min(1210px, calc(100% - 72px)); margin-inline: auto; }
[id] { scroll-margin-top: 8rem; }

.kbs { position: relative; isolation: isolate; }
.kbs main { padding-top: 1.4rem; }
.hall-backdrop { position: absolute; inset: 0 0 auto; height: 860px; z-index: -1; overflow: hidden; }
.hall-backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: center top; opacity: .31; }
.hall-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #15111e44 14%, var(--paper) 98%); }

.skip { position: absolute; top: .6rem; left: .6rem; background: white; color: var(--deep); padding: .5em 1em; z-index: 5; transform: translateY(-160%); }
.skip:focus { transform: none; }
.masthead, .hero-band, .postlude {
  background: var(--dark);
  color: var(--light);
}
.masthead .wrap, footer .wrap {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}
.masthead .wrap { padding-block: .8rem; border-bottom: 1px solid var(--line-on-dark); }
.brand { display: block; flex: 0 0 auto; }
.brand img { width: 142px; height: auto; }
.masthead nav { display: flex; flex-wrap: wrap; gap: .5rem 1.45rem; font-size: .86rem; }
.masthead nav a { text-decoration: none; }
.masthead nav a:hover { text-decoration: underline; }

.hero-band {
  position: relative;
  background: linear-gradient(120deg, #2d2148e0, #221937b5 59%, #30204beb);
  border: 1px solid #bca6dd33;
  border-radius: 15px;
}
.changsha .hero-band {
  background: radial-gradient(ellipse at 84% 30%, #64372d 0%, transparent 64%), var(--dark);
}
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(4.2rem, 7vw, 5.2rem) clamp(1.2rem, 4.4vw, 3.25rem) 2.35rem;
}
.hero-band > .brand { position: absolute; z-index: 1; top: 1.1rem; right: clamp(1.2rem, 4.4vw, 3.25rem); }
.hero-band > .brand img { width: 108px; }
.hero-copy { min-width: 0; grid-column: 2; grid-row: 1; }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 5.25rem); letter-spacing: -.055em; line-height: 1.04; }
.changsha .hero h1 { font-size: clamp(2.7rem, 6.5vw, 5.4rem); }
.english {
  font: italic clamp(1.2rem, 2.7vw, 1.9rem)/1.28 Georgia, "Noto Serif CJK SC", serif;
  color: var(--glow);
  margin: .62rem 0 1.35rem;
}
.tag, .cue, .section-label {
  font-size: .79rem;
  line-height: 1.4;
  font-weight: 760;
  letter-spacing: .115em;
  text-transform: uppercase;
}
.hero .tag, .hero .companion, .postlude .section-label { color: var(--glow); }
.hero .tag { margin: 0 0 .54rem; }
.companion { margin: 0 0 .85rem; font-size: .86rem; font-weight: 660; }
.hero-meta { border-top: 1px solid var(--line-on-dark); padding-top: .8rem; margin-top: 1.2rem; }
.compact { margin: .16em 0; }
.hero .compact { font-size: .98rem; }
.hero figure { max-width: 390px; width: 100%; justify-self: center; grid-column: 1; grid-row: 1; }
.hero figure img { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 .9rem 3.6rem #0f091977; }
.hero figure a { display: block; }
.hero figcaption { font-size: .76rem; color: var(--glow); margin-top: .56rem; }
.hero figcaption a { display: inline; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.32rem; }
.button { display: inline-block; padding: .62rem .98rem; color: var(--accent); border: 1px solid currentColor; border-radius: 5px; font-size: .9rem; text-decoration: none; font-weight: 690; }
.hero .button, .postlude .button { color: var(--light); }
.hero .button.primary { background: var(--glow); color: var(--deep); border-color: var(--glow); }

.prelude { padding-bottom: clamp(2.2rem, 5vw, 4.5rem); }
.section-label { color: var(--accent); margin: 0 0 .56rem; }
.lead { max-width: 68ch; font-size: 1.13rem; margin-top: .8rem; }
.block, .work { padding-block: 2.25rem; border-bottom: 1px solid var(--rule); }
.major-title { margin-bottom: 1.1rem; }
.program { position: sticky; top: 0; z-index: 3; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; padding: .6rem 0; margin: .65rem 0 1.3rem; background: var(--paper); }
.program a { min-width: 0; padding: .65rem .55rem; background: #302348; border: 1px solid #8e7b9d; border-radius: 12px; text-align: center; text-decoration: none; }
.program a:hover, .program a:focus-visible { background: #493663; }
.program b, .program small { display: block; word-break: keep-all; }
.program b { margin-bottom: .18rem; font-size: 1rem; line-height: 1.22; }
.program small, .translation { color: var(--muted); line-height: 1.36; font-size: .87rem; }
.cue, .meta { color: var(--accent); }
.related-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.related-links a { padding: .4rem .8rem; border-radius: 999px; border: 1px solid #8e7b9d; font-size: .88rem; text-decoration: none; }
.related-links a:hover { background: var(--soft); }
.text-link { display: inline-block; margin-top: .2rem; color: var(--accent); font-size: .88rem; }
.postlude .text-link { color: var(--glow); }
.columns, .feature, .gallery, .video-list, .portraits { display: grid; gap: clamp(.9rem, 2.5vw, 1.6rem); }
.columns, .gallery, .video-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; }
.feature > *, .columns > *, .portraits > *, .gallery > * { min-width: 0; }
.lecture-photo img, .feature-photo img { width: 100%; aspect-ratio: 5/4; object-fit: cover; object-position: 50% 84%; }
.feature-photo img { aspect-ratio: 8/5; object-position: center; }
figcaption { margin-top: .6rem; color: var(--muted); font-size: .9rem; }
.detail-card, .video-card { padding: 1rem 1.1rem; background: var(--soft); }
.detail-card h3 { margin-bottom: .45rem; }
.detail-card p:last-child, .video-card p:last-child { margin-bottom: 0; }

.composer-band { color: var(--light); }
.composer-band .section-label, .composer-band .credit { color: var(--glow); }
.portraits { grid-template-columns: 1fr; gap: 0; }
.portraits figure { display: grid; grid-template-columns: 140px minmax(0, 1fr); align-items: start; gap: clamp(.9rem, 2.4vw, 1.5rem); padding-block: 1.15rem; border-top: 1px solid var(--rule); }
.portraits figcaption { margin: 0; color: var(--light); font-size: .98rem; }
.portraits h3 { font: 700 1.35rem/1.22 Georgia, serif; margin-block: .12rem .35rem; }
.portraits p { margin: .25rem 0; }
.portraits .credit { display: inline-block; margin-top: .45rem; font-size: .78rem; }
.portrait-frame { display: block; position: relative; aspect-ratio: 3/4; width: 100%; overflow: hidden; border-radius: 7px; background: var(--deep); }
.portrait-frame img { position: absolute; max-width: none; width: var(--zoom); left: var(--left); top: var(--top); height: auto; filter: grayscale(1); }
.wagenaar-face { --zoom: 337%; --left: -115%; --top: -69%; }
.prokofiev-face { --zoom: 422%; --left: -188%; --top: -20%; }
.rachmaninoff-face { --zoom: 175%; --left: -11%; --top: 0%; }
.work { display: grid; grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); gap: clamp(1rem, 3.5vw, 2.65rem); }
.work .translation { display: block; margin-top: .5rem; }
.work .meta { margin-top: .7rem; font-size: .88rem; }
.work-aside p { margin: .6rem 0; }
.guide { background: var(--soft); border-left: 2px solid var(--accent); padding: .85rem 1.05rem; margin-top: 1rem; }
.guide p { margin: .2rem 0 .55rem; }
.guide p:last-child { margin-bottom: .12rem; }
.guide ol { list-style: none; padding: 0; margin: .3rem 0; }
.guide li { padding: .5rem 0; border-top: 1px solid var(--rule); }
.guide li:first-child { border-top: 0; }
.guide li p { margin-bottom: 0; }
.movement-title { display: block; font-weight: 760; }
.movement-name { display: block; color: var(--muted); font-size: .84rem; }

.video-list { margin-top: 1rem; }
.video-card h4 { line-height: 1.35; }
.video-card p { line-height: 1.52; font-size: .94rem; }
.embed { width: 100%; aspect-ratio: 16/9; border: 0; background: var(--deep); display: block; margin-bottom: .9rem; }
.video-card .text-link { margin-right: .75rem; }
.changsha .story-names { margin-block: .8rem 0; font-size: .93rem; }
.story-names div { display: grid; grid-template-columns: 1fr 1.1fr; gap: .55rem; padding: .55rem 0; border-top: 1px solid var(--rule); }
.story-names dt { font-weight: 690; }
.story-names dd { color: var(--muted); }
.postlude { background: transparent; border-top: 1px solid var(--rule); padding-block: clamp(2rem, 6vw, 4.75rem); }
.postlude h2 { margin-bottom: 1rem; }
.gallery figure { margin: 0; }
.gallery img, .gallery video { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--deep); display: block; }
.gallery video { object-fit: contain; }
.gallery figcaption { color: var(--light); }
.gallery .stage { object-position: center 86%; }
.gallery .solo { object-position: center 98%; }
.gallery .caption-lead { font-weight: 650; margin: 0 0 .25rem; }
.curtain-clips { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line-on-dark); }
.curtain-clips h3 { margin-bottom: .85rem; }
.sources { padding-block: 1.25rem; color: var(--muted); font-size: .86rem; }
.sources p { margin: 0; }
footer { background: var(--deep); color: var(--light); }
footer .wrap { padding-block: 1.15rem; }
footer p { margin: 0; font-size: .84rem; color: var(--glow); }

@media (max-width: 760px) {
  [id] { scroll-margin-top: 1.4rem; }
  .wrap { width: calc(100% - 38px); }
  .hero, .feature, .work { grid-template-columns: 1fr; }
  .hero figure { max-width: min(280px, 100%); }
  .hero { gap: 1.55rem; }
  .hero-copy { grid-column: 1; grid-row: 2; text-align: center; }
  .work { gap: .45rem; }
  .masthead nav { gap: .35rem .9rem; }
  .program { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 530px) {
  .brand img { width: 108px; }
  .gallery, .video-list, .columns { grid-template-columns: 1fr; }
  .portraits figure { grid-template-columns: 105px minmax(0, 1fr); gap: .8rem; }
  .portraits figcaption { margin-top: 0; }
  .portraits h3 { margin-top: 0; font-size: 1.12rem; }
  .portraits p { font-size: .85rem; }
  .gallery { row-gap: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.artist-card { display: grid; grid-template-columns: minmax(90px, 135px) minmax(0, 1fr); align-items: start; gap: 1rem; }
#artists .columns { grid-template-columns: 1fr; gap: 0; }
#artists .artist-card { grid-template-columns: 140px minmax(0, 1fr); gap: clamp(.9rem, 2.4vw, 1.5rem); padding: 1.15rem 0; background: transparent; border-top: 1px solid var(--rule); }
.artist-card .portrait-frame { width: 100%; }
.artist-card figcaption { font-size: .75rem; line-height: 1.45; }
.artist-card .cue { margin-top: 0; }
.hermus-face { --zoom: 143%; --left: -42%; --top: 0%; }
.radulovic-face { --zoom: 580%; --left: -252%; --top: -98%; }
@media (max-width: 530px) { #artists .artist-card { grid-template-columns: 105px minmax(0, 1fr); gap: .8rem; } }
