:root {
  --bg: #efe7d6;
  --paper: #fffaf0;
  --ink: #242016;
  --muted: #655941;
  --accent: #2f5f3f;
  --accent-soft: #c6d8a5;
  --card: #f6f0e2;
  --ring: #7f6a3d;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 700px at 10% -20%, #d8c9a8 0%, transparent 60%),
    radial-gradient(1000px 550px at 90% 0%, #cddbb7 0%, transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
}

.bg-shape {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(30px);
  opacity: 0.55;
  pointer-events: none;
}

.bg-shape-1 {
  width: 220px;
  height: 220px;
  background: #b4c789;
  top: 14%;
  right: -80px;
}

.bg-shape-2 {
  width: 260px;
  height: 260px;
  background: #d8b58a;
  bottom: -90px;
  left: -70px;
}

.hero {
  max-width: 1060px;
  margin: 0 auto;
  padding: 2.7rem 1rem 1.5rem;
  animation: fadeSlide 0.8s ease both;
}

.kicker {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0.35rem 0 0.7rem;
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.06;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  max-width: 16ch;
}

h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
}

.lead {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
}

.meta {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.meta-pill {
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  font-size: 0.93rem;
  color: #283418;
  background: linear-gradient(120deg, #d8e8bb, #edf7d4);
  border: 1px solid #99ab78;
}

.content {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 1rem 2.25rem;
}

.controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem;
  align-items: end;
  margin-bottom: 1.2rem;
}

.filter-group {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.year-btn {
  border: 1px solid #9a8a61;
  color: #2d2617;
  background: var(--paper);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  font: inherit;
  transition: transform 0.16s ease, background 0.16s ease;
}

.year-btn:hover,
.year-btn:focus-visible {
  transform: translateY(-1px);
  background: #fff6e4;
}

.year-btn.active {
  background: linear-gradient(120deg, #d7e8b8, #e8f3d0);
  border-color: #829b5f;
}

.search-wrap {
  display: grid;
  gap: 0.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

input[type="search"] {
  width: min(290px, 100%);
  padding: 0.54rem 0.66rem;
  border-radius: 9px;
  border: 1px solid #aea17d;
  font: inherit;
  background: #fffef9;
}

input[type="search"]:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 1px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.9rem;
}

.card {
  background: var(--card);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #ccb995;
  box-shadow: 0 6px 20px rgba(74, 52, 20, 0.11);
  cursor: pointer;
  transform: translateY(12px);
  opacity: 0;
  animation: cardIn 0.45s ease forwards;
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.card-copy {
  padding: 0.62rem 0.68rem 0.78rem;
}

.card-date {
  margin: 0;
  font-size: 0.81rem;
  color: #5f543c;
  letter-spacing: 0.02em;
}

.card-title {
  margin: 0.26rem 0 0;
  font-size: 0.95rem;
  line-height: 1.35;
}

.empty {
  margin: 1rem 0;
  color: var(--muted);
}

.video-section {
  margin-top: 2rem;
  background: linear-gradient(160deg, #f8f3e7 0%, #f0e7d4 100%);
  border: 1px solid #c8b189;
  border-radius: 16px;
  padding: 1rem;
}

.video-section p {
  margin-top: 0;
  color: var(--muted);
}

.video-section video {
  width: 100%;
  border-radius: 10px;
  background: #171410;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(18, 18, 16, 0.9);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox figure {
  margin: 0;
  max-height: 100%;
}

.lightbox img {
  max-width: min(92vw, 1050px);
  max-height: 78vh;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
}

.lightbox figcaption {
  margin-top: 0.7rem;
  color: #ece6d8;
  text-align: center;
}

.lightbox button {
  font: inherit;
  border: 1px solid #b8af95;
  color: #f2eddc;
  background: rgba(33, 33, 26, 0.65);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
}

.lightbox button:focus-visible {
  outline: 2px solid #d8c58e;
  outline-offset: 2px;
}

.lightbox-close {
  position: fixed;
  top: 0.85rem;
  right: 0.85rem;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 800px) {
  .controls {
    grid-template-columns: 1fr;
  }

  input[type="search"] {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .lightbox {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    justify-items: center;
    padding-top: 2.6rem;
  }

  .lightbox-nav {
    position: fixed;
    bottom: 1rem;
  }

  .lightbox-nav.prev {
    left: 1rem;
  }

  .lightbox-nav.next {
    right: 1rem;
  }
}
