/* Local extras on top of the Stitch Tailwind theme */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.share-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.625rem 1rem;
  border-radius: 9999px;
  background: #faf2ee;
  color: #1e1b19;
  font-family: "DM Sans", sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid rgba(90, 75, 60, 0.08);
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
}
.share-action-btn:hover {
  background: #eee7e3;
}
.share-action-btn:active {
  transform: scale(0.98);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  z-index: 2000;
  padding: 0.5rem 1rem;
  background: #c96442;
  color: #fff;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  left: 0.75rem;
}

.action-title.is-done {
  text-decoration: line-through;
  color: #8c857c;
}

.popup-overlay.hidden {
  display: none;
}

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