:root {
  --color-sea: #1a3a4a;
  --color-sand: #f5f0e8;
  --color-amber: #c8874a;
  --color-mist: #e8edf0;
  --color-green: #4a6b4a;
  --color-text: #2c2c2c;
  --color-text-muted: #6b6b6b;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Source Sans 3', sans-serif;
  --radius: 4px;
  --shadow: 0 2px 12px rgba(26, 58, 74, 0.08);
  --max-width: 1100px;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: radial-gradient(circle at top, #f8f5ef 0, #e7edf1 55%, #d9e2e7 100%);
  min-height: 100vh;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(245,240,232,0.96), rgba(245,240,232,0.92));
  border-bottom: 1px solid rgba(26,58,74,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0.5rem;
  gap: 1.5rem;
}

.brand-link {
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
}

.brand-mark {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-sea);
}

.brand-word {
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  position: relative;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding-bottom: 0.25rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-amber);
  transition: width 0.2s ease-out;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.is-active {
  color: var(--color-sea);
}

.nav-link.is-active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid rgba(26,58,74,0.2);
  background: rgba(245,240,232,0.9);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 1.2rem;
  height: 2px;
  background: var(--color-sea);
  border-radius: 999px;
}

.site-main {
  flex: 1;
  padding: 2.5rem 0 3rem;
}

.page-head h1 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  margin: 0 0 0.5rem;
  color: var(--color-sea);
}

.page-intro {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--color-sea);
  margin: 0 0 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(26,58,74,0.1);
}

.global-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 3rem;
  align-items: start;
}

.global-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 6rem;
}

.events-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.section-heading h2 {
  font-family: var(--font-heading);
  margin: 0 0 1rem;
  font-size: 1.4rem;
  color: var(--color-sea);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.card {
  background: rgba(245,240,232,0.98);
  border-radius: 16px;
  padding: 1.3rem 1.4rem 1.4rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(26,58,74,0.06);
}

.card h3 {
  font-family: var(--font-heading);
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
}

.card p {
  margin: 0.35rem 0;
  line-height: 1.6;
}

.meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.meta-location::before {
  content: '●';
  font-size: 0.5rem;
  margin-right: 0.3rem;
  vertical-align: middle;
  color: var(--color-green);
}

.empty-state {
  margin-top: 1rem;
}

.empty-card {
  border-radius: 18px;
  padding: 1.5rem 1.6rem;
  background: repeating-linear-gradient(
    135deg,
    rgba(232,237,240,0.7),
    rgba(232,237,240,0.7) 6px,
    rgba(245,240,232,0.7) 6px,
    rgba(245,240,232,0.7) 12px
  );
  border: 1px dashed rgba(26,58,74,0.25);
  color: var(--color-text);
}

.empty-card p {
  margin: 0;
  font-weight: 500;
}

.events-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-sponsors {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-sponsor-card {
  background: rgba(255,255,255,0.85);
  border-radius: 16px;
  border: 1px solid rgba(26,58,74,0.06);
  overflow: hidden;
  box-shadow: var(--shadow);
  line-height: 0;
}

.sponsor-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.2s ease-in-out;
}

.sidebar-ad-card a:hover .ad-image {
  transform: scale(1.02);
}

.sidebar-card {
  background: rgba(255,255,255,0.85);
  border-radius: 16px;
  padding: 1.2rem 1.3rem;
  border: 1px solid rgba(26,58,74,0.06);
}

.sidebar-card.muted {
  background: rgba(232,237,240,0.9);
}

.sidebar-card h2,
.sidebar-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-sea);
}

.pill-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem -0.25rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pill-list li {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(26,58,74,0.06);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.text-link {
  color: var(--color-sea);
  text-decoration: none;
  border-bottom: 1px solid rgba(26,58,74,0.2);
}

.text-link:hover {
  border-bottom-color: var(--color-amber);
}

.site-footer {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid rgba(26,58,74,0.1);
  background: rgba(245,240,232,0.95);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .header-inner {
    padding-inline: 1rem;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: rgba(245,240,232,0.98);
    border-bottom: 1px solid rgba(26,58,74,0.08);
    transform-origin: top;
    transform: scaleY(0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease-out, transform 0.16s ease-out;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 0.5rem 1.5rem 1rem;
    gap: 0.6rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-header.is-open .main-nav {
    opacity: 1;
    transform: scaleY(1);
    pointer-events: auto;
  }

  .global-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .global-sidebar {
    position: static;
  }

  .site-main {
    padding-top: 1.8rem;
  }

  .page-head h1 {
    font-size: 2rem;
  }
}

/* ── Page body ─────────────────────────────────────────────── */
.page-body {
  margin-top: 2rem;
}

.prose {
  max-width: 68ch;
  line-height: 1.8;
  font-size: 1rem;
  color: var(--color-text);
}

.prose p {
  margin: 0 0 1rem;
}

.prose h2,
.prose h3 {
  font-family: var(--font-heading);
  color: var(--color-sea);
  margin: 1.5rem 0 0.5rem;
}

.news-card h3 {
  font-family: var(--font-heading);
  margin: 0 0 0.3rem;
  font-size: 1.3rem;
  color: var(--color-sea);
}

.footer-admin-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  opacity: 0.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: opacity 0.15s;
}

.footer-admin-link:hover {
  opacity: 1;
}