:root {
  --bg: #eef8ff;
  --paper: #ffffff;
  --ink: #16384a;
  --muted: #4d6a7d;
  --brand: #2d7dbb;
  --brand-2: #6bb7e9;
  --accent: #dff3ff;
  --line: #cfe8f7;
  --shadow: 0 16px 40px rgba(24, 72, 105, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 5%, #edf7ff 0, transparent 40%),
    radial-gradient(circle at 85% 10%, #dff5ff 0, transparent 35%),
    var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand strong {
  display: block;
  font-size: 1rem;
  line-height: 1.1;
}

.brand span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: 0.9rem;
  padding: 8px 10px;
  border-radius: 999px;
}

.nav-links a.cta {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 8px 20px rgba(45, 125, 187, 0.22);
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.lang-switch a {
  padding: 8px 14px;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--ink);
}

.lang-switch a.active {
  background: var(--brand);
  color: #fff;
}

.hero {
  padding: 56px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 26px;
  align-items: stretch;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 34px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  color: var(--brand);
  font-weight: 700;
}

.hero h1 {
  margin: 10px 0 14px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.1;
  font-family: "Merriweather", Georgia, serif;
}

.hero p {
  margin: 0;
  color: var(--muted);
}

.actions {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.btn.primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(140deg, var(--brand), var(--brand-2));
}

.hero-media {
  padding: 12px;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  border-radius: 14px;
}

.hero-media img[data-dynamic-hero] {
  opacity: 0;
  transition: opacity 0.25s ease;
}

.hero-media img[data-dynamic-hero].hero-ready {
  opacity: 1;
}

.section {
  padding: 24px 0;
}

.section h2 {
  margin: 0 0 10px;
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-family: "Merriweather", Georgia, serif;
}

.section p {
  margin: 0;
  color: var(--muted);
}

.quick-links {
  margin-top: 16px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.quick-links a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 14px;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.2s ease;
}

.quick-links a:hover {
  transform: translateY(-2px);
}

.stats {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.events-grid {
  margin-top: 16px;
  display: grid;
  gap: 14px;
  grid-template-columns: 1.2fr 1fr;
}

.calendar-card,
.event-list {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

.calendar-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.calendar-head h3,
.event-list h3 {
  margin: 0;
  font-size: 1.02rem;
}

.calendar-head span {
  color: var(--muted);
  font-size: 0.88rem;
}

.calendar-pickers {
  display: flex;
  gap: 8px;
}

.picker-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
}

.picker-btn:hover {
  border-color: #9ed2f2;
  background: #f4fbff;
}

.picker-popover {
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 8px;
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
}

.picker-popover[hidden] {
  display: none;
}

.picker-option {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.picker-option:hover {
  border-color: #9ed2f2;
  background: #f4fbff;
}

.picker-option.active {
  background: linear-gradient(140deg, var(--brand), var(--brand-2));
  border-color: transparent;
  color: #fff;
  font-weight: 700;
}

.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-weekdays {
  margin-bottom: 8px;
}

.calendar-weekdays span {
  text-align: center;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.calendar-days span {
  display: grid;
  place-items: center;
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #f8fdff;
  color: var(--ink);
  font-size: 0.9rem;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.calendar-days span.muted {
  color: #90a8b9;
  background: #f8fbfd;
}

.calendar-days span.event-day {
  background: linear-gradient(140deg, var(--brand), var(--brand-2));
  border-color: transparent;
  color: #fff;
  font-weight: 700;
}

.calendar-days span.today {
  position: relative;
  border-color: #8ec4e6;
  background: linear-gradient(180deg, #f4fbff 0%, #dff1ff 100%);
  color: #0d486f;
  font-weight: 800;
  box-shadow: inset 0 0 0 2px rgba(45, 125, 187, 0.32), 0 3px 10px rgba(45, 125, 187, 0.16);
}

.calendar-days span.today::after {
  content: "";
  position: absolute;
  bottom: 4px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #1f6fa4;
}

.calendar-days span.event-day.today {
  border-color: #144f79;
  background: linear-gradient(145deg, #1e6598, #2d7dbb);
  color: #ffffff;
  box-shadow: inset 0 0 0 2px rgba(221, 241, 255, 0.58), 0 5px 14px rgba(14, 70, 107, 0.34);
}

.calendar-days span.event-day.today::after {
  background: #dff2ff;
}

.calendar-days span.selected-day {
  border-color: #1d5f8d;
  box-shadow: inset 0 0 0 2px rgba(29, 95, 141, 0.28);
}

/* Today style variants: set on <body data-today-style="..."> */
body[data-today-style="minimal-ring"] .calendar-days span.today {
  border: 2px solid #2f78ad;
  background: #f4fbff;
  color: #0e4368;
  box-shadow: inset 0 0 0 1px rgba(47, 120, 173, 0.26), 0 0 0 2px rgba(88, 163, 214, 0.22), 0 0 12px rgba(64, 142, 195, 0.26);
}

body[data-today-style="minimal-ring"] .calendar-days span.today::after {
  display: none;
}

body[data-today-style="minimal-ring"] .calendar-days span.event-day.today {
  border-color: #0f4f7a;
  background: linear-gradient(145deg, #1d628f, #2b79b3);
  color: #ffffff;
  box-shadow: inset 0 0 0 2px rgba(220, 241, 255, 0.55), 0 0 0 2px rgba(73, 151, 204, 0.32), 0 0 14px rgba(34, 108, 156, 0.35);
}

body[data-today-style="solid-pill"] .calendar-days span.today {
  border-color: transparent;
  background: linear-gradient(145deg, #2f7fb8, #2a6ea0);
  color: #ffffff;
  box-shadow: 0 5px 12px rgba(20, 77, 117, 0.3);
}

body[data-today-style="solid-pill"] .calendar-days span.today::after {
  background: rgba(222, 243, 255, 0.95);
}

body[data-today-style="solid-pill"] .calendar-days span.event-day.today {
  border-color: transparent;
  background: linear-gradient(145deg, #0f517f, #1f689d);
  box-shadow: inset 0 0 0 2px rgba(227, 245, 255, 0.6), 0 6px 14px rgba(10, 58, 90, 0.38);
}

body[data-today-style="glow-only"] .calendar-days span.today {
  border-color: #b8ddef;
  background: #f8fcff;
  color: #154f76;
  box-shadow: 0 0 0 2px rgba(77, 145, 189, 0.22), 0 0 16px rgba(77, 145, 189, 0.35);
}

body[data-today-style="glow-only"] .calendar-days span.today::after {
  background: #2f7fb8;
}

body[data-today-style="glow-only"] .calendar-days span.event-day.today {
  border-color: #3f8ec3;
  background: linear-gradient(145deg, #1f6b9d, #2f7fb8);
  box-shadow: 0 0 0 2px rgba(173, 221, 247, 0.42), 0 0 18px rgba(58, 134, 186, 0.45);
}

.event-list ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--ink);
}

.event-list li + li {
  margin-top: 8px;
}

.event-list li {
  color: var(--ink);
}

.event-list li.active-day-event {
  background: #e8f5ff;
  border-left: 4px solid #2d7dbb;
  border-radius: 8px;
  padding: 6px 8px;
  margin-left: -8px;
}

.events-empty {
  margin-top: 12px;
  font-size: 0.92rem;
  color: var(--muted);
}

.stat {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.stat strong {
  font-size: 1.2rem;
  color: var(--brand);
}

.gallery {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(12, 1fr);
  margin-top: 16px;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #e9f4fb;
}

.gallery .wide {
  grid-column: span 8;
  min-height: 190px;
  object-fit: contain;
  padding: 4px;
}

.gallery .wide:nth-child(3n) {
  grid-column: span 12;
  min-height: 220px;
}

.gallery .tall {
  grid-column: span 4;
  min-height: 180px;
}

.gallery-admin {
  margin-top: 16px;
}

.gallery-admin details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
}

.gallery-admin summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}

.gallery-admin p {
  margin: 10px 0;
  color: var(--muted);
}

.gallery-admin input[type="file"] {
  display: none;
}

.upload-btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  margin-right: 10px;
}

.gallery-admin .btn {
  margin-top: 10px;
}

.gallery-admin small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.people {
  margin-top: 16px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.person {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}

.person h3 {
  margin: 0;
  font-size: 1rem;
}

.person p {
  margin-top: 2px;
  font-size: 0.9rem;
}

.info-band {
  margin-top: 20px;
  padding: 18px;
  border-radius: 14px;
  background: linear-gradient(120deg, #edf9ff, #dff3ff);
  border: 1px solid var(--line);
}

.info-band h3 {
  margin: 0 0 10px;
  color: var(--ink);
}

.info-band p {
  margin: 6px 0;
  color: var(--ink);
}

.footer {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding: 24px 0 34px;
  color: var(--muted);
  font-size: 0.92rem;
}

.social {
  margin-top: 10px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: reveal 0.7s ease forwards;
}

.reveal.delay-1 {
  animation-delay: 0.08s;
}

.reveal.delay-2 {
  animation-delay: 0.16s;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }

  .hero-media img {
    min-height: 250px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .gallery .wide,
  .gallery .tall {
    grid-column: span 12;
    min-height: 220px;
  }

  .nav-wrap {
    align-items: flex-start;
    flex-direction: column;
  }
}
