:root {
  --bg: #000000;
  --bg-alt: #0a0a0a;
  --text: #e8e6e1;
  --muted: #a8a59e;
  --accent: #d9c6a3;
  --border: rgba(255, 255, 255, 0.1);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.75;
}

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

/* Header */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 1.5rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header.solid {
  position: relative;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.18em;
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}

.nav a.active,
.nav a:hover {
  border-bottom-color: var(--accent);
  opacity: 1;
}

/* Hero */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.35) 0%,
      rgba(0, 0, 0, 0.25) 50%,
      rgba(0, 0, 0, 0.55) 100%
    ),
    url("/hero.png");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 1.5rem;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  color: #fff;
  margin: 0;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}

/* Page header (non-hero pages) */
.page-header {
  text-align: center;
  padding: 6rem 1.5rem 2rem;
}

.page-header h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 1rem;
  color: var(--muted);
}

.divider {
  width: 80px;
  height: 1px;
  background: var(--border);
  margin: 1rem auto 0;
}

/* Section */
.section {
  padding: 4rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  text-align: center;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  margin-top: 0;
}

.prose {
  max-width: 800px;
  margin: 2rem auto 0;
  font-size: 1.05rem;
  line-height: 1.8;
}

.prose h3 {
  font-family: var(--sans);
  font-weight: 600;
  color: #fff;
  font-size: 1.15rem;
  margin-top: 2rem;
}

.footnote {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 3rem;
  line-height: 1.6;
}

/* Videos */
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

@media (min-width: 800px) {
  .video-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .video-row.reverse .video-frame {
    order: 2;
  }
}

.video-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  text-align: center;
  margin: 0 0 0.5rem;
  color: #fff;
}

.video-rows {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  max-width: 1150px;
  margin: 2.5rem auto 0;
}

.video-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.video-row.reverse {
  direction: rtl;
}

.video-row.reverse > * {
  direction: ltr;
}

@media (max-width: 800px) {
  .video-rows {
    gap: 3rem;
  }
  .video-row,
  .video-row.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 1.25rem;
  }
}

.video-meta .venue {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
}

.video-frame {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.video-frame iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  border: 1px solid var(--border);
  display: block;
}

.video-caption {
  margin: 0 0 0.5rem;
  text-align: left;
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  color: #d8c89a;
  letter-spacing: 0.02em;
}

.credits {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0;
  text-align: left;
}

.credits li {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0.2rem 0;
}

.video-meta p {
  margin: 0.35rem 0;
  font-style: italic;
  color: var(--muted);
}

.video-meta .venue {
  font-style: normal;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
}

/* Calendar */
.sponsors {
  text-align: center;
  margin: 0 auto 3rem;
  max-width: 700px;
}

.sponsors h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.sponsor {
  margin: 1rem 0;
}

.sponsor strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: #fff;
}

.sponsor span {
  color: var(--muted);
  font-size: 0.95rem;
}

.events {
  margin-top: 2rem;
}

.event {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}

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

.event-date {
  font-family: var(--serif);
  color: var(--muted);
  text-align: center;
}

.event-date .dow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--sans);
  display: block;
  margin-bottom: 0.25rem;
}

.event-date .month {
  font-size: 1rem;
  display: block;
}

.event-date .day {
  font-size: 1.75rem;
  display: block;
  color: #fff;
}

.event-venue {
  font-size: 1.05rem;
}

.event-time {
  color: var(--muted);
  font-size: 0.95rem;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .event {
    grid-template-columns: 80px 1fr;
    gap: 1rem;
  }

  .event-time {
    grid-column: 2;
  }
}

/* Contact */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 1000px;
  margin: 2rem auto 0;
}

@media (min-width: 800px) {
  .contact-wrap {
    grid-template-columns: 1.2fr 1fr;
  }
}

.form-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1.25rem;
}

.field {
  margin-bottom: 1rem;
}

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 1px solid #fff;
  border-radius: 4px;
  color: var(--text);
  padding: 1rem 1.1rem;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
}

.field textarea {
  resize: vertical;
  min-height: 180px;
}

.btn {
  display: inline-block;
  background: #fff;
  color: #000;
  border: none;
  padding: 0.95rem 2rem;
  font-family: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s ease;
}

.btn:hover {
  background: var(--accent);
}

.hidden-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.calendar-embed {
  margin: 2rem auto 0;
  max-width: 900px;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
}

.calendar-embed iframe {
  display: block;
  width: 100%;
  height: 650px;
  border: 0;
}

.btn-block {
  display: block;
  width: 100%;
  padding: 1.1rem 2rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
}

.contact-info h3 {
  font-family: var(--sans);
  font-weight: 600;
  color: #fff;
  font-size: 1.15rem;
  margin: 0 0 1rem;
}

.contact-info p {
  margin: 0.5rem 0;
  color: var(--muted);
}

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

.form-status {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  min-height: 1.4em;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* Mobile nav */
@media (max-width: 720px) {
  .site-header {
    padding: 1rem 1.25rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    padding: 1rem 1.25rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .nav.open {
    display: flex;
  }
}
