:root {
  --forest: #1e3a2c;
  --forest-deep: #102318;
  --forest-soft: #31543f;
  --copper: #b65b25;
  --copper-dark: #914315;
  --gold: #e9bd79;
  --cream: #fbf4e5;
  --paper: rgba(255, 248, 232, 0.88);
  --ink: #1b211c;
  --muted: #62675e;
  --shadow: 0 24px 80px rgba(30, 38, 24, 0.22);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 20%, rgba(233, 189, 121, 0.2), transparent 30rem),
    linear-gradient(135deg, #fff8ea 0%, #f5e2bd 44%, #d9c090 100%);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(rgba(16, 35, 24, 0.18), rgba(16, 35, 24, 0.36)),
    url("assets/ketten-egy-uton-esemeny.png") center 34% / cover no-repeat;
  filter: saturate(0.86);
  opacity: 0.28;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(16, 35, 24, 0.3), transparent 34%, rgba(255, 248, 232, 0.34)),
    linear-gradient(to bottom, rgba(251, 244, 229, 0.5), rgba(251, 244, 229, 0.84) 44%, rgba(16, 35, 24, 0.16));
}

a {
  color: inherit;
}

.site-shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 248, 232, 0.28);
  background: rgba(16, 35, 24, 0.78);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  color: var(--cream);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border: 1px solid rgba(233, 189, 121, 0.52);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.brand-text {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.brand-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.brand-subtitle {
  color: rgba(251, 244, 229, 0.68);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  min-height: 42px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(251, 244, 229, 0.82);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.is-active {
  border-color: rgba(233, 189, 121, 0.52);
  color: #fff8ea;
  background: rgba(251, 244, 229, 0.1);
}

.nav-link.contact-link {
  background: var(--gold);
  color: var(--forest-deep);
}

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(233, 189, 121, 0.48);
  border-radius: 999px;
  color: var(--cream);
  background: rgba(251, 244, 229, 0.08);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
}

main {
  min-height: calc(100vh - 138px);
}

.home-hero {
  display: grid;
  min-height: calc(100vh - 138px);
  padding: clamp(54px, 9vw, 104px) 0;
  align-items: center;
}

.hero-copy {
  max-width: 880px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--forest);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow::before,
.eyebrow::after {
  display: inline-block;
  width: 34px;
  height: 1px;
  content: "";
  background: currentColor;
  opacity: 0.5;
}

h1,
h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--forest);
  line-height: 0.9;
}

h1 {
  max-width: 840px;
  font-size: clamp(76px, 13vw, 160px);
  letter-spacing: 0;
}

h1 span {
  display: block;
  color: var(--copper);
}

.page-title {
  font-size: clamp(58px, 10vw, 112px);
}

.lead {
  max-width: 720px;
  margin: 28px 0 0;
  color: #30372f;
  font-size: clamp(19px, 2.2vw, 28px);
  font-weight: 650;
  line-height: 1.45;
}

.intro-copy {
  max-width: 730px;
  margin: 20px 0 34px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.intro-copy p {
  margin: 0;
}

.intro-copy p + p {
  margin-top: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid rgba(30, 58, 44, 0.22);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  border-color: transparent;
  color: #fff8ea;
  background: linear-gradient(135deg, var(--forest), var(--forest-soft));
  box-shadow: 0 16px 38px rgba(30, 58, 44, 0.28);
}

.page-main {
  padding: clamp(38px, 7vw, 78px) 0;
}

.page-section {
  display: grid;
  gap: clamp(24px, 4vw, 42px);
}

.compact-section {
  min-height: calc(100vh - 214px);
  align-items: center;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading p {
  max-width: 490px;
  margin: 0;
  color: #4f534b;
  font-size: 17px;
  line-height: 1.7;
}

.events-grid {
  display: grid;
  grid-template-columns: minmax(280px, 560px) minmax(260px, 1fr);
  gap: clamp(22px, 4vw, 42px);
  align-items: start;
}

.event-card {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 248, 232, 0.72);
  border-radius: var(--radius);
  color: inherit;
  background: var(--paper);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 92px rgba(30, 38, 24, 0.3);
}

.event-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.event-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
}

.event-card-footer strong {
  color: var(--forest);
  font-size: 18px;
}

.event-card-footer span {
  color: var(--copper-dark);
  font-weight: 800;
}

.event-info {
  display: grid;
  gap: 14px;
}

.info-row {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(30, 58, 44, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 248, 232, 0.7);
}

.info-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  color: #fff8ea;
  background: var(--forest);
  font-size: 23px;
}

.info-row small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.info-row b {
  color: var(--forest);
  font-size: 20px;
}

.contact-panel,
.not-found-panel {
  display: grid;
  gap: 22px;
  max-width: 760px;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(255, 248, 232, 0.68);
  border-radius: var(--radius);
  background: rgba(255, 248, 232, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.contact-panel p,
.not-found-panel p {
  margin: 0;
  color: #4f534b;
  font-size: 18px;
  line-height: 1.75;
}

.footer {
  padding: 28px 0 38px;
  color: rgba(16, 35, 24, 0.72);
  font-size: 14px;
}

@media (max-width: 860px) {
  .site-shell {
    width: min(100% - 28px, 680px);
  }

  .menu-button {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid rgba(233, 189, 121, 0.28);
    border-radius: var(--radius);
    background: rgba(16, 35, 24, 0.96);
    box-shadow: 0 22px 60px rgba(16, 35, 24, 0.3);
  }

  .nav.is-open .nav-links {
    display: flex;
  }

  .nav-link {
    width: 100%;
    border-radius: var(--radius);
    text-align: center;
  }

  .brand-logo {
    width: 46px;
    height: 46px;
  }

  .brand-name {
    font-size: 24px;
  }

  .brand-subtitle {
    display: none;
  }

  h1 {
    font-size: clamp(64px, 20vw, 118px);
  }

  .lead {
    font-size: 20px;
  }

  .section-heading,
  .events-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .section-heading p {
    max-width: none;
  }
}

@media (max-width: 520px) {
  .nav {
    min-height: 68px;
  }

  .nav-links {
    top: 68px;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .brand-name {
    font-size: 22px;
  }

  .eyebrow {
    gap: 8px;
    letter-spacing: 0.14em;
  }

  .eyebrow::before,
  .eyebrow::after {
    width: 20px;
  }

  .button {
    width: 100%;
    padding: 0 18px;
  }

  .event-card-footer {
    display: grid;
  }

  .info-row {
    grid-template-columns: 46px 1fr;
    padding: 14px;
  }

  .info-icon {
    width: 46px;
    height: 46px;
    font-size: 20px;
  }
}
