:root {
  --panel: rgba(218, 218, 218, 0.60);
  --text: #111;
  --link: #5a1320;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  background: #222 url("../images/home.jpg") center / cover fixed no-repeat;
}

body.page-template {
  background-color: #252525;
  background-image: url("../images/home1.jpg");
  background-size: auto 88vh;
  background-position: center 4.5rem;
  background-repeat: no-repeat;
}
body.page-coming-up { background-image: url("../images/IMG_3638.jpg"); }
body.page-past-performances { background-image: url("../images/IMG_3191.jpg"); }
body.page-compositions { background-image: url("../images/IMG_3267.jpg"); }
body.page-compositions-by-instrumentation { background-image: url("../images/IMG_3267.jpg"); }
body.page-contact {
  background-image: url("../images/contact.jpg");
  background-size: cover;
  background-position: center;
}

body.page-biography,
body.page-coming-up {
  background-size: cover;
  background-position: center;
}

a { color: var(--link); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 2rem;
  background: rgba(236, 236, 236, 0.94);
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.site-title {
  color: #111;
  font-size: 1.45rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

body.home-template .site-title {
  display: none;
}

body.home-template .site-header {
  justify-content: flex-end;
}

body.home-template .nav {
  justify-content: flex-end;
  margin-left: auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a { text-decoration: none; }
.nav-current a { text-decoration: underline; }

main {
  width: min(1180px, calc(100% - 2rem));
  margin: 2rem auto;
}

.content-panel {
  width: min(860px, 100%);
  margin-inline: auto;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  background: var(--panel);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 4px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
}

.content-panel h1 { margin-top: 0; }
.gh-content { line-height: 1.65; }
.gh-content li { margin-bottom: 0.6rem; }
.gh-content audio { width: 100%; }
.gh-content .kg-width-wide { width: min(1100px, 100%); }
.gh-content .kg-width-full { width: 100%; }
.page-feature-image { width: 100%; height: auto; margin-bottom: 1.5rem; }

.performance-order-note {
  margin: -0.5rem 0 2rem;
  font-style: italic;
}

.performance-work {
  padding: 1rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
}

.performance-work h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
}

.performance-work ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.performance-work li {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding: 0.55rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.14);
}

.performance-work time {
  font-weight: 700;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(280px, 36%) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.split-visual {
  position: sticky;
  top: 1rem;
  min-height: calc(100vh - 8rem);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 4px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}

.split-visual-performances {
  background-image: url("../images/IMG_3191.jpg");
}

.split-visual-compositions {
  background-image: url("../images/IMG_3267.jpg");
}

.split-content {
  width: 100%;
  margin: 0;
}

body.page-compositions .split-layout {
  grid-template-columns: minmax(220px, 27%) minmax(0, 1fr);
}

body.page-compositions-by-instrumentation .instrumentation-layout {
  grid-template-columns: minmax(220px, 27%) minmax(0, 1fr);
}

.instrumentation-link a {
  display: inline-block;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.38);
  border-radius: 3px;
  font-weight: 700;
  text-decoration: none;
}

body.page-compositions-by-instrumentation .content-panel > h1 {
  font-size: clamp(1.55rem, 3vw, 1.9rem);
  line-height: 1.15;
}

body.page-compositions-by-instrumentation .gh-content > h1:first-child {
  display: none;
}

body.page-compositions-by-instrumentation .gh-content > h1:first-child a {
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

body.page-compositions-by-instrumentation .gh-content h2 {
  margin: 1.15rem 0 0.45rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.2;
}

body.page-compositions-by-instrumentation .gh-content section ul {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.page-compositions-by-instrumentation .gh-content section li {
  margin: 0;
  padding: 0.55rem 0.7rem;
  background: rgba(255, 255, 255, 0.3);
  border-left: 3px solid rgba(90, 19, 32, 0.65);
  border-radius: 2px;
  font-size: 0.9rem;
  line-height: 1.35;
}

body.page-compositions-by-instrumentation .gh-content section li a {
  display: inline;
  margin: 0 0.08rem;
  padding: 0.08rem 0.28rem;
  border: 1px solid rgba(90, 19, 32, 0.35);
  border-radius: 2px;
  font-size: 0.88em;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.composition-catalog {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.composition-catalog > li {
  margin: 0;
  padding: 0.55rem 0.7rem;
  background: rgba(255, 255, 255, 0.3);
  border-left: 3px solid rgba(90, 19, 32, 0.65);
  border-radius: 2px;
  font-size: 0.9rem;
  line-height: 1.35;
}

.catalog-link {
  display: inline;
  margin: 0 0.08rem;
  padding: 0.08rem 0.28rem;
  border: 1px solid rgba(90, 19, 32, 0.35);
  border-radius: 2px;
  font-size: 0.88em;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.contact-card {
  width: min(520px, 100%);
}

.contact-links {
  display: grid;
  gap: 0.65rem;
  padding: 0;
  list-style: none;
}

.contact-links a {
  display: block;
  padding: 0.65rem 0.8rem;
  background: rgba(255, 255, 255, 0.34);
  border-radius: 3px;
  text-decoration: none;
}

.home-intro {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.8rem 1.2rem;
  background: rgba(218, 218, 218, 0.52);
  border-radius: 4px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

body.home-template main {
  min-height: calc(100vh - 9rem);
  display: flex;
  align-items: flex-start;
}

.home-intro h1 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.375rem);
  line-height: 1;
}

.home-intro p {
  margin: 0.3rem 0 0;
  font-size: clamp(0.95rem, 1.7vw, 1.25rem);
  font-style: italic;
}

body.page-biography main {
  width: min(1180px, calc(100% - 2rem));
  margin-top: 1rem;
}

body.page-biography .content-panel {
  width: 100%;
  padding: clamp(1rem, 2vw, 1.75rem);
}

body.page-biography .gh-content {
  columns: 2;
  column-gap: 2.25rem;
  font-size: 0.92rem;
  line-height: 1.4;
}

body.page-biography .gh-content > *:first-child {
  margin-top: 0;
}

footer {
  padding: 1rem 2rem;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 3px #000;
}

@media (max-width: 760px) {
  body { background-attachment: scroll; }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
  }

  .nav { justify-content: flex-start; }

  body.home-template .nav {
    justify-content: flex-start;
    margin-left: 0;
  }
  main { margin: 1rem auto; }

  body.page-template {
    background-size: contain;
    background-position: center 8rem;
  }

  .performance-work li {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .split-layout {
    grid-template-columns: 1fr;
  }

  body.page-compositions .split-layout {
    grid-template-columns: 1fr;
  }

  body.page-compositions-by-instrumentation .instrumentation-layout {
    grid-template-columns: 1fr;
  }

  .split-visual {
    position: relative;
    top: auto;
    min-height: 42vh;
  }
}

@media (max-width: 460px) {
  body.page-biography .gh-content {
    columns: 1;
    font-size: 0.9rem;
  }
}
