/* ===========================================================
   NightTales
   Nighttime fairytale, elevated whimsy.
   Whimsy lives in the ornament, type and light.
   The copy stays plain and warm.
   =========================================================== */

:root {
  color-scheme: dark;

  --midnight:   #100B26;
  --dusk:       #1A1338;
  --twilight:   #2A1F4F;

  --foil:       #E8C27E;
  --foil-lit:   #F8E2B0;
  --moonlight:  #DCD8F5;
  --rose:       #E9A6C0;

  --text:       #EFECF8;
  --text-muted: #B3AECE;

  --border:      rgba(232, 194, 126, 0.16);
  --border-soft: rgba(220, 216, 245, 0.10);

  --radius:    16px;
  --radius-sm: 10px;
  --max-width: 1020px;
  --measure:   62ch;

  --shadow: 0 2px 6px rgba(0, 0, 0, 0.35), 0 24px 60px -28px rgba(0, 0, 0, 0.8);
  --glow:   0 0 28px rgba(232, 194, 126, 0.22);

  --font-head: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background-color: var(--midnight);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* -----------------------------------------------------------
   Atmosphere: starfield, moonglow, printed paper grain
   ----------------------------------------------------------- */

.sky {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-color: var(--midnight);
  background-image:
    radial-gradient(ellipse 70% 50% at 50% -8%,  rgba(232, 194, 126, 0.13), transparent 62%),
    radial-gradient(ellipse 60% 45% at 88% 12%,  rgba(233, 166, 192, 0.09), transparent 60%),
    radial-gradient(ellipse 80% 60% at 12% 88%,  rgba(42, 31, 79, 0.75),    transparent 62%),
    linear-gradient(180deg, #140E2E 0%, var(--midnight) 42%, #0B0719 100%);
}

/* Layered pinpoint stars. Three sizes, three offsets, no images. */
.sky::before {
  content: "";
  position: absolute;
  inset: -50%;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 18%,  rgba(255,255,255,0.85), transparent),
    radial-gradient(1.1px 1.1px at 34% 8%,   rgba(220,216,245,0.65), transparent),
    radial-gradient(1.6px 1.6px at 57% 24%,  rgba(255,255,255,0.75), transparent),
    radial-gradient(1px   1px   at 78% 12%,  rgba(232,194,126,0.70), transparent),
    radial-gradient(1.3px 1.3px at 91% 31%,  rgba(255,255,255,0.60), transparent),
    radial-gradient(1.1px 1.1px at 6%  46%,  rgba(220,216,245,0.55), transparent),
    radial-gradient(1.5px 1.5px at 26% 62%,  rgba(255,255,255,0.55), transparent),
    radial-gradient(1px   1px   at 48% 78%,  rgba(233,166,192,0.60), transparent),
    radial-gradient(1.2px 1.2px at 69% 56%,  rgba(255,255,255,0.50), transparent),
    radial-gradient(1.4px 1.4px at 84% 72%,  rgba(220,216,245,0.55), transparent),
    radial-gradient(1px   1px   at 17% 88%,  rgba(255,255,255,0.45), transparent),
    radial-gradient(1.2px 1.2px at 63% 94%,  rgba(232,194,126,0.45), transparent);
  opacity: 0.9;
}

/* Printed paper grain, kept very faint. */
.sky::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Twinkling stars rendered as real SVG, drawn in the hero. */
.twinkle { animation: twinkle 7s var(--ease) infinite; transform-origin: center; }
.twinkle:nth-of-type(2) { animation-duration: 9s;  animation-delay: -2s; }
.twinkle:nth-of-type(3) { animation-duration: 11s; animation-delay: -5s; }
.twinkle:nth-of-type(4) { animation-duration: 8s;  animation-delay: -3.5s; }
.twinkle:nth-of-type(5) { animation-duration: 13s; animation-delay: -7s; }
.twinkle:nth-of-type(6) { animation-duration: 10s; animation-delay: -1s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 1; }
}

/* -----------------------------------------------------------
   Typography
   ----------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.005em;
  color: #FFFDF8;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.9rem, 7.5vw, 4.6rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 4.2vw, 2.9rem); font-weight: 500; }
h3 { font-size: 1.45rem; }

p { margin: 0 0 1.15em; max-width: var(--measure); }

a { color: var(--foil); text-decoration-color: rgba(232, 194, 126, 0.4); text-underline-offset: 3px; }
a:hover { color: var(--foil-lit); text-decoration-color: var(--foil-lit); }

strong { color: #FFFDF8; font-weight: 600; }

.lede {
  font-size: clamp(1.1rem, 2.1vw, 1.3rem);
  color: var(--moonlight);
  line-height: 1.62;
  max-width: 54ch;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--foil);
  margin-bottom: 1.1rem;
}

.kicker {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 0.7rem;
}

.pullquote {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1.4rem, 3.2vw, 1.95rem);
  line-height: 1.4;
  color: var(--moonlight);
  max-width: 34ch;
  margin: 0 auto;
  text-align: center;
}

.dropcap::first-letter {
  font-family: var(--font-head);
  float: left;
  font-size: 4.1rem;
  line-height: 0.82;
  padding: 0.08em 0.12em 0 0;
  color: var(--foil);
}

/* -----------------------------------------------------------
   Layout
   ----------------------------------------------------------- */

.wrap { width: min(100% - 2.5rem, var(--max-width)); margin-inline: auto; }

main > section { padding: clamp(3.5rem, 8vw, 6rem) 0; }

.section-head { margin-bottom: 2.4rem; }
.section-head p { color: var(--text-muted); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--foil);
  color: #1A1338;
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
  z-index: 200;
}
.skip-link:focus { left: 0; }

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

/* -----------------------------------------------------------
   Chapter divider: hairline rule with a moon at the center
   ----------------------------------------------------------- */

.divider {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
  color: var(--foil);
  opacity: 0.85;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 194, 126, 0.42) 45%, rgba(232, 194, 126, 0.42) 55%, transparent);
}
.divider svg { width: 18px; height: 18px; flex: none; }

/* -----------------------------------------------------------
   Header and navigation
   ----------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(16, 11, 38, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}

.nav-inner {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
  color: #FFFDF8;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.brand:hover { color: #FFFDF8; }
.brand .moon { width: 24px; height: 24px; filter: drop-shadow(0 0 7px rgba(232, 194, 126, 0.65)); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--foil); border-bottom-color: var(--foil); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 9px;
  background: none;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
}

/* -----------------------------------------------------------
   Buttons
   ----------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.82rem 1.6rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
              background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.btn-primary {
  background: linear-gradient(135deg, var(--foil-lit), var(--foil));
  color: #16102F;
  box-shadow: var(--glow);
}
.btn-primary:hover {
  color: #16102F;
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(232, 194, 126, 0.42);
}

.btn-outline {
  border-color: var(--border);
  color: var(--moonlight);
  background: rgba(220, 216, 245, 0.03);
}
.btn-outline:hover {
  color: #FFFDF8;
  border-color: var(--foil);
  background: rgba(232, 194, 126, 0.08);
  transform: translateY(-2px);
}

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }

/* -----------------------------------------------------------
   Hero
   ----------------------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(4rem, 11vw, 7.5rem) 0 clamp(3rem, 7vw, 5rem);
  text-align: center;
  overflow: hidden;
}

.hero .wrap { position: relative; z-index: 2; }
.hero .lede, .hero p { margin-inline: auto; }

.hero-moon {
  width: clamp(54px, 9vw, 78px);
  height: auto;
  margin-bottom: 1.6rem;
  filter: drop-shadow(0 0 26px rgba(232, 194, 126, 0.5));
}

/* Constellation drawn faintly behind the hero text. */
.constellation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
}

.hero-sub {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: var(--foil);
  margin-bottom: 1.4rem;
}

/* -----------------------------------------------------------
   Cards
   ----------------------------------------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.4rem;
}

.card {
  position: relative;
  background: linear-gradient(160deg, rgba(42, 31, 79, 0.55), rgba(26, 19, 56, 0.75));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.9rem;
  box-shadow: var(--shadow);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease),
              box-shadow 0.22s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--border);
  box-shadow: var(--shadow), 0 0 32px -8px rgba(232, 194, 126, 0.3);
}
.card h3 { color: #FFFDF8; margin-bottom: 0.45rem; }
.card p { color: var(--text-muted); font-size: 0.97rem; margin-bottom: 0; }
.card p + p { margin-top: 0.8rem; }

/* Foil hairline inset, like a stamped bookplate. */
.card-foil::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 6px);
  pointer-events: none;
}
.card-foil { padding: 2.3rem; }

.card-num {
  display: block;
  font-family: var(--font-head);
  font-size: 2.3rem;
  line-height: 1;
  color: var(--foil);
  opacity: 0.55;
  margin-bottom: 0.7rem;
}

/* -----------------------------------------------------------
   Ground rules strip
   ----------------------------------------------------------- */

.rules {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.rules li {
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--moonlight);
  background: rgba(232, 194, 126, 0.05);
}

/* -----------------------------------------------------------
   Events timeline
   ----------------------------------------------------------- */

.timeline { list-style: none; margin: 0; padding: 0; }

.tl-item {
  display: grid;
  grid-template-columns: 82px 30px minmax(0, 1fr);
  padding-bottom: 1.5rem;
}
.tl-item:last-child { padding-bottom: 0; }

.tl-date { padding-top: 1.55rem; text-align: right; }
.tl-day {
  display: block;
  font-family: var(--font-head);
  font-size: 1.3rem;
  line-height: 1.15;
  color: #FFFDF8;
}
.tl-weekday { display: block; font-size: 0.82rem; color: var(--text-muted); }
.tl-year { display: block; font-size: 0.74rem; color: var(--text-muted); opacity: 0.6; }

/* The rail: a dotted line down the column with a foil dot at each event.
   Padding rather than grid gap keeps the line unbroken between items. */
.tl-rail { position: relative; }
.tl-rail::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 1.7rem;
  bottom: -1.5rem;
  border-left: 2px dotted rgba(232, 194, 126, 0.45);
  transform: translateX(-50%);
}
.tl-item:last-child .tl-rail::before { display: none; }
.tl-rail::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 1.7rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--foil);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px rgba(232, 194, 126, 0.55);
}

.tl-card {
  background: linear-gradient(160deg, rgba(42, 31, 79, 0.5), rgba(26, 19, 56, 0.72));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.5rem 1.7rem;
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.tl-card:hover {
  border-color: var(--border);
  box-shadow: 0 0 30px -10px rgba(232, 194, 126, 0.3);
}

.tl-time {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.tl-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.55rem;
  color: #FFFDF8;
}
.tl-card p { color: var(--text-muted); font-size: 0.97rem; margin-bottom: 0.7rem; }

.tl-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  margin-bottom: 0.9rem !important;
}
.tl-pin { width: 15px; height: 15px; flex: none; opacity: 0.75; }

.tl-pill {
  display: inline-block;
  padding: 0.32rem 0.85rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--foil-lit);
  background: rgba(232, 194, 126, 0.12);
  border: 1px solid rgba(232, 194, 126, 0.3);
}

.tl-link {
  display: block;
  margin-top: 0.95rem;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}
.tl-link:hover { text-decoration: underline; }

.tl-btn { margin-top: 1.1rem; }

.upcoming[data-state="none"] .when-scheduled { display: none; }
.upcoming[data-state="scheduled"] .when-none { display: none; }

.upcoming-card { text-align: center; }
.upcoming-card .moon-sm {
  width: 34px;
  height: 34px;
  margin: 0 auto 1rem;
  display: block;
  filter: drop-shadow(0 0 14px rgba(232, 194, 126, 0.5));
}
.upcoming-card h3 {
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  font-weight: 500;
  margin-bottom: 0.7rem;
}
.upcoming-card p { margin-inline: auto; color: var(--text-muted); }
.upcoming-card .btn-row { justify-content: center; margin-top: 1.6rem; }

/* -----------------------------------------------------------
   Subscribe band
   ----------------------------------------------------------- */

.subscribe {
  text-align: center;
  background:
    radial-gradient(ellipse 60% 100% at 50% 0%, rgba(232, 194, 126, 0.10), transparent 70%),
    rgba(26, 19, 56, 0.5);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.subscribe h2 { margin-bottom: 0.6rem; }
.subscribe p { margin-inline: auto; color: var(--text-muted); }
.subscribe .btn-row { justify-content: center; }
.subscribe .fineprint {
  font-size: 0.83rem;
  opacity: 0.68;
  margin-top: 1.5rem;
  margin-bottom: 0;
}

/* -----------------------------------------------------------
   Hosts, contact, form
   ----------------------------------------------------------- */

/* One shared bio beside one photo. Photo first on desktop, and because it is
   source-ordered first it also stacks above the text on narrow screens. */
.host-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 2.2rem;
  align-items: center;
}

.host-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
}
.host-photo .photo-slot {
  min-height: 260px;
  display: grid;
  place-items: center;
  margin: 0;
}

.host-bio h3 { margin-bottom: 0.15rem; }
.host-bio p:last-child { margin-bottom: 0; }

.host-role {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 0.9rem;
}
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; }
.contact-card {
  background: rgba(26, 19, 56, 0.55);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 1.35rem 1.5rem;
}
.contact-card .label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.contact-card a { font-weight: 500; word-break: break-word; }

/* -----------------------------------------------------------
   Forms
   ----------------------------------------------------------- */

.site-form { display: grid; gap: 1.1rem; }

.field label {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.site-form input,
.site-form textarea {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: rgba(11, 7, 25, 0.55);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.97rem;
  line-height: 1.5;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.site-form textarea { resize: vertical; min-height: 130px; }

.site-form input::placeholder,
.site-form textarea::placeholder { color: var(--text-muted); opacity: 0.6; }

.site-form input:focus,
.site-form textarea:focus {
  outline: none;
  border-color: var(--foil);
  box-shadow: 0 0 0 3px rgba(232, 194, 126, 0.16);
}

.site-form button[disabled] { opacity: 0.75; cursor: progress; }

/* Sending indicator. The spinner element is added by js/main.js. */
.btn-label { display: inline-block; }

.spinner {
  display: none;
  width: 15px;
  height: 15px;
  flex: none;
  border-radius: 50%;
  border: 2px solid rgba(22, 16, 47, 0.3);
  border-top-color: #16102F;
  animation: spin 0.7s linear infinite;
}

/* Outline buttons sit on the dark ground, so the spinner needs light strokes. */
.btn-outline .spinner {
  border-color: rgba(220, 216, 245, 0.3);
  border-top-color: var(--moonlight);
}

.site-form[data-sending="true"] .spinner { display: inline-block; }

@keyframes spin { to { transform: rotate(360deg); } }

/* A frozen spinner reads as broken, so drop it entirely and let the status
   text carry the message instead. */
@media (prefers-reduced-motion: reduce) {
  .site-form[data-sending="true"] .spinner { display: none; }
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

/* Honeypot. Off screen rather than display:none, so bots still fill it. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  min-height: 1.4em;
}
.form-status[data-state="ok"] { color: var(--foil-lit); }
.form-status[data-state="error"] { color: var(--rose); }

/* Subscribe band: name, email and button on one line where there is room. */
.subscribe-form {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.85rem;
  max-width: 660px;
  margin: 1.9rem auto 0;
  text-align: left;
}
.subscribe-form .form-status { grid-column: 1 / -1; text-align: center; }

.form-fallback { font-size: 0.9rem; color: var(--text-muted); margin-top: 1rem; }

/* Photos page: same single-attribute state swap as events and feedback. */
.gallery[data-state="none"] .when-live { display: none; }
.gallery[data-state="live"] .when-none { display: none; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.15rem;
}
.photo { margin: 0; }
.photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow);
}
.photo figcaption {
  margin-top: 0.65rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Marked slot where event photos can drop in later. */
.photo-slot {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 2.4rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  background: rgba(42, 31, 79, 0.22);
}

/* -----------------------------------------------------------
   Footer
   ----------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 2.6rem 0;
  background: rgba(11, 7, 25, 0.6);
}
.footer-inner {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--foil); }

/* -----------------------------------------------------------
   Responsive
   ----------------------------------------------------------- */

@media (max-width: 760px) {
  body { font-size: 16px; }

  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 1.25rem 1.1rem;
    /* Fully opaque on purpose. The sticky header above is already a backdrop
       root because of its own backdrop-filter, so a nested blur here composites
       incorrectly in Chromium and lets page content bleed through the panel. */
    background: #150F2C;
    border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 18px 32px -18px rgba(0, 0, 0, 0.85);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 0.75rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border-soft);
  }
  .nav-links a.active { border-bottom-color: var(--foil); }

  .subscribe-form { grid-template-columns: 1fr; gap: 0.9rem; }
  .subscribe-form button { width: 100%; justify-content: center; }

  .tl-item { grid-template-columns: 1fr; padding-bottom: 1.6rem; }
  .tl-date {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    text-align: left;
    padding: 0 0 0.6rem 0.2rem;
  }
  .tl-day { font-size: 1.15rem; }
  .tl-rail { display: none; }
  .tl-card { padding: 1.3rem 1.35rem; }

  .host-feature { grid-template-columns: 1fr; gap: 1.5rem; }
  .host-photo .photo-slot { min-height: 190px; }

  .card, .card-foil { padding: 1.5rem; }
  .card-foil::before { inset: 6px; }
  .btn { padding: 0.78rem 1.35rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* -----------------------------------------------------------
   Reduced motion
   ----------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .twinkle { animation: none !important; opacity: 0.8 !important; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .card:hover, .btn:hover { transform: none; }
}
