/* Mimi & Family - small additions to Tailwind */

html {
  scroll-behavior: smooth;
}

:focus-visible {
  outline: 3px solid #A63F64;
  outline-offset: 3px;
  border-radius: 6px;
}

.on-dark :focus-visible,
.on-dark:focus-visible {
  outline-color: #F2B84B;
}

dialog.legal-modal {
  width: min(42rem, calc(100% - 2rem));
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  padding: 0;
  border: 0;
  border-radius: 1.25rem;
  background: #FFF8F3;
  color: #2E2A3B;
  box-shadow: 0 25px 60px -15px rgba(46, 42, 59, 0.45);
}

dialog.legal-modal::backdrop {
  background: rgba(46, 42, 59, 0.6);
}

.legal-body h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.125rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: #2E2A3B;
}

.legal-body p,
.legal-body li {
  line-height: 1.65;
  color: #4A4556;
}

.legal-body p + p {
  margin-top: 0.75rem;
}

.legal-body ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}

.legal-body li + li {
  margin-top: 0.35rem;
}

.legal-body a {
  color: #A63F64;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero-blob {
  background:
    radial-gradient(60% 60% at 20% 20%, rgba(242, 184, 75, 0.35) 0%, rgba(242, 184, 75, 0) 70%),
    radial-gradient(55% 55% at 85% 30%, rgba(194, 84, 122, 0.28) 0%, rgba(194, 84, 122, 0) 70%),
    radial-gradient(50% 50% at 60% 95%, rgba(194, 84, 122, 0.16) 0%, rgba(194, 84, 122, 0) 70%);
}

.float-slow {
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
