/* Shared stylesheet for static SEO event pages (/events/*.html) and /archive.html */
:root {
  --bg: #f3efe6;
  --surface: #fffdf9;
  --border: rgba(60, 50, 35, 0.12);
  --shadow: 0 1px 2px rgba(40, 32, 20, 0.05), 0 8px 24px rgba(40, 32, 20, 0.07);
  --text: #2f2a24;
  --muted: #6e655b;
  --accent: #4f6c7d;
  --accent-hover: #3e5868;
  --pill-bg: rgba(60, 50, 35, 0.06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #181d22;
    --surface: #21272d;
    --border: rgba(255, 255, 255, 0.09);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 10px 28px rgba(0, 0, 0, 0.35);
    --text: #eae5dc;
    --muted: #a49e93;
    --accent: #7e9bac;
    --accent-hover: #93b0c1;
    --pill-bg: rgba(255, 255, 255, 0.07);
  }
}

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

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-nav__inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.brand img { width: 22px; height: 22px; border-radius: 50%; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 500;
}
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none;
  font-weight: 500;
}
.nav-cta:hover { background: var(--accent-hover); }

.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

.crumbs {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 28px 32px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
}
.pill--cat {
  background: color-mix(in srgb, var(--cat) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--cat) 32%, transparent);
}
.pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cat, var(--accent));
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.cred-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0 0 18px;
  padding: 9px 14px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--cred) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--cred) 35%, transparent);
  font-size: 13px;
}
.cred-box__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cred);
}
.cred-box__meaning { color: var(--muted); }

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px 20px;
  padding: 14px 16px;
  margin: 0 0 22px;
  border-radius: 10px;
  background: var(--pill-bg);
  font-size: 13px;
}
.meta-item dt {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 2px;
}
.meta-item dd { margin: 0; font-weight: 500; }
.meta-note {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--pill-bg);
  color: var(--text);
}
.btn:hover { color: var(--text); filter: brightness(0.97); }
.btn--primary {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}
.btn--primary:hover { background: var(--accent-hover); color: #fff; }

.prose { font-size: 15.5px; line-height: 1.72; }
.prose p { margin: 0 0 14px; }
.prose p:last-child { margin-bottom: 0; }

.section-heading {
  margin: 28px 0 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.source-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.source-list a {
  display: block;
  padding: 10px 14px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--pill-bg);
  text-decoration: none;
  color: var(--text);
  overflow-wrap: anywhere;
}
.source-list a:hover { border-color: var(--accent); }
.source-list strong { display: block; font-size: 13px; font-weight: 600; }
.source-list small { display: block; font-size: 12px; color: var(--muted); }

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}
.related-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.related-card:hover { border-color: var(--accent); color: var(--text); }
.related-card strong { font-size: 14px; line-height: 1.35; }
.related-card span { font-size: 12px; color: var(--muted); }

/* Archive page controls & list */
.archive-head { margin-bottom: 20px; }
.archive-head p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.archive-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
  padding: 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.archive-controls input,
.archive-controls select {
  height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: 400 14px/1 var(--font);
}
.archive-controls input { flex: 1 1 220px; min-width: 180px; }
.archive-count {
  width: 100%;
  font-size: 12px;
  color: var(--muted);
}

.world-section { margin-bottom: 32px; }
.world-section h2 {
  margin: 0 0 12px;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.archive-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.archive-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.archive-row[hidden] { display: none; }
.archive-row__main { min-width: 0; }
.archive-row__title {
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  color: var(--text);
}
.archive-row__title:hover { color: var(--accent); text-decoration: underline; }
.archive-row__meta {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.archive-row__globe {
  flex: none;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--pill-bg);
  color: var(--text);
}
.archive-row__globe:hover { background: var(--accent); color: #fff; }

.site-footer {
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

@media (max-width: 600px) {
  .card { padding: 20px 18px; }
  .archive-row { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* Photo gallery & video embeds on static event pages */
.event-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0 0 24px;
}
.event-gallery--1 { grid-template-columns: 1fr; }
.event-gallery--3 > :first-child { grid-column: 1 / -1; }
.event-gallery__item {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--pill-bg);
}
.event-gallery__item a {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.event-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 250ms ease;
}
.event-gallery__item a:hover img { transform: scale(1.02); }

.event-videos {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.event-video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
}
.event-video iframe,
.event-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Trust pages (About / Privacy / Contact) */
.page-lead {
  margin: 0 0 22px;
  font-size: 16px;
  color: var(--muted);
}
.prose h2 {
  margin: 26px 0 10px;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.prose ul, .prose ol {
  margin: 0 0 14px;
  padding-left: 22px;
}
.prose li { margin-bottom: 6px; }
.info-callout {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--pill-bg);
  font-size: 14px;
}
.info-callout strong { display: block; margin-bottom: 4px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
}
.footer-links a:hover { color: var(--text); text-decoration: underline; }

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