@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  --warm-paper: #f7f3ed;
  --warm-cream: #ebe5dc;
  --warm-light: #ddd5c9;
  --warm-dark: #3d352d;
  --warm-text: #5a5148;
  --warm-muted: #8a8075;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Space Grotesk', sans-serif;
  background: var(--warm-paper);
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(180, 160, 140, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(160, 140, 120, 0.1) 0%, transparent 50%);
  min-height: 100vh;
}

.font-serif {
  font-family: 'Crimson Pro', serif;
}

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

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

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

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

.text-warm-dark {
  color: var(--warm-dark);
}

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

.text-warm-muted {
  color: var(--warm-muted);
}

.text-warm-cream {
  color: var(--warm-cream);
}

.border-warm-light {
  border-color: var(--warm-light);
}

/* Hide scrollbar but keep functionality */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Smooth transitions */
button, div {
  transition: all 0.3s ease;
}

/* Canvas styling */
canvas {
  display: block;
  touch-action: none;
}

/* Animation for insight text */
@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.insight-text {
  animation: fadeSlideIn 0.5s ease-out;
}

/* Glow effect for selected items */
.glow-selected {
  box-shadow: 0 0 20px rgba(61, 53, 45, 0.2);
}

/* Mobile optimizations */
@media (max-width: 640px) {
  .font-serif {
    font-size: 0.95em;
  }
}

/* Subtle ambient animation */
@keyframes breathe {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.02);
    opacity: 0.95;
  }
}

.ambient-breathe {
  animation: breathe 4s ease-in-out infinite;
}