:root {
  --wine: #5b0000;
  --deep-wine: #310000;
  --gold: #ffcc00;
  --yellow: #ffff00;
  --orange: #ff9900;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #250000;
  color: var(--gold);
  font-family: Tahoma, Verdana, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

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

a:visited {
  color: var(--orange);
}

.site-shell {
  width: min(800px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background-color: var(--wine);
  background-image: url("assets/Background2.jpg");
  background-repeat: repeat-y;
  background-size: 100% 2px;
  box-shadow: 0 0 60px rgb(0 0 0 / 55%);
}

.legal-note {
  margin: 0;
  padding: 20px 28px 16px;
  border-bottom: 1px solid rgb(255 204 0 / 45%);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.02em;
}

.masthead {
  padding: 15px 25px;
}

.logo-link {
  display: block;
  outline-offset: 4px;
}

.masthead img {
  display: block;
  width: 100%;
  max-width: 750px;
  height: auto;
}

.site-body {
  display: grid;
  grid-template-columns: 180px minmax(0, 620px);
  min-height: 640px;
  border-top: 1px solid rgb(255 204 0 / 38%);
}

.sidebar {
  padding: 26px 19px 32px;
  border-right: 1px solid rgb(255 204 0 / 26%);
  background: rgb(49 0 0 / 30%);
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  width: 141px;
}

.nav-button {
  display: block;
  width: 141px;
  height: 20px;
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: 0 0;
  color: transparent;
  outline-offset: 3px;
}

.nav-button span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.nav-home { background-image: url("assets/home.gif"); }
.nav-dirigentka { background-image: url("assets/dirigentka.gif"); }
.nav-orchestr { background-image: url("assets/orchestr.gif"); }
.nav-sbor { background-image: url("assets/sbor.gif"); }
.nav-tituly { background-image: url("assets/tituly.gif"); }
.nav-kontakty { background-image: url("assets/kontakty.gif"); }

.nav-home:hover { background-image: url("assets/home-hover.gif"); }
.nav-dirigentka:hover { background-image: url("assets/dirigentka-hover.gif"); }
.nav-orchestr:hover { background-image: url("assets/orchestr-hover.gif"); }
.nav-sbor:hover { background-image: url("assets/sbor-hover.gif"); }
.nav-tituly:hover { background-image: url("assets/tituly-hover.gif"); }
.nav-kontakty:hover { background-image: url("assets/kontakty-hover.gif"); }

.site-shell:not(:has(.page-panel:target)) .nav-home,
.site-shell:has(#home:target) .nav-home {
  background-image: url("assets/home-active.gif");
}

.site-shell:has(#dirigentka:target) .nav-dirigentka {
  background-image: url("assets/dirigentka-active.gif");
}

.site-shell:has(#orchestr:target) .nav-orchestr {
  background-image: url("assets/orchestr-active.gif");
}

.site-shell:has(#sbor:target) .nav-sbor {
  background-image: url("assets/sbor-active.gif");
}

.site-shell:has(#tituly:target) .nav-tituly {
  background-image: url("assets/tituly-active.gif");
}

.site-shell:has(#kontakty:target) .nav-kontakty {
  background-image: url("assets/kontakty-active.gif");
}

.founded {
  margin: 58px 0 0;
  font-size: 12px;
  line-height: 1.65;
}

.pages {
  min-width: 0;
  padding: 28px 28px 45px;
}

.page-panel {
  display: none;
  animation: reveal 180ms ease-out;
}

.page-panel:target {
  display: block;
}

.pages:not(:has(.page-panel:target)) #home {
  display: grid;
}

#home:target {
  display: grid;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-panel h1 {
  margin: 0 0 22px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.page-panel h2 {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 14px;
  line-height: 1.35;
}

.page-panel h2 span {
  font-weight: 400;
}

.page-panel p {
  margin: 0 0 18px;
}

.home-panel {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 1.55fr);
  gap: 26px;
  align-items: start;
}

.home-copy {
  padding-top: 9px;
}

.home-copy h1 {
  font-size: 29px;
}

.lead {
  font-size: 16px;
  font-weight: 700;
}

.text-link {
  font-weight: 700;
}

.hero-photo,
.wide-photo {
  display: block;
  max-width: 100%;
  height: auto;
}

.hero-photo {
  width: 100%;
}

.wide-photo {
  width: 100%;
  margin: 0 0 24px;
  border: 1px solid rgb(255 204 0 / 24%);
}

.second-photo {
  margin-top: 24px;
}

.language-list {
  display: grid;
  gap: 27px;
}

.language-list article,
.english {
  padding-top: 17px;
  border-top: 1px solid rgb(255 204 0 / 28%);
}

.eyebrow {
  margin-bottom: 7px !important;
  color: #fff1a8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.choir-intro {
  display: grid;
  grid-template-columns: 199px 1fr;
  gap: 22px;
  align-items: start;
  margin-bottom: 20px;
}

.choir-intro img {
  display: block;
  width: 100%;
  height: auto;
}

.small-note {
  font-size: 12px;
}

.recordings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.recording {
  min-height: 180px;
  padding: 15px;
  border: 1px solid rgb(255 204 0 / 28%);
  background: rgb(49 0 0 / 42%);
}

.recording p {
  margin-bottom: 8px;
  font-size: 12px;
}

.recording span {
  color: #fff1a8;
  font-size: 11px;
}

.contact-card {
  margin-bottom: 20px;
  padding: 24px;
  border: 1px solid rgb(255 204 0 / 30%);
  background: rgb(49 0 0 / 42%);
}

.contact-card address {
  margin-bottom: 14px;
  font-style: normal;
}

footer {
  padding: 18px 28px;
  border-top: 1px solid rgb(255 204 0 / 40%);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 680px) {
  body {
    font-size: 14px;
  }

  .legal-note {
    padding-inline: 18px;
  }

  .masthead {
    padding: 12px 0 0;
  }

  .site-body {
    display: block;
    border-top: 0;
  }

  .sidebar {
    padding: 16px 12px 18px;
    border-top: 1px solid rgb(255 204 0 / 34%);
    border-right: 0;
    border-bottom: 1px solid rgb(255 204 0 / 34%);
  }

  .sidebar nav {
    display: grid;
    grid-template-columns: repeat(2, 141px);
    justify-content: center;
    width: auto;
    gap: 2px 8px;
  }

  .founded {
    display: none;
  }

  .pages {
    padding: 24px 18px 40px;
  }

  .home-panel,
  #home:target {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    width: min(402px, 100%);
    margin: 0 auto;
  }

  .choir-intro {
    grid-template-columns: 130px 1fr;
    gap: 15px;
  }

  .recordings {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 370px) {
  .sidebar nav {
    grid-template-columns: 141px;
  }

  .choir-intro {
    grid-template-columns: 1fr;
  }

  .choir-intro img {
    width: 199px;
  }
}
