/* MindyBelden.com — "flair" theme.
   A decorative layer on top of styles.css: marquee bulbs framing every page,
   spotlights and gold accents. Purely additive — it changes no layout box,
   so the responsive behaviour of the base stylesheet is untouched.

   To switch it off, set "theme": "classic" in content/site.json and rebuild. */

:root {
  --gold: #ffd76a;
  --gold-hot: #fff3c4;
  --velvet: #8c1024;
  --velvet-lit: #c4203f;

  /* Vanity-mirror bulbs: big and well spaced, not a dense pinstripe. */
  --bulb-gap: 38px;   /* distance between bulb centres */
  --bulb-h: 22px;     /* height of the bulb strip     */
  --bulb-r: 6px;      /* bulb radius                  */
}

/* ---------- marquee bulbs ---------- */
/* One strip of chasing bulbs, reused wherever a border of lights is wanted. */
.bulbs,
#wordmark::before,
#wordmark::after,
.main::after,
.footer::before {
  background-image:
    radial-gradient(circle at calc(var(--bulb-gap) / 2) 50%,
      #fffdf2 0 calc(var(--bulb-r) - 2.5px),
      var(--gold-hot) calc(var(--bulb-r) - 2.5px) calc(var(--bulb-r) - 1px),
      var(--gold) calc(var(--bulb-r) - 1px) var(--bulb-r),
      rgba(255, 200, 90, .40) var(--bulb-r) calc(var(--bulb-r) + 3px),
      transparent calc(var(--bulb-r) + 3px));
  background-size: var(--bulb-gap) var(--bulb-h);
  filter: drop-shadow(0 0 7px rgba(255, 205, 90, .95));
  animation: bulb-chase 1.6s steps(1) infinite;
}
.bulbs { position: relative; height: var(--bulb-h); }
.bulbs.alt { animation-delay: .8s; }

/* Alternate bulbs dim on the offbeat, so the light appears to travel. */
@keyframes bulb-chase {
  0%, 49%   { background-position: 0 0; opacity: 1; }
  50%, 100% { background-position: calc(var(--bulb-gap) / 2) 0; opacity: .72; }
}

/* ---------- lit marquee bar across the top of each page panel ---------- */
/* Mirrors the footer, so every page is framed top and bottom by stage lights. */
.main { position: relative; }
.main::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 30px;
  pointer-events: none;
  z-index: 2;
  background: #000 url('images/wb_grad.png') repeat-x;
  border-bottom: 1px solid var(--purple);
}
.main::after {
  content: '';
  position: absolute;
  inset: 4px 6px auto 6px;
  height: var(--bulb-h);
  pointer-events: none;
  z-index: 3;
}
/* Keep the first heading clear of the light bar. */
.main #content { margin-top: 34px; }

/* ---------- home: marquee sign around the wordmark ---------- */
#wordmark {
  position: relative;
  padding: 24px 26px 20px;
  border: 3px solid var(--gold);
  border-radius: 8px;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(255, 215, 106, .30), transparent 68%),
    rgba(24, 0, 38, .80);
  box-shadow: 0 0 22px rgba(255, 215, 106, .45), inset 0 0 26px rgba(255, 215, 106, .16);
}
#wordmark::before,
#wordmark::after {
  content: '';
  position: absolute;
  left: 6px;
  right: 6px;
  height: var(--bulb-h);
}
/* Straddle the gold frame so the bulbs sit on it, like a dressing-room mirror. */
#wordmark::before { top: calc(var(--bulb-h) / -2); }
#wordmark::after  { bottom: calc(var(--bulb-h) / -2); animation-delay: .8s; }

#wordmark .name {
  color: var(--gold);
  text-shadow:
    0 0 8px rgba(255, 215, 106, .9),
    0 0 22px rgba(255, 160, 220, .65),
    2px 3px 0 #4a007a;
}
#wordmark .roles {
  color: var(--gold-hot);
  letter-spacing: .04em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
}

/* Spotlight wash behind the homepage panel. */
#index #content {
  position: relative;
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(255, 240, 190, .55), transparent 70%),
    var(--panel);
}

/* ---------- headings get a star ---------- */
#content h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}
#content h3::before {
  content: '★';
  color: var(--gold);
  font-size: 88%;
  text-shadow: 0 0 6px rgba(255, 215, 106, .8), 0 1px 0 #6b0090;
}
#content h2 {
  text-shadow: 0 1px 0 #fff, 0 0 14px rgba(255, 215, 106, .55);
}

/* ---------- nav: footlights ---------- */
#topnav a { transition: color .15s, text-shadow .15s; }
#topnav a:hover,
#topnav a[aria-current='page'] {
  color: var(--gold-hot);
  text-shadow: 0 0 8px rgba(255, 215, 106, .95);
}
#topnav li { position: relative; }
#topnav a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  box-shadow: 0 0 7px var(--gold);
}

/* ---------- home icon tiles ---------- */
#homenav a {
  padding: 3px 6px;
  border-radius: 6px;
  transition: transform .15s, background .15s;
}
#homenav a:hover {
  transform: translateX(3px);
  background: rgba(255, 215, 106, .22);
}

/* ---------- photo stack: framed and lit ---------- */
#photostack img {
  border-color: var(--gold-hot);
  box-shadow: 0 0 16px rgba(255, 215, 106, .6), 0 3px 10px rgba(0, 0, 0, .45);
}

/* ---------- gallery: playbill tiles ---------- */
#photo_gallery button {
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
#photo_gallery button:hover,
#photo_gallery button:focus-visible {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--gold) var(--velvet) var(--velvet) var(--gold);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .45), 0 0 14px rgba(255, 215, 106, .7);
}

/* ---------- tables: programme styling ---------- */
.data th {
  background: linear-gradient(var(--velvet-lit), var(--velvet));
  color: var(--gold-hot);
  border-bottom: 2px solid var(--gold);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}
.data tbody tr { transition: background .12s; }
.data tbody tr:hover { background: rgba(255, 215, 106, .38); }

/* ---------- references: ticket stubs ---------- */
.letter summary::before { content: '🎟 '; }
.letter[open] summary::before { content: '🎭 '; }
.letterbody {
  border-left: 3px solid var(--gold);
  box-shadow: inset 0 0 18px rgba(255, 215, 106, .25);
}

/* ---------- contact + music cards ---------- */
#contactcard, #music .note {
  border: 2px solid var(--gold);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 215, 106, .22), transparent 70%),
    var(--shade);
  box-shadow: 0 0 14px rgba(255, 215, 106, .35);
}

/* ---------- footer: a row of stage lights ---------- */
.footer {
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  inset: 4px 6px auto 6px;
  height: var(--bulb-h);
  animation-delay: .4s;
}

/* ---------- respect motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  .bulbs,
  #wordmark::before,
  #wordmark::after,
  .main::after,
  .footer::before { animation: none; }
  #homenav a:hover,
  #photo_gallery button:hover { transform: none; }
}

/* On narrow screens the light bar would eat into the copy, so slim it down. */
@media (max-width: 520px) {
  .main::before { height: 26px; }
  .main::after { inset: 4px 5px auto 5px; }
  .main #content { margin-top: 30px; }
  #wordmark { padding: 18px 14px 16px; }
  /* Slightly smaller bulbs so a narrow marquee still reads as a row of lights. */
  :root { --bulb-gap: 30px; --bulb-h: 18px; --bulb-r: 5px; }
}
