/* mollywater */

:root {
  color-scheme: dark;
  --bg: #181818;
  --surface: #222;
  --text: #f3efe8;
  --muted: #a8a49d;
  --line: rgba(243, 239, 232, 0.14);
  --ring: rgba(243, 239, 232, 0.32);
  --accent: #9092d1;        /* purple accent: change here */
  --accent-ink: #15152a;
  --red: #d2001f;

  --serif: "Fraunces", Georgia, serif;
  --mono: "Cutive Mono", "Courier New", monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --section-gap: clamp(72px, 9vw, 120px);
  --heading-gap: clamp(28px, 4vw, 48px);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overscroll-behavior-y: none; }
body { overscroll-behavior-y: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.45;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

h1, h2, h3 { margin: 0; font-weight: 600; }

.center { text-align: center; }

/* ---------- hero ---------- */

.hero {
  padding: clamp(24px, 4vw, 48px) var(--gutter) 0;
  text-align: center;
}

.hero__frame {
  --w: min(540px, 76vw);
  position: relative;
  width: var(--w);
  margin: 0 auto;
}

/* Outer hairline ring around the pill */
.hero__pill {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 999px;
  padding: calc(var(--w) * 0.034);
  border: 1px solid var(--ring);
}

.hero__collage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
}

.hero__logo {
  position: absolute;
  left: 50%;
  top: 47%;
  width: min(calc(var(--w) * 1.18), calc(100vw - 2 * var(--gutter)));
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: drop-shadow(0 2px 18px rgba(0, 0, 0, 0.35));
}

.badge {
  position: absolute;
  right: calc(var(--w) * -0.11);
  top: 63%;
  width: calc(var(--w) * 0.34);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  padding: 0.6em;
  font-size: clamp(9px, calc(var(--w) * 0.03), 16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transform: rotate(-4deg);
  transition: transform 0.25s ease;
}
.badge[hidden] { display: none; }
.badge:hover { transform: rotate(0deg) scale(1.04); }
.badge__kicker,
.badge__date {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.85;
}
.badge__venue {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.75em;
  line-height: 1;
  max-width: 7em;
}

.tagline {
  margin: clamp(36px, 6vw, 56px) auto 0;
  max-width: 34em;
  font-size: clamp(19px, 2.4vw, 27px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.3;
  text-wrap: balance;
}
@media (max-width: 560px) { .tagline br { display: none; } }

.icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 24px;
}
.icons a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--muted);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.icons a:hover { color: var(--accent); background: rgba(144, 146, 209, 0.12); }
.icons svg { width: 22px; height: 22px; fill: currentColor; }
.icons--large { gap: 14px; margin: 0 0 40px; }
.icons--large a { width: 56px; height: 56px; }
.icons--large svg { width: 28px; height: 28px; }

/* ---------- sections ---------- */

.section {
  padding: var(--section-gap) var(--gutter) 0;
  max-width: 1120px;
  margin: 0 auto;
}

.section > h2 {
  text-align: center;
  font-size: clamp(26px, 2.8vw, 34px);
  line-height: 1.1;
  margin-bottom: var(--heading-gap);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.62em 1.15em;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  font-family: inherit;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.button:hover { transform: translateY(-2px); filter: brightness(1.08); }

/* ---------- gigs ---------- */

.gigs__group {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0 24px;
  max-width: 720px;
  margin: 0 auto 32px;
}
.gigs__group h3 {
  color: var(--accent);
  font-weight: 400;
  font-size: 18px;
  padding-top: 18px;
}
.gigs__group > :not(h3) { grid-column: 2; }

.gig {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 20px;
}
.gig:last-child { border-bottom: 0; }
.gig__date {
  font-family: var(--mono);
  color: var(--accent);
  letter-spacing: 0.1em;
  font-size: 18px;
}
.gig em { color: var(--muted); }


.gigs__empty { color: var(--muted); font-style: italic; padding: 18px 0; margin: 0; }
.gigs .center { margin-top: 16px; }

.live-photos {
  list-style: none;
  padding: 0;
  margin: clamp(40px, 6vw, 64px) auto 0;
  max-width: 960px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
}
.live-photos img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 14px;
}
@media (max-width: 600px) {
  .live-photos {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 72%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-inline: -16px;
    padding-inline: 16px;
    scroll-padding-inline: 16px;
  }
  .live-photos::-webkit-scrollbar { display: none; }
  .live-photos li { scroll-snap-align: start; }
}

@media (max-width: 600px) {
  .gigs__group { grid-template-columns: 1fr; }
  .gigs__group > :not(h3) { grid-column: 1; }
  .gigs__group h3 { padding-top: 0; margin-bottom: 4px; }
  .gig { grid-template-columns: 62px 1fr; gap: 12px; font-size: 18px; }
  .gig__date { font-size: 16px; }
}

/* ---------- releases ---------- */

.releases__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 72px clamp(32px, 6vw, 96px);
  max-width: 900px;
  margin: 0 auto;
}

.release { text-align: center; }

.release__art {
  width: min(320px, 78%);
  aspect-ratio: 1;
  margin: 0 auto 28px;
  padding: 16px;
  border: 1px solid var(--ring);
  border-radius: 50%;
}
.release__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.6s ease;
}

.release__title {
  font-style: italic;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.1;
}
.release__meta {
  margin: 10px 0 0;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  font-size: 17px;
}
.release__links { margin-top: 10px; gap: 2px; }
.release__links a { width: 40px; height: 40px; }
.release__links svg { width: 20px; height: 20px; }

.release__quote {
  margin: 28px auto 0;
  max-width: 24em;
}
.release__quote p { margin: 0; font-size: 18px; text-wrap: balance; }
.release__quote cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 16px;
  color: var(--accent);
}

/* ---------- videos ---------- */

.videos__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
}

.video { margin: 0; container-type: inline-size; }
.video__frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: 28.125cqw; /* half the 16:9 height, so it animates smoothly */
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  transition: border-radius 0.5s cubic-bezier(0.5, 0, 0.2, 1);
}
.video__frame.is-open { border-radius: 14px; cursor: default; }
.video__frame.is-open img { opacity: 0; transition: opacity 0.4s ease; }
.video__frame.is-open .video__play { opacity: 0; }
.video__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.72);
  transition: filter 0.3s ease, transform 0.6s ease;
}
.video__frame:hover img { filter: brightness(0.85); transform: scale(1.03); }
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.video__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  border-radius: 50%;
  background: rgba(24, 24, 24, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
  transition: background-color 0.2s ease;
}
.video__play::after {
  content: "";
  position: absolute;
  left: 29px;
  top: 23px;
  border-style: solid;
  border-width: 13px 0 13px 21px;
  border-color: transparent transparent transparent #fff;
}
.video__frame:hover .video__play { background: var(--accent); }

.video figcaption {
  margin-top: 16px;
  font-style: italic;
  font-size: 22px;
  text-align: center;
}
.video figcaption span {
  display: block;
  font-style: normal;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 16px;
  color: var(--muted);
}

/* ---------- press ---------- */

.press__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.press__photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 999px;
}
.press__quotes { display: grid; gap: 32px; }
.press__quotes a { text-decoration: none; }
.press__quotes a:hover q { color: var(--accent); }
.press__quotes q {
  display: block;
  font-size: 20px;
  line-height: 1.35;
  transition: color 0.2s ease;
}
.press__quotes q::before,
.press__quotes q::after { content: none; }
.press__quotes cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 16px;
  color: var(--accent);
}

/* ---------- socials + footer ---------- */

.socials { text-align: center; }

.footer {
  padding: var(--section-gap) var(--gutter) 40px;
  text-align: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer img { width: 140px; margin: 0 auto 16px; opacity: 0.5; }
.footer p { margin: 0; }

/* ---------- small screens ---------- */

@media (max-width: 760px) {
  .releases__grid,
  .videos__grid,
  .press__grid { grid-template-columns: 1fr; }
  .press__photo { max-width: 520px; margin: 0 auto; width: 100%; }
  .release__title { font-size: 28px; }
}

@media (max-width: 480px) {
  .hero__frame { --w: 74vw; }
  .badge { right: calc(var(--w) * -0.14); width: calc(var(--w) * 0.4); }
}


.gigs__empty a { color: var(--accent); }


/* ---------- utilities ---------- */

.button__icon { width: 18px; height: 18px; fill: currentColor; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  padding: 10px 14px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600;
}
.skip:focus { top: 12px; }

.section__sub {
  margin: calc(10px - var(--heading-gap)) 0 var(--heading-gap);
  text-align: center;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 16px;
  color: var(--muted);
}

.button--ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--ring);
}
.button--ghost:hover { box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); filter: none; }

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0;
}

/* ---------- mailing list ---------- */

.signup__card {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 88px) clamp(20px, 5vw, 56px) clamp(32px, 4vw, 44px);
  border: 1px solid var(--ring);
  border-radius: 999px 999px 32px 32px;   /* arch, echoing the hero */
  text-align: center;
}
.signup__card h2 {
  font-size: clamp(28px, 3.4vw, 36px);
  font-style: italic;
  font-weight: 400;
}
.signup__lede { margin: 12px auto 28px; max-width: 26em; color: var(--muted); text-wrap: balance; }
.signup__form {
  display: flex;
  gap: 8px;
  max-width: 440px;
  margin: 0 auto;
  padding: 6px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.signup__form:focus-within { box-shadow: inset 0 0 0 1px var(--accent); }
.signup__form input {
  flex: 1;
  min-width: 0;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 18px;
  outline: none;
}
.signup__form input::placeholder { color: #8e8a84; }
.signup__form .button { padding: 0.5em 1.1em; }
.signup__done { margin: 16px 0 0; color: var(--accent); font-style: italic; }
.signup__alt { margin: 20px 0 0; font-size: 16px; color: var(--muted); }
.signup__alt a { color: var(--accent); text-underline-offset: 3px; }

/* ---------- about ---------- */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;   /* keeps the photo still when the full bio opens */
}
.about__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 42% 50%;
  border-radius: 999px 999px 24px 24px;
}
.about__text { max-width: 34em; }
.about__text p { margin: 0 0 1em; font-size: 19px; }
.about__sign { font-style: italic; color: var(--accent); }

@media (max-width: 760px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { max-width: 360px; margin: 0 auto; width: 100%; }
}

/* ---------- nav ----------
   A floating pill along the top edge, shown once the hero logo scrolls away. */

.nav {
  position: fixed;
  z-index: 50;
  left: 50%;
  top: calc(14px + env(safe-area-inset-top, 0px));
  max-width: calc(100vw - 2 * var(--gutter));
  padding: 6px;
  border-radius: 999px;
  background: rgba(24, 24, 24, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px var(--ring), 0 12px 30px rgba(0, 0, 0, 0.4);
  transform: translate(-50%, calc(-100% - 40px));
  transition: transform 0.35s ease;
}
:root.past-hero .nav { transform: translate(-50%, 0); }
.nav__links {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav__links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 14px;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav__links a:hover { color: var(--accent); background: rgba(144, 146, 209, 0.15); }
.nav__links a[aria-current="true"] { color: var(--accent); }
@media (max-width: 480px) {
  .nav__links a {
    padding: 7px 8px;
    font-family: var(--serif);
    text-transform: none;
    letter-spacing: 0;
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav { transition: none !important; }
}
.section { scroll-margin-top: 72px; }

/* ---------- toast ---------- */

.toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  width: max-content;
  max-width: calc(100vw - 2 * var(--gutter));
  padding: 12px 12px 12px 18px;
  border-radius: 28px;
  background: var(--text);
  color: var(--bg);
  font-size: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, 0);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast[hidden] { display: flex !important; opacity: 0; transform: translate(-50%, 16px); pointer-events: none; visibility: hidden; }
.toast__msg { overflow-wrap: anywhere; user-select: all; }
.toast__msg strong { font-weight: 600; }
.toast__action {
  flex: none;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
}
.toast__action:hover { background: var(--accent); color: var(--accent-ink); }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

.section.signup { padding-top: 24px; }
.gigs .gigs__group:last-child { margin-bottom: 0; }

/* ---------- past gigs: show four, fade, expand ---------- */

/* Collapsible blocks (past gigs, full bio): main.js sets the collapsed height. */
.collapsible { overflow: hidden; }
.collapsible.is-animating { transition: height 0.45s cubic-bezier(0.4, 0, 0.2, 1); }
.collapsible.is-collapsed[data-fade] {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 72px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 72px), transparent);
}
@media (prefers-reduced-motion: reduce) { .collapsible.is-animating { transition: none; } }

.more-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 6px 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 15px;
  color: var(--muted);
}
.more-toggle[hidden] { display: none; }
.more-toggle::after { content: "+"; font-size: 18px; transition: transform 0.2s ease; }
.more-toggle[aria-expanded="true"]::after { transform: rotate(45deg); }
.more-toggle:hover { color: var(--text); }

/* ---------- collage touches ---------- */

/* Hand-drawn stars, cut from the collage */
.section { position: relative; }
.star {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: auto;
  opacity: 0.4;
  transform: translate(-50%, -50%) rotate(var(--r));
  pointer-events: none;
}
@media (max-width: 760px) {
  .star { width: calc(var(--s) * 0.75); }
}

/* Release covers as taped-on polaroids */
.release__art.polaroid {
  position: relative;
  width: min(290px, 74%);
  aspect-ratio: auto;
  margin-bottom: 36px;
  padding: 12px 12px 46px;
  border: 0;
  border-radius: 2px;
  background: #ece6dc;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
  transform: rotate(-3deg);
}
.release:nth-child(even) .release__art.polaroid { transform: rotate(2.4deg); }
.release__art.polaroid img { height: auto; aspect-ratio: 1; border-radius: 0; }
.release__art.polaroid::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -16px;
  width: 46%;
  height: 30px;
  background: url("assets/img/tape-2.png") center / 100% 100% no-repeat;
  transform: translateX(-50%) rotate(-4deg);
  opacity: 0.92;
}
.release:nth-child(even) .release__art.polaroid::before { transform: translateX(-50%) rotate(5deg); }
