/* Hal Waldram — clean minimal with green / purple accents */

:root {
  --bg: #fafafa;
  --fg: #111111;
  --muted: #5c5c5c;
  --line: #e8e8e8;
  --card: #ffffff;

  /* Brand accents — iOS-style green (Phone app), not neon */
  --neon: #34c759;
  --neon-deep: #2db84e;
  --purple: #7c3aed;
  --purple-soft: #ede9fe;
  --black: #0a0a0a;

  --radius: 12px;
  --max: 720px;
  --space: clamp(1.25rem, 4vw, 2rem);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --focus: 0 0 0 3px color-mix(in srgb, var(--neon) 55%, transparent);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--purple);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: color-mix(in srgb, var(--purple) 80%, var(--black));
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 4px;
}

.wrap {
  width: min(100% - 2 * var(--space), var(--max));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--neon) 18%, transparent);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.75rem 0;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--fg);
  order: 1;
}

.logo:hover {
  color: var(--fg);
  opacity: 1;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--black);
  flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--neon);
}

.nav-main {
  order: 3;
  flex: 1 1 100%;
}

@media (min-width: 720px) {
  .nav {
    flex-wrap: nowrap;
  }

  .nav-main {
    order: 2;
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
  }
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--purple);
  opacity: 1;
}

/* Digital tips — top right, high visibility */
.tip-bar {
  order: 2;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: center; /* label + buttons share one centered column */
  gap: 0.3rem;
  flex-shrink: 0;
  width: max-content; /* shrink-wrap to button group so label centers over them */
}

@media (min-width: 720px) {
  .tip-bar {
    order: 3;
  }
}

.tip-bar-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
  text-align: center;
  width: 100%;
}

.tip-bar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

/*
  Tip buttons: outline style at rest so the header reads as a landing page,
  not a donation ask. Still colored + tappable for QR-code scanners at shows;
  fill in with brand color on hover. To revert to solid fills, restore from backup.
*/
.tip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--fg);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

/* Cash App — green */
.tip-btn-cashapp {
  color: var(--neon-deep);
  border-color: color-mix(in srgb, var(--neon) 55%, var(--line));
}

.tip-btn-cashapp:hover {
  background: var(--neon);
  border-color: var(--neon-deep);
  color: #fff;
  opacity: 1;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--neon) 30%, transparent);
}

/* Venmo — official blue */
.tip-btn-venmo {
  color: #0074d9;
  border-color: color-mix(in srgb, #008cff 55%, var(--line));
}

.tip-btn-venmo:hover {
  background: #008cff;
  border-color: #0074d9;
  color: #fff;
  opacity: 1;
  box-shadow: 0 0 0 3px color-mix(in srgb, #008cff 30%, transparent);
}

.tip-btn:focus-visible {
  box-shadow: var(--focus);
}

/* Hero */

.hero {
  padding: clamp(2.5rem, 8vw, 4.5rem) 0 clamp(2rem, 6vw, 3.5rem);
}

.hero-grid {
  display: grid;
  gap: 1.75rem;
  justify-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .hero-grid {
    gap: 2rem;
  }
}

.avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  background: var(--line);
  border: 3px solid var(--black);
  box-shadow: 0 0 0 3px var(--neon);
}

.hero h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.85rem, 5vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-weight: 700;
  color: var(--black);
}

.hero p {
  margin: 0 auto;
  color: var(--muted);
  max-width: 38ch;
}

.hero-copy {
  min-width: 0;
}

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

/* Social links sit in the hero */
.hero-social {
  margin-top: 1.15rem;
}

/* Streaming buttons — moved down into the Music section */
.listen-actions {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

/*
  Base button first. Brand variants MUST come after so they override.
*/

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.05rem;
  border-radius: 999px;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: none;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.btn:hover {
  background: #f5f5f5;
  color: #111;
  opacity: 1;
}

.btn-ghost {
  background: #fff;
  color: var(--fg);
  border-color: var(--line);
  font-weight: 500;
}

.btn-ghost:hover {
  color: var(--purple);
  border-color: var(--purple);
  background: var(--purple-soft);
}

/* Book a show — white + blue outline */
.btn-book {
  background: #fff;
  border-color: #008cff;
  color: #008cff;
}

.btn-book:hover {
  background: color-mix(in srgb, #008cff 8%, #fff);
  border-color: #0074d9;
  color: #0074d9;
  box-shadow: 0 0 0 3px color-mix(in srgb, #008cff 22%, transparent);
}

/* Hero primary CTA — green "Listen" button (matches the avatar ring) */
.hero-primary {
  margin-top: 1.15rem;
}

.btn-listen {
  background: var(--neon);
  border-color: var(--neon-deep);
  color: #fff;
}

.btn-listen:hover {
  background: var(--neon-deep);
  border-color: var(--neon-deep);
  color: #fff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--neon) 30%, transparent);
}

.btn-listen-glyph {
  font-size: 0.72em;
  line-height: 1;
}

/* Spotify — official green */
.btn-spotify {
  background: #1db954;
  border-color: #1aa34a;
  color: #fff;
}

.btn-spotify:hover {
  background: #1aa34a;
  border-color: #1aa34a;
  color: #fff;
  box-shadow: 0 0 0 3px color-mix(in srgb, #1db954 28%, transparent);
}

/* Apple Music — Music app red */
.btn-apple {
  background: #fa243c;
  border-color: #e01e35;
  color: #fff;
}

.btn-apple:hover {
  background: #e01e35;
  border-color: #e01e35;
  color: #fff;
  box-shadow: 0 0 0 3px color-mix(in srgb, #fa243c 28%, transparent);
}

/* Amazon — marketplace orange */
.btn-amazon {
  background: #ff9900;
  border-color: #e88b00;
  color: #111;
}

.btn-amazon:hover {
  background: #f0a000;
  border-color: #e88b00;
  color: #111;
  box-shadow: 0 0 0 3px color-mix(in srgb, #ff9900 30%, transparent);
}

/*
  Social buttons: calm neutral pills at rest so the hero isn't a rainbow.
  Each button adopts its brand color on hover/focus for recognition.
  To revert to always-on brand colors, restore this block from backup.
*/
.btn.social-btn {
  background: #fff;
  color: var(--fg);
  border: 1px solid var(--line);
  font-weight: 500;
}

.btn.social-btn:hover {
  color: #fff;
  opacity: 1;
}

/* Instagram — reddish / orange */
.btn.social-btn-instagram:hover {
  background: linear-gradient(45deg, #f77737 0%, #e1306c 55%, #c13584 100%);
  border-color: transparent;
  box-shadow: 0 0 0 3px color-mix(in srgb, #e1306c 25%, transparent);
}

/* TikTok — solid black */
.btn.social-btn-tiktok:hover {
  background: #000000;
  border-color: #000000;
  box-shadow: 0 0 0 3px color-mix(in srgb, #000 18%, transparent);
}

/* YouTube — red */
.btn.social-btn-youtube:hover {
  background: #ff0000;
  border-color: #ff0000;
  box-shadow: 0 0 0 3px color-mix(in srgb, #ff0000 25%, transparent);
}

/* Facebook — blue */
.btn.social-btn-facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
  box-shadow: 0 0 0 3px color-mix(in srgb, #1877f2 25%, transparent);
}

/* Shop subsections — merch vs Amazon gear */
.shop-block {
  margin-top: 1.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}

.shop-block:first-of-type {
  margin-top: 0.85rem;
  padding-top: 0;
  border-top: 0;
}

.shop-subhead {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
}

.shop-block .section-intro {
  margin-bottom: 0.9rem;
}

/* Product grid (visual Amazon affiliate display) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-top: 0.25rem;
}

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

@media (min-width: 720px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.product-card:hover {
  border-color: color-mix(in srgb, var(--purple) 30%, var(--line));
  box-shadow: 0 6px 18px color-mix(in srgb, var(--purple) 8%, transparent);
}

.product-thumb {
  position: relative;
  display: block;
  aspect-ratio: 1;
  background: #f3f3f3;
  border: 0;
  padding: 0;
  cursor: zoom-in;
  width: 100%;
}

.product-thumb img,
.protected-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.65rem;
  background: #fff;
  /* Discourage casual save / drag */
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  pointer-events: none; /* clicks hit the button; img can't be targeted easily */
}

.product-body {
  padding: 0.75rem 0.85rem 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  flex: 1;
}

.product-body h3 {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.product-body p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
  flex: 1;
}

.product-body .btn {
  margin-top: 0.35rem;
  width: 100%;
  font-size: 0.8rem;
  padding: 0.5rem 0.65rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space);
  background: color-mix(in srgb, var(--black) 72%, transparent);
  backdrop-filter: blur(6px);
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox-figure {
  margin: 0;
  max-width: min(92vw, 520px);
  width: 100%;
  background: var(--card);
  border-radius: var(--radius);
  padding: 1rem 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 20px 50px color-mix(in srgb, var(--black) 35%, transparent);
}

.lightbox-figure img {
  width: 100%;
  max-height: min(60vh, 420px);
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 0.5rem;
}

.lightbox-figure figcaption {
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.35;
}

.lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, #fff 90%, transparent);
  color: var(--black);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}

.lightbox-close:hover {
  background: #fff;
}

/* Sections */

.section {
  padding: 2.25rem 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 84px; /* keep sticky header from covering jump targets */
}

.section-label {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
  font-weight: 600;
  text-align: center;
}

.section h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  font-weight: 600;
  text-align: center;
}

.section-intro {
  margin: 0 auto 1.25rem;
  color: var(--muted);
  max-width: 48ch;
  text-align: center;
}

/* Cards */

.card-list {
  display: grid;
  gap: 0.75rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--neon);
  border-radius: var(--radius);
  padding: 1.1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  border-color: color-mix(in srgb, var(--purple) 35%, var(--line));
  border-top-color: var(--purple);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--purple) 8%, transparent);
}

.card h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  font-weight: 600;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.card .btn {
  flex-shrink: 0;
}

/* Embed */

.embed {
  margin-top: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--black);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--neon) 25%, transparent);
}

.embed iframe {
  display: block;
  width: 100%;
  min-height: 152px;
  border: 0;
}

.embed iframe[hidden] {
  display: none !important;
}

.embed-load {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  min-height: 152px;
  padding: 1.25rem 1.35rem;
  border: 0;
  background: linear-gradient(
    145deg,
    #121212 0%,
    #1a1a1a 50%,
    color-mix(in srgb, var(--purple) 25%, #121212) 100%
  );
  color: #fff;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease;
}

.embed-load:hover {
  background: linear-gradient(
    145deg,
    #161616 0%,
    #1f1f1f 50%,
    color-mix(in srgb, var(--neon) 20%, #161616) 100%
  );
}

.embed-load-title {
  font-size: 1rem;
  font-weight: 600;
}

.embed-load-title::before {
  content: "▶ ";
  color: var(--neon);
}

.embed-load-sub {
  font-size: 0.85rem;
  color: color-mix(in srgb, #fff 65%, transparent);
  font-weight: 400;
  max-width: 36ch;
}

/* Social row */

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.25rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--fg);
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}

.chip:hover {
  border-color: var(--neon);
  background: color-mix(in srgb, var(--neon) 18%, var(--card));
  color: var(--black);
  opacity: 1;
}

/* Shows */

.show-list {
  display: grid;
  gap: 0.75rem;
}

.show {
  display: grid;
  gap: 0.35rem 1rem;
  grid-template-columns: 1fr;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--purple);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

@media (min-width: 560px) {
  .show {
    grid-template-columns: 6.5rem 1fr auto;
    align-items: center;
  }
}

.show-date {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
  color: var(--purple);
}

.show-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.show-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.empty-state {
  color: var(--muted);
  border: 1px dashed color-mix(in srgb, var(--purple) 30%, var(--line));
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--card);
}

/* Photo strip */

.photo-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin-top: 1.5rem;
}

@media (min-width: 560px) {
  .photo-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

.photo-strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid var(--line);
  background: var(--line);
  cursor: zoom-in;
  /* These photos are the click target themselves (no wrapping button),
     so re-enable pointer events that .protected-img disables. Right-click /
     drag are still blocked via the JS handlers in protectImages(). */
  pointer-events: auto;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.photo-strip img:focus-visible {
  outline: none;
  border-color: var(--neon);
  box-shadow: var(--focus);
}

.photo-strip img:hover {
  border-color: var(--neon);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--neon) 40%, transparent);
}

/* Footer */

.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  position: relative;
}

.site-footer::before {
  content: "";
  display: block;
  height: 3px;
  width: min(100% - 2 * var(--space), var(--max));
  margin: 0 auto 1.75rem;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--neon) 0%,
    var(--black) 50%,
    var(--purple) 100%
  );
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  align-items: center;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--purple);
  opacity: 1;
}

/* Hidden utility for feature flags */

[hidden] {
  display: none !important;
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .chip,
  .card,
  .photo-strip img,
  .nav-links a {
    transition: none;
  }
}
