:root {
  --text: #f8f3ee;
  --muted: #d8c9c0;
  --lilac: #c8a2ff;
  --peach: #ffc29d;
  --orange: #ff7a1a;
  --black: #000;
  --line: rgba(255, 194, 157, 0.42);
  --max: 1120px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(200, 162, 255, 0.42), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(255, 194, 157, 0.4), transparent 38%),
    linear-gradient(180deg, #2b1841 0%, #4f2648 44%, #b85c22 100%);
  color: var(--text);
  font-family: "Space Grotesk", "Sora", "Segoe UI", sans-serif;
}

body {
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  isolation: isolate;
}

.site-header {
  position: sticky;
}

main,
.site-footer {
  position: relative;
}

.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  z-index: 1001;
}

.nav-wrap nav {
  margin-left: auto;
  position: relative;
  z-index: 1002;
}

.logo {
  font-family: "Anton", "Bebas Neue", sans-serif;
  letter-spacing: 0.08em;
  font-size: 1.7rem;
}
.logo-heart {
  color: var(--lilac);
  font-family: inherit;
  font-style: normal;
  font-size: 0.78em;
  vertical-align: 0.08em;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  background: #090909;
  border: 1px solid var(--lilac);
  border-radius: 0.4rem;
  padding: 0;
  cursor: pointer;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 4px auto;
}

.nav-links {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1003;
}

.nav-links a {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.nav-links a.active,
.nav-links a:hover { color: var(--peach); }

.has-submenu { position: relative; }

.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 170px;
  list-style: none;
  margin: 0;
  padding: 0.45rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.95);
  display: none;
  z-index: 1004;
}

.sub-menu li + li { margin-top: 0.2rem; }

.sub-menu a {
  display: block;
  padding: 0.28rem 0.4rem;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.sub-menu a:hover { color: var(--peach); }

.has-submenu:hover .sub-menu,
.has-submenu:focus-within .sub-menu { display: block; }

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.2rem 1rem 4rem;
}

.home-page main { padding-bottom: 1.8rem; }

.hero {
  margin-top: 0.8rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.95);
  padding: clamp(1.2rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: center;
}

.poster-kicker {
  font-family: "Anton", "Bebas Neue", sans-serif;
  color: var(--peach);
  letter-spacing: 0.15em;
  font-size: 1rem;
}

.hero h1,
.page-title h1 {
  margin: 0.1rem 0 0.3rem;
  line-height: 0.92;
  font-family: "Anton", "Bebas Neue", sans-serif;
  letter-spacing: 0.04em;
  font-size: clamp(2.2rem, 9vw, 5.4rem);
  text-transform: uppercase;
}

.hero h1 .headline-name,
.hero h1 .headline-tour { display: block; }
.hero h1 .headline-tour,
.page-title h1 span { color: var(--lilac); }

.hero-sub {
  color: var(--muted);
  max-width: 45ch;
  line-height: 1.45;
}

.hero-meta {
  border-left: 3px solid var(--orange);
  padding-left: 1.2rem;
}

.meta-row { margin-bottom: 0.8rem; }
.meta-row:last-child { margin-bottom: 0; }

.meta-label {
  font-family: "Anton", "Bebas Neue", sans-serif;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  color: var(--peach);
}

.meta-value { font-size: 1rem; color: var(--text); }

.section {
  margin-top: 1.4rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.95);
  padding: clamp(1rem, 2.4vw, 1.7rem);
}

.section h2 {
  margin: 0 0 0.6rem;
  font-family: "Anton", "Bebas Neue", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--peach);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
}

.section p { margin: 0; line-height: 1.62; color: var(--muted); }
.copy-stack p + p { margin-top: 1rem; }

.tour-grid {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.stop {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.95);
  padding: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.home-page .tour-grid .stop {
  border-color: rgba(200, 162, 255, 0.42);
}

.stop-month {
  font-family: "Anton", "Bebas Neue", sans-serif;
  letter-spacing: 0.13em;
  font-size: 0.9rem;
  color: var(--orange);
}

.stop-city {
  font-family: "Anton", "Bebas Neue", sans-serif;
  font-size: clamp(2.1rem, 4.4vw, 3.25rem);
  line-height: 0.95;
  color: #fff;
  letter-spacing: 0.01em;
}

.stop-note { color: var(--muted); font-size: 0.95rem; line-height: 1.45; }
.stop-date,
.stop-extra {
  color: var(--peach);
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.btn {
  margin-top: auto;
  display: inline-block;
  border: 1px solid var(--orange);
  color: var(--text);
  background: transparent;
  padding: 0.62rem 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.84rem;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.btn:hover { background: var(--orange); color: var(--black); transform: translateY(-2px); }
.btn.secondary { border-color: var(--lilac); }
.btn.secondary:hover { background: var(--lilac); color: var(--black); }

.page-title {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.95);
  padding: 1.2rem;
  margin-top: 0.8rem;
}

.page-title p { color: var(--muted); margin: 0; max-width: 70ch; }

.story-grid,
.faq-grid,
.gallery-grid,
.upload-grid {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.8rem;
}

.story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-grid,
.upload-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.story-card,
.faq-item,
.upload-card {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.95);
  padding: 0.9rem;
}

.story-card h3,
.faq-item h3,
.upload-card h3 {
  margin: 0 0 0.45rem;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--peach);
}

.story-card p,
.faq-item p,
.upload-card p { margin: 0; color: var(--muted); line-height: 1.52; }

.story-subheader { margin-top: 0.9rem; color: var(--muted); line-height: 1.58; }

.story-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
  align-items: center;
}

.story-hero-photo {
  margin: 0;
  border: 1px solid var(--line);
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.95);
}

.story-hero-photo img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.story-body p + p { margin-top: 1rem; }

.story-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}

.story-photos { margin-top: 0; }

.story-photo {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.95);
  padding: 0.65rem;
}

.story-photo img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.gallery-card {
  border: 1px solid var(--line);
  height: 280px;
  padding: 0.9rem;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
}

.gallery-card-link {
  display: block;
}

.gallery-card-link:hover .gallery-card,
.gallery-card-link:focus-visible .gallery-card {
  border-color: var(--lilac);
  transform: translateY(-2px);
}

.gallery-card-link:focus-visible {
  outline: none;
}

.gallery-label {
  font-family: "Anton", "Bebas Neue", sans-serif;
  letter-spacing: 0.08em;
  font-size: 1.15rem;
  position: relative;
  z-index: 1;
}

.gallery-meta {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.photo-card {
  padding: 0;
  height: 280px;
}

.photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.85) 100%);
}

.photo-card img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.photo-card .gallery-label {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.9rem;
}

.gallery-card-copy {
  position: relative;
  z-index: 1;
  width: 100%;
}

.gallery-page-grid {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
}

.gallery-page-photo {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.95);
  overflow: hidden;
}

.gallery-page-photo img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.gallery-page-photo figcaption {
  padding: 0.8rem 0.9rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.upload-form {
  margin-top: 0.7rem;
  border: 1px solid var(--line);
  padding: 2rem 1.75rem 1.8rem;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.upload-form label {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 0.8rem;
}

.gallery-target {
  max-width: 790px;
  margin: 0 auto;
  display: block;
}

.upload-form .btn { margin-top: 1.2rem; }
.upload-featured { grid-column: 1 / -1; text-align: center; }
.upload-featured .btn { margin-left: auto; margin-right: auto; }

.lock-card { max-width: 760px; margin: 1rem auto 0; }
.lock-fields { display: flex; gap: 0.6rem; margin-top: 0.8rem; }
.lock-fields input { flex: 1; }
.lock-error { color: var(--orange); font-size: 0.9rem; min-height: 1.2rem; margin-top: 0.4rem; }
.hidden { display: none; }

.rsvp-form {
  margin-top: 0.9rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.95);
  padding: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

label {
  display: block;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  color: var(--muted);
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #08050a;
  color: var(--text);
  padding: 0.62rem;
  font: inherit;
}

textarea { min-height: 120px; resize: vertical; }
.form-full { grid-column: 1 / -1; }

.form-actions {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}

.form-status {
  margin: 0.8rem 0 0;
  min-height: 1.3rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-status.error {
  color: var(--orange);
}

.form-status.success {
  color: var(--peach);
}

.forecast-grid {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.5rem;
}

.forecast-item {
  border: 1px solid var(--line);
  padding: 0.55rem;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.88rem;
}

.attire-inspo {
  margin-top: 0.9rem;
  border: 1px solid var(--line);
  padding: 0.55rem;
  background: rgba(0, 0, 0, 0.95);
}

.attire-inspo img {
  width: 100%;
  height: auto;
}

.section-label {
  font-family: "Anton", "Bebas Neue", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--peach);
  font-size: 1rem;
}

.section-subcopy {
  margin-top: 0.35rem !important;
  color: var(--muted) !important;
  font-size: 0.95rem;
  line-height: 1.45;
}

.schedule-day + .schedule-day { margin-top: 0.9rem; }
.schedule-day-label { margin-bottom: 0.2rem !important; }
.schedule-item { padding-left: 1rem; position: relative; }
.schedule-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78rem;
  width: 0.45rem;
  height: 1px;
  background: var(--line);
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 1.6rem;
  padding: 1rem;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 920px) {
  .hero { grid-template-columns: 2fr 1fr; gap: 1rem; }
  .story-hero,
  .story-layout,
  .story-grid,
  .story-photos,
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-wrap {
    flex-wrap: wrap;
  }

  .nav-toggle { display: inline-block; }

  .nav-wrap nav {
    width: 100%;
    margin-left: 0;
    position: static;
  }

  .nav-links {
    position: static;
    width: 100%;
    margin-top: 0.75rem;
    background: #050506;
    border: 1px solid var(--line);
    flex-direction: column;
    padding: 0.8rem 1rem 1rem;
    display: none;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
  }

  .nav-links.open { display: flex; }

  .sub-menu {
    position: static;
    display: block;
    margin-top: 0.4rem;
    border: 0;
    padding: 0.2rem 0 0 0.8rem;
    background: transparent;
  }

  .sub-menu a { font-size: 0.78rem; color: var(--muted); }

  .hero { grid-template-columns: 1fr; gap: 0.7rem; }

  .page-title h1 { font-size: clamp(1.8rem, 10vw, 2.4rem); }
  .hero h1 { font-size: clamp(3.6rem, 21vw, 5.4rem); }

  .hero-meta { padding-left: 0.7rem; }

  .home-page .hero-meta .elopement-row,
  .home-page .hero-meta .style-row { display: none; }

  .lock-fields { flex-direction: column; }
}
