:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2.25rem, 1.2rem + 3vw, 4rem);
  --text-hero: clamp(4rem, 1rem + 10vw, 11rem);

  --bg: #1d1d1c;
  --bg-2: #252523;
  --bg-3: #2e2e2b;
  --line: rgba(236, 232, 223, 0.12);
  --line-2: rgba(236, 232, 223, 0.22);
  --ink: #ece8df;
  --ink-2: #b6b1a6;
  --ink-3: #8a867d;
  --accent: #d4b47a;
  --accent-ink: #1d1d1c;

  --c-vlastni: #d4b47a;
  --c-tenori: #9fb4c9;
  --c-divadlo: #c98f7d;

  --font-display: 'Instrument Serif', 'Times New Roman', serif;
  --font-body: 'Switzer', 'Helvetica Neue', Arial, sans-serif;

  --wrap: 1240px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4.5rem, 10vw, 8.5rem);
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: var(--text-base); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.eyebrow { font-size: var(--text-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 1.1rem; font-weight: 500; }
.display-l { font-family: var(--font-display); font-weight: 400; font-size: var(--text-2xl); line-height: 1.02; letter-spacing: -0.01em; margin: 0 0 1.5rem; text-wrap: balance; }
.display-l em, .hero__title em { font-style: italic; color: var(--ink-2); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .75rem 1.4rem; border-radius: 999px; font-size: var(--text-sm); font-weight: 500; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #e3c690; }
.btn--ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { min-height: 40px; padding: .5rem 1rem; font-size: var(--text-xs); }

/* Nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s var(--ease), border-color .3s var(--ease); border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(29,29,28,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav__inner { max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); height: 68px; display: flex; align-items: center; justify-content: space-between; }
.wordmark { font-family: var(--font-display); font-size: 1.6rem; text-decoration: none; letter-spacing: .01em; line-height: 1; }
.wordmark--sm { font-size: 1.4rem; }
.nav__links { list-style: none; display: flex; gap: clamp(1rem, 2.5vw, 2.25rem); margin: 0; padding: 0; }
.nav__links a { text-decoration: none; font-size: var(--text-sm); color: var(--ink-2); transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.nav__toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.nav__toggle span:first-child { top: 17px; } .nav__toggle span:last-child { top: 26px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; background: #1f1f1f; }
.hero__photo { position: relative; grid-column: 2; grid-row: 1; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #1f1f1f 0%, rgba(31,31,31,0) 28%), linear-gradient(0deg, #1d1d1c 0%, rgba(29,29,28,0) 22%); }
.hero__text { grid-column: 1; grid-row: 1; position: relative; z-index: 2; align-self: end; padding: 120px var(--pad) clamp(3rem, 7vw, 6rem) max(var(--pad), calc((100vw - 1440px)/2 + var(--pad))); }
.hero__title { font-family: var(--font-display); font-weight: 400; font-size: var(--text-hero); line-height: .86; letter-spacing: -0.025em; margin: 0 0 1.75rem; margin-right: -30%; }
.hero__title em { display: block; padding-left: .55em; color: var(--ink); }
.hero__lead { max-width: 44ch; color: var(--ink-2); margin: 0 0 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; }

.next { display: flex; align-items: center; gap: 1.1rem; padding: 1rem 1.15rem; border: 1px solid var(--line-2); border-radius: 14px; background: rgba(37,37,35,.7); backdrop-filter: blur(8px); margin: 0 0 1.75rem; max-width: 460px; text-decoration: none; transition: border-color .2s; }
.next:hover { border-color: var(--accent); }
.next__date { text-align: center; min-width: 52px; border-right: 1px solid var(--line); padding-right: 1.1rem; }
.next__d { font-family: var(--font-display); font-size: 2.25rem; line-height: 1; display: block; }
.next__m { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.next__label { font-size: var(--text-xs); color: var(--accent); text-transform: uppercase; letter-spacing: .12em; display: block; margin-bottom: .15rem; }
.next__title { font-weight: 500; display: block; line-height: 1.3; }
.next__place { font-size: var(--text-sm); color: var(--ink-2); }

/* Jubilee */
.jubilee { display: grid; grid-template-columns: 5fr 6fr; background: var(--bg-2); border-top: 1px solid var(--line); }
.jubilee__img { background: #222; overflow: hidden; max-height: 860px; }
.jubilee__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.jubilee__body { padding: var(--section) var(--pad); align-self: center; max-width: 680px; }
.jubilee__body > p:not(.eyebrow) { color: var(--ink-2); max-width: 56ch; }
.facts { display: grid; grid-template-columns: repeat(3, auto); gap: 1.5rem 2.5rem; margin: 2rem 0 2.25rem; padding: 1.5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); justify-content: start; }
.facts dt { font-size: var(--text-xs); color: var(--ink-3); text-transform: uppercase; letter-spacing: .12em; margin-bottom: .3rem; }
.facts dd { margin: 0; font-size: var(--text-sm); }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: .35rem; font-size: var(--text-xs); padding: .2rem .6rem; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; line-height: 1.5; }
.badge--last { border-color: rgba(212,180,122,.55); color: var(--accent); }
.badge--soon { color: var(--ink-2); }
.badge--sold { color: var(--ink-3); border-style: dashed; }

/* Events */
.events { padding: var(--section) 0; }
.events__head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.25rem; }
.events__head .display-l { margin: 0; font-size: var(--text-hero); line-height: .9; }
.events__note { max-width: 36ch; color: var(--ink-2); margin: 0; font-size: var(--text-sm); }
.filters { position: sticky; top: 68px; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .9rem 0; margin-bottom: .5rem; background: var(--bg); border-bottom: 1px solid var(--line); }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: .5rem; min-height: 40px; padding: .45rem 1rem; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; cursor: pointer; font-size: var(--text-sm); color: var(--ink-2); transition: all .2s var(--ease); }
.chip:hover { color: var(--ink); border-color: var(--ink-3); }
.chip.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip__n { font-size: var(--text-xs); opacity: .6; font-variant-numeric: tabular-nums; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot--vlastni { background: var(--c-vlastni); } .dot--tenori { background: var(--c-tenori); } .dot--divadlo { background: var(--c-divadlo); }
.switch { display: inline-flex; align-items: center; gap: .65rem; font-size: var(--text-sm); color: var(--ink-2); cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { width: 40px; height: 22px; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--line-2); position: relative; transition: background .2s; flex: none; }
.switch__track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink-2); transition: transform .25s var(--ease), background .2s; }
.switch input:checked + .switch__track { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .switch__track::after { transform: translateX(18px); background: var(--accent-ink); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--accent); outline-offset: 3px; }

.month { display: grid; grid-template-columns: 180px 1fr; gap: 1rem; border-bottom: 1px solid var(--line); }
.month__label { font-family: var(--font-display); font-size: var(--text-xl); padding: 1.35rem 0; color: var(--ink-2); position: sticky; top: 140px; align-self: start; line-height: 1.1; }
.month__label small { display: block; font-family: var(--font-body); font-size: var(--text-xs); color: var(--ink-3); letter-spacing: .08em; margin-top: .2rem; }
.ev { display: grid; grid-template-columns: 104px 1fr auto; align-items: center; gap: 1.25rem; padding: 1.15rem 0; border-top: 1px solid var(--line); }
.month__items .ev:first-child { border-top: 0; }
.ev__date { display: flex; flex-direction: column; line-height: 1.1; }
.ev__d { font-family: var(--font-display); font-size: 2rem; line-height: 1; font-variant-numeric: lining-nums; }
.ev__w { font-size: var(--text-xs); color: var(--ink-3); text-transform: lowercase; margin-top: .25rem; }
.ev__type { display: inline-flex; align-items: center; gap: .45rem; font-size: var(--text-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .2rem; }
.ev__title { font-weight: 500; font-size: var(--text-base); line-height: 1.35; margin: 0; }
.ev__meta { font-size: var(--text-sm); color: var(--ink-2); margin: .15rem 0 0; }
.ev__sub { color: var(--ink-3); }
.ev__act { display: flex; align-items: center; gap: .75rem; justify-content: end; }
.ev.is-sold .ev__title, .ev.is-sold .ev__d { color: var(--ink-3); }
.ev--vlastni .ev__title { color: var(--accent); }
.empty { padding: 3rem 0; color: var(--ink-2); text-align: center; }
.events__more { display: flex; justify-content: center; margin-top: 2.5rem; }
.events__src { margin: 2rem 0 0; text-align: center; font-size: var(--text-xs); color: var(--ink-3); }
.events__src a { color: var(--ink-2); }

/* About */
.about { padding: var(--section) 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.about__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.about__portrait { margin: 0; position: sticky; top: 100px; border-radius: 4px; overflow: hidden; }
.about__portrait img { aspect-ratio: 4/5; object-fit: cover; object-position: 50% 15%; width: 100%; }
.about__text p { color: var(--ink-2); max-width: 62ch; }
.about__text .lede { font-size: var(--text-lg); color: var(--ink); line-height: 1.45; }
.milestones { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.milestones li { padding: 1.1rem 1rem 1.1rem 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.milestones strong { font-family: var(--font-display); font-weight: 400; font-size: var(--text-xl); line-height: 1.1; color: var(--accent); }
.milestones span { font-size: var(--text-sm); color: var(--ink-2); }

/* Roles */
.roles { padding: clamp(3rem, 6vw, 5rem) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.roles__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 2.2rem; font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.3; }
.roles__list li { display: inline-flex; align-items: baseline; gap: .55rem; }
.roles__list span { font-family: var(--font-body); font-size: var(--text-xs); color: var(--ink-3); letter-spacing: .04em; }

/* Music */
.music { padding: var(--section) 0; }
.music__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.music p { color: var(--ink-2); max-width: 52ch; }
.music__links { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.75rem; }
.tracks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tracks li { display: grid; grid-template-columns: 96px 1fr auto; gap: 1rem; align-items: baseline; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.tracks__y { font-size: var(--text-xs); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tracks__t { font-family: var(--font-display); font-size: var(--text-lg); line-height: 1.25; }
.tracks li:first-child .tracks__t { color: var(--accent); }
.tracks__k { font-size: var(--text-xs); color: var(--ink-3); text-transform: uppercase; letter-spacing: .1em; }

/* Gallery */
.gallery { padding: var(--section) 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(180px, 22vw, 300px); gap: .75rem; grid-auto-flow: dense; }
.g { padding: 0; border: 0; background: #222; cursor: zoom-in; overflow: hidden; border-radius: 3px; }
.g--tall { grid-row: span 2; }
.g--wide { grid-column: span 2; }
.g[hidden] { display: none; }
.g--cap { position: relative; }
.g--cap img { object-position: 50% 35%; }
.g__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem .9rem .75rem; text-align: left; font-size: var(--text-xs); line-height: 1.35; color: #f3efe6; background: linear-gradient(to top, rgba(15,15,14,.85), rgba(15,15,14,0)); }
.gallery__tabs { margin-top: 1.5rem; }
.lightbox__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.lightbox__cap { font-size: var(--text-sm); color: var(--ink-2); text-align: center; max-width: 80vw; }
.roles__now { font-family: var(--font-display); font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem); line-height: 1.2; margin: 0 0 2rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .9rem; }
.roles__now span:not(.roles__tag) { font-family: var(--font-body); font-size: var(--text-xs); color: var(--ink-3); letter-spacing: .04em; }
.roles__tag { font-family: var(--font-body); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .14em; color: var(--bg); background: var(--accent); padding: .25rem .6rem; border-radius: 999px; align-self: center; }
.roles__sub { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); margin: 0 0 .9rem; }
.g img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform .6s var(--ease), filter .4s; filter: saturate(.92); }
.g:hover img { transform: scale(1.04); filter: saturate(1); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(15,15,14,.94); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox img { max-height: 82vh; max-width: 88vw; width: auto; object-fit: contain; }
.lightbox__close, .lightbox__nav { position: absolute; background: rgba(29,29,28,.6); border: 1px solid var(--line-2); color: var(--ink); width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; line-height: 1; }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__nav--prev { left: 1rem; } .lightbox__nav--next { right: 1rem; }

/* Contact */
.contact { padding: var(--section) 0; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact p { color: var(--ink-2); max-width: 48ch; }
.contact__list { margin: 0; border-top: 1px solid var(--line); }
.contact__list > div { display: grid; grid-template-columns: 140px 1fr; gap: 1rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.contact__list dt { font-size: var(--text-xs); color: var(--ink-3); text-transform: uppercase; letter-spacing: .12em; padding-top: .2rem; }
.contact__list dd { margin: 0; }
.contact__list a { text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.contact__list a:hover { text-decoration-color: var(--accent); }
.social { display: flex; gap: 1.25rem; flex-wrap: wrap; }

.footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; font-size: var(--text-xs); color: var(--ink-3); }
.footer__inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: start; }
.footer p { margin: 0; }
.footer a { color: var(--ink-2); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 1000px) {
  .month { grid-template-columns: 1fr; gap: 0; }
  .month__label { position: static; padding: 1.5rem 0 .25rem; }
  .month__label small { display: inline; margin-left: .5rem; }
}
@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links { position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0; background: rgba(29,29,28,.98); border-bottom: 1px solid var(--line); padding: .5rem var(--pad) 1.25rem; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { display: block; padding: .85rem 0; font-size: var(--text-base); color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav.menu-open { background: rgba(29,29,28,.98); }

  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__photo { grid-column: 1; grid-row: 1; height: 78svh; min-height: 460px; }
  .hero__photo::after { background: linear-gradient(0deg, #1f1f1f 0%, rgba(31,31,31,.6) 22%, rgba(31,31,31,0) 50%); }
  .hero__text { grid-column: 1; grid-row: 1; padding: 0 var(--pad) 2.5rem; margin-top: 52svh; }
  .hero__title { margin-right: 0; font-size: clamp(3.75rem, 19vw, 6rem); }
  .jubilee, .about__grid, .music__grid, .contact__grid { grid-template-columns: 1fr; }
  .jubilee__img { max-height: 70svh; }
  .about__portrait { position: static; }
  .facts { grid-template-columns: 1fr 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
}
@media (max-width: 560px) {
  .filters { top: 68px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); width: calc(100% + 2 * var(--pad)); }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .ev { grid-template-columns: 56px 1fr; gap: .9rem; align-items: start; }
  .ev__act { grid-column: 2; justify-content: start; }
  .ev__d { font-size: 1.75rem; }
  .milestones { grid-template-columns: 1fr; }
  .tracks li { grid-template-columns: 1fr auto; }
  .tracks__y { grid-column: 1 / -1; }
  .contact__list > div { grid-template-columns: 1fr; gap: .25rem; }
  .gallery__grid { grid-auto-rows: 200px; gap: .5rem; }
  .next { max-width: none; }
}
