/* Takes a Village LA: the site stylesheet, shared by every page.
   Bump ?v= in each page's <link> when this file changes, so returning visitors get the new copy. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange:  #E8721A;
  --orange2: #F0A030;
  --teal:    #2EADA3;
  --teal2:   #3ECFC3;
  --brown:   #5C3317;
  --cream:   #FFF6E8;
  --warm:    #FDE8C0;
  --text:    #3A1F08;

  /* ink: text-weight versions of the brand colors. --ink and --teal-ink reach
     4.5:1 on both --cream and --warm; --orange-ink does on --cream only. */
  --ink:        #4A2811;
  --teal-ink:   #176F67;
  --orange-ink: #B4530C;
}

html, body {
  min-height: 100%;
  background: var(--cream);
  color: var(--text);
  font-family: 'Nunito', sans-serif;
}
/* anchor targets stop below the sticky menu, not under it */
html { scroll-padding-top: 3.75rem; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body { position: relative; }

/* ── skip link: off-screen until it takes keyboard focus ── */
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -5rem;
  z-index: 30;
  background: var(--brown);
  color: var(--cream);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.7em 1.1em;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
}
.skip-link:focus { top: 0; }
main:focus { outline: none; }

/* ── wavy top band ── */
.top-band {
  background: var(--teal);
  height: 10px;
}

/* ── hero ── */
.hero {
  background: linear-gradient(180deg, #fff8ee 0%, #fde8c0 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.25rem 1.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* the menu: a playbill masthead that stays at the top of the window while the page scrolls */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff8ee;   /* the hero gradient's first stop, so the bar sits flush on the hero */
  border-bottom: 3px double var(--brown);
  padding: 0 0.75rem;
}
.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 0.45rem;
}
.site-nav li {
  display: flex;
  align-items: center;
  column-gap: 0.45rem;
}
.site-nav li + li::before {
  content: "\00B7";
  content: "\00B7" / "";
  color: var(--orange-ink);
  font-weight: 800;
}
.site-nav a {
  display: inline-block;
  padding: 0.75rem 0.3rem;   /* 44px tall or more at both widths */
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover {
  color: var(--orange-ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* back-to-top button. No JS: the track starts a screen and a half down the page and
   the button sticks to the bottom of the window inside it, so it only shows once
   the page has been scrolled. */
.to-top-track {
  position: absolute;
  top: 150vh;
  bottom: 0;
  right: 0;
  z-index: 15;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
}
.to-top {
  position: sticky;
  bottom: 1rem;
  margin: 0 1rem 1rem 0;
  pointer-events: auto;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brown);
  color: var(--cream);
  border: 2px solid var(--cream);
  box-shadow: 0 4px 14px rgba(58,31,8,0.35);
  transition: background 0.2s, transform 0.2s;
}
.to-top:hover { background: var(--orange-ink); transform: translateY(-2px); }
.to-top svg { width: 1.25rem; height: 1.25rem; }

/* the logo is the page's h1, taped up like the snapshots in the archive:
   the h1 pops in, the frame carries the tilt and the tape, the image the paper edge */
.hero h1 {
  position: relative;
  z-index: 1;
  line-height: 0;
  margin-top: 0.5rem;
  animation: popIn 0.7s cubic-bezier(0.22,1,0.36,1) both;
}
.logo-frame {
  display: inline-block;
  position: relative;
  transform: rotate(-2deg);
}
.logo-frame::before {
  content: '';
  position: absolute;
  z-index: 1;
  top: -15px; left: 50%;
  width: 112px; height: 32px;
  background: rgba(62,207,195,0.6);
  transform: translateX(-50%) rotate(-4deg);
}

.logo {
  display: block;
  width: min(300px, 76vw);
  height: auto;
  border: 10px solid #fff;
  box-shadow: 4px 6px 0 rgba(92,51,23,0.2);
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.8) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.tagline {
  margin-top: 1.4rem;
  font-size: clamp(0.8rem, 2.6vw, 1rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-ink);
  font-weight: 600;
  animation: fadeUp 0.8s 0.4s ease both;
}

/* what the company does, in one plain sentence; the tagline is too small to carry it alone */
.hero-line {
  max-width: 31ch;
  margin-top: 0.9rem;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  line-height: 1.4;
  color: var(--ink);
  text-wrap: balance;
  animation: fadeUp 0.8s 0.5s ease both;
}

/* ── wavy divider ── */
.wave {
  display: block;
  width: 100%;
  line-height: 0;
  margin-bottom: -1px; /* hide the sub-pixel seam under each wave */
}

/* ── intro section ── */
.intro {
  background: var(--teal-ink); /* the two waves around it carry the same hex */
  color: #fff;
  padding: 3rem 1.5rem;
  text-align: center;
}

.intro h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--cream);
  text-shadow: 2px 2px 0 rgba(0,0,0,0.15);
  margin-bottom: 1.2rem;
  animation: fadeUp 0.8s 0.6s ease both;
}

.intro p {
  max-width: 600px;
  margin: 0 auto;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  line-height: 1.85;
  font-weight: 400;
  animation: fadeUp 0.8s 0.8s ease both;
}

/* what's next: one line under the intro until a production has a date.
   The menu's "What's next" lands here; it stops a little lower so the rule above it shows. */
.intro .next-note {
  margin-top: 1.7rem;
  padding-top: 1.4rem;
  border-top: 1px dashed rgba(255,246,232,0.5);
  scroll-margin-top: 1.5rem;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  line-height: 1.55;
  color: var(--cream);
  text-wrap: balance;
  animation-delay: 1s;
}
.next-note a {
  color: #fff;
  font-weight: 600;
  text-underline-offset: 0.2em;
}
.next-note a:hover { text-decoration-thickness: 2px; }

/* ── show section: warm paper, the same sheet as the gallery under it;
   the taped flier is the one dark thing on it ── */
.show-section {
  background: var(--warm);
  padding: 4rem 2rem 1.5rem;
}

/* eyebrow labels speak in the archive's voice: Fraunces italic, not tracked capitals */
.show-eyebrow, .archive-eyebrow {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.show-eyebrow {
  color: var(--teal-ink);
  margin-bottom: 2.4rem;
  text-align: center;
}

.show-inner {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 3.5rem;
  max-width: 900px;
  margin: 0 auto;
}

/* ── flier ── */
.flier-frame {
  position: relative;
  flex-shrink: 0;
  width: min(340px, 42vw);
  transform: rotate(-1.5deg);
}
.flier-frame::before {
  content: '';
  position: absolute;
  z-index: 1;
  top: -16px; left: 50%;
  width: 118px; height: 34px;
  background: rgba(240,160,48,0.86);
  transform: translateX(-50%) rotate(3deg);
}
.flier-img {
  display: block;
  width: 100%;
  height: auto;
  border: 8px solid #fff;
  box-shadow: 6px 8px 0 rgba(92,51,23,0.28);
}

/* ── show info panel ── */
.show-info {
  flex: 1;
  min-width: 0;
  color: var(--ink);
  text-align: left;
}

.show-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: var(--orange-ink);
  line-height: 1;
  /* a print offset, like the archive title's; no glow */
  text-shadow: 0.05em 0.04em 0 rgba(46,173,163,0.5);
}

.show-presented {
  margin-top: 0.3rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
}

.show-desc {
  margin-top: 1.2rem;
  font-style: italic;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* ── the run: one line, the way a playbill lists it ── */
.show-run {
  margin-top: 1.5rem;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.3;
  color: var(--brown);
}

.show-run span {
  display: block;
  margin-top: 0.35rem;
  font-family: 'Nunito', sans-serif;
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--teal-ink);
}

/* ── venue ── */
.venue {
  margin-top: 1.4rem;
  font-size: 0.85rem;
  color: var(--ink);
  line-height: 1.6;
}

.venue strong {
  color: var(--brown);
  font-weight: 600;
}

.credits {
  margin-top: 1.2rem;
  font-size: 0.78rem;
  color: var(--ink);
  font-style: italic;
}

/* mobile: stack vertically */
@media (max-width: 620px) {
  .show-inner {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  .flier-frame {
    width: min(300px, 82vw);
  }
  .show-info {
    text-align: center;
  }
}

/* three links no longer fit one line at phone width without tightening */
@media (max-width: 420px) {
  .site-nav ul, .site-nav li { column-gap: 0.2rem; }
  .site-nav a { font-size: 0.95rem; padding: 0.8rem 0.2rem; }
}

/* ── instagram link (hero and the archive's curtain call) ── */
.ig-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  /* 44px tap target; the space comes out of the margins around it */
  min-height: 2.75rem;
  padding: 0.8rem 0.6rem;
  transition: opacity 0.2s;
}
.ig-link:hover { opacity: 0.75; }
.ig-link svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }

.ig-link.on-light { color: var(--teal-ink); }

/* ── donate button ── */
.donate-btn {
  display: inline-block;
  margin-top: 0.4rem;
  background: var(--orange-ink);
  color: #fff;
  font-family: 'Baloo 2', cursive;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75em 1.4em;   /* 44px tall */
  border-radius: 100px;
  border: 2px solid var(--orange-ink);
  text-decoration: none;
  box-shadow: 0 3px 0 rgba(92,51,23,0.25);
  transition: background 0.2s, border-color 0.2s;
}
.donate-btn:hover {
  background: var(--brown);
  border-color: var(--brown);
}

/* ── gallery ── */
.gallery-section {
  background: var(--warm);
  padding: 3rem 0 3.5rem;
}

.gallery-heading {
  text-align: center;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.7rem;
  line-height: 1.2;
  color: var(--teal-ink);
  padding: 0 1.5rem;
}

/* the cue that the strip scrolls, written as a stage direction */
.gallery-cue {
  max-width: 34rem;
  margin: 0.4rem auto 0.6rem;
  padding: 0 1.5rem;
  text-align: center;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
}
/* wide enough to show all six: nothing to swipe */
@media (min-width: 1400px) {
  .cue-scroll { display: none; }
}

.gallery-strip {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  justify-content: safe center;
  padding: 1.5rem 2.5rem 1.7rem;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 2.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--orange) var(--warm);
  /* photos fade out at both edges, so it reads as a strip that keeps going */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 2.25rem, #000 calc(100% - 2.25rem), transparent);
  mask-image: linear-gradient(to right, transparent, #000 2.25rem, #000 calc(100% - 2.25rem), transparent);
}

.gallery-strip::-webkit-scrollbar {
  height: 4px;
}
.gallery-strip::-webkit-scrollbar-track {
  background: rgba(92,51,23,0.1);
  border-radius: 2px;
}
.gallery-strip::-webkit-scrollbar-thumb {
  background: var(--orange);
  border-radius: 2px;
}

/* each photo is a taped snapshot, like the ones in the archive, and a link to its large view */
.shot {
  position: relative;
  flex-shrink: 0;
  scroll-snap-align: start;
  transform: rotate(-1.6deg);
  transition: transform 0.25s ease;
  cursor: zoom-in;
}
.shot:nth-child(even) { transform: rotate(1.3deg); }
.shot:nth-child(3n) { transform: rotate(-0.5deg); }
.shot:hover, .shot:focus-visible { transform: rotate(0deg) scale(1.03); }
.shot::before {
  content: '';
  position: absolute;
  z-index: 1;
  top: -10px; left: 50%;
  width: 58px; height: 20px;
  background: rgba(62,207,195,0.6);
  transform: translateX(-50%) rotate(-5deg);
}
.shot:nth-child(even)::before {
  background: rgba(240,160,48,0.72);
  transform: translateX(-50%) rotate(4deg);
}
.shot img {
  display: block;
  height: 280px;
  width: auto;
  border: 5px solid #fff;
  box-shadow: 3px 5px 0 rgba(92,51,23,0.2);
}

/* large view of one photo. No JS: each view is shown while its id is the page's #target.
   The views and the close target are fixed to the window, so opening and closing
   one does not move the page. */
.lightbox-rest {
  position: fixed;
  top: 3.75rem; left: 0;
  width: 1px; height: 1px;
  pointer-events: none;
}
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  background: rgba(34,17,5,0.94);
  color: var(--cream);
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 500;
}
.lightbox:target { display: flex; }
html:has(.lightbox:target) { overflow: hidden; scrollbar-gutter: stable; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  cursor: zoom-out;
}
.lightbox figure {
  position: relative;
  transform: rotate(-1deg);
  pointer-events: none;   /* a tap on the photo closes it too */
}
.lightbox figure::before {
  content: '';
  position: absolute;
  z-index: 1;
  top: -14px; left: 50%;
  width: 104px; height: 30px;
  background: rgba(240,160,48,0.86);
  transform: translateX(-50%) rotate(3deg);
}
.lightbox img {
  display: block;
  /* as large as the window allows, up to --cap tall (640px unless the image is smaller);
     --ar is the photo's width / height */
  width: min(100vw - 3rem, (100vh - 10.5rem) * var(--ar), var(--cap, 640px) * var(--ar));
  width: min(100vw - 3rem, (100dvh - 10.5rem) * var(--ar), var(--cap, 640px) * var(--ar));
  height: auto;
  border: 8px solid #fff;
  box-shadow: 6px 8px 0 rgba(0,0,0,0.5);
}
.lightbox-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 0.4rem;
  font-size: 1.05rem;
}
.lightbox-bar a {
  display: inline-block;
  padding: 0.72rem 0.7rem;   /* 44px tall or more */
  line-height: 1.3;
  color: var(--cream);
  text-decoration: none;
  white-space: nowrap;
}
.lightbox-bar a:hover { color: var(--orange2); text-decoration: underline; text-underline-offset: 0.2em; }
.lightbox-count { color: var(--warm); padding: 0 0.3rem; white-space: nowrap; }

/* ── archive: season one, written as a script ── */
.archive {
  position: relative;
  overflow: hidden;
  overflow: clip;   /* clip, not hidden, so the sticky act marks still stick */
  background:
    radial-gradient(circle, rgba(92,51,23,0.09) 1px, transparent 1.6px) 0 0 / 14px 14px,
    var(--cream);
  color: var(--ink);
  padding: 4.5rem 1.5rem 5rem;
}

/* two overprinted ink discs, riso style */
.archive::before, .archive::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.archive::before {
  width: 420px; height: 420px;
  background: var(--teal2);
  opacity: 0.3;
  top: -120px; right: -100px;
}
.archive::after {
  width: 290px; height: 290px;
  background: var(--orange2);
  opacity: 0.38;
  top: 90px; right: 130px;
}

.archive-inner {
  position: relative;
  z-index: 1;
  max-width: 940px;
  margin: 0 auto;
}

.archive-eyebrow {
  color: var(--orange-ink);
}

.archive-title {
  margin-top: 0.8rem;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--brown);
}
.archive-title em {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  color: var(--orange);
  text-shadow: 0.05em 0.04em 0 rgba(46,173,163,0.75);
}

.archive-sub {
  max-width: 34rem;
  margin-top: 1.4rem;
  font-size: 1.05rem;
  line-height: 1.75;
}

.archive-masthead {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.3rem 1.5rem;
  margin-top: 2.2rem;
  padding: 0.6rem 0;
  border-top: 3px double var(--brown);
  border-bottom: 3px double var(--brown);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
}

/* acts */
.act {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-top: 3.5rem;
}

.act-mark {
  position: sticky;
  top: 4.5rem;   /* clears the sticky menu */
}

.act-num {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 7.5rem;
  line-height: 0.85;
  /* tinted fill + spacing so II and III read as letters, not as a row of bars */
  letter-spacing: 0.1em;
  color: rgba(62,207,195,0.24);
  -webkit-text-stroke: 2px var(--teal);
}
.act-num.amp { font-size: 6rem; line-height: 1.15; }

.act-label {
  margin-top: 0.7rem;
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--teal-ink);
}

.act-name {
  margin-top: 0.2rem;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.7rem;
  line-height: 1.1;
  color: var(--brown);
}

/* scenes */
.scenes {
  list-style: none;
  display: grid;
  gap: 2.4rem;
}

.scene {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* ticket stub: wrapper carries tilt + shadow, inner carries the notched shape */
.stub {
  --stub: var(--orange2);
  transform: rotate(-3deg);
  filter: drop-shadow(3px 4px 0 rgba(92,51,23,0.2));
}
.stub.teal {
  --stub: var(--teal2);
  transform: rotate(2.5deg);
}

.stub-in {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.6rem 0.4rem 0.5rem;
  background: var(--stub);
  color: var(--text);
  font-family: 'Baloo 2', cursive;
  text-align: center;
  -webkit-mask:
    radial-gradient(circle 7px at left center, transparent 97%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 7px at right center, transparent 97%, #000) right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle 7px at left center, transparent 97%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 7px at right center, transparent 97%, #000) right / 51% 100% no-repeat;
}
.stub-top, .stub-foot {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
}
.stub-mid {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1;
}
.stub-mid.sm { font-size: 1.45rem; line-height: 1.3; }
.stub-foot {
  align-self: stretch;
  margin-top: 0.3rem;
  padding-top: 0.25rem;
  border-top: 1.5px dashed rgba(58,31,8,0.5);
}

.scene-kind {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--orange-ink);
}

.scene-title {
  margin-top: 0.15rem;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.45rem, 3.4vw, 1.9rem);
  line-height: 1.1;
  color: var(--brown);
}

.scene-place {
  margin-top: 0.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* stage direction */
.scene-dir {
  margin-top: 0.7rem;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--teal-ink);
}

.scene-text {
  max-width: 34rem;
  margin-top: 0.5rem;
  font-size: 0.97rem;
  line-height: 1.75;
}

.scene-link {
  display: inline-block;
  padding: 0.85rem 0;   /* 44px tap target */
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--orange-ink);
}

/* playbill credit lines with dotted leaders */
.bill {
  list-style: none;
  max-width: 23rem;
  margin-top: 0.9rem;
}
.bill li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.15rem 0;
  font-size: 0.88rem;
  font-weight: 600;
}
.bill li i {
  flex: 1;
  min-width: 1.5rem;
  border-bottom: 2px dotted rgba(92,51,23,0.5);
  transform: translateY(-0.25em);
}
.bill li span:first-child { font-weight: 400; }

/* taped-up poster */
.scene-poster {
  position: relative;
  float: right;
  width: 118px;
  margin: 0.2rem 0.4rem 0.8rem 1.4rem;
  transform: rotate(3deg);
}
.scene-poster img {
  display: block;
  width: 100%;
  height: auto;
  border: 5px solid #fff;
  box-shadow: 3px 5px 0 rgba(92,51,23,0.2);
}
.scene-poster::before {
  content: '';
  position: absolute;
  z-index: 1;
  top: -10px; left: 50%;
  width: 58px; height: 20px;
  background: rgba(62,207,195,0.6);
  transform: translateX(-50%) rotate(-5deg);
}
/* snapshots: same tape, a little bigger, hung at different angles */
.scene-body { display: flow-root; }
.scene-poster.snap { width: 150px; }
.scene-poster.snap.wide { width: 184px; }
.scene-poster.tilt-l { transform: rotate(-2.5deg); }
.scene-poster.tilt-l::before { transform: translateX(-50%) rotate(4deg); }
.scene-poster.tape-o::before { background: rgba(240,160,48,0.72); }
/* a poster with a large view: the thumbnail opens it */
.poster-open { display: block; cursor: zoom-in; }
.scene-poster figcaption {
  margin-top: 0.45rem;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 0.75rem;
  line-height: 1.3;
  text-align: center;
  color: var(--ink);
}

/* intermission */
.intermission {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 3.5rem;
  text-align: center;
}
.intermission::before, .intermission::after {
  content: '';
  flex: 1;
  border-top: 3px double var(--brown);
}
.intermission-word {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--orange-ink);
}
.intermission-note {
  margin-top: 0.1rem;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
}

/* curtain call */
.curtain-call {
  margin-top: 4rem;
  padding-top: 2.2rem;
  border-top: 3px double var(--brown);
  text-align: center;
}
.curtain-call .scene-dir { margin-top: 0; }
.cc-title {
  margin-top: 0.5rem;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  line-height: 1.1;
  color: var(--brown);
}
.cc-text {
  max-width: 28rem;
  margin: 0.6rem auto 1.1rem;
  line-height: 1.7;
}
.cc-top { margin-top: 0; }

@media (max-width: 760px) {
  .archive { padding: 3.5rem 1.25rem 4rem; }
  .archive::before { width: 300px; height: 300px; top: -110px; right: -120px; }
  .archive::after { width: 200px; height: 200px; top: 40px; right: -60px; }
  .act {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    margin-top: 3rem;
  }
  .act-mark {
    position: static;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1rem;
    align-items: end;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--teal);
  }
  .act-num, .act-num.amp { grid-row: span 2; font-size: 4.6rem; line-height: 0.95; }
  .act-label { margin-top: 0; align-self: end; }
  .act-name { align-self: start; font-size: 1.5rem; }
  .scene { grid-template-columns: 70px 1fr; gap: 1.1rem; }
  .stub-mid { font-size: 1.8rem; }
  .stub-mid.sm { font-size: 1.2rem; }
  .scene-poster { width: 92px; margin-left: 1rem; }
  .scene-poster.snap { width: 112px; }
  .scene-poster.snap.wide { width: 128px; }
}

/* too narrow to wrap a title around the poster: stand it above the scene instead.
   The stub leaves its column and lies on its side above the photo, so the text gets
   the full width. */
@media (max-width: 520px) {
  .scene { grid-template-columns: 1fr; gap: 0.9rem; }
  .stub { justify-self: start; }
  .stub-in {
    flex-direction: row;
    align-items: baseline;
    gap: 0.6rem;
    padding: 0.4rem 1.2rem;
  }
  .stub-mid, .stub-mid.sm { font-size: 1.45rem; line-height: 1.1; }
  .stub-foot {
    align-self: auto;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    padding-left: 0.6rem;
    border-left: 1.5px dashed rgba(58,31,8,0.5);
  }
  .scene-poster {
    float: none;
    display: block;
    width: 112px;
    margin: 0.4rem 0 1.1rem 0.3rem;
  }
  .scene-poster.snap { width: 150px; }
  .scene-poster.snap.wide { width: 184px; }
}

/* scenes drift in as they enter the viewport (no JS; skipped where unsupported) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .scene {
      animation: fadeUp linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }
}

/* ── not-found page (missing.html): the hero's paper fills the screen,
   a stage direction and a heading say what happened, one button goes home ── */
.lost {
  min-height: calc(100vh - 10px - 3.2rem);
  min-height: calc(100svh - 10px - 3.2rem);
  justify-content: center;
  padding: 3rem 1.5rem 3.5rem;
}
.lost > * { position: relative; z-index: 1; }
.lost-logo { display: inline-block; line-height: 0; border-radius: 4px; }
.lost .logo { width: min(170px, 46vw); border-width: 7px; }
.lost .logo-frame::before { width: 72px; height: 22px; top: -10px; }
.lost-dir { margin-top: 2rem; max-width: 30ch; text-wrap: balance; }
/* .lost .lost-title outranks .hero h1 (the logo's line-height 0 and pop-in) */
.lost .lost-title {
  margin-top: 0.5rem;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 800;
  font-size: clamp(1.9rem, 6vw, 2.8rem);
  line-height: 1.1;
  color: var(--brown);
  text-wrap: balance;
  animation: fadeUp 0.8s 0.3s ease both;
}
.lost-text {
  max-width: 30rem;
  margin: 0.9rem auto 1.4rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
}
.lost-home { font-family: 'Nunito', sans-serif; font-weight: 600; letter-spacing: 0.06em; }

/* ── footer ── */
footer {
  background: var(--brown);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 2rem 1.5rem;
}
/* on a phone the back-to-top button would sit on the copyright line; give it room below */
@media (max-width: 700px) {
  footer { padding-bottom: 5rem; }
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--orange2);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  min-height: 2.75rem;   /* 44px tap target */
  padding: 0 0.6rem;
  transition: color 0.2s;
}
.social-link:hover { color: #fff; }
.social-link svg { width: 18px; height: 18px; fill: currentColor; }

.copyright {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  opacity: 0.85;
}
.copyright span { white-space: nowrap; }
/* too narrow for one line: name and "Nonprofit Organization" each get a line, no dot */
@media (max-width: 520px) {
  .copyright span { display: block; }
  .copyright .sep { display: none; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* keyboard focus visibility */
a:focus-visible {
  outline: 3px solid var(--orange-ink);
  outline-offset: 3px;
  border-radius: 4px;
}
/* on the dark grounds the ring switches to a light ink */
.intro a:focus-visible { outline-color: var(--cream); }
footer a:focus-visible,
.lightbox a:focus-visible { outline-color: var(--orange2); }

/* respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
