:root {
  --green: #1f3d2c;        /* primary: deep bottle green */
  --green-dark: #132a1d;
  --green-glow: #2f5a40;   /* soft light falling across the page */
  --green-light: #9cc3a3;
  --shadow: 0 18px 40px rgba(0, 0, 0, .45), 0 4px 10px rgba(0, 0, 0, .3);
  --shadow-lift: 0 26px 50px rgba(0, 0, 0, .5), 0 6px 14px rgba(0, 0, 0, .35);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --black: #121110;
  --white: #fbf8f0;
  --display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --pad: clamp(16px, 2.5vw, 36px);
  --mosaic: url("assets/mosaic-yellow.png");  /* built from the shirt in the artist photo */
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  color: var(--white); font-family: var(--body);
  background-color: var(--green);
  background-image:
    radial-gradient(ellipse 80% 70% at 22% 0%, var(--green-glow), transparent 70%),
    radial-gradient(ellipse 90% 80% at 100% 100%, var(--green-dark), transparent 70%);
}
/* fine film grain over everything, so the green isn't a flat fill */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50;
  background: var(--grain); opacity: .09; mix-blend-mode: overlay;
}
img { display: block; max-width: 100%; }

/* One screen, no scrolling */
.page {
  height: 100vh; height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: var(--pad);
  padding: var(--pad);
  overflow: hidden;
}

/* HEADER: cropped mosaic banner with the name on top */
.header {
  position: relative;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: clamp(10px, 2vh, 22px) var(--pad);
  background: var(--mosaic) center 40% / max(100%, 1100px) auto;  /* steady block size; phones see a slice */
  image-rendering: pixelated;
  border: 3px solid var(--black);
  box-shadow: var(--shadow);
}
.title {
  margin: 0;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2rem, 6.5vw, 5.5rem);
  letter-spacing: -.03em;
  line-height: 1; text-align: left; color: var(--white);
  min-width: 0;
  /* tight edge shadow plus a soft halo so it reads over the mosaic */
  text-shadow: 0 .03em 0 var(--black), 0 .08em .3em rgba(0, 0, 0, .65);
}
.title img { max-height: 16vh; width: auto; }

/* Social buttons: small dark circles, white icons */
.socials { display: flex; gap: clamp(6px, 1vw, 12px); flex: none; }
.social {
  --size: clamp(34px, 3.6vw, 48px);
  width: var(--size); height: var(--size);
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(18, 17, 16, .72); color: var(--white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
  transition: background .15s, transform .15s;
}
.social svg { width: 48%; height: 48%; }
.social:hover { background: var(--black); transform: translateY(-2px); }
.social:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; }

/* MAIN: photo + tiles */
.main {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: var(--pad);
}
.photo {
  margin: 0; min-height: 0;
  container-type: size;           /* lets the square size itself to the cell */
  display: grid; place-items: center;
}
/* Flip card: photo on the front, bio on the back */
.flip {
  width: min(100cqw, 100cqh); height: min(100cqw, 100cqh);
  padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left;
  cursor: pointer; perspective: 1400px;
  position: relative;
}
/* shadow lives on the static frame, so it never mirrors during the flip */
.flip::before {
  content: ""; position: absolute; inset: 0;
  box-shadow: var(--shadow);
}
.flip:focus-visible { outline: 3px solid var(--white); outline-offset: 6px; }
.flip-inner {
  position: relative; z-index: 1; display: block; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.3, .7, .3, 1);
}
.flip.flipped .flip-inner { transform: rotateY(180deg); }
.face {
  position: absolute; inset: 0; display: block; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border: 3px solid var(--black);
  background: var(--black);
}
.front img {
  width: 100%; height: 100%; object-fit: cover;
  image-rendering: pixelated;     /* keep the pixel-art photo crisp */
}
.front .placeholder { display: grid; place-items: center; height: 100%; }
.back {
  transform: rotateY(180deg);
  color: var(--white);
  padding: clamp(12px, 7cqmin, 32px);
  overflow-y: auto;
  display: flex; flex-direction: column; gap: .6em;
}
.bio-heading {
  font-weight: 700; letter-spacing: -.02em; line-height: 1;
  font-size: clamp(1rem, 8cqmin, 2rem);   /* scales with the card */
}
.bio-p { display: block; font-size: clamp(.68rem, 6cqmin, 1.1rem); line-height: 1.4; }


.releases {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), var(--tile, 1fr));
  grid-auto-rows: var(--tile, auto);
  gap: clamp(8px, 1.4vw, 18px);
  justify-content: center;
  align-content: center;
}
.tile {
  position: relative; display: grid; place-items: center;
  padding: 0; border: 3px solid var(--black); cursor: pointer;
  box-shadow: var(--shadow);
  background: var(--black); color: var(--white); font: inherit;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile:hover, .tile:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.tile:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; }
.tile-label {
  position: absolute; inset: auto 0 0 0;
  padding: .45rem .55rem; font-size: .8rem; font-weight: 700; text-align: left;
  background: var(--white); color: var(--black);
  transform: translateY(100%); transition: transform .15s;
}
.tile:hover .tile-label, .tile:focus-visible .tile-label { transform: none; }
.tile .placeholder + .tile-label { display: none; }

.tile-soon {
  cursor: default; border-color: #6f6a62; color: var(--white);
  background: #77736b; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2em;
  text-align: center; padding: .5rem;
}
/* greyed-out mosaic behind "2027" */
.tile-soon::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--mosaic) center / 260% auto;
  image-rendering: pixelated;
  filter: grayscale(1) contrast(.75) brightness(1.15);
  opacity: .55;
}
.tile-soon:hover { transform: none; box-shadow: var(--shadow); }
.tile-soon { container-type: inline-size; }
.soon-year { text-shadow: 0 .06em 0 rgba(0,0,0,.35); font-family: var(--display); font-weight: 700; letter-spacing: -.03em; font-size: 24cqi; line-height: 1; }
.soon-title { font-size: 10cqi; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; line-height: 1.2; opacity: .9; }

.placeholder {
  color: var(--white); font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; text-align: center; padding: .5rem;
}

/* SHOWS MODULE */
.shows {
  background: var(--black); color: var(--white);
  padding: clamp(10px, 1.6vw, 18px) clamp(14px, 2vw, 24px);
  display: flex; align-items: center; gap: clamp(12px, 3vw, 40px);
  position: relative;
  padding-left: calc(clamp(14px, 2vw, 24px) + 16px);
  box-shadow: var(--shadow);
}
/* mosaic stripe down the left edge */
.shows::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 16px;
  background: var(--mosaic) left top / 400px auto;
  image-rendering: pixelated;
}
.shows h2 {
  margin: 0; flex: none;
  font-family: var(--display); font-weight: 700; letter-spacing: -.02em;
  font-size: clamp(1rem, 2vw, 1.5rem); line-height: 1.05;
  color: var(--white); max-width: 7em;
}
.shows ul {
  list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0;
  display: flex; flex-wrap: wrap; align-items: center;
  --show-space: clamp(16px, 2.5vw, 36px);
  row-gap: 10px;
  /* line separating the "Upcoming Shows" heading from the listings */
  border-left: 2px solid rgba(251, 248, 240, .4);
  padding-left: var(--show-space);
}
.show { display: flex; align-items: center; gap: 14px; }
/* thin divider between shows */
.show + .show {
  margin-left: var(--show-space); padding-left: var(--show-space);
  border-left: 1px solid rgba(251, 248, 240, .22);
}
.show-date {
  flex: none; width: 56px; padding: 6px 0;
  display: flex; flex-direction: column; align-items: center; line-height: 1;
  background: var(--white); color: var(--black);
}
.show-date .mon { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.show-date .day { font-family: var(--display); font-weight: 700; font-size: 1.6rem; letter-spacing: -.03em; }
.show-info { display: flex; flex-direction: column; min-width: 0; }
.venue { font-weight: 700; font-size: 1.05rem; color: var(--white); }
a.venue { text-decoration-color: var(--green-light); }
.meta { font-size: .85rem; opacity: .8; }
.age {
  flex: none; margin-left: 4px;  /* sits right beside the show details */
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: 4px 9px; border: 2px solid var(--green-light); color: var(--white);
}
.show-empty { opacity: .8; }

/* POP-UP */
.modal {
  border: 4px solid var(--black); padding: 0;
  width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  background: var(--white); color: var(--black);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.modal::backdrop { background: rgba(18, 17, 16, .75); }
.modal-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.modal-body h2 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -.02em; font-size: 1.6rem; line-height: 1.1; }
.modal-body p { margin: 0; }
.modal-cover { width: 100%; aspect-ratio: 1; object-fit: cover; }
.modal-body iframe { width: 100%; height: min(470px, 60dvh); border: 0; }
.modal-close {
  position: absolute; top: 6px; right: 8px; z-index: 1;
  width: 36px; height: 36px; border: 0; cursor: pointer;
  background: var(--black); color: var(--white); font-size: 1.4rem; line-height: 1;
}
.btn {
  align-self: flex-start;
  padding: .7rem 1.3rem; text-decoration: none; font-weight: 700;
  background: var(--green); color: var(--white); border: 3px solid var(--black);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .3); transition: transform .1s, box-shadow .1s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0, 0, 0, .35); }

/* Tall/narrow screens (phones): photo on top, tiles below, shows stacked */
@media (max-aspect-ratio: 4/5) {
  .header { gap: 10px; }
  .title { font-size: clamp(1.25rem, 7vw, 2.2rem); }
  .socials { gap: 6px; }
  .social { --size: 30px; }
  .main { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) minmax(0, 1.7fr); }
  .shows { flex-direction: column; align-items: stretch; gap: 8px; }
  .shows h2 { max-width: none; font-size: 1rem; }
  .shows ul {
    flex-direction: column; align-items: stretch; row-gap: 0;
    border-left: 0; padding-left: 0;
    border-top: 2px solid rgba(251, 248, 240, .4); padding-top: 8px;
  }
  .show + .show {
    margin-left: 0; padding-left: 0; border-left: 0;
    margin-top: 8px; padding-top: 8px;
    border-top: 1px solid rgba(251, 248, 240, .22);
  }
  .show-date { width: 46px; padding: 4px 0; }
  .show-date .day { font-size: 1.25rem; }
  .venue { font-size: .95rem; }
  .meta { font-size: .78rem; }
}
/* Short, wide screens (phones in landscape): shrink the header and
   shows bar so the photo and covers get the room */
@media (max-height: 520px) and (min-aspect-ratio: 4/5) {
  .page { gap: 12px; padding-block: 12px; }
  .header { padding-block: 6px; }
  .title { font-size: clamp(1.4rem, 9vh, 2.6rem); }
  .social { --size: 32px; }
  .main { gap: 20px; }
  .shows { padding-block: 8px; gap: 16px; }
  .shows h2 { font-size: .85rem; max-width: 5.5em; }
  .shows ul { --show-space: 18px; }
  .show { gap: 10px; }
  .show-date { width: 40px; padding: 3px 0; }
  .show-date .mon { font-size: .6rem; }
  .show-date .day { font-size: 1.1rem; }
  .venue { font-size: .85rem; }
  .meta { font-size: .72rem; white-space: nowrap; }
  .age { font-size: .62rem; padding: 3px 6px; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
