:root {
  --bg1: #fff3f6;
  --bg2: #ffeaf0;
  --ink: #2b1c24;
  --muted: rgba(43, 28, 36, 0.7);
  --card: rgba(255, 255, 255, 0.72);
  --card2: rgba(255, 255, 255, 0.56);
  --stroke: rgba(120, 70, 92, 0.22);
  --shadow: 0 22px 65px rgba(43, 28, 36, 0.12);
  --shadow2: 0 10px 30px rgba(43, 28, 36, 0.08);
  --accent: #d23a6f;
  --accent2: #ff6b9d;
  --radius: 22px;
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    ui-serif,
    Georgia,
    Cambria,
    "Times New Roman",
    Times,
    serif;
  background: linear-gradient(140deg, var(--bg1), var(--bg2));
}

.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 107, 157, 0.18), transparent 40%),
    radial-gradient(circle at 80% 15%, rgba(210, 58, 111, 0.14), transparent 42%),
    radial-gradient(circle at 20% 85%, rgba(210, 58, 111, 0.12), transparent 44%),
    radial-gradient(circle at 82% 78%, rgba(255, 107, 157, 0.16), transparent 46%);
  filter: blur(0.1px);
}

.bg::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 10% 30%, rgba(255, 255, 255, 0.55), transparent 35%),
    radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.5), transparent 38%),
    radial-gradient(circle at 30% 90%, rgba(255, 255, 255, 0.45), transparent 40%),
    radial-gradient(circle at 70% 85%, rgba(255, 255, 255, 0.48), transparent 44%);
  opacity: 0.42;
  transform: translate3d(0, 0, 0);
  animation: drift 18s ease-in-out infinite alternate;
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='160'%20height='160'%20viewBox='0%200%20160%20160'%3E%3Cg%20fill='none'%20stroke='%23d23a6f'%20stroke-opacity='0.22'%3E%3Cpath%20d='M40%2C56%20c0%2C-10%208%2C-18%2018%2C-18%208%2C0%2014%2C5%2018%2C11%204%2C-6%2010%2C-11%2018%2C-11%2010%2C0%2018%2C8%2018%2C18%200%2C18-36%2C40-36%2C40%20S40%2C74%2040%2C56z'/%3E%3Cpath%20d='M120%2C118%20c0%2C-8%206%2C-14%2014%2C-14%206%2C0%2010%2C4%2014%2C9%204%2C-5%208%2C-9%2014%2C-9%208%2C0%2014%2C6%2014%2C14%200%2C14-28%2C30-28%2C30%20S120%2C132%20120%2C118z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 220px 220px;
  background-repeat: repeat;
  mix-blend-mode: multiply;
  filter: blur(0.2px);
  animation: floaty 26s linear infinite;
}

@keyframes drift {
  from {
    transform: translate3d(-1.2%, -0.8%, 0) scale(1);
  }
  to {
    transform: translate3d(1.2%, 0.8%, 0) scale(1.02);
  }
}

@keyframes floaty {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 220px 440px;
  }
}

.wrap {
  width: min(980px, calc(100% - 32px));
  margin: 24px auto 40px;
  position: relative;
  z-index: 1;
}

.card {
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card), var(--card2));
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero {
  padding: 28px 22px;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(
      900px 260px at 20% 0%,
      rgba(255, 107, 157, 0.22),
      transparent 60%
    ),
    radial-gradient(
      680px 220px at 100% 30%,
      rgba(210, 58, 111, 0.18),
      transparent 64%
    );
  pointer-events: none;
  opacity: 0.9;
}

.hero > * {
  position: relative;
}

.hero__topline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.pill {
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    "Noto Sans",
    sans-serif;
  font-size: 13px;
  letter-spacing: 0.2px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(210, 58, 111, 0.25);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow2);
}

.hero__title {
  margin: 14px 0 0;
  text-align: center;
  font-size: clamp(46px, 8vw, 78px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-shadow: 0 14px 34px rgba(210, 58, 111, 0.12);
}

.hero__subtitle {
  margin: 6px 0 0;
  text-align: center;
  font-size: 18px;
  color: var(--muted);
}

.hero__subtitle::after {
  content: "  ♡";
  color: rgba(210, 58, 111, 0.7);
}

.hero__msg {
  margin: 18px auto 0;
  width: min(66ch, 100%);
  text-align: center;
  font-size: 18px;
  line-height: 1.6;
}

.hero__hint {
  margin: 10px auto 0;
  width: min(70ch, 100%);
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    "Noto Sans",
    sans-serif;
}

.hero__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.divider {
  margin: 14px auto;
  width: min(820px, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(210, 58, 111, 0.6);
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(210, 58, 111, 0.22),
    rgba(255, 107, 157, 0.22),
    transparent
  );
}

.divider span {
  font-size: 18px;
  filter: drop-shadow(0 8px 18px rgba(210, 58, 111, 0.18));
}

.toggles {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 14px;
}

.btn {
  appearance: none;
  border: 1px solid rgba(210, 58, 111, 0.22);
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  box-shadow: var(--shadow2);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    "Noto Sans",
    sans-serif;
  font-size: 14px;
  transition:
    transform 140ms ease,
    background 140ms ease,
    border-color 140ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(210, 58, 111, 0.32);
}

.btn:active {
  transform: translateY(0px);
}

.btn--primary {
  background: linear-gradient(180deg, rgba(255, 107, 157, 0.9), rgba(210, 58, 111, 0.92));
  border-color: rgba(210, 58, 111, 0.35);
  color: #fff;
}

.btn--primary:hover {
  filter: saturate(1.05) brightness(1.02);
}

.section {
  margin-top: 16px;
  padding: 18px 18px;
}

.card.section {
  position: relative;
  overflow: hidden;
}

.card.section::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background:
    radial-gradient(300px 220px at 10% 10%, rgba(255, 107, 157, 0.16), transparent 60%),
    radial-gradient(340px 260px at 92% 0%, rgba(210, 58, 111, 0.12), transparent 60%),
    radial-gradient(360px 240px at 15% 100%, rgba(210, 58, 111, 0.1), transparent 60%),
    radial-gradient(360px 240px at 100% 95%, rgba(255, 107, 157, 0.12), transparent 65%);
  opacity: 0.9;
}

.card.section > * {
  position: relative;
}

.spotify {
  width: 100%;
  border: 0;
  border-radius: 18px;
  box-shadow: var(--shadow2);
  background: rgba(255, 255, 255, 0.6);
  margin-top: 12px;
}

.vows {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.vow {
  position: relative;
  padding: 12px 14px 12px 44px;
  border: 1px solid rgba(120, 70, 92, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: var(--shadow2);
  line-height: 1.6;
}

.vow::before {
  content: "♡";
  position: absolute;
  left: 14px;
  top: 12px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 107, 157, 0.95), rgba(210, 58, 111, 0.95));
  color: #fff;
  box-shadow: 0 12px 26px rgba(210, 58, 111, 0.16);
}

.places {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 760px) {
  .places {
    grid-template-columns: 1fr;
  }
}

.place {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(120, 70, 92, 0.16);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: var(--shadow2);
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease;
}

.place:hover {
  transform: translateY(-1px);
  border-color: rgba(210, 58, 111, 0.26);
  background: rgba(255, 255, 255, 0.6);
}

.place:focus-visible {
  outline: 3px solid rgba(255, 107, 157, 0.35);
  outline-offset: 3px;
}

.place__name {
  font-size: 18px;
  letter-spacing: 0.2px;
}

.place__tag {
  margin-top: 6px;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    "Noto Sans",
    sans-serif;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.place__cta {
  margin-top: 10px;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    "Noto Sans",
    sans-serif;
  font-size: 13px;
  color: rgba(210, 58, 111, 0.92);
}

.section__title {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.2px;
}

.section__lead {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.gallery {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

@media (max-width: 760px) {
  .gallery {
    gap: 10px;
  }
}

.gallery--grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

@media (max-width: 760px) {
  .gallery--grid {
    grid-template-columns: 1fr;
  }
}

.media {
  margin: 0;
  border: 1px solid rgba(120, 70, 92, 0.18);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: var(--shadow2);
  width: 100%;
  transition: transform 160ms ease, border-color 160ms ease;
}

.media:nth-child(even) {
  transform: translateY(0px);
}

.media:hover {
  transform: translateY(-1px);
  border-color: rgba(210, 58, 111, 0.26);
}

.media img,
.media video {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.6);
}

.media__placeholder {
  height: 310px;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 18px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 107, 157, 0.16), transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(210, 58, 111, 0.12), transparent 58%),
    rgba(255, 255, 255, 0.62);
}

.media__placeholderTitle {
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    "Noto Sans",
    sans-serif;
  font-weight: 650;
  letter-spacing: 0.2px;
  margin-bottom: 6px;
}

.media__placeholderBody {
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    "Noto Sans",
    sans-serif;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.media figcaption {
  padding: 10px 12px;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    "Noto Sans",
    sans-serif;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 107, 157, 0.12), transparent 55%),
    rgba(255, 255, 255, 0.58);
  border-top: 1px solid rgba(120, 70, 92, 0.12);
}

.cap__date {
  font-weight: 650;
  color: rgba(43, 28, 36, 0.76);
}

.cap__note {
  color: var(--muted);
  line-height: 1.55;
}

.media--missing {
  border-color: rgba(210, 58, 111, 0.35);
}

@media (max-width: 760px) {
  .media img,
  .media video {
    height: 280px;
  }
}

.howto {
  margin-top: 12px;
  border: 1px dashed rgba(210, 58, 111, 0.25);
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.42);
}

.howto summary {
  cursor: pointer;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    "Noto Sans",
    sans-serif;
}

.howto ol {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

code {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    "Courier New",
    monospace;
  font-size: 0.95em;
}

.notes {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 860px) {
  .notes {
    grid-template-columns: 1fr;
  }
}

.note {
  border: 1px solid rgba(120, 70, 92, 0.16);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: var(--shadow2);
}

.note__title {
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    "Noto Sans",
    sans-serif;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.note__body {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.55;
}

.footer {
  margin-top: 16px;
  padding: 14px 4px;
  text-align: center;
  color: var(--muted);
}

.footer__line {
  font-size: 20px;
  margin-bottom: 6px;
}

.footer__small {
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    "Noto Sans",
    sans-serif;
  font-size: 12px;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
  padding: 18px;
}

.modal[data-open="1"] {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(43, 28, 36, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal__panel {
  position: relative;
  width: min(560px, 100%);
  padding: 18px;
  overflow: hidden;
}

.modal__title {
  margin: 0;
  text-align: center;
  font-size: 30px;
}

.modal__text {
  margin: 10px auto 0;
  width: min(52ch, 100%);
  text-align: center;
  line-height: 1.65;
  color: var(--muted);
  font-size: 17px;
}

.modal__actions {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tops {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tops__label {
  margin-top: 12px;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    "Noto Sans",
    sans-serif;
  font-size: 12px;
  color: rgba(43, 28, 36, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

@media (max-width: 760px) {
  .tops {
    grid-template-columns: 1fr;
  }
}

.events {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
}

.events__item {
  border: 1px solid rgba(120, 70, 92, 0.16);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: var(--shadow2);
}

.events__date {
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    "Noto Sans",
    sans-serif;
  font-size: 12px;
  color: rgba(43, 28, 36, 0.62);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.events__desc {
  margin-top: 8px;
  color: rgba(43, 28, 36, 0.78);
  line-height: 1.6;
  font-size: 16px;
}

.events__item--special {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 18px 14px;
  border-color: rgba(210, 58, 111, 0.28);
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 107, 157, 0.24), transparent 55%),
    radial-gradient(circle at 90% 80%, rgba(210, 58, 111, 0.18), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.5));
  box-shadow:
    0 22px 65px rgba(210, 58, 111, 0.14),
    0 10px 30px rgba(43, 28, 36, 0.06);
}

.events__text {
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    "Noto Sans",
    sans-serif;
  font-weight: 800;
  letter-spacing: 0.3px;
  font-size: clamp(18px, 3.6vw, 26px);
  text-align: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 107, 157, 0.95), rgba(210, 58, 111, 0.95));
  color: #fff;
  box-shadow: 0 16px 40px rgba(210, 58, 111, 0.18);
  transform: translateZ(0);
  text-shadow: 0 10px 26px rgba(43, 28, 36, 0.22);
  animation: lovePulse 2.8s ease-in-out infinite;
}

.events__text::before,
.events__text::after {
  content: "♡";
  display: inline-block;
  margin: 0 10px;
  opacity: 0.9;
  transform: translateY(-1px);
}

.sparkle {
  position: absolute;
  width: 220px;
  height: 220px;
  left: -60px;
  top: -70px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), transparent 45%),
    radial-gradient(circle at 65% 55%, rgba(255, 255, 255, 0.7), transparent 55%),
    radial-gradient(circle at 55% 20%, rgba(255, 107, 157, 0.55), transparent 55%);
  opacity: 0.55;
  filter: blur(0.2px);
  animation: sparkle 6.5s ease-in-out infinite alternate;
}

.sparkle--r {
  left: auto;
  right: -70px;
  top: auto;
  bottom: -80px;
  animation-duration: 7.2s;
}

@keyframes sparkle {
  from {
    transform: rotate(-8deg) scale(1);
  }
  to {
    transform: rotate(10deg) scale(1.06);
  }
}

@keyframes lovePulse {
  0%,
  100% {
    transform: translateZ(0) scale(1);
    filter: brightness(1);
  }
  50% {
    transform: translateZ(0) scale(1.03);
    filter: brightness(1.04);
  }
}

.top {
  border: 1px solid rgba(120, 70, 92, 0.16);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: var(--shadow2);
}

.top--link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease;
}

.top--link:hover {
  transform: translateY(-1px);
  border-color: rgba(210, 58, 111, 0.26);
  background: rgba(255, 255, 255, 0.6);
}

.top--link:focus-visible {
  outline: 3px solid rgba(255, 107, 157, 0.35);
  outline-offset: 3px;
}

.top__kicker {
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    "Noto Sans",
    sans-serif;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.top__title {
  margin-top: 8px;
  font-size: 22px;
  letter-spacing: 0.2px;
}

.top__meta {
  margin-top: 6px;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    "Noto Sans",
    sans-serif;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.top__cta {
  margin-top: 10px;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    "Noto Sans",
    sans-serif;
  font-size: 13px;
  color: rgba(210, 58, 111, 0.92);
}
