* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #f5f5f0;
}

.font-serif {
  font-family: 'Inter', sans-serif;
}

#canvas-container {
  background-image:
    radial-gradient(circle, #d4d4d4 1px, transparent 1px);
  background-size: 24px 24px;
}

#canvas {
  will-change: transform;
}

.project-card {
  position: absolute;
  width: 200px;
  height: 200px;
  background: white;
  border-radius: 1rem;
  border: 4px solid white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  cursor: grab;
  transition: box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  user-select: none;
}

.project-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.project-card:active {
  cursor: grabbing;
}

.project-card.dragging {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

.project-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  margin-bottom: 0.25rem;
}

.project-card p {
  font-size: 0.75rem;
  color: #a3a3a3;
}

.inline-title-edit {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  padding: 0;
  margin-bottom: 0.25rem;
}

#modal {
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.2s ease;
}

#modal.active {
  display: flex;
}

#modal.visible {
  opacity: 1;
}

#modal > div {
  transform: scale(0.95) translateY(10px);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

#modal.visible > div {
  transform: scale(1) translateY(0);
  opacity: 1;
}
