:root {
  color-scheme: light;
  --paper: #fff8ec;
  --paper-2: #effcff;
  --paper-3: #fff0fb;
  --ink: #251126;
  --ink-2: #3d2541;
  --muted: #6d5670;
  --red: #ff3131;
  --red-dark: #b41318;
  --pink: #ff2bd6;
  --cyan: #00a9ff;
  --cyan-dark: #006f9f;
  --gold: #ffb800;
  --green: #14d978;
  --line: rgba(37, 17, 38, 0.14);
  --shadow: rgba(37, 17, 38, 0.16);
  --banner-opacity: 1;
  --hero-top-wash: 0;
  --hero-mid-wash: 0.08;
  --hero-bottom-wash: 0.86;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  font-family: "Trebuchet MS", Arial, sans-serif;
  background:
    linear-gradient(135deg, rgba(255, 248, 236, 0.94), rgba(239, 252, 255, 0.9) 48%, rgba(255, 240, 251, 0.94)),
    var(--paper);
  color: var(--ink);
  isolation: isolate;
}

body.home-page::before {
  content: "";
  position: fixed;
  top: 72px;
  right: 0;
  left: 0;
  height: clamp(330px, 42vw, 560px);
  z-index: 0;
  background: url("assets/rapid-fire-team.jpg") center 38% / cover no-repeat;
  opacity: var(--banner-opacity);
  filter: saturate(1.12) contrast(1.03);
  pointer-events: none;
  transform: translateZ(0);
  -webkit-mask-image: linear-gradient(180deg, black 0 72%, transparent 100%);
  mask-image: linear-gradient(180deg, black 0 72%, transparent 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 43, 214, 0.08) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(0, 169, 255, 0.065) 0 1px, transparent 1px 72px),
    radial-gradient(circle at 12% 14%, rgba(255, 49, 49, 0.18), transparent 24rem),
    radial-gradient(circle at 88% 18%, rgba(0, 169, 255, 0.16), transparent 24rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.28));
  pointer-events: none;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 20;
  transform: translateY(-160%);
  background: var(--gold);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 900;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 5%, 72px);
  border-bottom: 3px solid var(--pink);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 32px rgba(255, 43, 214, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 8px rgba(255, 43, 214, 0.55))
    drop-shadow(0 0 10px rgba(0, 169, 255, 0.28));
}

.brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.site-nav a {
  border: 2px solid transparent;
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 900;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  border-color: var(--cyan);
  background: rgba(0, 169, 255, 0.1);
  color: var(--ink);
  outline: none;
}

.hero {
  min-height: 106svh;
  display: grid;
  place-items: start center;
  padding: clamp(360px, 42vw, 560px) clamp(20px, 6%, 86px) 56px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, var(--hero-top-wash)),
      rgba(255, 255, 255, var(--hero-mid-wash)) 48%,
      rgba(255, 255, 255, var(--hero-bottom-wash)) 82%,
      rgba(255, 255, 255, 0.96)
    );
  text-align: center;
}

.hero-poster {
  width: min(100%, 880px);
  display: grid;
  justify-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red-dark);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-weight: 400;
  line-height: 0.95;
  text-transform: uppercase;
}

h1 {
  max-width: 10ch;
  margin-right: auto;
  margin-bottom: 18px;
  margin-left: auto;
  color: var(--ink);
  font-size: 5.6rem;
  text-shadow:
    2px 2px 0 #fff,
    0 0 14px rgba(255, 43, 214, 0.52),
    0 0 28px rgba(0, 169, 255, 0.34);
}

h2 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 3.15rem;
  text-shadow: 2px 2px 0 rgba(255, 184, 0, 0.22);
}

h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.22rem;
}

.lede {
  max-width: 46rem;
  margin-right: auto;
  margin-bottom: 28px;
  margin-left: auto;
  color: var(--ink-2);
  font-size: 1.32rem;
  font-weight: 900;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 8px;
  padding: 13px 18px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 6px 0 var(--red-dark), 0 0 22px rgba(255, 49, 49, 0.24);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 8px 0 var(--red-dark), 0 0 30px rgba(255, 43, 214, 0.36);
}

.button-secondary {
  border: 2px solid var(--cyan);
  background: rgba(239, 252, 255, 0.82);
  color: var(--ink);
  box-shadow: 0 0 18px rgba(0, 169, 255, 0.18);
}

.button.is-disabled {
  pointer-events: none;
  opacity: 0.48;
}

.hero-logo {
  display: none;
}

.count-lockup {
  width: min(100%, 230px);
  margin-top: 30px;
  border: 2px solid var(--gold);
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
  box-shadow: 0 16px 42px var(--shadow), 0 0 20px rgba(255, 184, 0, 0.22);
}

.count-lockup strong {
  display: block;
  color: var(--red);
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: 2.75rem;
  font-weight: 400;
  line-height: 0.9;
}

.count-lockup span {
  color: var(--ink-2);
  font-weight: 900;
  text-transform: uppercase;
}

.photo-band {
  display: none;
}

.ticker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 3px solid var(--ink);
  background: linear-gradient(90deg, var(--red), var(--pink), var(--cyan), var(--gold));
}

.ticker span {
  min-height: 58px;
  display: grid;
  place-items: center;
  border-right: 2px solid rgba(37, 17, 38, 0.3);
  padding: 12px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.ticker span:last-child {
  border-right: 0;
}

.section {
  padding: 78px clamp(20px, 6%, 86px);
}

.section-shows {
  background: rgba(255, 255, 255, 0.68);
}

.section-head {
  max-width: 720px;
  margin-bottom: 30px;
}

.section-head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

.shows-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.shows-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.show-card {
  min-height: 280px;
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 18px;
  border: 2px solid rgba(255, 43, 214, 0.48);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(155deg, rgba(255, 49, 49, 0.12), transparent 48%),
    rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 46px var(--shadow), 6px 6px 0 rgba(0, 169, 255, 0.14);
}

.show-card.featured {
  border-color: var(--gold);
  background:
    linear-gradient(155deg, rgba(255, 184, 0, 0.18), transparent 42%),
    linear-gradient(25deg, rgba(255, 43, 214, 0.14), transparent 62%),
    rgba(255, 255, 255, 0.88);
}

.date-block {
  height: 94px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 2px solid var(--pink);
  border-radius: 8px;
  background: var(--ink);
  text-align: center;
  box-shadow:
    inset 0 0 20px rgba(255, 43, 214, 0.18),
    0 0 22px rgba(255, 43, 214, 0.26);
}

.date-block span {
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.date-block strong {
  color: #fff8ec;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1;
}

.show-body {
  min-width: 0;
}

.show-meta,
.cast-role {
  margin-bottom: 8px;
  color: var(--red-dark);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.venue,
.description,
.cast-card p,
.booking p,
.admin-hero p {
  color: var(--muted);
  line-height: 1.55;
}

.show-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--cyan-dark);
  font-weight: 900;
  text-decoration: none;
}

.show-link:hover,
.show-link:focus-visible {
  color: var(--red-dark);
  outline: none;
}

.section-team {
  background:
    linear-gradient(90deg, rgba(255, 43, 214, 0.1), rgba(0, 169, 255, 0.12)),
    rgba(255, 255, 255, 0.58);
  border-block: 1px solid var(--line);
}

.cast-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.cast-card {
  border: 2px solid rgba(0, 169, 255, 0.36);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 38px var(--shadow);
}

.booking,
.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
  padding: 72px clamp(20px, 6%, 86px);
  border-top: 3px solid var(--pink);
  background:
    linear-gradient(90deg, rgba(255, 49, 49, 0.2), rgba(255, 43, 214, 0.14), rgba(0, 169, 255, 0.16)),
    rgba(255, 255, 255, 0.76);
}

.booking h2,
.admin-hero h1 {
  margin-bottom: 12px;
}

.admin-hero {
  min-height: 52svh;
}

.admin-page .section {
  padding-top: 62px;
  background: rgba(255, 255, 255, 0.7);
}

.admin-editor .section-head {
  max-width: 860px;
}

#admin-edit-status {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border: 2px solid rgba(0, 169, 255, 0.34);
  border-radius: 999px;
  padding: 5px 12px;
  background: rgba(239, 252, 255, 0.78);
  color: var(--cyan-dark);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-workspace {
  display: grid;
  grid-template-columns: minmax(230px, 320px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-panel,
.admin-form,
.publish-panel {
  border: 2px solid rgba(255, 43, 214, 0.36);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 46px var(--shadow);
}

.admin-panel {
  padding: 18px;
}

.admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-panel-head h3 {
  margin-bottom: 0;
  font-size: 1rem;
  text-transform: uppercase;
}

.admin-show-list {
  display: grid;
  gap: 10px;
  max-height: 520px;
  overflow: auto;
}

.admin-show-item {
  display: grid;
  width: 100%;
  gap: 6px;
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.admin-show-item strong,
.admin-show-item span {
  overflow-wrap: anywhere;
}

.admin-show-item span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-show-item:hover,
.admin-show-item:focus-visible,
.admin-show-item.is-active {
  border-color: var(--cyan);
  background: rgba(239, 252, 255, 0.9);
  outline: none;
  box-shadow: 0 0 20px rgba(0, 169, 255, 0.18);
}

.admin-show-item.is-active {
  border-color: var(--pink);
}

.admin-form {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-form label,
.publish-panel label {
  display: grid;
  min-width: 0;
  gap: 7px;
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 900;
}

.admin-form input,
.admin-form textarea,
.publish-panel input {
  width: 100%;
  min-height: 46px;
  border: 2px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font: inherit;
}

.admin-form textarea {
  min-height: 132px;
  resize: vertical;
}

.admin-form input:focus,
.admin-form textarea:focus,
.publish-panel input:focus {
  border-color: var(--cyan);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 169, 255, 0.16);
}

.check-field {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  justify-content: start;
}

.check-field input {
  width: 18px;
  min-height: 18px;
  height: 18px;
}

.admin-actions,
.publish-panel {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
}

.publish-panel {
  margin-top: 18px;
  padding: 18px 22px;
  border-color: rgba(0, 169, 255, 0.36);
}

.publish-panel label:first-child {
  flex: 1 1 260px;
}

.loading,
.empty-state {
  grid-column: 1 / -1;
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(20px, 6%, 86px);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.64);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--red-dark);
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 980px) {
  .booking,
  .admin-hero {
    grid-template-columns: 1fr;
  }

  .admin-workspace {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: clamp(320px, 48vw, 430px);
  }

  h1 {
    font-size: 4.35rem;
  }

  h2 {
    font-size: 2.55rem;
  }

  .shows-grid,
  .shows-grid.compact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body.home-page::before {
    display: none;
  }

  .site-header {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    padding: 34px 20px 28px;
  }

  h1 {
    font-size: 2.85rem;
  }

  h2 {
    font-size: 2.15rem;
  }

  .lede {
    margin-bottom: 22px;
    font-size: 1rem;
    line-height: 1.38;
  }

  .hero-actions {
    gap: 10px;
  }

  .button {
    min-height: 44px;
    padding: 11px 13px;
    font-size: 0.94rem;
  }

  .count-lockup {
    display: none;
  }

  .photo-band {
    position: relative;
    display: block;
    overflow: hidden;
    border-block: 3px solid var(--ink);
    background: rgba(255, 255, 255, 0.92);
  }

  .photo-band::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 70%, rgba(255, 255, 255, 0.38));
    pointer-events: none;
  }

  .photo-band img {
    display: block;
    width: 100%;
    height: 178px;
    opacity: var(--banner-opacity);
    object-fit: cover;
    object-position: center 38%;
  }

  .ticker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .show-card {
    grid-template-columns: 1fr;
  }

  .date-block {
    width: 112px;
  }

  .cast-grid {
    grid-template-columns: 1fr;
  }

  .admin-panel-head,
  .admin-actions,
  .publish-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .publish-panel label:first-child {
    flex-basis: auto;
  }
}
