/* ─── Design tokens ─────────────────────────────────────────── */
:root {
  --green:       #1F301F;
  --yellow:      #d4a828;
  --white:       #ffffff;
  --text:        #1e2e23;
  --text-light:  #5a7062;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', system-ui, sans-serif;

  --content-max:  720px;
}

/* ─── Base ──────────────────────────────────────────────────── */
html {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background-color: var(--green);
  scroll-behavior: smooth;
}

body {
  background-color: var(--green);
}

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

/* ─── Page layout ───────────────────────────────────────────── */
.page {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .page {
    grid-template-columns: 1fr 1fr;
    min-height: 100svh;
  }
}

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60svh;
  padding: 3rem 2rem;
  background-color: var(--green);
}

@media (min-width: 768px) {
  .hero {
    position: sticky;
    top: 0;
    height: 100svh;
    min-height: unset;
  }
}

.hero__logo {
  width: 100%;
  max-width: min(320px, 80vw);
  animation: logo-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes logo-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ─── Content ───────────────────────────────────────────────── */
.content {
  background: var(--white);
  border-radius: 1.5rem 1.5rem 0 0;
}

@media (min-width: 768px) {
  .content {
    border-radius: 0;
  }
}

.content__inner {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 3.5rem 1.5rem 5rem;
}

@media (min-width: 768px) {
  .content__inner {
    max-width: none;
    padding: 4rem 3rem 6rem;
  }
}

/* ─── Typography ────────────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 0.75rem;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--green);
  margin-bottom: 1rem;
}

h2 em {
  font-style: italic;
  font-weight: 400;
}

p {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-light);
  max-width: 58ch;
}

p + p {
  margin-top: 1rem;
}

/* ─── Intro statement ───────────────────────────────────────── */
.intro {
  margin-bottom: 4.5rem;
}

.intro::before {
  content: '';
  display: block;
  width: 2.5rem;
  height: 3px;
  background: var(--yellow);
  margin-bottom: 1.75rem;
}

.intro__text {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--green);
  max-width: none;
  animation: logo-in 0.9s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.intro__text em {
  font-style: italic;
  font-weight: 400;
}

/* ─── Events ─────────────────────────────────────────────────── */
.events-section {
  margin-top: 4rem;
}

.events-section > h2 {
  margin-bottom: 2rem;
}

.events__year {
  font-size: 1rem;
  font-weight: 500;
  color: var(--yellow);
  margin: 2.5rem 0 0.75rem;
}

.events__year:first-child {
  margin-top: 0;
}

.events {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.event__date {
  display: block;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 0.3rem;
}

.event__upcoming {
  display: inline-block;
  font-size: 0.65rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  background: #d4e8d0;
  padding: 0.15em 0.5em;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 0.4em;
}

.event__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--green);
  margin: 0;
}

.event__body {
  margin-top: 0.6rem;
}

.event__body p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-light);
  max-width: 52ch;
  margin: 0;
}

.event__photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
}

.event__photos button {
  display: block;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  border-radius: 4px;
  overflow: hidden;
}

.event__photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  transition: opacity 0.2s;
}

.event__photos button:hover img {
  opacity: 0.88;
}

/* ─── Lightbox ───────────────────────────────────────────────── */
dialog.lightbox {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 100vw;
  max-height: 100vh;
  outline: none;
}

dialog.lightbox::backdrop {
  background: rgba(20, 30, 20, 0.92);
  backdrop-filter: blur(4px);
}

.lightbox__img {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  cursor: zoom-out;
}

/* ─── Contact ────────────────────────────────────────────────── */
.contact-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid #e4ded4;
}

.contact-names {
  font-size: 1.125rem;
  color: var(--text-light);
  margin: 0.5rem 0 0.25rem;
}

.contact-email {
  display: inline-block;
  font-size: 1.125rem;
  color: var(--text-light);
  text-decoration: none;
  margin-top: 0.5rem;
}

.contact-email:hover {
  color: var(--green);
}
