
:root {
  --bg: #efe7d6;
  --bg-soft: #f7f1e5;
  --card: rgba(255, 252, 246, 0.82);
  --text: #2f281f;
  --muted: #675c4b;
  --accent: #6f7b45;
  --accent-dark: #556036;
  --line: rgba(91, 77, 55, 0.18);
  --shadow: 0 18px 45px rgba(62, 47, 27, 0.10);
  --radius: 22px;
  --maxw: 980px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(164, 144, 98, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(110, 132, 90, 0.10), transparent 26%),
    linear-gradient(180deg, #f4eddf 0%, var(--bg) 38%, #e7ddca 100%);
  position: relative;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    radial-gradient(#000 0.6px, transparent 0.6px),
    radial-gradient(#000 0.6px, transparent 0.6px);
  background-position: 0 0, 12px 12px;
  background-size: 24px 24px;
}

.wrap {
  width: min(calc(100% - 28px), var(--maxw));
  margin: 0 auto;
}

.hero {
  padding: 42px 0 24px;
}

.hero .wrap {
  background: linear-gradient(180deg, rgba(255,255,255,0.58), rgba(255,255,255,0.40));
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
  padding: 30px 20px 28px;
  backdrop-filter: blur(8px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.86rem;
}

h1, h2 {
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}

h1 {
  font-size: clamp(2.1rem, 4vw, 4rem);
  margin-bottom: 14px;
}

h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  margin-bottom: 10px;
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 44rem;
  margin: 0 0 22px;
}

.info-card {
  display: inline-block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 8px 24px rgba(70, 53, 31, 0.08);
}

.info-card p {
  margin: 0;
}

.info-card p + p {
  margin-top: 4px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.btn {
  display: inline-block;
  padding: 13px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-solid {
  background: var(--accent);
  color: #fffdf7;
  box-shadow: 0 10px 20px rgba(93, 106, 55, 0.20);
}

.btn-solid:hover {
  background: var(--accent-dark);
}

.btn-outline {
  color: var(--accent-dark);
  border: 1px solid rgba(111, 123, 69, 0.34);
  background: rgba(255, 253, 247, 0.68);
}

.section {
  margin: 28px 0;
  background: rgba(255, 252, 246, 0.64);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 18px;
  backdrop-filter: blur(7px);
}

.program ul {
  margin: 10px 0 0;
  padding-left: 1.2rem;
}

.program li + li {
  margin-top: 6px;
}

.small {
  color: var(--muted);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 14px;
  align-items: baseline;
  margin-bottom: 10px;
}

.place {
  margin: 0;
  color: var(--accent-dark);
  font-style: italic;
}

blockquote {
  margin: 0;
  padding: 16px 18px;
  border-left: 4px solid rgba(111, 123, 69, 0.75);
  background: rgba(244, 239, 228, 0.75);
  border-radius: 16px;
  color: #3b3429;
  font-style: italic;
}

.author {
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.gallery img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
  border-radius: 18px;
  border: 1px solid rgba(104, 88, 63, 0.12);
  box-shadow: 0 8px 20px rgba(58, 42, 22, 0.10);
  background: #ddd2bd;
}

@media (max-width: 720px) {
  body {
    font-size: 17px;
  }

  .hero {
    padding-top: 16px;
  }

  .hero .wrap,
  .section {
    padding: 20px 15px;
    border-radius: 22px;
  }

  .actions {
    flex-direction: column;
  }

  .btn {
    text-align: center;
    width: 100%;
  }

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

  .gallery img {
    height: auto;
    aspect-ratio: 4 / 3;
  }
}


body.modal-open {
  overflow: hidden;
}

.gallery-item {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: zoom-in;
  border-radius: 18px;
}

.gallery-item:focus-visible {
  outline: 3px solid rgba(111, 123, 69, 0.5);
  outline-offset: 3px;
}

.gallery-item img {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.015);
  box-shadow: 0 12px 24px rgba(58, 42, 22, 0.14);
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(24, 20, 15, 0.82);
  z-index: 1000;
}

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

.lightbox-inner {
  max-width: min(1100px, 100%);
  max-height: calc(100vh - 48px);
}

.lightbox img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 48px);
  width: auto;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
  background: #f3ead9;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.92);
  color: #3d3328;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.14);
}

@media (max-width: 720px) {
  .lightbox {
    padding: 14px;
  }

  .lightbox-inner,
  .lightbox img {
    max-height: calc(100vh - 28px);
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
    font-size: 1.8rem;
  }
}


.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.92);
  color: #3d3328;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev {
  left: 14px;
}

.lightbox-next {
  right: 14px;
}

@media (max-width: 720px) {
  .lightbox-nav {
    width: 44px;
    height: 44px;
    font-size: 1.9rem;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }
}
