:root {
  /* Sampled from the Illustrator-exported assets */
  --yellow:  #ffff33;
  --pink:    #ff3366;
  --green:   #009900;
  --magenta: #ff33ff;
  --blue:    #0000ff;
  --black:   #000;
  --white:   #fff;

  /*
    Adobe Fonts kit qch5wny exposes Futura PT under the "medium" subfamily:
    Light=300, Demi=600, Heavy=700. Minion Pro: Regular=400, Bold=700.
  */
  --font-display: "futura-pt-web-medium", system-ui, -apple-system, "Segoe UI",
    Helvetica, Arial, sans-serif;
  --font-serif: "minion-pro", "Iowan Old Style", Georgia, serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(1rem, 3vw, 2rem);
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
}

/* ----- Layout ----- */

.poster {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 2vw, 1.25rem);
}

/* Flex items default to min-width: auto = their min-content size, which
   for items containing intrinsically-sized images would force the
   container wider than the viewport. min-width: 0 lets them shrink. */
.poster > * {
  min-width: 0;
}

/* ----- Top lineup -----
   One continuous paragraph that wraps over as many lines as it needs.
   Every "fixed part" — section label, artist name, pipe — is an
   atomic inline-block span; between them is a single HTML whitespace
   that the browser may break at.  text-align justify (incl. last line)
   stretches each line to the right edge. Labels carry extra padding-
   right so the gap after "Music" / "Live Performances" is visibly
   wider than the gaps around the pipes.
*/

.lineup {
  font-family: var(--font-display);
  font-size: clamp(0.65rem, 3.2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.005em;
  text-align: justify;
  text-align-last: justify;
}

/* Each fixed part is atomic — internal text is never split or
   expanded by justify. */
.lineup .name,
.lineup .label,
.lineup .sep {
  display: inline-block;
}

/* Labels get a wider visual gap to the next item. */
.lineup .label {
  padding-right: 1.5em;
}

/* Regular weight for labels, parens, pipes; bold inherited for names. */
.lineup .label,
.lineup .reg,
.lineup .sep {
  font-weight: 400;
}

.lineup a {
  color: var(--black);
  text-decoration: underline;
  text-decoration-color: var(--black);
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.18em;
  padding: 0 0.18em;
  margin: 0 -0.18em;
  transition: background-color 150ms ease, color 150ms ease,
    text-decoration-color 150ms ease;
}

.lineup a:hover,
.lineup a:focus-visible {
  background-color: var(--pink);
  color: var(--yellow);
  text-decoration-color: transparent;
  outline: none;
}

.lineup a {
  color: var(--black);
  text-decoration: underline;
  text-decoration-color: var(--black);
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.18em;
  padding: 0 0.18em;
  margin: 0 -0.18em;
  transition: background-color 150ms ease, color 150ms ease,
    text-decoration-color 150ms ease;
}

.lineup a:hover,
.lineup a:focus-visible {
  background-color: var(--pink);
  color: var(--yellow);
  text-decoration-color: transparent;
  outline: none;
}

/* ----- Pixel-rendered images (wordmark + info bar) ----- */

.wordmark,
.info-bar {
  display: block;
  width: 100%;
  margin: 0;
}

.wordmark img,
.info-bar img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.wordmark {
  margin-top: clamp(0.25rem, 1vw, 0.5rem);
}

.info-bar {
  margin-top: clamp(0.25rem, 1vw, 0.5rem);
}

/* ----- Art ----- */

.art {
  width: 100%;
  margin: 0;
}

.art img {
  width: 100%;
  height: auto;
  display: block;
}

/* ----- CTA ----- */

.cta {
  margin-top: clamp(0.5rem, 2vw, 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
}

.cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  background: var(--pink);
  color: var(--yellow);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 4.5vw, 1.75rem);
  letter-spacing: -0.01em;
  padding: clamp(1rem, 3.5vw, 1.4rem) 1.25rem;
  border: 4px solid var(--black);
  text-transform: uppercase;
}

.cta-button:hover,
.cta-button:focus-visible {
  background: var(--green);
  outline: none;
}

.cta-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: right;
}

.cta-note {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 2.6vw, 1rem);
  font-weight: 400;
  line-height: 1.4;
}

.cta-note .free-entry {
  color: var(--pink);
  font-weight: 700;
}

.cta-note .arrival {
  display: block;
  font-weight: 700;
  margin-top: 0.35rem;
}

.cta-note .no-photos {
  display: block;
  font-weight: 700;
  margin-top: 0.35rem;
}

.cta-note .no-photos a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cta-note .no-photos a:hover,
.cta-note .no-photos a:focus-visible {
  color: var(--pink);
  outline: none;
}

.cta-note .address {
  display: block;
  font-weight: 300;
  opacity: 0.85;
  margin-top: 0.15rem;
}

.cta-links {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 2.4vw, 0.95rem);
  font-weight: 500;
  line-height: 1.4;
}

.cta-links a {
  color: var(--pink);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.cta-links a:hover {
  text-decoration-thickness: 2px;
}

/* ----- Desktop layout ----- */

@media (min-width: 720px) {
  .cta {
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    gap: 1.5rem;
  }

  .cta-button {
    flex: 1;
  }

  .cta-meta {
    flex: 0 0 auto;
    max-width: 22rem;
    justify-content: center;
  }
}

/* ----- Sub-pages (donate) ----- */

.page {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.back-link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(0.95rem, 2.4vw, 1.05rem);
  text-decoration: none;
  color: var(--black);
}

.back-link:hover {
  color: var(--pink);
}

.page-header .logo-link img {
  display: block;
  width: clamp(140px, 22vw, 200px);
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  text-transform: uppercase;
  margin-top: clamp(0.5rem, 2vw, 1.5rem);
}

.page-intro {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.8vw, 1.25rem);
  line-height: 1.5;
  max-width: 36rem;
}

/* Donation amount selector */

.amounts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.5rem, 1.5vw, 0.75rem);
  border: 0;
  padding: 0;
  margin-top: clamp(0.75rem, 2vw, 1rem);
}

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

.amounts legend {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  margin-bottom: 0.6rem;
  padding: 0;
}

.amount {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(0.85rem, 2.5vw, 1.1rem) 0.5rem;
  border: 3px solid var(--black);
  background: var(--yellow);
  cursor: pointer;
  font-family: var(--font-display);
  text-align: center;
}

.amount input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}

.amount-value {
  font-size: clamp(1.5rem, 4.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.amount-note {
  font-size: clamp(0.7rem, 1.8vw, 0.8rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.4rem;
}

.amount:hover {
  background: var(--green);
  color: var(--yellow);
}

.amount:has(input:checked) {
  background: var(--pink);
  color: var(--yellow);
}

.amount:has(input:checked):hover {
  background: var(--green);
}

.amount input:focus-visible ~ .amount-value {
  outline: 2px dashed var(--black);
  outline-offset: 6px;
}

/* QR code panel */

.qr {
  margin: clamp(1.25rem, 3vw, 2rem) auto 0;
  width: clamp(220px, 60vw, 320px);
  background: var(--white);
  border: 4px solid var(--black);
  padding: clamp(0.75rem, 2vw, 1.25rem);
}

.qr img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.qr-caption {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 2.4vw, 1rem);
  font-weight: 300;
  margin-top: 0.75rem;
  color: var(--black);
}

.wero-button {
  display: block;
  width: clamp(220px, 60vw, 320px);
  margin: clamp(0.75rem, 2vw, 1rem) auto 0;
  padding: clamp(0.85rem, 3vw, 1.1rem) 1rem;
  background: var(--pink);
  color: var(--yellow);
  border: 4px solid var(--black);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 4vw, 1.2rem);
  letter-spacing: -0.01em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.wero-button:hover,
.wero-button:focus-visible {
  background: var(--green);
  outline: none;
}

.wero-note {
  width: clamp(220px, 60vw, 320px);
  margin: 0.6rem auto 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(0.8rem, 2.2vw, 0.9rem);
  font-weight: 300;
  line-height: 1.4;
  color: var(--black);
}

.donate-thanks {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.6vw, 1.2rem);
  font-style: italic;
  text-align: center;
  margin-top: clamp(1rem, 2.5vw, 1.5rem);
}

/* ----- Photo gallery (archived party pages) ----- */

.gallery-section {
  margin-top: clamp(1.5rem, 5vw, 3rem);
}

.gallery-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
}

/* CSS multi-column gives a responsive masonry-style layout with no JS:
   2 columns on phones, 3 on the 720px desktop container. Photos are
   pre-shuffled, so the column-by-column fill order doesn't matter. */
.gallery {
  columns: 3 180px;
  column-gap: clamp(0.5rem, 1.5vw, 0.75rem);
}

.gallery .shot {
  display: block;
  break-inside: avoid;
  margin: 0 0 clamp(0.5rem, 1.5vw, 0.75rem);
  border: 3px solid var(--black);
  background: var(--white);
  line-height: 0;
  transition: border-color 120ms ease;
}

.gallery .shot:hover,
.gallery .shot:focus-visible {
  border-color: var(--pink);
  outline: none;
}

.gallery .shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* Archival note replacing the live-event CTA on past parties. */
.archive-note {
  margin-top: clamp(0.5rem, 2vw, 1.5rem);
}

.archive-note p {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.8vw, 1.25rem);
  line-height: 1.5;
  max-width: 40rem;
}

/* ----- Lightbox ----- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.5rem, 3vw, 2rem);
  background: rgba(0, 0, 0, 0.92);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  border: 3px solid var(--black);
  background: var(--black);
}

/* Lock background scroll while the lightbox is open. */
body.lb-open {
  overflow: hidden;
}

.lightbox-btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(2.75rem, 9vw, 3.5rem);
  height: clamp(2.75rem, 9vw, 3.5rem);
  padding: 0;
  background: var(--pink);
  color: var(--yellow);
  border: 3px solid var(--black);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  line-height: 1;
  cursor: pointer;
}

.lightbox-btn:hover,
.lightbox-btn:focus-visible {
  background: var(--green);
  outline: none;
}

.lightbox-close {
  top: clamp(0.5rem, 2vw, 1rem);
  right: clamp(0.5rem, 2vw, 1rem);
}

.lightbox-prev {
  left: clamp(0.5rem, 2vw, 1rem);
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: clamp(0.5rem, 2vw, 1rem);
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-counter {
  position: absolute;
  left: 50%;
  bottom: clamp(0.5rem, 2vw, 1rem);
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.85rem, 2.4vw, 1rem);
  color: var(--white);
  background: var(--black);
  padding: 0.3em 0.7em;
}

@media print {
  .cta {
    display: none;
  }
  .gallery-section,
  .lightbox {
    display: none;
  }
}
