@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/barlow-condensed.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --black: #151412;
  --surface: #1b1916;
  --cream: #f4eddf;
  --muted: #c5baab;
  --gold: #edb979;
  --line: #494137;
  --body: "DM Sans", Arial, sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--black); color: var(--cream); font: 1rem/1.55 var(--body); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
p, h1, h2, h3, dl, dd { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
main section[id], footer { scroll-margin-top: 1.25rem; }

.shell { width: min(100% - 7rem, 72rem); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: absolute;
  z-index: 5;
  top: .5rem;
  left: .5rem;
  padding: .6rem 1rem;
  background: var(--cream);
  color: var(--black);
}

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 4.5rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.wordmark { display: flex; align-items: center; min-height: 44px; width: 9.1rem; color: var(--cream); }
.logo-art {
  display: block;
  width: 100%;
  aspect-ratio: 751 / 164;
  background: url("assets/guavatron-logo.webp") center / contain no-repeat;
}
nav, .socials { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem 1.7rem; }
nav a, .header-booking, .socials a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; font-weight: 600; }
nav a:hover, .header-booking:hover, .socials a:hover { color: var(--gold); }
.header-booking { justify-self: end; color: var(--gold); }

.hero { position: relative; isolation: isolate; display: grid; min-height: clamp(32rem, 50vw, 44rem); align-items: end; overflow: hidden; background: #210f0e; }
.hero-image, .hero-photo, .hero-image::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { z-index: -1; }
.hero-photo { object-fit: cover; object-position: center 40%; }
.hero-image::after {
  content: "";
  background: linear-gradient(0deg, #151412 0%, rgb(16 10 8 / .89) 14%, rgb(16 10 8 / .22) 59%, rgb(16 10 8 / .03) 93%);
}
.hero-inner { text-align: center; padding-block: 8rem 3.8rem; }
.hero h1 { margin: 0 auto; width: min(100%, 40rem); color: var(--cream); }
.eyebrow { font-size: .82rem; text-transform: uppercase; letter-spacing: .145em; font-weight: 700; color: var(--gold); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.5rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: .55rem 1.1rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--cream);
  font-size: .92rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.primary { background: var(--gold); border-color: var(--gold); color: #1c140d; }
.primary:hover { background: #ffd39a; border-color: #ffd39a; }
.outline { border-color: #9e8d78; }
.outline:hover { border-color: var(--gold); color: var(--gold); }

.section { padding-block: clamp(3.35rem, 7vw, 6.3rem); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .7rem 1.5rem; margin-bottom: 2rem; }
h2, h3 { font-family: var(--display); font-weight: 800; }
h2 { font-size: clamp(3.15rem, 6.8vw, 6rem); line-height: .9; text-transform: uppercase; letter-spacing: -.02em; }
h3 { font-size: clamp(1.75rem, 3vw, 2.55rem); line-height: 1; }
.text-link { color: var(--gold); font-weight: 650; text-underline-offset: .23em; text-decoration-thickness: 1px; }
.text-link:hover { color: var(--cream); }

.show-list { border-top: 1px solid var(--line); }
.show { display: grid; grid-template-columns: 5.3rem minmax(0, 1fr) auto; gap: 1.4rem; align-items: center; padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.show-date {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--line);
  min-height: 5.4rem;
  line-height: 1.08;
  color: var(--gold);
}
.show-date span { text-transform: uppercase; font-size: .85rem; font-weight: 700; letter-spacing: .09em; }
.show-date strong { color: var(--cream); font: 800 2.25rem/.97 var(--display); }
.show-date small { color: var(--muted); font-size: .78rem; }
.show-info p { margin-top: .35rem; color: var(--muted); }
.show-info p span { padding-inline: .35em; color: var(--gold); }
.shows-empty { padding-top: 1rem; color: var(--muted); }

.music, .photos { background: var(--surface); border-block: 1px solid var(--line); }
.record-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.record { display: grid; grid-template-columns: clamp(7.5rem, 14vw, 12rem) minmax(0, 1fr); align-items: center; border: 1px solid var(--line); background: var(--black); }
.record img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.record-info { padding: 1rem clamp(.9rem, 2.25vw, 1.75rem); }
.record-info h3 { margin: .45rem 0 .6rem; }
.play-link { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; }
.play-icon { width: .6em; height: .7em; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.platform-links { display: flex; flex-wrap: wrap; gap: .7rem 1.5rem; margin-top: 1.25rem; }

.about-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 3rem; align-items: center; }
.bio { margin-top: 1.25rem; max-width: 35rem; font-size: clamp(1.15rem, 2.5vw, 1.55rem); line-height: 1.5; }
.members { margin-top: 1.8rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.4rem; }
.members div { padding-top: .7rem; border-top: 1px solid var(--line); }
.members dt { font-weight: 700; }
.members dd { color: var(--muted); }

.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.photo-grid figure { margin: 0; }
.photo-grid figcaption { color: var(--muted); font-size: .875rem; margin-top: .5rem; }
.photo-link { display: block; overflow: hidden; }
.photo-link img { width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; }
/* Stagger the seams so the wider live shots can sit alongside the portraits. */
.band-collage {
  display: grid;
  grid-template-columns: minmax(0, 1.23fr) minmax(0, 1fr);
  grid-template-rows: repeat(12, minmax(0, 1fr));
  aspect-ratio: 1;
  gap: 0 .375rem;
}
.band-collage .photo-link { min-height: 0; }
.band-collage .photo-link img { height: 100%; aspect-ratio: auto; }
.collage-guitar { grid-area: 1 / 1 / 6 / 2; margin-bottom: .1875rem; }
.collage-guitar img { object-position: 50% 64%; }
.collage-drums { grid-area: 6 / 1 / 13 / 2; margin-top: .1875rem; }
.collage-drums img { object-position: 70% center; }
.collage-keys { grid-area: 1 / 2 / 8 / 3; margin-bottom: .1875rem; }
.collage-keys img { object-position: 55% 76%; }
.collage-bass { grid-area: 8 / 2 / 13 / 3; margin-top: .1875rem; }
.collage-bass img { object-position: 50% 48%; }
@media (hover: hover) {
  .photo-link:hover { outline: 1px solid var(--gold); outline-offset: 4px; }
}

.merch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.merch-vinyl {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  align-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
}
.merch-cover { display: block; }
.merch-buy { margin-top: .75rem; }
.merch-vinyl img { width: 100%; height: auto; aspect-ratio: 1; }
.merch-vinyl-info { padding: 1rem clamp(.85rem, 2.5vw, 1.6rem); }
.merch-vinyl-info h3 { margin-top: .4rem; }
.merch-apparel { padding: 1rem clamp(.85rem, 2.5vw, 1.6rem); border: 1px solid var(--line); }
.merch-apparel ul { list-style: none; padding: 0; margin: .7rem 0 0; }
.merch-apparel li { padding-block: .45rem; border-top: 1px solid var(--line); }
#contact { border-top: 1px solid var(--line); }

.footer-main { padding-block: 2.7rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 2rem; }
.contact-link { display: inline-block; margin-top: .3rem; font-size: clamp(1.03rem, 2.7vw, 1.45rem); text-underline-offset: .22em; overflow-wrap: anywhere; }
.socials { gap: .1rem 1.25rem; }

dialog { max-width: calc(100% - 2rem); max-height: calc(100% - 2rem); padding: 1rem; background: var(--surface); color: var(--cream); border: 1px solid var(--line); overscroll-behavior: contain; }
dialog::backdrop { background: rgb(0 0 0 / .8); }
#album-dialog { width: 30rem; max-height: calc(100dvh - 1.5rem); }
.dialog-top { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.dialog-top h2 { font-size: clamp(1.75rem, 6vw, 2.8rem); }
#player iframe { display: block; width: 100%; height: min(24rem, 58dvh); border: 0; margin-block: 1rem .6rem; }
#photo-dialog { padding: 0; width: fit-content; }
.photo-close { position: absolute; z-index: 1; top: .5rem; right: .5rem; margin: 0; }
.photo-close button { background: var(--black); }
#expanded-photo { width: auto; max-height: calc(100dvh - 3rem); object-fit: contain; }

@media (max-width: 800px) {
  .shell { width: calc(100% - 3rem); }
  .site-header nav { column-gap: 1rem; }
  .record-grid { gap: .9rem; }
  .merch-vinyl { grid-template-columns: min(19vw, 11rem) minmax(0, 1fr); }
  .record { grid-template-columns: clamp(5.25rem, 16vw, 8.5rem) minmax(0, 1fr); }
  .record-info h3 { font-size: 1.75rem; }
}

@media (max-width: 590px) {
  .shell { width: calc(100% - 2rem); }
  .header-inner {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 .8rem;
    padding-top: .25rem;
  }
  .wordmark { width: 7.8rem; }
  .header-booking { grid-column: 2; grid-row: 1; padding-inline: .5rem; }
  .site-header nav {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--line);
  }
  nav a, .header-booking { font-size: .94rem; }
  nav a { justify-content: center; min-height: 46px; }

  .hero { min-height: 0; background: var(--black); }
  .hero-image { height: auto; bottom: auto; aspect-ratio: 3 / 2; }
  .hero-image::after {
    background: linear-gradient(0deg, var(--black), rgb(21 20 18 / .45) 28%, transparent 66%);
  }
  .hero-inner { padding-block: clamp(10.25rem, 51vw, 18.75rem) 2.1rem; }
  .hero h1 { width: min(100%, 29rem); }
  .hero-actions { gap: .65rem; margin-top: .95rem; }
  .hero-actions .button { min-height: 46px; padding-inline: .9rem; }

  .section { padding-block: 2.85rem; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: .7rem; margin-bottom: 1.35rem; }
  .section-heading .text-link { display: inline-flex; align-items: center; min-height: 44px; margin-block: -.45rem; }
  h2 { font-size: clamp(2.55rem, 10vw, 3.75rem); }
  .show { grid-template-columns: 3.7rem minmax(0, 1fr); gap: .7rem .85rem; padding-block: 1rem; }
  .show-date { grid-row: 1 / span 2; align-self: start; min-height: 4.9rem; }
  .show-info h3 { font-size: clamp(1.55rem, 6.25vw, 1.9rem); }
  .show-info p { font-size: .94rem; }
  .show > .button { grid-column: 2; justify-self: start; min-height: 46px; }

  .record-grid, .about-layout, .merch-grid { grid-template-columns: minmax(0, 1fr); }
  .record { grid-template-columns: min(32vw, 8rem) minmax(0, 1fr); }
  .record-info { padding-block: .7rem; }
  .record-info h3 { font-size: clamp(1.5rem, 5.9vw, 1.8rem); }
  .record-info .eyebrow { letter-spacing: .09em; }
  .platform-links { margin-top: .75rem; }
  .platform-links a { display: inline-flex; align-items: center; min-height: 44px; }

  .merch-grid { gap: .85rem; }
  .merch-vinyl { grid-template-columns: min(34vw, 8rem) minmax(0, 1fr); }
  .members { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem 1rem; }
  .band-collage { margin-top: .25rem; }
  .photo-grid { grid-template-columns: minmax(0, 1fr); gap: 1.3rem; }
  .footer-main { align-items: flex-start; flex-direction: column; gap: .6rem; }
  .contact-link { padding-block: .2rem .65rem; }
}

@media (max-width: 350px) {
  .shell { width: calc(100% - 1.5rem); }
  .show-info p span { padding-inline: .15em; }
  .record-info { padding-inline: .65rem; }
}

@media (max-width: 950px) and (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: clamp(15rem, 73svh, 21rem); }
  .hero-inner { padding-block: 2rem 1.25rem; }
  .hero h1 { width: min(100%, 24rem); }
  .hero-actions { margin-top: .8rem; }
}

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

.merch-item {
  display: flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
}
.merch-item img {
  flex: 0 0 auto;
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  border-radius: .25rem;
}
.merch-item .text-link { text-decoration: underline; }
.merch-item:hover .text-link { color: var(--cream); }

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1rem;
}
#copy-email-status { color: var(--muted); font-size: .875rem; }
