:root {
  --bg-overlay: rgba(25, 18, 5, 0.46);
  --panel: rgba(98, 138, 58, 0.58);
  --panel-strong: rgba(52, 52, 40, 0.86);
  --text: #fffdf7;
  --accent: #ffe08a;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--text);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #f8eed2 0%, #cf8b2f 100%);
}

.background-image {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: blur(3px);
  z-index: -2;
}

.background-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  z-index: -1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--panel-strong);
  backdrop-filter: blur(3px);
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.brand {
  margin: 0;
  text-align: center;
  font-family: "Story Script", cursive;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  line-height: 1;
}

.main-nav {
  margin-top: 0.65rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  color: var(--accent);
}

main {
  width: min(1200px, 100% - 2rem);
  margin: 1.1rem auto 3rem;
}

section {
  scroll-margin-top: 8rem;
  margin: 1rem 0 2rem;
}

.embed-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.embed-card iframe {
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: #191919;
}

.section-title {
  margin: 0 0 0.75rem;
  text-align: right;
  font-family: "Story Script", cursive;
  font-size: clamp(2rem, 8vw, 4rem);
  color: var(--accent);
}

.events-list {
  display: grid;
  gap: 0.85rem;
}

.event-card {
  background: var(--panel);
  border-radius: 14px;
  padding: 1rem;
  text-align: right;
}

.event-date {
  margin: 0;
  font-size: clamp(1.8rem, 6vw, 3rem);
  font-weight: 700;
}

.event-meta {
  margin: 0.3rem 0;
  font-size: clamp(1.15rem, 3.8vw, 1.65rem);
}

.story-panel {
  background: rgba(39, 34, 18, 0.58);
  border-radius: 14px;
  padding: 1rem;
  font-family: "Story Script", cursive;
  font-size: clamp(1.9rem, 5.2vw, 2.8rem);
  line-height: 1.1;
}

.contact-panel {
  display: grid;
  gap: 0.8rem;
  background: rgba(39, 34, 18, 0.58);
  border-radius: 14px;
  padding: 1rem;
  font-weight: 700;
}

.contact-panel p {
  margin: 0;
  font-size: clamp(1rem, 4.2vw, 1.35rem);
}

.social-links {
  display: flex;
  gap: 0.65rem;
}

.social-links a {
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
}

.social-links a:hover,
.social-links a:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  color: var(--accent);
}

@media (min-width: 840px) {
  .embed-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .events-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-card {
    min-height: 190px;
  }
}
