/* The events screen uses the site's editorial palette to suggest a personal invitation. */
.events-section {
  isolation: isolate;
  background-image:
    radial-gradient(circle at 84% 28%, rgba(217, 93, 78, 0.14), transparent 28rem),
    linear-gradient(135deg, #1f1d1b 0%, #25211f 100%);
}

.events-glow {
  position: absolute;
  width: 32rem;
  height: 32rem;
  right: -10rem;
  bottom: -16rem;
  border: 1px solid rgba(217, 93, 78, 0.22);
  border-radius: 999px;
  box-shadow: 0 0 0 5rem rgba(217, 93, 78, 0.025), 0 0 0 10rem rgba(217, 93, 78, 0.018);
  pointer-events: none;
}

.events-linework {
  position: absolute;
  inset: 0 0 auto auto;
  width: min(52vw, 760px);
  height: 100%;
  color: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.events-linework path,
.events-linework circle {
  stroke: currentColor;
  stroke-width: 1;
}

.events-linework circle {
  fill: #d95d4e;
  stroke: none;
}

/* The compact path explains why the invitation is selective without adding another text block. */
.events-path {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0 1.5rem -1px;
  position: relative;
  z-index: 2;
}

.events-path > div {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3.6rem;
  padding: 0.8rem 1rem;
  color: rgba(255, 255, 255, 0.54);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 0;
}

.events-path > div:first-child { border-radius: 1.25rem 0 0; }
.events-path > div:last-child { border-radius: 0 1.25rem 0 0; }
.events-path > div + div { border-left: 0; }
.events-path .is-current { color: #fff; background: rgba(217, 93, 78, 0.2); }
.events-path span { color: #d95d4e; font-family: 'Playfair Display', serif; }
.events-path strong { font-size: 0.76rem; line-height: 1.2; }

.events-visual {
  position: relative;
  padding: 1.25rem 1rem 2.25rem;
}

.events-visual::before {
  content: "";
  position: absolute;
  inset: 4.8rem 0.1rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 2.7rem;
  transform: rotate(2.5deg);
}

.events-invitation {
  position: relative;
  z-index: 1;
  padding: clamp(1.35rem, 3vw, 2rem);
  color: #1f1d1b;
  background: #fffaf4;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 2rem;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.34);
}

.events-invitation-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0.25rem 1.25rem;
  border-bottom: 1px solid rgba(31, 29, 27, 0.1);
}

.events-overline {
  display: block;
  margin-bottom: 0.45rem;
  color: rgba(31, 29, 27, 0.45);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.events-invitation h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  line-height: 1.15;
}

.events-mark {
  width: 2.6rem;
  height: 2.6rem;
  flex: 0 0 auto;
  fill: none;
  stroke: #d95d4e;
  stroke-width: 1.3;
}

/* The photo replaces the former event-type controls and gives the invitation a human focal point. */
.events-photo-frame {
  position: relative;
  min-height: clamp(15rem, 28vw, 20rem);
  margin: 1rem 0;
  overflow: hidden;
  background: #312d2a;
  border-radius: 1.35rem;
}

.events-photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(31, 29, 27, 0.8) 100%);
  pointer-events: none;
}

.events-photo-frame img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center 48%;
}

.events-photo-frame figcaption {
  position: absolute;
  z-index: 1;
  right: 1.2rem;
  bottom: 1.1rem;
  left: 1.2rem;
  color: #fff;
}

.events-photo-frame figcaption strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-style: italic;
  line-height: 1.15;
}

.events-photo-frame figcaption span {
  display: block;
  margin-top: 0.3rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.events-invitation-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  color: rgba(31, 29, 27, 0.48);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.events-foot-dot { width: 0.28rem; height: 0.28rem; background: #d95d4e; border-radius: 999px; }
.events-private-note {
  position: absolute;
  z-index: 3;
  right: -0.3rem;
  bottom: 0;
  min-width: 9.5rem;
  padding: 0.9rem 1.1rem;
  color: #fff;
  background: #312d2a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1rem;
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.3);
  transform: rotate(-3deg);
}
.events-private-note strong { display: block; font-family: 'Playfair Display', serif; font-size: 1.05rem; font-style: italic; }
.events-private-note span { color: rgba(255, 255, 255, 0.48); font-size: 0.66rem; }

@media (max-width: 639px) {
  .events-linework { width: 100%; opacity: 0.55; }
  .events-visual { padding-inline: 0; }
  .events-path { margin-inline: 0.5rem; }
  .events-path > div { justify-content: center; min-width: 0; padding-inline: 0.45rem; }
  .events-path strong { font-size: 0.66rem; }
  .events-invitation { padding: 1.1rem; border-radius: 1.6rem; }
  .events-photo-frame { min-height: 17rem; }
  .events-private-note { position: relative; right: auto; bottom: auto; width: max-content; margin: -0.45rem 0.75rem 0 auto; }
}
