@font-face {
  font-family: "Stage Display";
  src: url("./assets/stage-display.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --night: #171021;
  --panel: #281b40;
  --cream: #f9f0e2;
  --light: #fff8ef;
  --muted: #d7c7e9;
  --acid: #e3fc65;
  --pink: #ff78b8;
  --lavender: #bba7ff;
  --violet: #7956d3;
  --dark-purple: #40287c;
  --ink: #231a36;
  --display: "Stage Display", "Archivo Black", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --sans: Geist, Inter, "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-padding-top: 1rem; }

body {
  margin: 0;
  background: var(--night);
  color: var(--light);
  font: 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; }
button, a { touch-action: manipulation; }
button:not(:disabled) { cursor: pointer; }
[hidden] { display: none !important; }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 4px;
}

.page {
  width: min(77rem, calc(100% - clamp(2.65rem, 10vw, 9rem)));
  margin-inline: auto;
}

.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  padding: 0.55rem 0.9rem;
  background: var(--cream);
  color: var(--ink);
}

.masthead {
  border-top: 4px solid var(--pink);
  border-bottom: 1px solid #674c8d;
  background: var(--night);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
  gap: 0.75rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--light);
  font: 700 1.1rem/1 var(--display);
  text-decoration: none;
  white-space: nowrap;
}

.wordmark-block {
  display: grid;
  width: 2.05rem;
  height: 2.05rem;
  place-items: center;
  transform: rotate(-7deg);
  background: var(--acid);
  color: var(--night);
  font: 1.45rem/1 var(--sans);
}

.masthead nav {
  display: flex;
  align-items: center;
  gap: clamp(0.65rem, 3.3vw, 2.7rem);
}

.masthead nav a {
  display: grid;
  min-width: 2.55rem;
  min-height: 2.65rem;
  place-items: center;
  color: var(--light);
  font-size: 0.87rem;
  font-weight: 700;
  text-decoration: none;
}

.masthead nav a:hover { color: var(--acid); }

.hero {
  position: relative;
  overflow: clip;
  background:
    linear-gradient(#c3a2ff14 1px, transparent 1px) 0 0 / 30px 30px,
    linear-gradient(90deg, #c3a2ff14 1px, transparent 1px) 0 0 / 30px 30px,
    radial-gradient(ellipse at 77% 37%, #4a2d72, #21132e 62%, var(--night) 91%);
}

.stage {
  position: relative;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: clamp(1.75rem, 5.5vw, 5.8rem);
  padding: clamp(3.5rem, 5.9vw, 5.9rem) 0 clamp(3.1rem, 5.6vw, 5.35rem);
}

.stage::before {
  content: "";
  position: absolute;
  top: 7%;
  right: 2%;
  width: 42%;
  height: 83%;
  border: 1px solid #ddbef45e;
  border-radius: 50%;
  transform: rotate(-24deg);
  pointer-events: none;
}

.stage-copy {
  z-index: 1;
  min-width: 0;
}

.show-label {
  display: inline-flex;
  padding: 0.35rem 0.64rem;
  transform: rotate(-4deg);
  background: var(--pink);
  box-shadow: 3px 3px 0 #0b0612;
  color: var(--night);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero h1 {
  margin: 1.05rem 0 0 -0.095em;
  color: var(--light);
  font: 700 clamp(4.4rem, 9.1vw, 8.4rem)/1.02 var(--display);
  letter-spacing: -0.09em;
  white-space: nowrap;
}

.hero h1 span {
  display: block;
  margin-top: -0.015em;
  color: var(--acid);
  text-shadow: 0.032em 0.032em var(--pink), 0.066em 0.066em #5333a7;
}

.hero-facts {
  margin-top: clamp(1.25rem, 2.6vw, 2.15rem);
  color: var(--light);
  font-size: clamp(1.08rem, 1.78vw, 1.4rem);
  font-weight: 700;
}

.hero-lede {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.93rem;
}

.stage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.25rem;
  align-items: center;
  margin-top: 1.55rem;
}

.stage-button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3.35rem;
  padding: 0.6rem 1.15rem;
  border: 2px solid var(--night);
  background: var(--acid);
  box-shadow: 5px 5px 0 var(--pink);
  color: var(--night);
  font-weight: 700;
  transition: box-shadow 150ms ease, transform 150ms ease, background 150ms ease;
}

.stage-button:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px var(--pink); background: #efff9d; }
.stage-button:active { transform: translate(3px, 3px); box-shadow: 2px 2px var(--pink); }

.stage-button span { font-size: 0.85rem; }

.stage-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.8rem;
  padding: 0 0.2rem;
  color: var(--light);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.stage-link span { color: var(--pink); font-size: 1.1rem; }
.stage-link:hover { color: var(--acid); }

.applause {
  min-height: 1.5rem;
  margin-top: 0.8rem;
  color: var(--acid);
  font-size: 0.79rem;
  font-weight: 700;
}

.monitor {
  position: relative;
  padding: 0 0.6rem 0.55rem;
  border: 2px solid var(--lavender);
  background: var(--panel);
  box-shadow: 7px 7px 0 var(--violet), 10px 10px 0 #120b1b;
}

.monitor::after {
  content: "";
  position: absolute;
  top: -2.02rem;
  right: -1.58rem;
  width: clamp(3rem, 5.8vw, 5.3rem);
  aspect-ratio: 1;
  transform: rotate(12deg);
  background: var(--acid);
  clip-path: polygon(50% 0, 61% 31%, 82% 11%, 79% 37%, 100% 43%, 73% 54%, 94% 74%, 65% 72%, 61% 100%, 49% 76%, 28% 95%, 30% 68%, 0 70%, 24% 52%, 5% 25%, 34% 36%);
  pointer-events: none;
}

.monitor-bar,
.monitor-photo figcaption {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
}

.monitor-bar {
  min-height: 2.45rem;
  padding: 0 2.1rem 0 0.24rem;
}

.monitor-label {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  color: var(--light);
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.monitor-label::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 100%;
  background: var(--pink);
  box-shadow: 0 0 8px #ff78b8a3;
}

.monitor-lights { display: flex; gap: 0.3rem; }
.monitor-lights i { width: 0.35rem; height: 0.35rem; border-radius: 100%; background: var(--lavender); }
.monitor-lights i:first-child { background: var(--acid); }

.monitor-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #1f152c;
}

.monitor-photo figcaption {
  min-height: 2.65rem;
  padding-inline: 0.22rem;
  color: var(--light);
  font-size: 0.84rem;
  font-weight: 700;
}

.source-tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  padding: 0.15rem 0.42rem;
  background: #e9ddff;
  color: #3a206d;
  font-size: 0.69rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.source-ai {
  background: #ffd1e7;
  color: #6b1647;
}

.stage-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.36rem;
}

.stage-controls button {
  min-height: 2.45rem;
  padding: 0.3rem 0.5rem;
  border: 1px solid #8d75c1;
  background: #362650;
  color: var(--light);
  font-size: 0.81rem;
  font-weight: 700;
  white-space: nowrap;
}

.stage-controls button:hover { background: #503870; }

.stage-controls button[aria-pressed="true"] {
  border-color: var(--acid);
  background: var(--acid);
  color: var(--night);
}

.confetti {
  position: fixed;
  z-index: 7;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.confetti span {
  position: absolute;
  top: var(--origin-y);
  left: var(--origin-x);
  width: 0.52rem;
  height: 0.82rem;
  opacity: 0;
  background: var(--tint);
  animation: burst 1.45s var(--delay) cubic-bezier(0.22, 0.68, 0.5, 1) both;
}

.confetti span:nth-child(3n) { width: 0.65rem; height: 0.65rem; border-radius: 50%; }

@keyframes burst {
  0% { opacity: 1; transform: translate(0, 0) rotate(0deg); }
  48% { opacity: 1; transform: translate(var(--travel-x), var(--rise)) rotate(var(--spin)); }
  100% { opacity: 0; transform: translate(var(--travel-x), 300px) rotate(calc(var(--spin) + 260deg)); }
}

.ticker {
  border-block: 2px solid var(--night);
  background: var(--acid);
  color: var(--night);
}

.ticker-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  min-height: 3.6rem;
  font-size: clamp(0.78rem, 1.44vw, 1.05rem);
  font-weight: 700;
}

.ticker b { font-size: 1.2rem; font-weight: 400; }

.dispatch-section { padding-block: clamp(2.6rem, 6vw, 5.15rem); }

.dispatch {
  display: grid;
  grid-template-columns: 0.68fr 1.32fr;
  min-height: 14.5rem;
  border: 2px solid var(--pink);
  box-shadow: 7px 7px 0 #413058;
}

.dispatch-heading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.65rem;
  padding: clamp(1.2rem, 3vw, 2.6rem);
  background: var(--pink);
  color: var(--night);
}

.dispatch-heading span {
  padding: 0.13rem 0.42rem;
  border: 1px solid var(--night);
  font-size: 0.75rem;
  font-weight: 700;
}

.dispatch h2, .album h2 {
  font: 700 clamp(2.3rem, 4.85vw, 4.25rem)/1.13 var(--display);
  letter-spacing: -0.075em;
}

.dispatch-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
  padding: clamp(1.2rem, 3.7vw, 3.75rem);
  background: var(--panel);
}

.dispatch p {
  min-height: 3.2em;
  max-width: 29em;
  color: var(--light);
  font-size: clamp(1rem, 1.72vw, 1.32rem);
  font-weight: 700;
}

.dispatch-next {
  min-height: 2.65rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--acid);
  background: transparent;
  color: var(--acid);
  font-size: 0.82rem;
  font-weight: 700;
}

.dispatch-next span { margin-left: 0.35rem; font-size: 1rem; }
.dispatch-next:hover { background: var(--acid); color: var(--night); }

.replay { background: var(--cream); color: var(--ink); }

.album {
  padding: clamp(2.5rem, 5.65vw, 5.35rem) 0 clamp(2.8rem, 6.2vw, 5.9rem);
}

.album-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem 2rem;
  align-items: flex-end;
  margin-bottom: 1.55rem;
}

.album-top p:not(.sr-only) { margin-top: 0.55rem; color: #5b5063; font-size: 0.92rem; }

.filters {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.filters button {
  min-height: 2.6rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--ink);
  background: var(--light);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.filters button:hover { background: #fbddea; }

.filters button[aria-pressed="true"] {
  background: var(--pink);
  box-shadow: 2px 2px 0 var(--ink);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.photo-card {
  min-width: 0;
  padding: 0.38rem 0.38rem 0;
  border: 1px solid #796a8c;
  background: var(--light);
  box-shadow: 2px 2px 0 #c4aed7;
}

.photo-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #d8cbe2;
}

.photo-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

@media (hover: hover) { .photo-link:hover img { transform: scale(1.045); } }

.photo-seated img { object-position: center 32%; }
.photo-plaid img { object-position: center 25%; }

.photo-caption {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.45rem;
  padding: 0.65rem 0.27rem 0.79rem;
}

.photo-caption h3 { color: var(--ink); font-size: 0.97rem; line-height: 1.4; }
.photo-caption p { margin-top: 0.23rem; color: #554a62; font-size: 0.79rem; line-height: 1.45; }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0 1.45rem;
  color: var(--light);
  font-size: 0.85rem;
  font-weight: 700;
}

.footer a { color: var(--acid); text-decoration: none; text-underline-offset: 0.24em; }
.footer a:hover { text-decoration: underline; }

.viewer {
  width: min(57rem, calc(100% - 2rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 2px solid var(--pink);
  background: var(--cream);
  color: var(--ink);
}

.viewer::backdrop { background: #100919e6; }
body:has(.viewer[open]) { overflow: hidden; }

.viewer-top, .viewer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.56rem 0.85rem;
}

.viewer-top { font-weight: 700; font-size: 0.85rem; }

.viewer-image-wrap {
  display: grid;
  place-items: center;
  background: var(--night);
}

.viewer-image-wrap img {
  width: 100%;
  height: min(60dvh, 37rem);
  object-fit: contain;
}

.viewer-bottom { padding: 0.8rem 1rem 0.85rem; }
.viewer-details h2 { font-size: 1.15rem; line-height: 1.3; }
.viewer-details p { margin: 0.2rem 0 0.4rem; color: #554a62; font-size: 0.85rem; }
.viewer-controls { display: flex; gap: 0.35rem; }

.viewer-button {
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  padding: 0 0 0.1rem;
  border: 1px solid var(--ink);
  background: var(--light);
  color: var(--ink);
  font-size: 1.48rem;
  line-height: 1;
}

.viewer-button:hover { background: var(--acid); }
.viewer-close { font-size: 1.85rem; }

@media (max-width: 68rem) {
  .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 52rem) {
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dispatch { grid-template-columns: 0.78fr 1.22fr; }
}

@media (max-width: 43rem) {
  .masthead-inner { min-height: 3.75rem; }
  .wordmark { gap: 0.53rem; font-size: 1rem; }
  .wordmark-block { width: 1.7rem; height: 1.7rem; font-size: 1.24rem; }
  .masthead nav { gap: 0.42rem; }
  .masthead nav a { min-width: 2.2rem; font-size: 0.82rem; }

  .stage {
    grid-template-columns: 1fr;
    gap: 1.35rem;
    padding: 2.35rem 0 2.5rem;
  }

  .stage::before { top: auto; bottom: 7%; height: 37%; width: 80%; }
  .hero h1 { font-size: clamp(4.2rem, 15.6vw, 7.6rem); margin-top: 0.8rem; }
  .hero-facts { margin-top: 1.05rem; }
  .stage-actions { margin-top: 1.15rem; }
  .stage-button { min-height: 2.9rem; }
  .applause { min-height: 1.3rem; margin-top: 0.65rem; }
  .monitor { margin-right: 0.42rem; box-shadow: 5px 5px 0 var(--violet), 8px 8px 0 #120b1b; }
  .monitor::after { top: -1.35rem; right: -0.78rem; }
  .monitor-bar { padding-right: 1.55rem; }
  .stage-controls button { min-height: 2.65rem; }

  .ticker-inner { min-height: 2.9rem; }
  .ticker b { font-size: 0.95rem; }
  .dispatch { grid-template-columns: 1fr; min-height: 0; }
  .dispatch-heading { gap: 0.35rem; }
  .dispatch-copy { gap: 0.55rem; }
  .dispatch p { min-height: 3.15em; }
  .album-top { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 30rem) {
  .ticker-extra { display: none; }
  .photo-grid { grid-template-columns: 1fr; }
  .viewer { width: calc(100% - 1rem); }
  .viewer-bottom { padding-inline: 0.65rem; }
}

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