:root {
  --gold: #ffc04d;
  --gold-soft: #e7a83c;
  --cream: #fff5dc;
  --muted: #d7c6b3;
  --wine: #721913;
  --wine-dark: #3a0a07;
  --line: rgba(255, 192, 77, 0.32);
}

@font-face {
  font-family: "Roller Coaster";
  src: url("Roller%20Coaster/Roller%20Coaster.otf") format("opentype"),
       url("Roller%20Coaster/Roller%20Coaster.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Alegreya Sans";
  src: url("Alegreya_Sans/AlegreyaSans-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Alegreya Sans";
  src: url("Alegreya_Sans/AlegreyaSans-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Alegreya Sans";
  src: url("Alegreya_Sans/AlegreyaSans-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Alegreya Sans";
  src: url("Alegreya_Sans/AlegreyaSans-ExtraBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
}

.background {
  background: #100204;
  color: var(--cream);
  font-family: "Alegreya Sans", Arial, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

#stitch-backdrop-canvas {
  height: 100%;
  inset: 0;
  pointer-events: none;
  position: absolute;
  width: 100%;
  z-index: 0;
}

.page {
  isolation: isolate;
  margin: 0 auto;
  max-width: 760px;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.1rem, 5vw, 2.5rem) 1.5rem;
  position: relative;
  z-index: 1;
}

.page > header,
.page > main,
.page > footer,
.closing-message,
.cats-art {
  position: relative;
  z-index: 1;
}

.logo-crop {
  height: 70px;
  overflow: hidden;
  width: 70px;
}

.event-logo {
  display: block;
  height: auto;
  max-width: none;
  transform: translate(-25px, -27px);
  width: 253px;
}

.header-visual {
  background: #4a1014;
  height: clamp(105px, 19vw, 140px);
  margin-bottom: clamp(0.75rem, 2vw, 1rem);
  overflow: hidden;
  position: relative;
}

.header-visual::after {
  box-shadow: inset 0 0 2.2rem 0.5rem rgba(16, 2, 4, 0.92);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.st-johns-art {
  display: block;
  filter: grayscale(1) contrast(1.1) brightness(0.72);
  height: 100%;
  mix-blend-mode: luminosity;
  object-fit: cover;
  object-position: center 66%;
  opacity: 0.82;
  width: 100%;
}

.header-visual .logo-crop {
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.corner-photo {
  aspect-ratio: 4 / 3;
  border: 2px solid rgba(255, 192, 77, 0.7);
  border-radius: 10px;
  box-shadow: 0 0.35rem 0.8rem rgba(0, 0, 0, 0.5);
  height: auto;
  object-fit: cover;
  position: absolute;
  width: clamp(60px, 10vw, 78px);
  z-index: 2;
}

.corner-photo--one {
  left: 0.5rem;
  top: 0.45rem;
}

.corner-photo--two {
  right: 0.5rem;
  top: 0.45rem;
}

.corner-photo--three {
  bottom: 0.45rem;
  left: 0.5rem;
}

.corner-photo--four {
  bottom: 0.45rem;
  right: 0.5rem;
}

.microphone-art {
  opacity: 0.16;
  pointer-events: none;
  position: absolute;
  right: -28rem;
  top: 26rem;
  width: 46rem;
  z-index: 0;
}

.site-header {
  border-bottom: 1px solid var(--line);
  margin: 0 auto clamp(1.25rem, 3vw, 2rem);
  padding-bottom: 0.75rem;
  text-align: center;
}

.show-title {
  color: var(--gold);
  filter: drop-shadow(0 0.18rem 0.25rem rgba(0, 0, 0, 0.45));
  font-family: "Roller Coaster", Georgia, serif;
  font-size: clamp(3.5rem, 12vw, 6.75rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.86;
  margin: 0 auto;
  text-transform: uppercase;
}

.show-title__prefix {
  display: block;
  font-size: clamp(1.9rem, 6vw, 3.4rem);
  line-height: 0.95;
  margin-bottom: 0.16em;
  text-transform: none;
}

.show-title__main {
  display: block;
}

.show-title__show {
  display: inline-block;
  margin-left: 0.08em;
  position: relative;
  top: 0.06em;
}

.program-label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin: clamp(0.85rem, 2vw, 1.25rem) 0 0;
  text-transform: uppercase;
}

.run-of-show {
  list-style: none;
  margin: 0;
  padding: 0;
}

.performance {
  align-items: center;
  display: grid;
  gap: clamp(0.75rem, 3vw, 1.35rem);
  grid-template-columns: clamp(3.5rem, 10vw, 5.4rem) 1fr;
  margin-bottom: clamp(0.3rem, 1vw, 0.55rem);
  min-height: 5.9rem;
  padding: clamp(0.6rem, 2vw, 0.85rem) clamp(0.35rem, 2vw, 0.8rem);
  position: relative;
}

.performance::after {
  background: var(--line);
  bottom: 0;
  content: "";
  height: 1px;
  left: clamp(4.85rem, 14vw, 7.4rem);
  position: absolute;
  right: 0;
}

.performance__number {
  color: var(--gold);
  font-family: "Roller Coaster", Georgia, serif;
  font-size: clamp(3.2rem, 10vw, 5rem);
  line-height: 0.8;
  text-align: center;
}

.performance__details {
  min-width: 0;
}

.performance__type {
  color: var(--gold-soft);
  font-size: clamp(0.68rem, 2vw, 0.78rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  margin: 0 0 0.12rem;
  text-transform: uppercase;
}

.performance h2 {
  color: var(--cream);
  font-size: clamp(1.55rem, 5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  margin: 0;
}

.performance__names {
  color: var(--muted);
  font-size: clamp(0.95rem, 2.8vw, 1.08rem);
  font-style: italic;
  line-height: 1.25;
  margin: 0.25rem 0 0;
}

.performance--finale {
  grid-template-columns: clamp(3.5rem, 10vw, 5.4rem) 1fr auto;
  margin-top: 0.8rem;
}

.performance--finale h2 {
  color: var(--gold);
}

.finale-mark {
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  /* text-transform: uppercase; */
}

.site-footer {
  padding: clamp(1.25rem, 3vw, 2rem) 0 0.5rem;
  text-align: center;
}

.closing-message {
  color: #fff;
  font-size: clamp(1rem, 2.5vw, 1.12rem);
  line-height: 1.5;
  margin: clamp(1.5rem, 4vw, 2.5rem) auto 0;
  max-width: 640px;
}

.closing-message span {
  display: block;
  margin-top: 0.55rem;
}

.cats-art {
  display: block;
  height: auto;
  margin: clamp(1rem, 3vw, 1.75rem) auto 0;
  max-width: min(100%, 384px);
}

.site-footer p {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0;
  text-transform: uppercase;
}

@media (max-width: 520px) {
  .page {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }

  .site-header {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .header-visual {
    height: 105px;
  }

  .microphone-art {
    opacity: 0.12;
    right: -11rem;
    top: 22rem;
    width: 24rem;
  }

  .performance {
    gap: 0.75rem;
    grid-template-columns: 3.25rem 1fr;
    min-height: 5.5rem;
    padding: 0.65rem 0.75rem;
  }

  .performance--finale {
    grid-template-columns: 3.25rem 1fr;
  }

  .finale-mark {
    display: none;
  }
}

@media print {
  @page {
    margin: 0.35in;
    size: letter portrait;
  }

  body {
    background: #fff;
  }

  #stitch-backdrop-canvas {
    display: none;
  }

  .microphone-art,
  .cats-art,
  .header-visual {
    display: none;
  }

  .page {
    color: #21130f;
    max-width: none;
    padding: 0;
  }

  .site-header {
    margin-bottom: 0.13in;
  }

  .show-title {
    color: #7a1711;
    font-size: 42pt;
    filter: none;
  }

  .show-title__prefix {
    font-size: 21pt;
  }

  .program-label {
    color: #54342a;
    font-size: 7pt;
  }

  .run-of-show {
    column-gap: 0.18in;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .performance {
    background: transparent;
    border-bottom: 1px solid #d8cbbd;
    border-left: 2px solid #b37825;
    border-top: 0;
    break-inside: avoid;
    gap: 0.08in;
    grid-template-columns: 0.38in 1fr;
    margin: 0;
    min-height: 0.66in;
    padding: 0.07in 0.08in;
    transform: none;
  }

  .performance__number {
    color: #9c661c;
    font-size: 24pt;
  }

  .performance__type {
    color: #7a1711;
    font-size: 5.7pt;
  }

  .performance h2 {
    color: #21130f;
    font-size: 12.5pt;
  }

  .performance__names {
    color: #5c463e;
    font-size: 7.5pt;
    margin-top: 0.02in;
  }

  .performance--finale {
    grid-column: 1 / -1;
    margin-top: 0.08in;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .finale-mark {
    color: #7a1711;
  }

  .site-footer {
    color: #9c661c;
    padding: 0.12in 0 0;
  }

  .site-footer p {
    color: #54342a;
    font-size: 6.5pt;
  }
}
