:root {
  --bg: #f6f1eb;
  --surface: #ffffff;
  --text: #282120;
  --muted: #675d59;
  --brand: #a61d2a;
  --brand-dark: #74121d;
  --gold: #c99a54;
  --line: #e1d8d0;
  --radius: 1.1rem;
  --shadow: 0 10px 25px rgba(62, 38, 30, 0.07);
  --container: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Work Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 100% 0, rgba(201, 154, 84, 0.13), transparent 29rem),
    linear-gradient(180deg, #faf7f3 0%, var(--bg) 45%, #f3ece6 100%);
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.2;
  margin: 0 0 0.6rem;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: #382624;
}

h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--brand-dark);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #111;
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(var(--container), 92vw);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 0.7rem 1rem;
  z-index: 99;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.2rem 0 clamp(2.8rem, 7vw, 5.5rem);
  min-height: 100svh;
  color: #fff;
  background-color: #2d2a2a;
  background-image: url("../../img/main-background.JPG");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  border-bottom: 1px solid #231f1f;
  overflow: hidden;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(25, 16, 18, 0.69) 0%, rgba(25, 16, 18, 0.42) 52%, rgba(25, 16, 18, 0.12) 100%),
    linear-gradient(0deg, rgba(13, 9, 10, 0.3), transparent 45%);
  z-index: 0;
}

.site-header > * {
  position: relative;
  z-index: 1;
}

.nav-wrap {
  position: relative;
  flex-wrap: wrap;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(255, 253, 250, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 0.35rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(10, 6, 7, 0.13);
  padding: 0.5rem 0.8rem;
}

.brand img {
  width: clamp(160px, 28vw, 240px);
  filter: drop-shadow(0 3px 7px rgba(0, 0, 0, 0.14));
}

.menu-button {
  width: 2.6rem;
  height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #bbb1ab;
  color: #2d2422;
  background: #fff;
  border-radius: 50%;
  padding: 0;
}

.menu-icon {
  position: relative;
  width: 1.15rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 1.15rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease;
}

.menu-icon::before {
  top: -0.38rem;
}

.menu-icon::after {
  top: 0.38rem;
}

.menu-button[aria-expanded="true"] .menu-icon {
  background: transparent;
}

.menu-button[aria-expanded="true"] .menu-icon::before {
  transform: translateY(0.38rem) rotate(45deg);
}

.menu-button[aria-expanded="true"] .menu-icon::after {
  transform: translateY(-0.38rem) rotate(-45deg);
}

.site-nav {
  display: none;
}

.site-nav.open {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid #ded5cf;
  background: rgba(255, 255, 255, 0.95);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.site-nav a {
  text-decoration: none;
  font-weight: 600;
  color: #352c2a;
  text-shadow: none;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--brand);
}

.hero {
  margin-top: auto;
  padding-top: clamp(1.2rem, 4vh, 3.2rem);
  display: grid;
  gap: 1rem;
  min-height: 0;
  align-items: end;
}

.hero-content {
  align-self: end;
  max-width: 58ch;
  background: linear-gradient(135deg, rgba(20, 13, 15, 0.65), rgba(20, 13, 15, 0.38));
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  margin: 0;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.eyebrow {
  color: #f2c984;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lead {
  max-width: 48ch;
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.hero-meta {
  color: #f1d8d8;
}

.section {
  padding: clamp(3.4rem, 8vw, 6rem) 0;
}

.section-muted {
  background: #eee5dd;
  border-top: 1px solid #ded2c8;
  border-bottom: 1px solid #ded2c8;
}

.section h2::after,
.site-footer h2::after {
  content: "";
  display: block;
  width: 2.8rem;
  height: 3px;
  margin-top: 0.7rem;
  background: var(--gold);
}

.event-grid {
  display: grid;
  gap: 1.35rem;
  margin: 1.5rem 0 0;
}

.event-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(62, 38, 30, 0.11);
}

.event-card h3 {
  color: var(--brand-dark);
}

.event-poster {
  margin: 0 0 0.35rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 0.3rem);
  overflow: hidden;
  background: #f2f2f2;
}

.event-poster img {
  width: 100%;
}

.event-place {
  color: var(--muted);
}

.event-name {
  margin-bottom: 0;
  color: var(--brand-dark);
  font-weight: 700;
}

.button {
  display: inline-block;
  background: linear-gradient(135deg, #bc3540, var(--brand-dark));
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.66rem 1.15rem;
  font-weight: 700;
  box-shadow: 0 7px 14px rgba(116, 18, 29, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  background: linear-gradient(135deg, #c33b46, #8d1016);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(116, 18, 29, 0.28);
}

.button-disabled {
  color: #6c6260;
  background: #e7e1dc;
  box-shadow: none;
  cursor: not-allowed;
}

.button-disabled:hover {
  color: #6c6260;
  background: #e7e1dc;
  box-shadow: none;
  transform: none;
}

.event-card p:last-child {
  margin-bottom: 0;
}

.conductor-layout {
  display: grid;
  gap: 1.5rem;
}

.conductor-photo {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #e9e0d9;
}

.conductor-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.photo-carousel {
  position: relative;
}

.photo-carousel:focus-visible {
  outline: 3px solid #111;
  outline-offset: 4px;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(17, 17, 17, 0.56);
  color: #fff;
  backdrop-filter: blur(4px);
  border-radius: 999px;
  width: 2.2rem;
  height: 2.2rem;
  font-size: 1.4rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.carousel-button:hover {
  background: rgba(17, 17, 17, 0.78);
}

.carousel-button-prev {
  left: 0.45rem;
}

.carousel-button-next {
  right: 0.45rem;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: calc(var(--radius) + 0.25rem);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.carousel-track {
  display: flex;
  transition: transform 0.45s ease;
}

.carousel-slide {
  min-width: 100%;
  margin: 0;
  background: var(--surface);
}

.carousel-slide img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
}

.carousel-slide figcaption {
  padding: 0.85rem 1rem;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.05rem;
}

.carousel-status {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

#photos.container {
  width: min(var(--container), 96vw);
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track {
    transition: none;
  }
}

.partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.partners a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  flex: 1 1 260px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.partners a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.site-footer {
  padding: 2.8rem 0 3rem;
  background:
    radial-gradient(circle at 90% 0, rgba(201, 154, 84, 0.19), transparent 23rem),
    #24191a;
  color: #f8f8f8;
}

.site-footer a {
  color: #fff;
}

.site-footer h2 {
  color: #fff;
}

.social-links {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  gap: 1rem;
}

.copyright {
  margin-bottom: 0;
  color: #d3d3d3;
}

@media (min-width: 760px) {
  .menu-button {
    display: none;
  }

  .site-nav {
    display: block;
  }

  .site-nav.open {
    width: auto;
    margin-top: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
  }

  .site-nav ul {
    flex-direction: row;
    gap: 1.2rem;
  }

  .event-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .conductor-layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.7fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 5rem);
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    align-items: end;
    margin-top: auto;
  }

  .hero-content {
    padding: 1.4rem 1.3rem;
  }

  .carousel-button {
    width: 2.8rem;
    height: 2.8rem;
    font-size: 1.9rem;
  }

  .carousel-button-prev {
    left: 0.7rem;
  }

  .carousel-button-next {
    right: 0.7rem;
  }
}

@media (max-width: 759px) {
  #photos.container {
    width: 99vw;
  }

  #photos > h2,
  #photos > p,
  #photos > .carousel-status {
    padding-inline: 0.55rem;
  }

  .carousel-viewport {
    border-left: none;
    border-right: none;
    border-radius: 0;
  }
}
