@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/outfit-300.ttf') format('truetype');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/outfit-400.ttf') format('truetype');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/outfit-600.ttf') format('truetype');
}
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/syne-400.ttf') format('truetype');
}
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/syne-700.ttf') format('truetype');
}
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/syne-800.ttf') format('truetype');
}

:root {
  --ground: #0C0C0C;
  --surface: #151515;
  --surface-raised: #1C1C1C;
  --text: #E0E0E0;
  --text-muted: #6E6E6E;
  --text-dim: #4A4A4A;
  --accent: #8B7BF7;
  --accent-hover: #A89BFF;
  --accent-glow: rgba(139, 123, 247, 0.10);
  --gold: #C9A227;
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.14);

  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'Outfit', system-ui, -apple-system, sans-serif;

  --content: 720px;
  --wide: 1080px;
  --gutter: clamp(20px, 5vw, 48px);

  --text-xs: 0.72rem;
  --text-sm: 0.85rem;
  --text-base: 1.05rem;
  --text-lg: 1.2rem;
  --text-xl: clamp(1.4rem, 1.2rem + 1vw, 1.8rem);
  --text-2xl: clamp(1.8rem, 1.4rem + 2vw, 2.8rem);
  --text-hero: clamp(2.6rem, 2rem + 3vw, 4.5rem);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.05;
  text-wrap: balance;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-hero); font-weight: 800; }
h2 { font-size: var(--text-2xl); font-weight: 800; margin-bottom: 1.5rem; }
h3 { font-size: var(--text-xl); font-weight: 700; }

a { color: inherit; text-decoration: none; }

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

.label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

h1.label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

/* ═══ LAYOUT ═══ */

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

.wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wrap--narrow {
  max-width: var(--content);
}

.page-content { flex: 1; }

.section {
  padding: clamp(48px, 8vw, 80px) 0;
}

.section__eyebrow {
  margin-bottom: 1.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section__eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.divider {
  width: min(60%, 300px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0 auto;
}

/* ═══ HEADER ═══ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(12, 12, 12, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--gutter);
}

.site-header .inner {
  max-width: var(--wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.site-brand img {
  height: 72px;
  width: auto;
}

.site-brand span {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.site-nav {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.site-nav a {
  display: block;
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.site-nav a.active {
  color: var(--text);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  width: 38px; height: 38px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.15s;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* ═══ HERO ═══ */

.hero {
  padding: clamp(80px, 15vw, 180px) var(--gutter) clamp(60px, 10vw, 120px);
  text-align: center;
  position: relative;
  background:
    radial-gradient(ellipse 90% 70% at 50% 20%, rgba(139, 123, 247, 0.28), transparent 65%),
    radial-gradient(ellipse 70% 60% at 15% 80%, rgba(139, 123, 247, 0.15), transparent 55%),
    radial-gradient(ellipse 60% 50% at 85% 60%, rgba(201, 162, 39, 0.12), transparent 55%);
}

.hero h1 { margin-bottom: 0.4em; letter-spacing: -0.03em; }

.hero .tagline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-lg);
  color: var(--accent);
  font-style: italic;
  opacity: 0.8;
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  gap: 0.65rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══ BUTTONS ═══ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: 0.75rem 1.8rem;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 24px rgba(139, 123, 247, 0.25);
  transform: translateY(-1px);
}

/* ═══ EVENTS ═══ */

.events-list { display: flex; flex-direction: column; }

.event-item {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
  transition: background 0.15s;
}

.event-item:last-child { border-bottom: none; }

.event-item:hover {
  background: linear-gradient(90deg, var(--accent-glow), transparent 60%);
  margin: 0 -0.75rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  border-radius: 4px;
}

.event-date {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 0.15rem;
  white-space: nowrap;
}

.event-body { display: flex; flex-direction: column; gap: 0.15rem; }

.event-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.event-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

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

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

.event-location {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ═══ ABOUT / TEXT CONTENT ═══ */

.page-content p {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: var(--content);
}

.page-content p + p { margin-top: 1rem; }

.page-content p a {
  color: var(--accent);
  border-bottom: 1px solid rgba(139, 123, 247, 0.3);
  transition: border-color 0.15s;
}

.page-content p a:hover { border-color: var(--accent); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* ═══ SOCIAL LINKS ═══ */

.social-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.social-pill {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.15s;
}

.social-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

/* ═══ LEGAL ═══ */

.legal h3 {
  margin-top: 2.5rem;
  margin-bottom: 0.6rem;
  font-size: var(--text-lg);
}

.legal h3:first-of-type { margin-top: 0; }

.legal p {
  font-size: var(--text-sm);
  margin-bottom: 0.5rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: var(--content);
}

.legal p a {
  color: var(--accent);
  border-bottom: 1px solid rgba(139, 123, 247, 0.3);
}

.legal ul {
  margin: 0.5rem 0 1rem 1.4rem;
  list-style-type: disc;
  max-width: var(--content);
}

.legal li {
  font-size: var(--text-sm);
  margin-bottom: 0.3rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ═══ FOOTER ═══ */

.site-footer {
  border-top: 1px solid var(--border);
  padding: clamp(36px, 5vw, 56px) var(--gutter);
  margin-top: auto;
  background: var(--surface);
}

.site-footer .inner {
  max-width: var(--wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-col { display: flex; flex-direction: column; gap: 0.45rem; }

.footer-col-title {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.footer-col a {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
  width: fit-content;
}

.footer-col a:hover { color: var(--text); }

.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-base);
  color: var(--text);
  margin-bottom: 0.1rem;
}

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-sm);
  color: var(--accent);
  opacity: 0.6;
}

/* ═══ MODAL ═══ */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  place-items: center;
}

.modal-overlay.open {
  display: grid;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  width: min(90vw, 800px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.modal h3 {
  margin-bottom: 1rem;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text);
}

.modal-pdf {
  flex: 1;
  min-height: 60vh;
  border-radius: 8px;
  overflow: hidden;
}

.modal-pdf embed {
  width: 100%;
  height: 100%;
  min-height: 60vh;
}

.modal-pdf-fallback {
  display: none;
  color: var(--text-muted);
  font-size: var(--text-sm);
  text-align: center;
  padding: 3rem 1rem;
}

@media (max-width: 768px) {
  .modal-pdf embed { display: none; }
  .modal-pdf-fallback { display: block; }
  .modal-pdf { min-height: auto; }
}

/* ═══ RESPONSIVE ═══ */

@media (max-width: 768px) {
  .nav-toggle { display: grid; place-items: center; }

  .site-header .inner { height: 56px; }

  .site-header nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
  }

  .site-nav {
    display: none;
    background: rgba(12, 12, 12, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 0.5rem var(--gutter) 1rem;
    gap: 0;
  }

  .site-nav.open { display: flex; }

  .site-nav a {
    padding: 0.75rem 0.85rem;
    font-size: var(--text-base);
  }

  .site-header { position: sticky; }

  .site-brand span {
    font-size: var(--text-xs);
    letter-spacing: 0.06em;
  }

  .site-brand img { height: 52px; }

  .event-item {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .event-item:hover {
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    padding: 0 clamp(0px, 3vw, 32px);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .site-footer .inner {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .footer-col:first-child { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  :root { --gutter: 16px; }

  .site-footer .inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-col:first-child { grid-column: 1; }

}
