/* ==========================================================================
   Denny Menter — site styles
   Warm & earthy palette to match the hand-drawn logo.
   ========================================================================== */

:root {
  --cream: #F7F1E4;
  --cream-alt: #EFE4CD;
  --paper: #FFFDF8;
  --espresso: #2B1810;
  --espresso-soft: #5A4636;
  --amber: #A9672B;
  --amber-deep: #8A521F;
  --amber-light: #E4B76B;
  --line: rgba(43, 24, 16, 0.14);
  --shadow: 0 12px 30px rgba(43, 24, 16, 0.12);
  --radius: 14px;
  --maxw: 1120px;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 84px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--espresso);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--amber-deep); text-decoration: none; }
a:hover { color: var(--amber); }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--espresso);
  margin: 0 0 0.5em;
  line-height: 1.15;
}

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 0.9em;
}

.section-head {
  max-width: 640px;
  margin: 0 0 2.6rem;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-head p { color: var(--espresso-soft); font-size: 1.05rem; margin: 0; }

.section { padding: 5.5rem 0; }
.section.alt { background: var(--cream-alt); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--espresso);
  color: var(--paper);
}
.btn-primary:hover { background: var(--amber-deep); color: var(--paper); }

.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--paper);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); color: var(--paper); }

.btn-outline-dark {
  background: transparent;
  border-color: var(--espresso);
  color: var(--espresso);
}
.btn-outline-dark:hover { background: var(--espresso); color: var(--paper); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(247, 241, 228, 0.0);
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
  padding: 18px 0;
}
.site-header.scrolled {
  background: rgba(247, 241, 228, 0.94);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 18px rgba(43,24,16,0.08);
  padding: 10px 0;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; transition: height 0.25s ease; }
.site-header.scrolled .brand img { height: 38px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--espresso);
  letter-spacing: 0.01em;
}
.hero .site-header:not(.scrolled) .brand-name { color: var(--paper); }

.site-header:not(.scrolled) .brand-name { color: var(--paper); }
.site-header.scrolled .brand-name { color: var(--espresso); }

nav.primary-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav.primary-nav a {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--paper);
  opacity: 0.92;
}
.site-header.scrolled nav.primary-nav a { color: var(--espresso); }
nav.primary-nav a:hover { color: var(--amber-light); }
.site-header.scrolled nav.primary-nav a:hover { color: var(--amber-deep); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 40px; height: 34px;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: '';
  position: absolute;
  left: 6px; right: 6px;
  height: 2px;
  background: var(--paper);
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}
.site-header.scrolled .nav-toggle span,
.site-header.scrolled .nav-toggle span::before,
.site-header.scrolled .nav-toggle span::after { background: var(--espresso); }
.nav-toggle span { top: 16px; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 27%;
}
.hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,17,10,0.55) 0%, rgba(30,17,10,0.35) 40%, rgba(20,12,7,0.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px 6.5rem;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}
.hero-content .eyebrow { color: var(--amber-light); }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  color: var(--paper);
  margin: 0 0 0.25em;
}
.hero .tagline {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 540px;
  color: rgba(255,255,255,0.9);
  margin: 0 0 2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.scroll-cue {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 22px; height: 36px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 20px;
}
.scroll-cue::before {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  width: 4px; height: 8px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue {
  0% { opacity: 1; transform: translate(-50%, 0); }
  70% { opacity: 0; transform: translate(-50%, 10px); }
  100% { opacity: 0; transform: translate(-50%, 0); }
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 3.5rem;
  align-items: start;
}
.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-body p {
  color: var(--espresso-soft);
  font-size: 1.05rem;
  margin: 0 0 1.1em;
}
.about-body p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.2rem;
  float: left;
  line-height: 0.8;
  padding: 0.08em 0.08em 0 0;
  color: var(--amber-deep);
}

/* ---------- Shows ---------- */
.shows-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.show-row {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.35rem 0.25rem;
  border-bottom: 1px solid var(--line);
}
.show-date {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--amber-deep);
}
.show-venue { font-weight: 700; font-size: 1.08rem; }
.show-meta { color: var(--espresso-soft); font-size: 0.94rem; margin-top: 0.15rem; }
.show-note {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--amber-deep);
  background: rgba(169, 103, 43, 0.12);
  padding: 0.2em 0.65em;
  border-radius: 999px;
}
.show-link {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}
.shows-empty {
  padding: 2.5rem 0;
  text-align: center;
  color: var(--espresso-soft);
  border-top: 1px solid var(--line);
}
.shows-foot {
  margin-top: 2rem;
  color: var(--espresso-soft);
  font-size: 0.95rem;
}

/* ---------- Music ---------- */
.music-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.song-count {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--amber-deep);
}
.song-search {
  position: relative;
  width: 280px;
  max-width: 100%;
}
.song-search input {
  width: 100%;
  padding: 0.75em 1em 0.75em 2.5em;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--espresso);
}
.song-search input:focus { outline: 2px solid var(--amber-light); }
.song-search svg {
  position: absolute;
  left: 0.9em; top: 50%;
  transform: translateY(-50%);
  opacity: 0.5;
}
#song-list {
  columns: 2;
  column-gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
#song-list li {
  break-inside: avoid;
  padding: 0.6em 0;
  border-bottom: 1px solid var(--line);
}
.song-title { font-weight: 600; }
.song-artist { color: var(--espresso-soft); font-size: 0.92rem; }
.song-empty { display: none; text-align: center; color: var(--espresso-soft); padding: 2rem 0; }
.music-foot { margin-top: 1.75rem; color: var(--espresso-soft); font-size: 0.95rem; }

/* ---------- Photos ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery button {
  padding: 0; border: none; background: none; cursor: pointer;
  border-radius: 10px; overflow: hidden;
  aspect-ratio: 4 / 5;
  position: relative;
}
.gallery img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery button:hover img { transform: scale(1.06); }

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20,12,7,0.92);
  display: none;
  align-items: center; justify-content: center;
  padding: 3rem 1.5rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 85vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.75rem;
  background: none; border: none; color: var(--paper);
  font-size: 2rem; line-height: 1; cursor: pointer; opacity: 0.85;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); border: none; color: var(--paper);
  width: 46px; height: 46px; border-radius: 50%;
  font-size: 1.4rem; cursor: pointer;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* ---------- Watch & Listen ---------- */
.media-block { margin-top: 3.5rem; }
.media-subhead {
  font-size: 1.25rem;
  margin-bottom: 1.1rem;
}

.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--espresso);
}
.video-embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

.audio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.audio-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.1rem 1.1rem 1.3rem;
  box-shadow: var(--shadow);
}
.audio-card iframe { border-radius: 6px; display: block; }
.audio-caption {
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--espresso-soft);
}

@media (max-width: 720px) {
  .audio-grid { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.contact-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.contact-card .btn { width: 100%; justify-content: center; margin-bottom: 0.9rem; }
.contact-card .btn:last-child { margin-bottom: 0; }
.contact-note { font-size: 0.9rem; color: var(--espresso-soft); margin-top: 1.2rem; text-align: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--espresso);
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.88rem;
}
.site-footer img { height: 34px; margin: 0 auto 0.9rem; opacity: 0.9; }
.site-footer a { color: rgba(255,255,255,0.85); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 340px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  #song-list { columns: 1; }
}

@media (max-width: 900px) {
  nav.primary-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--paper);
    box-shadow: -10px 0 40px rgba(0,0,0,0.2);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    padding: 6.5rem 2rem 2rem;
    z-index: 99;
  }
  .nav-open nav.primary-nav { transform: translateX(0); }
  nav.primary-nav ul { flex-direction: column; gap: 1.4rem; }
  nav.primary-nav a { color: var(--espresso) !important; font-size: 1.05rem; }
  .nav-toggle { display: block; z-index: 101; }
  .section { padding: 4rem 0; }
  .show-row { grid-template-columns: 1fr; row-gap: 0.4rem; }
  .show-link { justify-self: flex-start; }
}

@media (max-width: 480px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero-content { padding-bottom: 4.5rem; }
}
