/* =====================================================
   Songwriter Open-Mic — Global Styles (Eleventy)
   Warm acoustic folk aesthetic
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Crimson+Text:ital,wght@0,400;0,600;1,400&family=IM+Fell+English+SC&display=swap');

/* ── CSS Variables ── */
:root {
  --bg:           #161210;
  --surface:      #1f1a16;
  --surface2:     #2a231c;
  --border:       #3d3028;
  --amber:        #c97d2e;
  --amber-light:  #e09a50;
  --amber-glow:   rgba(201, 125, 46, 0.15);
  --cream:        #f0e4cc;
  --cream-dim:    #c4b49a;
  --muted:        #7a6a58;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Crimson Text', Georgia, serif;
  --font-caps:    'IM Fell English SC', Georgia, serif;
  --nav-height:   72px;
  --max-width:    980px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.75;
  min-height: 100vh;
}

a { color: var(--amber-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--cream); }

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

/* ── Layout ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 3.5rem 0; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--cream);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem);  font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { margin-bottom: 1rem; color: var(--cream-dim); }
p:last-child { margin-bottom: 0; }

/* ── Utilities ── */
.eyebrow {
  font-family: var(--font-caps);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--amber);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.4rem;
}

.rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--muted);
}
.rule::before, .rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 1.5rem 2rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.card:hover {
  border-color: var(--amber);
  box-shadow: 0 0 24px var(--amber-glow);
}

.event-badge {
  display: inline-block;
  background: var(--amber);
  color: var(--bg);
  font-family: var(--font-caps);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  padding: 0.22em 0.75em;
  border-radius: 1px;
  margin-bottom: 0.4rem;
}

.page-header {
  text-align: center;
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

/* ── Nav ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(22, 18, 16, 0.93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: 2rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.logo-guitar {
  width: 42px;
  height: auto;
  opacity: 0.9;
  filter: drop-shadow(0 0 8px var(--amber-glow));
}

.logo-wordmark {
  height: 34px;
  width: auto;
  opacity: 0.95;
}

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

.nav-link {
  font-family: var(--font-caps);
  font-size: 0.84rem;
  letter-spacing: 0.1em;
  color: var(--cream-dim);
  padding: 0.4em 0.85em;
  border-radius: 1px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--amber-light);
  background: var(--amber-glow);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream-dim);
  border-radius: 1px;
  transition: all 0.3s;
}

@media (max-width: 620px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    display: none;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .nav-link { display: block; padding: 0.75rem 1.5rem; font-size: 1rem; }
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 2.5rem 0;
  margin-top: 4rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.footer-guitar { opacity: 0.7; width: 30px; height: auto; }
.footer-name {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--cream-dim);
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  font-family: var(--font-caps);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.footer-nav a:hover { color: var(--amber-light); }

.footer-copy {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
}

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 5rem;
  min-height: 400px;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(201,125,46,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(80,40,10,0.25) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-text { max-width: 580px; }

.hero-eyebrow {
  font-family: var(--font-caps);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--amber);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  line-height: 1.05;
  margin-bottom: 1.25rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--amber-light);
}
.hero-lead {
  font-size: 1.15rem;
  color: var(--cream-dim);
  margin-bottom: 2rem;
  max-width: 460px;
}

.btn-primary {
  display: inline-block;
  background: var(--amber);
  color: var(--bg);
  font-family: var(--font-caps);
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  padding: 0.7em 1.8em;
  border-radius: 1px;
  text-transform: uppercase;
  transition: background 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  background: var(--amber-light);
  color: var(--bg);
  box-shadow: 0 4px 20px var(--amber-glow);
}

/* ── Home layout ── */
.home-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}
.home-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: calc(var(--nav-height) + 1.5rem);
}
@media (max-width: 760px) {
  .home-grid { grid-template-columns: 1fr; }
  .home-sidebar { position: static; }
}

/* ── Upcoming Shows ── */
.upcoming-shows {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--amber);
  padding: 1.25rem 1.5rem;
  border-radius: 2px;
}
.shows-heading {
  font-family: var(--font-caps);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: var(--amber-light);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.shows-list { list-style: none; display: flex; flex-direction: column; gap: 1.1rem; }
.show-item {
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);
}
.show-item:last-child { padding-bottom: 0; border-bottom: none; }
.show-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--cream);
  margin: 0.2rem 0;
}
.show-date {
  font-size: 0.88rem;
  color: var(--amber-light);
  font-style: italic;
  margin: 0 0 0.15rem;
}
.show-venue { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* ── Gallery ── */
.gallery-section { padding: 3rem 0; }
.gallery-header { text-align: center; margin-bottom: 2rem; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 4px;
}
.gallery-thumb {
  background: var(--surface2);
  border: none;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  padding: 0;
}
.gallery-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
  filter: brightness(0.85) saturate(0.8);
}
.gallery-thumb:hover img {
  transform: scale(1.06);
  filter: brightness(1) saturate(1.1);
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(10, 8, 6, 0.96);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lb-img-wrap { max-width: 90vw; max-height: 85vh; display: flex; align-items: center; justify-content: center; }
#lb-img { max-width: 90vw; max-height: 82vh; object-fit: contain; border: 1px solid var(--border); box-shadow: 0 0 60px rgba(0,0,0,0.8); }
.lb-close, .lb-prev, .lb-next {
  position: fixed;
  background: rgba(30,24,18,0.8);
  border: 1px solid var(--border);
  color: var(--cream-dim);
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
  transition: color 0.2s, background 0.2s;
}
.lb-close { top: 1rem; right: 1rem; font-size: 1.8rem; padding: 0.2em 0.5em; border-radius: 2px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 1.4rem; padding: 0.75em 1em; border-radius: 2px; }
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { color: var(--amber-light); background: var(--surface); }
.lb-counter { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); font-family: var(--font-caps); font-size: 0.78rem; letter-spacing: 0.15em; color: var(--muted); }

/* ── Schedule ── */
.schedule-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: start;
}
.schedule-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.format-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 3rem;
}
.format-card { padding: 1.25rem 1.5rem; }
.format-icon { font-size: 1.5rem; color: var(--amber); margin-bottom: 0.4rem; }
.format-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.events-heading {
  font-family: var(--font-caps);
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.events-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2.5rem; }
.event-item { display: flex; align-items: flex-start; gap: 1rem; }
.event-body { flex: 1; }
.event-title { font-size: 1.02rem; margin-bottom: 0.15rem; }
.event-date { color: var(--amber-light); font-style: italic; font-size: 0.93rem; margin-bottom: 0.15rem; }
.event-venue { font-size: 0.86rem; color: var(--muted); margin-bottom: 0.15rem; }
.event-note { font-size: 0.83rem; color: var(--muted); font-style: italic; margin: 0; }
.sidebar-info h4 { color: var(--amber-light); font-size: 0.92rem; margin-bottom: 0.6rem; }
.info-list { list-style: none; display: flex; flex-direction: column; gap: 0.45rem; }
.info-list li { font-size: 0.88rem; color: var(--cream-dim); display: flex; align-items: center; gap: 0.45rem; }

@media (max-width: 760px) {
  .schedule-layout { grid-template-columns: 1fr; }
  .format-cards { grid-template-columns: 1fr; }
  .schedule-sidebar { position: static; }
}

/* ── Friends ── */
.section-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.5rem 0 1.5rem;
  font-family: var(--font-caps);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.friends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.friend-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.friend-photo { overflow: hidden; aspect-ratio: 16/9; background: var(--surface2); }
.friend-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: brightness(0.85) saturate(0.8);
}
.friend-card:hover .friend-photo img { transform: scale(1.04); filter: brightness(1) saturate(1); }
.friend-info { padding: 0.85rem 1.25rem 1.25rem; flex: 1; }
.friend-info h3 { font-size: 1.02rem; margin-bottom: 0.3rem; }
.friend-info p { font-size: 0.88rem; margin-bottom: 0.4rem; }
.friend-link { font-family: var(--font-caps); font-size: 0.75rem; letter-spacing: 0.1em; color: var(--amber-light); }

.performers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 1rem;
}
.performer-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.performer-photo { aspect-ratio: 1; overflow: hidden; background: var(--surface2); }
.performer-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: brightness(0.83) saturate(0.75);
}
.performer-card:hover .performer-photo img { transform: scale(1.05); filter: brightness(1) saturate(1); }
.performer-info { padding: 0.75rem 1rem 1rem; flex: 1; }
.performer-info h3 { font-size: 0.98rem; margin-bottom: 0.25rem; }
.performer-info p { font-size: 0.83rem; margin-bottom: 0.35rem; }

/* ── About / FAQ ── */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: start;
}
.about-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.faq-section { margin-bottom: 2rem; }
.faq-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.faq-badge {
  display: inline-block;
  background: var(--amber);
  color: var(--bg);
  font-family: var(--font-caps);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  padding: 0.22em 0.85em;
  border-radius: 1px;
  white-space: nowrap;
}
.faq-badge.bards { background: transparent; border: 1px solid var(--amber); color: var(--amber-light); }
.faq-header h2 { font-size: 1.4rem; margin: 0; }
.faq-list {
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.faq-item {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  color: var(--cream-dim);
  transition: background 0.2s;
}
.faq-item:last-child { border-bottom: none; }
.faq-item:hover { background: var(--surface); }
.faq-bullet { color: var(--amber); flex-shrink: 0; font-size: 0.85rem; }

.callout { margin-top: 2.5rem; }
.callout h3 { margin-bottom: 1.25rem; font-style: italic; color: var(--amber-light); }
.callout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.callout-label {
  font-family: var(--font-caps);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.callout-list { list-style: none; display: flex; flex-direction: column; gap: 0.3rem; }
.callout-list li { font-size: 0.88rem; color: var(--cream-dim); padding-left: 1rem; position: relative; }
.callout-list li::before { content: '–'; position: absolute; left: 0; color: var(--muted); }

.venue-card h4 { color: var(--amber-light); font-size: 0.9rem; margin-bottom: 0.5rem; }
.venue-name { font-family: var(--font-display); font-size: 1.08rem; font-style: italic; margin-bottom: 0.2rem; }
.venue-detail { font-size: 0.86rem; color: var(--cream-dim); margin-bottom: 0.2rem; }
.venue-note { font-size: 0.78rem; color: var(--muted); font-style: italic; margin-top: 0.4rem; }

.sidebar-cta-label { font-family: var(--font-display); font-style: italic; color: var(--amber-light); font-size: 1rem; margin-bottom: 0.25rem; }

@media (max-width: 760px) {
  .about-layout { grid-template-columns: 1fr; }
  .about-sidebar { position: static; }
  .callout-grid { grid-template-columns: 1fr; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--amber); }
