:root {
  --warmwhite: #FEFDFB;
  --charcoal: #2D3748;
  --teal: #14B8A6;
  --sage: #A7C4BC;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Crimson Text', serif;
}

.dark {
  color: #E2E8F0;
}

.bg-warmwhite {
  background-color: var(--warmwhite);
}

.text-charcoal {
  color: var(--charcoal);
}

.note-card {
  transition: all 0.3s ease;
  max-width: 720px;
}

.note-card:hover {
  transform: translateY(-2px);
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: #E0F2F1;
  color: #00695C;
  border-radius: 9999px;
  font-size: 0.875rem;
  transition: all 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
}

.dark .tag {
  background-color: #1E3A3A;
  color: #5EEAD4;
}

.tag:hover {
  background-color: #B2DFDB;
  transform: scale(1.05);
}

.dark .tag:hover {
  background-color: #2D5555;
}

.tag-selected {
  background-color: var(--teal) !important;
  color: white !important;
  border-color: var(--teal);
}

.text-gradient {
  background: linear-gradient(to bottom, transparent, var(--charcoal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dark .text-gradient {
  background: linear-gradient(to bottom, transparent, #E2E8F0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.prose {
  max-width: 65ch;
  line-height: 1.75;
}

.prose strong {
  font-weight: 600;
}

.prose em {
  font-style: italic;
}

.prose code {
  background-color: #F3F4F6;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: 'Courier New', monospace;
}

.dark .prose code {
  background-color: #374151;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  .note-card {
    padding: 1rem;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus styles */
input:focus, textarea:focus, button:focus {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* Animation for easter egg */
@keyframes bounce {
  0%, 100% {
    transform: translate(-50%, -50%) translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translate(-50%, -50%) translateY(0);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

.animate-bounce {
  animation: bounce 1s infinite;
}