html {
  scroll-behavior: smooth;
}

img[src="pic/background.jpg"] {
  height: 7.5rem;
  object-fit: cover;
  object-position: center 38%;
}

[id] {
  scroll-margin-top: 5.75rem;
}

body {
  font-family: Nunito, "Segoe UI", sans-serif;
  color: #340059;
}

h1, h2, h3, .font-display {
  font-family: Fraunces, Georgia, serif;
  font-optical-sizing: auto;
}

.nav-link {
  position: relative;
  color: #340059;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #73439f;
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.45rem;
  height: 2px;
  border-radius: 999px;
  background: #73439f;
}

.chip {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  background: #fff;
  color: #340059;
  font-weight: 800;
  font-size: 0.875rem;
  border: 1px solid rgba(115, 67, 159, 0.18);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.chip:hover,
.chip:focus-visible {
  background: #73439f;
  color: #fff;
}

.mobile-link {
  display: block;
  border-radius: 0.9rem;
  padding: 0.75rem 0.85rem;
}

.mobile-link.is-active,
.mobile-link:hover {
  background: #f4eaf8;
  color: #73439f;
}

.field-error {
  color: #9b2c4a;
  font-size: 0.8rem;
  font-weight: 700;
  min-height: 1.1rem;
}

input.is-invalid,
textarea.is-invalid,
select.is-invalid {
  border-color: #c45d78;
  box-shadow: 0 0 0 3px rgba(196, 93, 120, 0.15);
}

#lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(52, 0, 89, 0.82);
}

#lightbox.is-open {
  display: flex;
}

#lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 82vh;
  width: auto;
  height: auto;
  border-radius: 1.25rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  background: #fff;
}

.lb-btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: #fff;
  color: #340059;
  font-size: 1.4rem;
  line-height: 1;
}

.lb-btn:hover {
  background: #f4eaf8;
}

#lightbox [data-prev],
#lightbox [data-next] {
  top: 50%;
  transform: translateY(-50%);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
