/* ==========================================================================
   Des Moines Burlesque — Wireframe Layout
   Focusing on structure, not brand. 1px black borders, 1rem spacing.
   ========================================================================== */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  color: #111;
  background: #fff;
}

a { color: #111; }

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

/* Layout */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem;
}

section { margin-bottom: 2rem; }

/* ---- Header ---- */
.site-header {
  border-bottom: 1px solid #000;
}

.site-nav {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: #111;
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-links a { font-size: 0.9rem; }

/* ---- Hero ---- */
.hero {
  padding: 2rem 0 1rem;
}

.hero h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.hero-tagline { color: #555; }

/* ---- Page Header ---- */
.page-header {
  padding: 1rem 0;
  border-bottom: 1px solid #000;
  margin-bottom: 1rem;
}

.page-header h1 { font-size: 1.5rem; }
.page-header p { color: #555; margin-top: 0.25rem; }

/* ---- Event Grid ---- */
.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* ---- Event Card (desktop: vertical) ---- */
.event-card {
  border: 1px solid #000;
  overflow: hidden;
}

.event-card.event-cancelled { opacity: 0.5; }

.event-card .event-image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.event-card .event-info {
  padding: 1rem;
}

.event-title {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.event-title a { color: #111; text-decoration: none; }
.event-title a:hover { text-decoration: underline; }

.event-date {
  display: block;
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 0.25rem;
}

.event-venue {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 0.5rem;
}

.event-producer {
  font-size: 0.85rem;
  color: #777;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.event-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.15em 0.4em;
  border: 1px solid #000;
  margin-bottom: 0.25rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.5em 1em;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #000;
  color: #111;
  background: #eee;
}
.btn:hover { background: #ddd; text-decoration: none; }

/* ---- Event Detail ---- */
.event-detail { padding-bottom: 2rem; }

.event-detail-header { padding: 1rem 0; }
.event-detail-header h1 { font-size: 1.8rem; }

.event-detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #000;
  margin-bottom: 1rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.meta-item strong {
  font-size: 0.8rem;
  text-transform: uppercase;
}

.event-detail-image { margin-bottom: 1rem; }

.event-detail-body { line-height: 1.7; }
.event-detail-body p { margin-bottom: 1em; }

/* ---- Content Pages ---- */
.page-content { padding: 1rem 0; }
.page-content h1 { font-size: 1.8rem; margin-bottom: 1rem; }
.content-body { line-height: 1.7; }
.content-body p { margin-bottom: 1em; }
.content-body h2 { margin-top: 2em; margin-bottom: 0.5em; }
.content-body h3 { margin-top: 1.5em; margin-bottom: 0.5em; }
.content-body ul, .content-body ol { margin-left: 1.5em; margin-bottom: 1em; }

/* ---- Content List ---- */
.content-list { padding-bottom: 2rem; }
.content-item {
  padding: 1rem 0;
  border-bottom: 1px solid #000;
}
.content-item h2 { font-size: 1.2rem; margin-bottom: 0.25rem; }
.content-item p { color: #555; }

/* ---- No Events ---- */
.no-events {
  text-align: center;
  color: #555;
  padding: 2rem 0;
}

/* ---- About Blurb ---- */
.about-blurb {
  padding: 1rem;
  border: 1px solid #000;
}
.about-blurb h2 { margin-bottom: 0.5rem; }
.about-blurb p { color: #555; margin-bottom: 0.5rem; }

/* ---- Past Events ---- */
.event-grid-past { opacity: 0.5; }
.past-events h2 { color: #555; margin-bottom: 1rem; }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid #000;
  margin-top: 2rem;
}

.footer-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem;
  text-align: center;
}

.footer-tagline {
  color: #555;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.footer-links a { font-size: 0.85rem; color: #555; }

.footer-copy {
  color: #999;
  font-size: 0.8rem;
}

/* ---- Responsive: mobile ---- */
@media (max-width: 768px) {
  .event-grid {
    grid-template-columns: 1fr;
  }

  .event-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
  }

  .event-card .event-image {
    flex: 0 0 120px;
    min-height: 100%;
  }

  .event-card .event-image img {
    width: 120px;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
  }

  .event-card .event-info {
    flex: 1;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .event-detail-meta { grid-template-columns: 1fr; }
  .site-nav { flex-direction: column; align-items: flex-start; }
}
