:root {
  --ink: #21452f;
  --muted: #4d6b56;
  --sky: #e9f7ff;
  --grass: #d8efbe;
  --leaf: #2f6f3e;
  --sun: #ffd477;
  --berry: #ff7a8a;
  --cloud: #fdfcf8;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(27, 53, 36, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Nunito Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 212, 119, 0.45), transparent 55%),
    radial-gradient(circle at 86% 18%, rgba(255, 122, 138, 0.25), transparent 50%),
    radial-gradient(circle at 20% 85%, rgba(47, 111, 62, 0.18), transparent 55%),
    linear-gradient(180deg, var(--sky) 0%, #f6fff1 48%, #f9f4e7 100%);
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 260px;
  height: 260px;
  border-radius: 42% 58% 62% 38%;
  filter: blur(0px);
  opacity: 0.32;
  z-index: -1;
}

body::before {
  top: 6%;
  left: -50px;
  background: linear-gradient(135deg, rgba(255, 212, 119, 0.5), rgba(255, 255, 255, 0.1));
}

body::after {
  bottom: 4%;
  right: -70px;
  background: linear-gradient(135deg, rgba(47, 111, 62, 0.45), rgba(255, 212, 119, 0.12));
}

.grain {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Ccircle cx='10' cy='18' r='3' fill='%23ffd477' fill-opacity='0.3'/%3E%3Ccircle cx='62' cy='32' r='2.5' fill='%232f6f3e' fill-opacity='0.25'/%3E%3Ccircle cx='118' cy='52' r='3.2' fill='%23ff7a8a' fill-opacity='0.22'/%3E%3Ccircle cx='26' cy='86' r='2.8' fill='%232f6f3e' fill-opacity='0.2'/%3E%3Ccircle cx='96' cy='98' r='2.4' fill='%23ffd477' fill-opacity='0.22'/%3E%3Ccircle cx='132' cy='118' r='3' fill='%23ff7a8a' fill-opacity='0.2'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.4;
  z-index: -1;
}

.page {
  max-width: 980px;
  margin: 0 auto;
  padding: 64px 24px 96px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.hero {
  padding: 48px 48px 40px;
  background: var(--cloud);
  border-radius: 30px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(47, 111, 62, 0.08);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 212, 119, 0.35), transparent 50%),
    radial-gradient(circle at 85% 20%, rgba(111, 196, 121, 0.22), transparent 45%),
    radial-gradient(circle at 20% 90%, rgba(255, 122, 138, 0.18), transparent 45%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(47, 111, 62, 0.08), transparent 45%),
    linear-gradient(300deg, rgba(255, 212, 119, 0.25), transparent 40%);
  pointer-events: none;
}

.hero-top {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.badge {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--leaf);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 18px rgba(47, 111, 62, 0.25);
}

.badge.outline {
  background: transparent;
  color: var(--leaf);
  border: 2px dashed rgba(47, 111, 62, 0.35);
  box-shadow: none;
}

.title {
  font-family: "Fredoka", "Trebuchet MS", sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 3.7vw, 3.5rem);
  line-height: 1.15;
  margin: 0 0 12px;
}

.subtitle {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 680px;
}

.hero-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  padding-top: 14px;
  border-top: 2px dotted rgba(47, 111, 62, 0.25);
}

.eyebrow {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--muted);
}

.info {
  margin: 0;
  font-weight: 600;
}

.card {
  background: var(--cloud);
  padding: 32px 36px;
  border-radius: 26px;
  box-shadow: var(--shadow);
  border: 2px solid rgba(47, 111, 62, 0.08);
}

.section-title {
  font-family: "Fredoka", "Trebuchet MS", sans-serif;
  font-size: 1.6rem;
  margin: 0 0 14px;
}

.lead {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
}

.schedule {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.schedule-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.section-note {
  margin: 0;
  color: var(--muted);
}

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

.option {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  padding: 26px 26px 22px;
  border: 2px dashed rgba(47, 111, 62, 0.2);
  box-shadow: 0 12px 30px rgba(27, 53, 36, 0.08);
}

.option h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-family: "Fredoka", "Trebuchet MS", sans-serif;
}

.option p {
  margin: 0 0 14px;
  color: var(--muted);
}

.option.highlight {
  border: 2px solid rgba(47, 111, 62, 0.28);
  background: linear-gradient(140deg, rgba(47, 111, 62, 0.08), rgba(255, 212, 119, 0.16));
}

.links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.links a {
  color: var(--leaf);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 2px solid transparent;
  width: fit-content;
}

.links a:hover {
  border-bottom: 2px solid var(--leaf);
}

.gallery {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.gallery-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chapters {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.chapters-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chapter {
  background: var(--cloud);
  padding: 32px 36px;
  border-radius: 26px;
  box-shadow: var(--shadow);
  border: 2px solid rgba(47, 111, 62, 0.08);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.chapter-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chapter-title {
  margin: 0;
  font-family: "Fredoka", "Trebuchet MS", sans-serif;
  font-size: 1.45rem;
}

.chapter-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 24px;
  align-items: start;
}

.chapter-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--muted);
  font-size: 1rem;
}

.chapter-text h4 {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.chapter-text p {
  margin: 0;
}

.chapter-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
}

.chapter-list li {
  line-height: 1.4;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.photo-grid.chapter-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.photo-grid.chapter-grid .photo img {
  height: 170px;
}

.photo {
  margin: 0;
  padding: 12px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 14px 30px rgba(27, 53, 36, 0.12);
  border: 2px solid rgba(47, 111, 62, 0.12);
  --tilt: 0deg;
  transform: rotate(var(--tilt));
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.photo-button {
  display: block;
  width: 100%;
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: zoom-in;
  position: relative;
}

.photo img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.photo:hover {
  transform: translateY(-6px) rotate(calc(var(--tilt) + 1deg));
  box-shadow: 0 18px 36px rgba(27, 53, 36, 0.2);
}

.tilt-left {
  --tilt: -1.6deg;
}

.tilt-right {
  --tilt: 1.4deg;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 32, 22, 0.6);
  backdrop-filter: blur(2px);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: min(1200px, 96vw);
  max-height: 90vh;
  background: var(--cloud);
  border-radius: 24px;
  padding: 18px 22px 22px;
  box-shadow: 0 24px 60px rgba(16, 30, 21, 0.35);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lightbox-image {
  width: 100%;
  height: auto;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 16px;
  background: #ffffff;
}

.lightbox-close {
  align-self: flex-end;
  border: none;
  background: var(--leaf);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.lightbox-close:hover {
  background: #245a33;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: none;
  background: rgba(33, 69, 47, 0.9);
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(16, 30, 21, 0.25);
}

.lightbox-arrow.prev {
  left: 14px;
}

.lightbox-arrow.next {
  right: 14px;
}

.lightbox-arrow:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.lightbox-arrow:hover:not(:disabled) {
  background: rgba(33, 69, 47, 1);
}

.closing {
  text-align: center;
  font-size: 1.1rem;
  color: var(--muted);
}

.signature {
  margin-top: 12px;
  font-family: "Fredoka", "Trebuchet MS", sans-serif;
  font-size: 1.4rem;
  color: var(--ink);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 720px) {
  .page {
    padding: 48px 18px 80px;
  }

  .hero {
    padding: 36px 28px;
  }

  .card {
    padding: 28px;
  }

  .chapter {
    padding: 28px;
  }

  .photo img {
    height: 180px;
  }
}

@media (max-width: 900px) {
  .chapter-body {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
