:root {
  --rose-500: #f43f5e;
  --pink-500: #ec4899;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Crimson Pro', serif;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-display {
  font-family: 'Space Grotesk', sans-serif;
}

.font-mono {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
}

/* Animations */
@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-8px); }
  20%, 40%, 60%, 80% { transform: translateX(8px); }
}

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

.animate-slide-up {
  animation: slide-up 0.3s ease-out;
}

.animate-shake {
  animation: shake 0.5s ease-out;
}

.animate-bounce {
  animation: bounce 0.4s ease-in-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Prose styles */
.prose h1, .prose h2, .prose h3 {
  font-family: 'Space Grotesk', sans-serif;
}

.prose p {
  margin-bottom: 1.5rem;
}

/* Selection */
::selection {
  background: rgba(244, 63, 94, 0.2);
}

/* Focus styles */
input:focus, textarea:focus, button:focus {
  outline: none;
}

/* Textarea resize handle */
textarea {
  resize: vertical;
  min-height: 200px;
}

/* Smooth transitions for all interactive elements */
a, button {
  transition: all 0.2s ease;
}

/* Mobile optimizations */
@media (max-width: 640px) {
  .prose {
    font-size: 16px;
  }
  
  h1 {
    font-size: 1.75rem !important;
  }
  
  h2 {
    font-size: 1.5rem !important;
  }
}