:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, sans-serif;
  color: #20183b;
  background: #f7f5fb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-content: center;
  background:
    radial-gradient(ellipse at 88% 12%, #e9def9, transparent 55%),
    radial-gradient(ellipse at 4% 85%, #fce9e2, transparent 47%),
    #f7f5fb;
}

.page {
  width: min(100% - clamp(28px, 7vw, 112px), 1080px);
  margin-inline: auto;
  padding-block: clamp(20px, 5vh, 56px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 4px clamp(18px, 3vw, 32px);
  font-size: 1.25rem;
  font-weight: 740;
  letter-spacing: -.045em;
}

.brand img { display: block; }

.event {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .93fr);
  overflow: hidden;
  overflow: clip;
  background: #fffeff;
  border: 1px solid #e7dff0;
  border-radius: 32px;
  box-shadow: 0 25px 70px -38px #2a194871, 0 4px 14px -8px #36265c21;
}

.event-content {
  padding: clamp(32px, 5vw, 64px);
}

h1 {
  max-width: 12ch;
  margin: 0 0 clamp(24px, 3.5vw, 38px);
  font-size: clamp(2.65rem, 5.5vw, 4.625rem);
  font-weight: 690;
  line-height: .99;
  letter-spacing: -.065em;
  text-wrap: balance;
}

.event-details {
  display: grid;
  gap: 17px;
  margin: 0 0 28px;
}

.event-detail {
  position: relative;
  min-height: 44px;
  padding-inline-start: 56px;
}

.event-detail dt {
  margin: 0 0 2px;
  color: #695f78;
  font-size: .8125rem;
  font-weight: 600;
}

.event-detail dd {
  margin: 0;
  font-size: .9375rem;
  font-weight: 650;
  line-height: 1.35;
}

.event-detail dd span {
  display: block;
  margin-top: 3px;
  color: #62586f;
  font-size: .875rem;
  font-weight: 450;
}

.detail-icon {
  position: absolute;
  inset: 2px auto auto 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #f1edf8;
  color: #402b77;
}

.detail-icon::before, .detail-icon::after {
  content: "";
  display: block;
  grid-area: 1 / 1;
}

.calendar::before {
  width: 14px;
  height: 13px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}

.calendar::after {
  width: 14px;
  border-top: 1.5px solid currentColor;
  transform: translateY(-3px);
}

.pin::before {
  width: 12px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-radius: 50% 50% 50% 0;
  transform: translateY(-1px) rotate(-45deg);
}

.pin::after {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  transform: translateY(-1px);
}

.share {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 12px 17px;
  color: white;
  background: linear-gradient(110deg, #382376, #231654);
  border: 1px solid #39276e;
  border-radius: 15px;
  box-shadow: 0 10px 22px -12px #2d155b;
  font-size: .9375rem;
  font-weight: 650;
  text-decoration: none;
  transition: box-shadow .18s, filter .18s;
}

.share:hover {
  filter: brightness(1.15);
  box-shadow: 0 13px 22px -12px #2d155b;
}

.share span {
  flex-shrink: 0;
  font-size: 1.3125rem;
  line-height: 1;
}

a:focus-visible {
  outline: 3px solid #7a56bc;
  outline-offset: 4px;
}

.share-note {
  margin: 14px 0 0;
  color: #695f78;
  font-size: .8125rem;
  line-height: 1.5;
}

.event-photo {
  position: relative;
  isolation: isolate;
  margin: 0;
  background: #191c36;
}

.event-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

.event-photo::after {
  position: absolute;
  inset: 60% 0 0;
  z-index: 0;
  background: linear-gradient(transparent, #100c23b8);
  content: "";
  pointer-events: none;
}

.event-photo figcaption {
  position: absolute;
  inset: auto 18px 16px auto;
  z-index: 1;
  font-size: .6875rem;
}

.event-photo a {
  color: white;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

@media (max-width: 720px) {
  body { align-content: start; }

  .event {
    grid-template-columns: minmax(0, 1fr);
    border-radius: 24px;
  }

  .event-content { padding: clamp(20px, 6vw, 34px); }

  h1 { font-size: clamp(2.45rem, 8.5vw, 4rem); }

  .event-photo {
    grid-row: 1;
    height: clamp(168px, 50vw, 300px);
  }

  .event-photo img { object-position: 50% 41%; }
}

@media (prefers-reduced-motion: reduce) {
  .share { transition: none; }
}
