@import url("/fonts.css");

:root {
  --bg: #f7f8f3;
  --ink: #1f1f22;
  --muted: #656b69;
  --line: #dfe3da;
  --green: #176d36;
  --green-dark: #10532a;
  --yellow: #ebe900;
  --blue: #2b438b;
  --red: #c82431;
  --surface: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Nunito, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  padding: 12px clamp(16px, 4vw, 42px);
}

.site-brand img {
  display: block;
  width: min(260px, 52vw);
  height: 78px;
  object-fit: contain;
  object-position: left center;
}

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

.site-nav nav a {
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.site-nav nav a:hover,
.site-nav .login-link {
  background: #edf5ef;
  color: var(--green-dark);
}

.hero {
  position: relative;
  min-height: 56vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: clamp(28px, 6vw, 72px);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(251, 250, 244, 0.72), rgba(251, 250, 244, 0.44) 48%, rgba(251, 250, 244, 0.08) 76%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(740px, 100%);
  color: var(--ink);
  text-shadow: none;
}

.hero-copy p,
.hero-copy span {
  margin: 0;
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 700;
  color: var(--green-dark);
}

.hero-copy h1 {
  margin: 8px 0;
  font-family: Lobster, "Brush Script MT", cursive;
  font-weight: 400;
  font-size: clamp(52px, 11vw, 124px);
  line-height: 0.92;
  letter-spacing: 0;
  color: var(--ink);
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 14px;
}

.section-head > div {
  display: grid;
  gap: 4px;
}

.year-filter {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.year-filter select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 6px 34px 6px 10px;
  font: inherit;
}

.section h2 {
  margin: 0;
  font-family: Lobster, "Brush Script MT", cursive;
  font-weight: 400;
  font-size: clamp(26px, 4vw, 42px);
}

.section p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}

.event-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.event-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #e8efea;
}

.event-cover-link {
  display: block;
}

.event-body {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.event-card h3 {
  margin: 0;
  font-family: Lobster, "Brush Script MT", cursive;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.15;
}

.event-card h3 a {
  text-decoration: none;
}

.event-card h3 a:hover {
  color: var(--green);
}

.event-card p {
  margin: 0;
  color: #33433a;
}

.review {
  border-left: 4px solid var(--red);
  padding-left: 10px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.gallery img {
  aspect-ratio: 1;
  border-radius: 6px;
}

.gallery a {
  display: block;
  border-radius: 6px;
  overflow: hidden;
}

.event-detail-link,
.back-link,
.share-button,
.history-more button {
  color: var(--green-dark);
  font-weight: 900;
}

.event-detail-link {
  justify-self: start;
}

.history-more {
  display: flex;
  justify-content: center;
  padding: 18px 0 0;
  color: var(--muted);
}

.history-more button,
.share-button {
  min-height: 42px;
  border: 1px solid var(--green);
  border-radius: 6px;
  background: #edf5ef;
  padding: 8px 14px;
  font: inherit;
  cursor: pointer;
}

.event-detail-page {
  min-height: 60vh;
}

.public-event-detail {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  min-height: calc(100vh - 104px);
}

.event-detail-hero {
  min-height: 520px;
  background: #e8efea;
}

.event-detail-hero img {
  position: sticky;
  top: 103px;
  width: 100%;
  height: calc(100vh - 103px);
  object-fit: cover;
}

.event-detail-content {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: clamp(24px, 5vw, 72px);
}

.event-detail-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.event-detail-heading h1 {
  margin: 0;
  font-family: Lobster, "Brush Script MT", cursive;
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.organizer,
.event-lead,
.event-review p {
  margin: 0;
}

.event-lead {
  max-width: 720px;
  font-size: 19px;
}

.event-review {
  display: grid;
  gap: 8px;
  border-left: 4px solid var(--red);
  padding-left: 16px;
}

.event-review h2,
.detail-gallery h2 {
  margin: 0;
  font-size: 24px;
}

.detail-gallery {
  display: grid;
  gap: 10px;
}

.detail-gallery > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.detail-gallery img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
}

.empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.65);
  padding: 20px;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 22px clamp(16px, 4vw, 42px);
  color: var(--muted);
}

@media (max-width: 720px) {
  .site-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav nav {
    width: 100%;
  }

  .site-nav nav a {
    flex: 1 1 auto;
    text-align: center;
  }

  .hero {
    min-height: 52vh;
    padding: 28px 16px;
  }

  .section {
    width: min(100% - 20px, 1180px);
    padding: 24px 0;
  }

  .section-head,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .public-event-detail {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .event-detail-hero {
    min-height: auto;
  }

  .event-detail-hero img {
    position: static;
    height: auto;
    max-height: 58vh;
    aspect-ratio: 4 / 3;
  }

  .event-detail-content {
    padding: 22px 14px 34px;
  }

  .event-detail-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .share-button {
    align-self: start;
  }

  .detail-gallery > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
