/* Mimi & Berry: small additions to Tailwind */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

section[id], main[id] { scroll-margin-top: 5.5rem; }

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

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

dialog.legal {
  width: min(44rem, calc(100% - 2rem));
  max-height: calc(100vh - 3rem);
  padding: 0;
  border: 0;
  border-radius: 1.25rem;
  color: #2E1A24;
  background: #FBF6F4;
  box-shadow: 0 25px 60px -15px rgba(46, 26, 36, .45);
}

dialog.legal::backdrop {
  background: rgba(46, 26, 36, .6);
}

.legal-body h3 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: 1.125rem;
  margin-top: 1.5rem;
  margin-bottom: .4rem;
  color: #7B2D50;
}

.legal-body p, .legal-body li { line-height: 1.65; }
.legal-body ul { list-style: disc; padding-left: 1.25rem; margin-top: .35rem; }
.legal-body li + li { margin-top: .25rem; }
.legal-body a { color: #7B2D50; text-decoration: underline; text-underline-offset: 2px; }

.blob-float { animation: blob-float 9s ease-in-out infinite; transform-origin: center; }

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

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