/* Shared by the home page, the catalog and every show page */
:root {
  --night: #11152E;
  --night-deep: #0A0D1F;
  --brass: #E8BC63;
  --mist: #B7C4FF;
  --text: #F1F2F8;
  --dim: #A3ABCB;
  --line: rgba(183, 196, 255, 0.14);
  --ease: cubic-bezier(.16, .84, .24, 1);
}

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

html { background: var(--night); }
body {
  background: radial-gradient(120% 90% at 70% 30%, #1A2147 0%, var(--night) 55%, var(--night-deep) 100%) fixed;
  color: var(--text);
  font-family: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  transition: opacity 0.4s linear;
}

.wrap {
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

.kicker {
  color: var(--brass);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h2 {
  margin-top: 10px;
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.section-lede { margin-top: 14px; color: var(--dim); max-width: 34em; }

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  max-width: 1240px;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
}
.topbar .pill {
  margin-left: auto;
  padding: 8px 16px;
  border: 1px solid rgba(232, 188, 99, 0.45);
  border-radius: 999px;
  color: var(--brass);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.25s, color 0.25s;
}
.topbar .pill:hover { background: var(--brass); color: var(--night-deep); }
.topbar .back { color: var(--dim); font-size: 0.9rem; text-decoration: none; transition: color 0.25s; }
.topbar .back:hover { color: var(--text); }

footer {
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 max(16px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  font-size: 0.8rem;
  color: var(--dim);
}
footer a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
footer a:hover { color: var(--text); }
a:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }

/* Show cards: the home page, the catalog and "Similar shows" all use these */
.cards {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  gap: 16px;
  margin-top: clamp(28px, 5vh, 48px);
}
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(183, 196, 255, 0.12);
  border-radius: 16px;
  background: rgba(13, 17, 38, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.card:hover { border-color: rgba(232, 188, 99, 0.4); transform: translateY(-3px); }
.card:focus-visible { outline-offset: 2px; border-radius: 16px; }
.card-art { aspect-ratio: 4 / 3; border-bottom: 1px solid rgba(183, 196, 255, 0.1); }
.card-art svg, .card-art img, .show-art svg, .show-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 18px; }
.card h3 {
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-weight: 400;
  font-size: 1.9rem;
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.card-sub { margin-top: 4px; font-family: "Instrument Serif", "Times New Roman", serif; font-style: italic; font-size: 1.15rem; color: var(--mist); }
.card-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  font-size: 0.85rem;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}
.card-foot span:last-child { color: var(--brass); transition: transform 0.3s var(--ease); }
.card:hover .card-foot span[aria-hidden] { transform: translateX(4px); }
.card-price { font-weight: 500; }
.card-custom { background: rgba(232, 188, 99, 0.07); border-color: rgba(232, 188, 99, 0.28); }
.card-custom .card-body { justify-content: flex-end; min-height: 200px; }
.card-custom h3 { margin-top: 10px; color: var(--brass); }
.card-custom .card-foot { color: var(--text); }

/* Catalog and show pages */
.page-title {
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(3.2rem, 8vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.catalog { padding-top: clamp(110px, 18vh, 180px); padding-bottom: clamp(72px, 12vh, 140px); }
.catalog .page-title { margin-top: 10px; }

.show-page { padding-top: clamp(84px, 13vh, 130px); padding-bottom: clamp(72px, 12vh, 140px); }
.show-head { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
.show-art {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--night-deep);
}
.show-intro .page-title { margin-top: 10px; }
.subtitle { margin-top: 8px; font-family: "Instrument Serif", "Times New Roman", serif; font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.7rem); color: var(--mist); }

.facts { display: grid; grid-template-columns: 1fr 1fr; margin-top: clamp(24px, 4vh, 36px); border-top: 1px solid var(--line); }
.facts div { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.facts dd { margin-top: 3px; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.tbd { color: var(--dim); font-style: italic; font-size: 0.95em; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  padding: 14px 26px;
  border: 1px solid var(--brass);
  border-radius: 999px;
  background: var(--brass);
  color: var(--night-deep);
  font-weight: 500;
  text-decoration: none;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.button:hover { background: #F3CF85; border-color: #F3CF85; }
.button.ghost { background: transparent; border-color: rgba(183, 196, 255, 0.35); color: var(--text); }
.button.ghost:hover { border-color: var(--text); }

.block { padding: clamp(32px, 5vh, 48px) 0; border-top: 1px solid var(--line); }
.show-head + .block { margin-top: clamp(48px, 9vh, 96px); }
.block h2, .similar h2 { margin: 0 0 18px; font-size: clamp(1.9rem, 3.4vw, 2.4rem); line-height: 1.05; }
.prose p { max-width: 38em; }
.prose p + p { margin-top: 1em; }
.prose .note { color: var(--dim); font-size: 0.92rem; }

.music { list-style: none; padding: 0; max-width: 46em; counter-reset: piece; }
.music li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 20px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(183, 196, 255, 0.08);
}
.music li:first-child { padding-top: 0; }
.music .composer { color: var(--dim); }

.groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 24px; }
.groups h3 { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass); }
.groups ul { list-style: none; padding: 0; margin-top: 8px; color: var(--dim); }
.groups li { padding: 3px 0; }

.included { list-style: none; padding: 0; max-width: 40em; }
.included li { position: relative; padding: 7px 0 7px 28px; }
.included li::before { content: ""; position: absolute; left: 2px; top: 0.95em; width: 12px; height: 7px; border-left: 2px solid var(--brass); border-bottom: 2px solid var(--brass); transform: rotate(-45deg); }

.tracks { list-style: none; padding: 0; display: grid; gap: 12px; max-width: 46em; }
.tracks li { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(13, 17, 38, 0.6); }
.tracks audio { width: 100%; color-scheme: dark; }
.empty { max-width: 46em; padding: 20px 22px; border: 1px dashed rgba(183, 196, 255, 0.28); border-radius: 14px; color: var(--dim); }
.empty a { display: inline-block; margin-top: 6px; color: var(--brass); font-weight: 500; text-decoration: none; }
.empty a:hover { text-decoration: underline; text-underline-offset: 3px; }

.similar { padding-top: clamp(40px, 7vh, 72px); border-top: 1px solid var(--line); }
.similar .cards { margin-top: 0; }

@media (min-width: 720px) {
  .wrap, footer, .topbar { padding-left: 48px; padding-right: 48px; }
}
@media (min-width: 900px) {
  .block { display: grid; grid-template-columns: 260px 1fr; gap: 40px; }
  .block h2 { margin: 0; }
}
@media (min-width: 980px) {
  .show-head { grid-template-columns: 1.1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .card-foot span { transition: none; }
  .card:hover { transform: none; }
}
