:root {
  color-scheme: dark;
  --bg: #000000;
  --panel: #1d150f;
  --accent: #c77f0f;
  --accent-dark: #8d5600;
  --text: #f5efe6;
  --muted: #c8b79b;
  --border: #4b3725;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background: #000000;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.page-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0 24px;
  flex-wrap: wrap;
}

.logo img {
  height: 80px;
  width: auto;
}

.contact-info {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.contact-info a {
  color: var(--accent);
  text-decoration: none;
}

.contact-info a:hover {
  color: var(--accent-dark);
}

.navbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.nav-button {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.nav-button.secondary {
  background: var(--panel);
  color: var(--accent-dark);
  border: 1px solid var(--border);
  box-shadow: none;
}

.hero-text,
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
}

.hero-text p {
  margin: 0;
  font-size: 1.08rem;
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  align-items: start;
}

.image-gallery figure {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}

.image-gallery img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  transform-origin: center center;
}

.image-gallery figure:hover img {
  transform: scale(1.03);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.image-gallery figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.home-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.home-gallery,
.image-gallery {
  min-width: 0;
}

.home-gallery figure,
.image-gallery figure {
  margin: 0;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}

.home-gallery figure:nth-child(1),
.home-gallery figure:nth-child(4),
.home-gallery figure:nth-child(7) {
  grid-column: span 2;
}

.home-gallery img {
  width: 100%;
  height: 220px;
  display: block;
  object-fit: contain;
  background: #120f0a;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  transform-origin: center center;
}

.home-gallery figure:hover img {
  transform: scale(1.03);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.home-gallery figure:nth-child(1) img,
.home-gallery figure:nth-child(4) img,
.home-gallery figure:nth-child(7) img {
  height: 280px;
}

form {
  display: grid;
  gap: 12px;
}

label {
  font-weight: 600;
}

input,
textarea,
button {
  font: inherit;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

button {
  background: var(--accent);
  color: white;
  cursor: pointer;
  border: none;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.calendar-list {
  display: grid;
  gap: 14px;
}

.calendar-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  border: 2px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(135deg, #2a221d 0%, #1d150f 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
  color: #fff8eb;
  -webkit-text-fill-color: #fff8eb;
}

.calendar-content {
  flex: 1;
  min-width: 0;
}

.calendar-content strong,
.calendar-content p,
.calendar-content .event-meta,
.calendar-content .event-meta-list {
  color: #fff8eb;
  -webkit-text-fill-color: #fff8eb;
}

.calendar-content strong {
  display: block;
  font-size: 1.02rem;
  margin-bottom: 6px;
  font-weight: 800;
}

.calendar-content p {
  margin: 0 0 8px;
  line-height: 1.55;
  font-size: 0.98rem;
  color: #f8efe0;
  -webkit-text-fill-color: #f8efe0;
}

.event-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.event-meta {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.9rem;
  color: #fff8eb;
}

.calendar-date {
  min-width: 78px;
  text-align: center;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #c77f0f 0%, #8d5600 100%);
  color: #fff8eb;
  border-radius: 12px;
  padding: 10px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.calendar-date .month,
.calendar-date .day {
  color: #fff8eb;
  -webkit-text-fill-color: #fff8eb;
}

.calendar-date .day {
  font-size: 1.35rem;
  font-weight: 800;
}

@media (max-width: 900px) {
  .home-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-gallery figure:nth-child(1),
  .home-gallery figure:nth-child(4),
  .home-gallery figure:nth-child(7) {
    grid-column: span 2;
  }
}

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

  .page-content {
    padding: 16px 14px 32px;
  }
}

@media (max-width: 640px) {
  .home-gallery {
    grid-template-columns: 1fr;
  }

  .home-gallery figure:nth-child(1),
  .home-gallery figure:nth-child(4),
  .home-gallery figure:nth-child(7) {
    grid-column: auto;
  }
}