/* ============================================
   Jason Vance — Woodcut Dark Theme
   ============================================ */

:root {
  --bg: #1a1a1a;
  --text: #f5f0e8;
  --text-muted: #b8b0a0;
  --accent: #d4a855;
  --surface: #252525;
  --border: #3a3a3a;
  --venmo-blue: #3d95ce;
  --error: #c44;
  --success: #5a8a5a;
  --font-body: Georgia, "Times New Roman", serif;
  --font-display: Georgia, "Times New Roman", serif;
  --font-nav:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --max-width: 800px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

/* Non-hero pages get padding so content clears fixed nav */
body.page {
  padding-top: 60px;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---- Navigation ---- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 100;
  background: transparent;
  transition:
    background 0.3s,
    border-color 0.3s;
  border-bottom: 1px solid transparent;
}

.nav--scrolled {
  background: rgba(26, 26, 26, 0.95);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--text);
  text-decoration: none;
  font-weight: 400;
}

.nav-brand:hover {
  text-decoration: none;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-nav);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  color: var(--text);
}

/* Hamburger toggle — hidden by default */
.nav-toggle-input {
  display: none;
}

.nav-toggle {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  transition:
    transform 0.3s,
    opacity 0.3s;
}

.nav-overlay-close {
  display: none;
}

/* Mobile nav */
@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 102;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    background: rgba(26, 26, 26, 0.98);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.3s,
      visibility 0.3s;
    z-index: 101;
  }

  .nav-links a {
    font-size: 1.2rem;
    letter-spacing: 0.15em;
  }

  .nav-overlay-close {
    display: block;
    position: absolute;
    inset: 0;
    cursor: pointer;
  }

  .nav-toggle-input:checked ~ .nav-links {
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle-input:checked ~ .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle-input:checked ~ .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle-input:checked ~ .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ---- Hero ---- */

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text);
  text-shadow:
    2px 2px 20px rgba(0, 0, 0, 0.9),
    0 0 60px rgba(0, 0, 0, 0.7);
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.4rem);
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.9);
}

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

.hero-btn {
  padding: 0.8rem 2rem;
  font-size: 0.9rem;
  text-shadow: none;
}

.hero-btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}

.hero-btn--outline:hover {
  background: var(--text);
  color: var(--bg);
}

/* ---- Sections ---- */

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 400;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.section-label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* ---- Event ---- */

.event {
  text-align: center;
  border-bottom: 1px solid var(--border);
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.event-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 400;
  margin-bottom: 2rem;
}

.event-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.event-detail {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.detail-label {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.detail-value {
  font-size: 1.1rem;
}

.event-description {
  max-width: 600px;
  margin: 0 auto 2.5rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ---- Button ---- */

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--text);
  border: 2px solid var(--text);
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s;
}

.btn:hover {
  background: transparent;
  color: var(--text);
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-venmo {
  background: var(--venmo-blue);
  border-color: var(--venmo-blue);
  color: #fff;
}

.btn-venmo:hover {
  background: transparent;
  color: var(--venmo-blue);
}

/* ---- About (homepage teaser + full page) ---- */

.about {
  border-bottom: 1px solid var(--border);
}

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

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-image img {
  border-radius: 2px;
  width: 100%;
  max-width: 400px;
}

.about-more {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

@media (min-width: 700px) {
  .about-content {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

/* ---- About Full Page ---- */

.about-page-hero {
  text-align: center;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.about-page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.about-page-hero .hero-subtitle {
  text-shadow: none;
}

.about-section {
  border-bottom: 1px solid var(--border);
}

.about-section:last-of-type {
  border-bottom: none;
}

.about-section h2 {
  color: var(--accent);
  font-size: clamp(1.4rem, 4vw, 1.8rem);
}

.about-section p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.about-section p:last-child {
  margin-bottom: 0;
}

.about-section img {
  border-radius: 2px;
  margin-top: 1.5rem;
}

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

@media (min-width: 700px) {
  .about-section .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

/* ---- RSVP ---- */

.rsvp {
  border-bottom: 1px solid var(--border);
}

.rsvp h2 {
  text-align: center;
}

.capacity-display {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

form {
  max-width: 480px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-group input {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus {
  border-color: var(--accent);
}

.form-group input.invalid {
  border-color: var(--error);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.error {
  display: block;
  font-size: 0.85rem;
  color: var(--error);
  min-height: 1.2em;
  margin-top: 0.25rem;
}

#rsvp-form .btn {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
}

/* ---- Confirmation / Support ---- */

.confirmation {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.confirmation h3 {
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: var(--success);
}

.confirmation > p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.support-prompt {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.support-prompt h4 {
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.support-prompt > p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.venmo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.venmo-qr {
  width: 180px;
  height: 180px;
}

/* ---- Video Section ---- */

.watch {
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.watch h2 {
  text-align: center;
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 640px;
  margin: 2rem auto 0;
  border-radius: 2px;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-more {
  text-align: center;
  margin-top: 1.5rem;
}

.video-more a {
  font-size: 0.95rem;
}

/* ---- Gallery (homepage teaser) ---- */

.gallery {
  border-bottom: 1px solid var(--border);
  padding-top: 4rem;
  padding-bottom: 3rem;
}

.gallery h2 {
  text-align: center;
}

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

.gallery-grid img {
  width: 100%;
  border-radius: 2px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-more {
  text-align: center;
  margin-top: 2rem;
}

.gallery-more a {
  font-size: 0.95rem;
}

@media (min-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- Gallery Full Page (Masonry) ---- */

.gallery-page-header {
  text-align: center;
  padding-bottom: 2rem;
}

.gallery-page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.15em;
}

.gallery-masonry {
  columns: 2;
  column-gap: 1.5rem;
}

.gallery-masonry figure {
  break-inside: avoid;
  margin: 0 0 1.5rem 0;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.gallery-masonry img {
  width: 100%;
  display: block;
  border-radius: 2px;
}

.gallery-masonry figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: var(--text-muted);
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.gallery-masonry figure:hover figcaption {
  opacity: 1;
}

@media (max-width: 767px) {
  .gallery-masonry figcaption {
    opacity: 1;
    position: relative;
    background: transparent;
    padding: 0.5rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
  }
}

@media (min-width: 768px) {
  .gallery-masonry {
    columns: 3;
  }
}

/* ---- Lightbox ---- */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.lightbox:target {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 2px;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  color: var(--text-muted);
  text-decoration: none;
  line-height: 1;
  z-index: 201;
}

.lightbox-close:hover {
  color: var(--text);
  text-decoration: none;
}

.lightbox-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

/* ---- Events Page ---- */

.events-header {
  text-align: center;
  padding-bottom: 2rem;
}

.events-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.15em;
}

.event-card {
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 2px;
  padding: 2.5rem;
  margin-bottom: 2rem;
}

.event-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.event-card .event-details {
  margin-bottom: 1.5rem;
}

.event-card .event-description {
  margin: 0 0 2rem;
  text-align: left;
  max-width: none;
}

.event-card .btn {
  margin-top: 0;
}

/* ---- CE Threshold ---- */

.ce-threshold {
  max-width: 480px;
  margin: 0 auto 2rem;
  text-align: center;
}

.ce-threshold[hidden] {
  display: none;
}

.ce-threshold__bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.ce-threshold__fill {
  height: 100%;
  width: 0%;
  background: var(--text);
  border-radius: 4px;
  transition: width 0.6s ease;
}

.ce-threshold__fill--met {
  background: var(--accent);
  animation: ce-pulse 1.2s ease-in-out 1;
}

@keyframes ce-pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
  }
}

.ce-threshold__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.ce-threshold--pending .ce-threshold__text {
  color: var(--text);
}

.ce-threshold--pending #submit-btn {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.ce-threshold--pending #submit-btn:hover {
  background: transparent;
  color: var(--accent);
}

.events-past {
  border-top: 1px solid var(--border);
  padding-top: 3rem;
}

.events-past h2 {
  color: var(--text-muted);
}

.events-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 2rem 0;
  font-size: 1.1rem;
  line-height: 1.8;
}

.events-empty a {
  color: var(--accent);
}

.empty-state {
  color: var(--text-muted);
  font-style: italic;
}

/* ---- 404 Page ---- */

.not-found {
  text-align: center;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.not-found h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.not-found p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ---- Footer ---- */

.footer {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.footer-nav a {
  font-family: var(--font-nav);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.footer-small {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ---- Focus Visible ---- */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.form-group input:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(212, 168, 85, 0.3);
}

/* ---- Mailing List ---- */

.footer-subscribe {
  max-width: 400px;
  margin: 0 auto 2rem;
  text-align: center;
}

.footer-subscribe p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.subscribe-form {
  display: flex;
  gap: 0.5rem;
}

.subscribe-form input {
  flex: 1;
  padding: 0.6rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  outline: none;
}

.subscribe-form input:focus {
  border-color: var(--accent);
}

.subscribe-form button {
  padding: 0.6rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 2px;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
  white-space: nowrap;
}

.subscribe-form button:hover {
  background: transparent;
  color: var(--accent);
}

.subscribe-status {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  min-height: 1.2em;
}

.subscribe-status.success {
  color: var(--success);
}

.subscribe-status.error {
  color: var(--error);
}

/* ---- Booking Form ---- */

.booking {
  border-bottom: 1px solid var(--border);
}

.booking h2 {
  text-align: center;
}

.booking-intro {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.booking select,
.booking textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s;
}

.booking select:focus,
.booking textarea:focus {
  border-color: var(--accent);
}

.booking textarea {
  resize: vertical;
  min-height: 100px;
}

#booking-form .btn {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
}

/* ---- Footer Social ---- */

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-social a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.footer-social a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ---- Venue Strip ---- */

.venue-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: center;
  padding: 2rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.venue-strip span {
  white-space: nowrap;
}

/* ---- Skip Link ---- */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 999;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.85rem;
  text-decoration: none;
  border-radius: 2px;
}

.skip-link:focus {
  top: 0.5rem;
}

/* ---- Past Venues ---- */

.past-venues {
  list-style: none;
  padding: 0;
  columns: 2;
  column-gap: 2rem;
}

.past-venues li {
  color: var(--text-muted);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  break-inside: avoid;
}

@media (max-width: 480px) {
  .past-venues {
    columns: 1;
  }
}

/* ---- Photo Credit ---- */

.photo-credit {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---- Utilities ---- */

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .section {
    padding: 3rem 1rem;
  }

  .event-details {
    grid-template-columns: 1fr 1fr;
  }

  .footer-nav {
    gap: 1rem;
  }
}
