/* ==========================================================================
   Doug Wyatt — Composer. Pianist. Recording Artist.
   Static rebuild: plain HTML/CSS, minimal JS.
   ========================================================================== */

:root {
  --bg:        #17140f;
  --bg-raised: #1c1812;
  --fg:        #f0ece4;
  --fg-muted:  #a39d90;
  --gold:      #c9a96e;
  --border:    #3a352d;
  --on-gold:   #0f0f0f;

  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans:  "Jost", system-ui, sans-serif;

  --container: 1200px;
  --gap: clamp(1.5rem, 4vw, 3rem);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
figure, blockquote, fieldset { margin: 0; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  margin: 0;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.75rem;
  position: relative;
  padding-bottom: 0.9rem;
}
.eyebrow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.5rem;
  height: 1px;
  background: var(--gold);
}

.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--on-gold);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.8rem 1.8rem;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.btn:hover { opacity: 0.85; }

.rsvp-link {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.rsvp-link:hover { border-bottom-color: var(--gold); }
.btn + .rsvp-link { margin-left: 1.25rem; }

.shows-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 3rem;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
  background: rgba(15, 15, 15, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid rgba(201, 169, 110, 0);
  transition: background-color 0.5s ease, backdrop-filter 0.5s ease, border-color 0.5s ease;
}
.site-header.scrolled {
  background: rgba(15, 15, 15, 0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201, 169, 110, 0.12);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  /*background: var(--gold);
  color: var(--on-gold);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.8rem;*/
}
.logo-mark img {
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}

.main-nav {
  display: flex;
  gap: 2rem;
}
.main-nav a {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  transition: opacity 0.2s ease;
}
.main-nav a:hover { opacity: 0.7; }

.menu-toggle {
  display: none;
  position: relative;
  width: 22px;
  height: 14.5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.menu-toggle span {
  position: absolute;
  left: 0;
  width: 22px;
  height: 1.5px;
  background: var(--gold);
  transition: top 0.3s, transform 0.3s, opacity 0.3s;
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 6.5px; }
.menu-toggle span:nth-child(3) { top: 13px; }
.menu-toggle.open span:nth-child(1) {
  top: 6.5px;
  transform: rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.menu-toggle.open span:nth-child(3) {
  top: 6.5px;
  transform: rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 60px; left: 0; right: 0;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
  padding: 1rem clamp(1.25rem, 4vw, 2rem) 1.5rem;
  z-index: 49;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav a {
  padding: 0.7rem 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child { border-bottom: none; }

@media (max-width: 780px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .mobile-nav { display: flex; }
}

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

.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: brightness(0.625) saturate(0.85);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(15, 15, 15, 0.05) 0%,
    rgba(15, 15, 15, 0) 35%,
    rgba(15, 15, 15, 0.7) 100%
  );
}
.hero-content {
  position: absolute;
  left: clamp(1.25rem, 4vw, 2rem);
  bottom: clamp(2rem, 6vw, 4rem);
  right: clamp(1.25rem, 4vw, 2rem);
}
.hero-content h1 {
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.hero-content .tagline {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

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

.section {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 7rem) clamp(1.25rem, 4vw, 2rem);
  overflow: hidden;
}
.section-number {
  position: absolute;
  top: clamp(2rem, 6vw, 3.5rem);
  right: clamp(1.25rem, 4vw, 2rem);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(5rem, 14vw, 11rem);
  line-height: 1;
  color: var(--fg);
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
}
.page-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.subheading {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 3.5rem 0 1.5rem;
}

/* Reveal-on-scroll (progressive enhancement; content visible without JS) */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Music ---------- */

.feature-release {
  display: grid;
  grid-template-columns: minmax(220px, 380px) 1fr;
  gap: var(--gap);
  align-items: center;
}
.feature-release .cover-link img { aspect-ratio: 1 / 1; object-fit: cover; }
.feature-copy h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}
.feature-copy p {
  color: var(--fg-muted);
  max-width: 32em;
  margin-bottom: 1.75rem;
}

.release-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap);
}
.release-card img { aspect-ratio: 1 / 1; object-fit: cover; margin-bottom: 1.25rem; }
.release-card h3 {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}
.release-card p {
  font-size: 0.85rem;
  color: var(--fg-muted);
}

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

/* ---------- Shows ---------- */

.show-list {
  display: flex;
  flex-direction: column;
}
.show {
  position: relative;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  line-height: 1.4;
}
.show:last-child { border-bottom: 1px solid var(--border); }
.show-date {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding-top: 1rem;
  /*margin-bottom: 0.25rem;*/
}
.show-artist {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--fg-muted);
}
.show-venue {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.show-location {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--fg-muted);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  /*margin: 0 0 1rem;*/
}
.show-lineup {
  color: var(--fg-muted);
  font-size: 0.9rem;
  margin: 0 0 1.25rem;
}
.show-lineup a { color: var(--gold); border-bottom: 1px solid transparent; }
.show-lineup a:hover { border-bottom-color: var(--gold); }

@media (min-width: 781px) {
  .show {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
    align-items: start;
  }
  .show-info:only-child { grid-column: 1 / -1; }
}

.past-shows {
  margin-top: 3.5rem;
}
.past-shows summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
  transition: color 0.2s ease;
}
.past-shows summary::-webkit-details-marker { display: none; }
.past-shows summary::before {
  content: "+";
  color: var(--gold);
  font-size: 1em;
  line-height: 1;
  transition: transform 0.2s ease;
}
.past-shows[open] summary::before { transform: rotate(45deg); }
.past-shows summary:hover { color: var(--fg); }
.past-shows .show-list { margin-top: 1.5rem; }

/* ---------- Videos ---------- */

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.video-grid .video:first-child {
  grid-column: 1 / -1;
}
@media (max-width: 780px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 500px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-raised);
  overflow: hidden;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video figcaption {
  margin-top: 0.9rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--fg-muted);
}

/* ---------- About ---------- */

.about-layout {
  display: grid;
  grid-template-columns: minmax(240px, 420px) 1fr;
  gap: var(--gap);
}
.about-images {
  display: grid;
  gap: 1rem;
  align-content: start;
}
.about-images img { aspect-ratio: 3 / 2; object-fit: cover; }
.about-copy p {
  color: var(--fg-muted);
  max-width: 48em;
  margin: 0 0 1.4rem;
}
.about-copy p:first-child {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.55rem;
  line-height: 1.55;
  color: #d8d0c4;
  margin-bottom: 2.5rem;
}
.about-copy em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--fg);
}

@media (max-width: 780px) {
  .about-layout { grid-template-columns: 1fr; }
  .about-images { grid-template-columns: 1fr 1fr; }
}

/* ---------- Contact ---------- */

.contact h2 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  max-width: 14em;
  margin-bottom: 1.5rem;
}
.contact-copy {
  color: var(--fg-muted);
  max-width: 32em;
  margin-bottom: 2rem;
}
.contact-photo {
  max-width: 420px;
  margin-top: 1rem;
}

/* MailerLite embedded form — override their default light-card styling
   to match the site's dark/gold theme. Their widget injects its own
   <style> tag at runtime, so these use !important to win the cascade. */
.mailer-embed {
  max-width: 420px;
}
.mailer-embed .ml-form-embedWrapper.embedForm {
  background: transparent !important;
  max-width: 100% !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.mailer-embed .ml-form-embedContent h4,
.mailer-embed .ml-form-embedContent p {
  display: none !important;
}
.mailer-embed .ml-form-embedBody {
  padding: 0 !important;
}
.mailer-embed.mailer-embed input.form-control {
  background: var(--bg-raised) !important;
  border: 1px solid var(--border) !important;
  color: var(--fg) !important;
  font-family: var(--font-sans) !important;
  font-size: 0.9rem !important;
  border-radius: 0 !important;
  padding: 0.8rem 1rem !important;
  box-shadow: none !important;
}
.mailer-embed.mailer-embed input.form-control::placeholder {
  color: var(--fg-muted) !important;
}
.mailer-embed.mailer-embed button.primary {
  background: var(--gold) !important;
  color: var(--on-gold) !important;
  font-family: var(--font-sans) !important;
  font-size: 0.68rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  border-radius: 0 !important;
  border: none !important;
  padding: 0.8rem 1.8rem !important;
  transition: opacity 0.2s ease;
}
.mailer-embed.mailer-embed button.primary:hover {
  opacity: 0.85 !important;
}
.mailer-embed .ml-error input.form-control {
  border-color: var(--gold) !important;
}

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

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 2rem clamp(1.25rem, 4vw, 2rem) 3rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--fg-muted);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.site-footer a:hover { color: var(--gold); }

@media (max-width: 500px) {
  .site-footer { flex-direction: column; gap: 0.75rem; text-align: center; }
}

.social-row .svc-icon {
	width: 1.3em;
	height: 1.3em;
	vertical-align: -0.28em;
}
.social-row a {
	display: inline-block;
	padding: 0 0.6rem;
	color: var(--fg-muted);
}
.social-row a:hover {
	color: var(--gold);
}
