/* ===========================================================================
   Studio7Strings: events page
   Palette carried over from the existing site (plum, amber, cream).
   Concept: the page reads like the studio's monthly bill, each meet a line
   on the programme, with the stage carousel as the one loud element.
   =========================================================================== */

:root {
  color-scheme: dark;

  /* Existing brand colours */
  --wood: #3a1352;
  --wood-dark: #150a1f;
  --amber: #e0a63e;
  --amber-light: #f4c565;
  --page-bg: #12101a;
  --cream: #faf3e8;
  --text: #2b1c10;
  --muted: #7a6a58;
  --success: #3f7d4f;
  --danger: #a83c3c;

  /* Added for this page */
  --plum-lift: #2a0f3c;
  --rule: rgba(244, 197, 101, 0.22);
  --rule-solid: #ecdfc8;
  --on-dark: #efe4d4;
  --on-dark-dim: rgba(239, 228, 212, 0.62);
  --radius: 10px;
  --radius-lg: 16px;

  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Karla', 'Segoe UI', Roboto, Arial, sans-serif;

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: inherit; }

/*
 * Buttons carry a native appearance that browsers, Chrome's auto dark mode
 * and some extensions restyle on their own, which paints a light "buttonface"
 * panel behind them on this dark page. Several controls here are buttons for
 * accessibility reasons rather than looks, so the native styling is removed
 * outright and each one is painted explicitly below.
 */
button {
  -webkit-appearance: none;
  appearance: none;
  background-color: transparent;
  background-image: none;
  color: inherit;
  font: inherit;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  background: var(--page-bg);
  color: var(--on-dark);
}

img, video { max-width: 100%; height: auto; }

a { color: var(--amber-light); }
a:hover { color: var(--amber); }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 3px;
}

.shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 22px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--amber);
  color: #241005;
  padding: 10px 16px;
  font-weight: 700;
  z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

/* ----------------------------------------------------------- site header -- */

.sitebar {
  background: linear-gradient(135deg, #0c0710, var(--wood-dark) 45%, var(--wood));
  border-bottom: 3px solid var(--amber);
}

.sitebar-in {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
}

/*
 * The logo is the wordmark, so it has to stay big enough to read. Below
 * roughly 120px wide the lettering turns to mush, which sets the floor here.
 */
.brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.brand img {
  display: block;
  width: auto;
  height: 72px;
}

.sitenav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  font-size: 0.95rem;
}

.sitenav a {
  color: var(--on-dark);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.sitenav a:hover { color: var(--amber-light); border-bottom-color: var(--amber); }

/* ------------------------------------------------------------------ hero -- */

.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(224, 166, 62, 0.18), transparent 62%),
    linear-gradient(170deg, var(--wood-dark), #100716 70%);
  padding: 72px 0 60px;
  overflow: hidden;
}

/* A thin warm band at the foot of the hero, like light spilling off a stage. */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--amber), transparent);
}

.hero-kicker {
  font-family: var(--body);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--amber);
  margin: 0 0 14px;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.3rem, 6.2vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--cream);
  margin: 0 0 18px;
  max-width: 16ch;
}

.hero p {
  margin: 0;
  max-width: 52ch;
  font-size: clamp(1.02rem, 2.2vw, 1.2rem);
  color: var(--on-dark-dim);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* --------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--amber);
  color: #2a1403;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--amber-light); color: #2a1403; }

.btn.ghost {
  background: transparent;
  color: var(--on-dark);
  border-color: rgba(239, 228, 212, 0.35);
}
.btn.ghost:hover { border-color: var(--amber); color: var(--amber-light); background: rgba(224, 166, 62, 0.08); }

.btn.small { padding: 9px 18px; font-size: 0.9rem; }

/* -------------------------------------------------------------- sections -- */

.band { padding: 66px 0; }
.band + .band { padding-top: 0; }
.band.tinted { background: linear-gradient(180deg, transparent, rgba(58, 19, 82, 0.35), transparent); }

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

.section-head h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.8rem, 4.2vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--amber-light);
  margin: 0 0 16px;
}

.section-head p {
  margin: 0 0 14px;
  color: var(--on-dark-dim);
  max-width: 68ch;
}
.section-head p:last-child { margin-bottom: 0; }

.section-note {
  margin-top: 20px;
  padding-left: 16px;
  border-left: 2px solid var(--amber);
  color: var(--on-dark);
  font-size: 0.95rem;
}

.empty-note {
  border: 1px dashed var(--rule);
  border-radius: var(--radius);
  padding: 26px;
  color: var(--on-dark-dim);
  text-align: center;
}

/* ------------------------------------------------------- stage carousel --- */

.stage {
  position: relative;
  background: #0b0610;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.stage-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--rule);
}

.stage-head .what {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--cream);
  margin: 0;
}

.stage-head .when { color: var(--amber); font-size: 0.93rem; }

.stage-track {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  background: #07040b;
}

.slide {
  display: none;
  width: 100%;
}
.slide.on { display: block; }

.slide figure { margin: 0; }

.slide img,
.slide video {
  display: block;
  width: 100%;
  max-height: min(68vh, 620px);
  object-fit: contain;
  background: #07040b;
}

.slide .embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.slide .embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.slide figcaption {
  padding: 14px 22px;
  font-size: 0.95rem;
  color: var(--on-dark-dim);
  border-top: 1px solid var(--rule);
}

.stage-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(239, 228, 212, 0.3);
  background: rgba(10, 6, 16, 0.72);
  color: var(--cream);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 3;
  transition: background 0.15s, border-color 0.15s;
}
.stage-btn:hover { background: var(--wood); border-color: var(--amber); color: var(--amber-light); }
.stage-btn.prev { left: 12px; }
.stage-btn.next { right: 12px; }

.stage-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 12px 22px 16px;
}

.dots { display: flex; flex-wrap: wrap; gap: 7px; }

.dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(239, 228, 212, 0.45);
  background: transparent;
  cursor: pointer;
}
.dot[aria-current="true"] { background: var(--amber); border-color: var(--amber); }

.counter { font-size: 0.86rem; color: var(--on-dark-dim); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------- the monthly bill -- */

.bill { border-top: 1px solid var(--rule); margin-top: 44px; }

.bill-item { border-bottom: 1px solid var(--rule); }

.bill-row {
  display: grid;
  grid-template-columns: 148px 1fr auto 22px;
  gap: 8px 24px;
  align-items: center;
  width: 100%;
  padding: 20px 4px;
  text-align: left;
  background-color: transparent;
  background-image: none;
  border: none;
  border-bottom: 1px solid var(--rule);
  font: inherit;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}
/* Inside .bill-item the wrapper already draws the line. */
.bill-item > .bill-row { border-bottom: none; }

.bill-row:hover { background: rgba(224, 166, 62, 0.06); }
.bill-row:hover .bill-title { color: var(--amber-light); }

.bill-chevron {
  justify-self: end;
  color: var(--amber);
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 0.2s ease;
}
.bill-row[aria-expanded="true"] { background: rgba(224, 166, 62, 0.07); }
.bill-row[aria-expanded="true"] .bill-title { color: var(--amber-light); }
.bill-row[aria-expanded="true"] .bill-chevron { transform: rotate(90deg); }

.bill-panel { padding: 4px 4px 26px; }
.bill-panel[hidden] { display: none; }

.bill-more {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}
.bill-more:hover { text-decoration: underline; }

/* A deferred thumbnail has no src until its panel opens. */
.shot img:not([src]) { opacity: 0; }

.bill-when {
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

.bill-title {
  font-family: var(--display);
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--cream);
  margin: 0 0 4px;
  line-height: 1.25;
}

.bill-sub { font-size: 0.93rem; color: var(--on-dark-dim); margin: 0; }

.bill-count {
  font-size: 0.85rem;
  color: var(--on-dark-dim);
  white-space: nowrap;
}

/* ------------------------------------------------------------- seasons ---- */

.seasons-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.season-tab {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(239, 228, 212, 0.28);
  background: transparent;
  color: var(--on-dark);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.season-tab:hover { border-color: var(--amber); color: var(--amber-light); }
.season-tab[aria-selected="true"] {
  background: var(--amber);
  border-color: var(--amber);
  color: #2a1403;
}

.season-panel[hidden] { display: none; }

.season-lead {
  color: var(--on-dark-dim);
  max-width: 68ch;
  margin: 0 0 24px;
}

/* -------------------------------------------------------------- galleries -- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 14px;
}

.shot {
  position: relative;
  display: block;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0b0610;
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}
.shot:hover img { transform: scale(1.04); }

.shot .play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(10, 6, 16, 0.35);
  color: #fff;
  font-size: 2.2rem;
  pointer-events: none;
}

.shot .cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 12px 9px;
  font-size: 0.83rem;
  color: var(--cream);
  text-align: left;
  background: linear-gradient(to top, rgba(7, 4, 11, 0.92), transparent);
  pointer-events: none;
}

/* ---------------------------------------------------------- other events -- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 16px;
}

.card {
  background: var(--cream);
  color: var(--text);
  border-radius: var(--radius);
  border-top: 4px solid var(--amber);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.38);
}

.card .thumb { aspect-ratio: 16 / 10; background: #e7d9c1; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.card h3 {
  font-family: var(--display);
  font-size: 1.16rem;
  font-weight: 600;
  color: var(--wood);
  margin: 0;
  line-height: 1.25;
}

.card .when { font-size: 0.85rem; color: var(--amber); font-weight: 700; }
.card p { margin: 0; font-size: 0.94rem; color: var(--muted); }
.card .more { margin-top: auto; padding-top: 8px; font-size: 0.9rem; font-weight: 700; color: var(--wood); text-decoration: none; }
.card .more:hover { text-decoration: underline; }

/* -------------------------------------------------------------- call out -- */

.callout {
  background: linear-gradient(135deg, var(--wood-dark), var(--plum-lift) 60%, var(--wood));
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  text-align: center;
}

.callout h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 600;
  color: var(--cream);
  margin: 0 0 10px;
}

.callout p { color: var(--on-dark-dim); margin: 0 auto 24px; max-width: 48ch; }

.callout .hero-actions { justify-content: center; margin-top: 0; }

/* ---------------------------------------------------------------- footer -- */

.sitefoot {
  border-top: 1px solid var(--rule);
  margin-top: 60px;
  padding: 34px 0 40px;
  font-size: 0.9rem;
  color: var(--on-dark-dim);
  text-align: center;
}

.sitefoot .social { display: flex; justify-content: center; gap: 18px; margin-bottom: 14px; flex-wrap: wrap; }
.sitefoot p { margin: 0 0 6px; }

/* --------------------------------------------------------------- lightbox -- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 3, 10, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }

.lightbox figure {
  margin: 0;
  max-width: 1100px;
  width: 100%;
  text-align: center;
}

.lightbox img,
.lightbox video { max-height: 80vh; width: auto; max-width: 100%; border-radius: 8px; }

.lightbox .embed {
  position: relative;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
}
.lightbox .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 8px; }

.lightbox figcaption { color: var(--on-dark-dim); margin-top: 14px; font-size: 0.93rem; }

.lightbox .close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(239, 228, 212, 0.3);
  background: rgba(20, 12, 28, 0.8);
  color: var(--cream);
  font-size: 1.4rem;
  cursor: pointer;
}
.lightbox .close:hover { border-color: var(--amber); color: var(--amber-light); }

.lightbox .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(239, 228, 212, 0.3);
  background: rgba(20, 12, 28, 0.8);
  color: var(--cream);
  font-size: 1.4rem;
  cursor: pointer;
}
.lightbox .nav.prev { left: 16px; }
.lightbox .nav.next { right: 16px; }
.lightbox .nav:hover { border-color: var(--amber); color: var(--amber-light); }

body.locked { overflow: hidden; }

/* ------------------------------------------------------------ event page -- */

.event-hero { padding: 56px 0 34px; }
.event-hero .back { display: inline-block; margin-bottom: 20px; font-size: 0.92rem; text-decoration: none; }
.event-hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.08;
  color: var(--cream);
  margin: 0 0 12px;
  max-width: 20ch;
}
.event-hero .meta { color: var(--amber); font-size: 0.95rem; margin: 0 0 16px; }
.event-hero .lead { color: var(--on-dark-dim); max-width: 64ch; margin: 0; }

.event-body { max-width: 64ch; color: var(--on-dark); }
.event-body p { margin: 0 0 16px; }

/* ------------------------------------------------------------ responsive -- */

@media (max-width: 720px) {
  body { font-size: 16px; }
  .brand img { height: 56px; }
  .band { padding: 46px 0; }
  .hero { padding: 52px 0 44px; }
  .bill-row { grid-template-columns: 1fr auto 22px; gap: 4px 12px; }
  .bill-when { grid-column: 1 / -1; }
  .stage-btn { width: 40px; height: 40px; }
  .stage-btn.prev { left: 8px; }
  .stage-btn.next { right: 8px; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .callout { padding: 30px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .shot:hover img { transform: none; }
}

/* Full write-up inside a Debut Delights season panel. Sits between the
   one-line summary and the gallery. */
.season-prose {
  max-width: 68ch;
  margin: 0 0 26px;
  color: var(--on-dark);
}
.season-prose p { margin: 0 0 15px; }
.season-prose p:last-child { margin-bottom: 0; }
.season-prose strong { color: var(--amber-light); font-weight: 700; }
.season-prose em { color: var(--cream); }

.event-body strong { color: var(--amber-light); font-weight: 700; }
.event-body em { color: var(--cream); }


/*
 * Windows High Contrast and other forced-colours modes replace the palette
 * entirely. Rather than fight it, hand the rows back to the system colours so
 * they stay legible instead of turning into pale blocks.
 */
@media (forced-colors: active) {
  .bill-row,
  .bill-panel,
  .season-tab,
  .shot {
    background-color: Canvas;
    color: CanvasText;
    border-color: CanvasText;
    forced-color-adjust: none;
  }
  .bill-chevron { color: LinkText; }
}
