:root {
  --parchment: #f3e6c8;
  --parchment-deep: #e4d2a8;
  --parchment-edge: #cbb889;
  --ink: #1c1410;
  --ink-soft: #3a2c24;
  --holly: #10261c;
  --holly-mid: #1a3a2a;
  --holly-deep: #0a1812;
  --holly-red: #7a1e1e;
  --holly-red-bright: #922828;
  --claret: #6b1c23;
  --claret-bright: #8b2430;
  --gold: #c4a35a;
  --gold-bright: #e0c579;
  --gold-dim: #8a6d32;
  --candle: #f4d59a;
  --cream: #fbf4e3;
  --mist: #9aa7b0;
  --font-display: "UnifrakturMaguntia", "Times New Roman", serif;
  --font-label: "Cinzel", "Palatino Linotype", Palatino, serif;
  --font-body: "EB Garamond", "Palatino Linotype", Palatino, serif;
  --max: 44rem;
  --photo-width: min(100%, 36rem);
  --photo-height: 54rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--holly-deep);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.2rem;
  line-height: 1.7;
}

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

a {
  color: var(--claret);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover { color: var(--claret-bright); }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--cream);
  color: var(--ink);
  padding: 0.5rem 1rem;
}

.skip:focus { top: 1rem; }

/* ---- Header ---- */
.site-header {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 0.7rem 1.25rem;
  background: var(--holly);
  color: var(--cream);
  border-bottom: 2px solid var(--gold-dim);
  z-index: 5;
}

.brand {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover { color: var(--candle); }

.lang-switch {
  display: flex;
  gap: 0.35rem;
  margin-left: auto;
}

.lang-switch button {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--gold-dim);
  padding: 0.3rem 0.7rem;
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--gold);
  color: var(--holly-deep);
  border-color: var(--gold);
}

[hidden],
[data-lang]:not(.is-active) { display: none !important; }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: min(88vh, 46rem);
  background-color: #07080c;
  background-image: url("../images/hero-street-mobile.webp"), url("../images/hero-street-blur.webp");
  background-position: center, center;
  background-size: contain, cover;
  background-repeat: no-repeat, no-repeat;
  color: var(--cream);
  isolation: isolate;
}
@media (min-width: 701px) {
  .hero {
    background-image: url("../images/hero-street.webp"), url("../images/hero-street-blur.webp");
  }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.45) 16%, transparent 34%, transparent 66%, rgba(0, 0, 0, 0.45) 84%, rgba(0, 0, 0, 0.78) 100%),
    radial-gradient(ellipse 70% 90% at 50% 50%, transparent 42%, rgba(0, 0, 0, 0.5) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(8, 12, 14, 0.28) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero.has-webgl::after {
  background: linear-gradient(180deg, transparent 62%, rgba(8, 12, 14, 0.22) 100%);
}

/* Cool dim overlay until the lantern sequence (or reduced-motion / no-WebGL is-lit). */
.hero:not(.is-lit):not(.has-webgl)::after {
  background: rgba(10, 18, 36, 0.48);
}

#london-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: none;
  pointer-events: none;
}

.hero.has-webgl #london-scene { display: block; }
.hero.has-webgl { background-color: #07080c; }

.playbill-frame {
  display: none;
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: var(--photo-width);
  height: var(--photo-height);
  transform: translate(-50%, -50%);
  border: 1px solid var(--gold);
  box-shadow:
    inset 0 0 0 3px rgba(8, 6, 4, 0.92),
    inset 0 0 0 4px var(--gold-dim);
  pointer-events: none;
}
@media (min-width: 701px) {
  .playbill-frame { display: block; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100%, var(--photo-width, 36rem));
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.15rem 3rem;
  text-align: center;
  pointer-events: none;
}
.hero-inner a,
.hero-inner button,
.hero-inner .save-wrap {
  pointer-events: auto;
}

.hero-inner::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 2%;
  right: 2%;
  top: 0;
  height: 58%;
  background: radial-gradient(ellipse at 50% 18%, rgba(4, 6, 10, 0.9) 0%, rgba(4, 6, 10, 0.68) 38%, rgba(4, 6, 10, 0.22) 64%, transparent 82%);
  pointer-events: none;
}

.hero-title {
  opacity: 0;
  transition: opacity 0.9s ease;
}
.hero.is-lit .hero-title { opacity: 1; }

.eyebrow,
.byline,
.quote,
.quote cite,
.ornament,
.venue {
  text-shadow:
    0 0 3px #05070a,
    0 0 8px #05070a,
    0 1px 2px #000,
    0 2px 8px rgba(0, 0, 0, 0.98),
    0 0 22px rgba(0, 0, 0, 0.95),
    0 6px 26px rgba(0, 0, 0, 0.8);
}

.eyebrow {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: clamp(0.85rem, 1.8vw, 1.05rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f0d78a;
  margin: 0 0 0.6rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.1rem, 11vw, 6.4rem);
  line-height: 0.95;
  margin: 0 0 0.45rem;
  color: var(--cream);
  text-shadow:
    0 1px 0 #3a2a12,
    0 2px 0 #1a1208,
    0 0 6px #05070a,
    0 0 16px rgba(0, 0, 0, 0.92),
    0 4px 10px rgba(0, 0, 0, 0.85),
    0 10px 32px rgba(0, 0, 0, 0.8);
}

.byline {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: clamp(0.8rem, 1.6vw, 1rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f0d78a;
  margin: 0 0 1.1rem;
}

.ornament {
  display: block;
  color: #e0c579;
  letter-spacing: 0.4em;
  font-size: 1rem;
  margin: 0.3rem 0 1rem;
  opacity: 0.95;
}

.quote {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.1rem, 2.3vw, 1.4rem);
  max-width: 34rem;
  margin: 0 auto 1.4rem;
  color: #f7e2b0;
}

.quote cite {
  display: block;
  font-style: normal;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: clamp(0.8rem, 1.45vw, 0.92rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-variant: small-caps;
  color: #f0d78a;
  margin-top: 0.6rem;
}

.show-times {
  list-style: none;
  margin: 0 auto 0.85rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  width: 100%;
}

.show-times li {
  background: rgba(6, 8, 12, 0.88);
  border: 1px solid var(--gold-dim);
  padding: 0.55rem 0.8rem 0.6rem;
}

.show-times strong {
  display: block;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--cream);
  line-height: 1.3;
}

.show-meta {
  display: block;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.35;
  color: var(--candle);
  margin-top: 0.15rem;
}

.venue {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: clamp(0.72rem, 1.35vw, 0.82rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-variant: small-caps;
  color: #f0d78a;
  margin: 0 0 1.25rem;
  line-height: 1.45;
}

.nobr { white-space: nowrap; }

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.save-wrap { position: relative; }

.save-menu {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.45rem);
  transform: translateX(-50%);
  min-width: 16rem;
  background: #140c0c;
  border: 1px solid var(--gold);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  z-index: 6;
  text-align: left;
}

.save-menu a {
  display: block;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid rgba(196, 163, 90, 0.25);
  white-space: nowrap;
}
.save-menu a:last-child { border-bottom: 0; }
.save-menu a:hover { background: rgba(196, 163, 90, 0.16); color: var(--candle); }

.btn {
  display: inline-block;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.7rem 1rem;
  border: 1px solid var(--gold);
  color: var(--holly-deep);
  background: var(--gold-bright);
  cursor: pointer;
}

.btn:hover { background: var(--candle); color: var(--holly-deep); }

.btn-primary {
  background: var(--holly-red);
  color: var(--cream);
  border-color: #9a3a3a;
}
.btn-primary:hover {
  background: var(--holly-red-bright);
  color: var(--cream);
}

.btn-ghost {
  background: transparent;
  color: var(--gold-bright);
}

.btn-ghost:hover {
  background: rgba(196, 163, 90, 0.15);
  color: var(--candle);
}

.share-status {
  min-height: 1.2em;
  margin: 0.55rem 0 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--candle);
}

.sheet .btn-ghost {
  background: var(--cream);
  color: var(--claret);
  border-color: var(--claret);
}

.sheet .btn-ghost:hover {
  background: var(--parchment-deep);
  color: var(--claret-bright);
}

/* ---- Parchment ---- */
.sheet {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 250, 235, 0.55), transparent 50%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(90, 60, 20, 0.025) 3px,
      rgba(90, 60, 20, 0.025) 4px
    ),
    linear-gradient(180deg, var(--parchment) 0%, var(--parchment-deep) 100%);
  color: var(--ink);
  box-shadow: inset 0 0 80px rgba(80, 50, 16, 0.18);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.6rem 1.25rem 3.4rem;
}

.divider {
  text-align: center;
  color: var(--gold-dim);
  letter-spacing: 0.45em;
  margin: 0 0 1.8rem;
  font-size: 0.95rem;
}

.sheet h2 {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--claret);
  text-align: center;
  margin: 2.2rem 0 0.8rem;
}

.lead { font-size: 1.28rem; }

.lead::first-letter {
  font-family: var(--font-display);
  float: left;
  font-size: 4.2rem;
  line-height: 0.75;
  padding: 0.12em 0.12em 0 0;
  color: var(--claret);
}

.address {
  text-align: center;
  font-size: 1.2rem;
  margin: 0;
}

.frame {
  margin: 2rem 0;
  padding: 0.7rem;
  border: 3px double var(--gold-dim);
  background: #2a1c12;
  box-shadow: 0 8px 24px rgba(40, 20, 8, 0.2);
}

.frame img { display: block; width: 100%; }

.caption {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.95rem;
  text-align: center;
  color: var(--ink-soft);
  margin: 0.6rem 0 0;
}

.cta-block {
  text-align: center;
  margin-top: 2rem;
  padding: 1.3rem 1rem;
  border-top: 1px solid var(--parchment-edge);
  border-bottom: 1px solid var(--parchment-edge);
}

.site-footer {
  background: var(--holly);
  color: var(--cream);
  text-align: center;
  padding: 1.5rem 1.25rem 2rem;
  font-size: 0.95rem;
  border-top: 2px solid var(--gold-dim);
}

.site-footer a { color: var(--gold-bright); }

.site-footer p { margin: 0.3rem 0; }

.art-credit {
  margin-top: 0.85rem;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--gold-bright);
  opacity: 0.85;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 700px) {
  body { font-size: 1.125rem; }

  .site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(8, 10, 12, 0.78) 0%, rgba(8, 10, 12, 0.28) 70%, transparent 100%);
    border-bottom: 0;
    padding: 0.65rem 0.75rem;
  }

  .brand {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  .lang-switch button {
    font-size: 0.62rem;
    padding: 0.28rem 0.5rem;
    letter-spacing: 0.08em;
  }

  .hero {
    min-height: 36rem;
    background-position: center top, center;
  }

  .hero-inner {
    width: 100%;
    max-width: none;
    padding: 4.2rem 0.9rem 1.6rem;
  }

  .byline { margin-bottom: 0.7rem; }
  .ornament { margin: 0.15rem 0 0.7rem; }
  .quote { margin-bottom: 0.95rem; }
  .venue { margin-bottom: 1rem; }

  .hero-inner::before {
    left: 0;
    right: 0;
    height: 52%;
    background: radial-gradient(ellipse at 50% 16%, rgba(4, 6, 10, 0.88) 0%, rgba(4, 6, 10, 0.55) 42%, transparent 78%);
  }

  .show-meta { font-size: 1.0625rem; } /* 17px */

  .hero::before {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, transparent 18%, transparent 82%, rgba(0, 0, 0, 0.35) 100%),
      radial-gradient(ellipse 90% 80% at 50% 50%, transparent 50%, rgba(0, 0, 0, 0.4) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-title {
    opacity: 1;
    transition: none;
  }
  .hero.has-webgl #london-scene { display: none; }
  .hero.has-webgl {
    background-color: #07080c;
    background-image: url("../images/hero-street.webp"), url("../images/hero-street-blur.webp");
    background-position: center, center;
    background-size: contain, cover;
    background-repeat: no-repeat, no-repeat;
  }
}
