/* ==========================================================================
   36 Strings — custom styles that sit alongside Tailwind utilities.
   ========================================================================== */

:root {
  --navy-950: #0A1A33;
  --navy-800: #13294B;
  --navy-600: #2A4A7F;
  --gold-300: #E3C766;
  --gold-500: #C9A227;
  --gold-700: #8A6D12;
  --ivory-50: #FAF7EF;
  --parchment: #E7E2D6;
  --header-h: 4rem;
}

html { scroll-behavior: smooth; }
body {
  background: var(--ivory-50);
  color: #111827;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Anchor targets clear the sticky header */
section[id] { scroll-margin-top: var(--header-h); }

/* Visible, on-brand keyboard focus */
:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--gold-500); color: var(--navy-950);
  padding: .5rem 1rem; border-radius: .375rem; font-weight: 600;
  transition: top .15s ease;
}
.skip-link:focus { top: 1rem; }

/* --------------------------------------------------------------------------
   Motif: "strings" — fine parallel gold lines
   -------------------------------------------------------------------------- */
.strings-bg {
  background-image:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 27px,
      rgba(201, 162, 39, .10) 27px,
      rgba(201, 162, 39, .10) 28px
    );
}

.string-divider {
  display: block;
  width: 7rem;
  height: 13px;
  margin-inline: auto;
  background-image: repeating-linear-gradient(
    to bottom,
    var(--gold-500) 0, var(--gold-500) 1px,
    transparent 1px, transparent 4px
  );
  -webkit-mask-image: linear-gradient(to right, transparent, #000 25%, #000 75%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 25%, #000 75%, transparent);
}
.string-divider--left { margin-inline: 0; }

/* Hero strings that "sweep" across */
.hero-strings line { stroke: var(--gold-500); stroke-width: 1; opacity: .35; }
.hero-glow {
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(201,162,39,.16), transparent 60%),
    radial-gradient(40rem 30rem at -10% 110%, rgba(42,74,127,.55), transparent 60%);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header { transition: box-shadow .2s ease, background-color .2s ease; }
.site-header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(0,0,0,.6); }

.mobile-menu { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
.mobile-menu > div { overflow: hidden; }
.mobile-menu.is-open { grid-template-rows: 1fr; }

/* --------------------------------------------------------------------------
   Event "ticket stub" card
   -------------------------------------------------------------------------- */
.ticket { position: relative; }
.ticket__stub { position: relative; }
/* perforation between stub and body */
.ticket__stub::after {
  content: "";
  position: absolute;
  background-image: radial-gradient(circle, var(--ivory-50) 3px, transparent 3.5px);
}
@media (max-width: 639px) {
  .ticket__stub::after {
    left: 0; right: 0; bottom: -4px; height: 8px;
    background-size: 14px 8px; background-repeat: repeat-x; background-position: center;
  }
}
@media (min-width: 640px) {
  .ticket__stub::after {
    top: 0; bottom: 0; right: -4px; width: 8px;
    background-size: 8px 14px; background-repeat: repeat-y; background-position: center;
  }
}
/* notches at the perforation ends */
.ticket::before, .ticket::after {
  content: ""; position: absolute; width: 22px; height: 22px;
  background: var(--ivory-50); border-radius: 9999px; z-index: 1;
}
@media (max-width: 639px) {
  .ticket::before { left: -11px; top: var(--stub-h, 8.5rem); transform: translateY(-50%); }
  .ticket::after  { right: -11px; top: var(--stub-h, 8.5rem); transform: translateY(-50%); }
}
@media (min-width: 640px) {
  .ticket::before { top: -11px; left: 9rem; transform: translateX(-50%); }
  .ticket::after  { bottom: -11px; left: 9rem; transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   Video facade
   -------------------------------------------------------------------------- */
.video-facade { aspect-ratio: 16 / 9; }
.video-facade img { transition: transform .5s ease, filter .3s ease; }
.video-facade:hover img { transform: scale(1.03); filter: brightness(.85); }
.video-facade iframe { width: 100%; height: 100%; border: 0; }
.play-btn { transition: transform .2s ease, background-color .2s ease; }
.video-facade:hover .play-btn { transform: scale(1.08); }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.field {
  width: 100%;
  border: 1px solid var(--parchment);
  background: #fff;
  border-radius: .5rem;
  padding: .7rem .85rem;
  font-size: 1rem;
  color: #111827;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(201,162,39,.25); }
.field[aria-invalid="true"] { border-color: #b91c1c; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* --------------------------------------------------------------------------
   Scroll reveal (respects reduced motion)
   -------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
