:root {
  --purple: #812d9e;
  --light-purple: #c69af7;
  --bg: #fff0fb;
  --accent: #ffdf6c;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Fredoka', sans-serif;
  background: var(--bg);
  color: #333;
  text-align: center;
  padding: 1rem;
  overflow-x: hidden;
}

header {
  padding: 2rem 1rem;
  background: linear-gradient(135deg, var(--purple), var(--light-purple));
  color: white;
}

.title {
  font-family: 'Chewy', cursive;
  font-size: 2.8rem;
  animation: bounce 1.2s ease-in-out;
}

.tagline {
  font-size: 1.2rem;
  margin-top: 0.5rem;
}

.hero {
  margin: 2rem 0;
}

.grape-spin {
  width: 150px;
  animation: spin 8s infinite linear;
}

.nutrition {
  background: var(--accent);
  padding: 1.5rem;
  border-radius: 1rem;
  margin: 1.5rem 0;
}

.facts {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.card {
  background: white;
  border-radius: 0.75rem;
  padding: 1rem;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: scale(1.05) rotate(-2deg);
}

.story {
  padding: 2rem 1rem;
  background: white;
  font-size: 1.1rem;
  line-height: 1.6;
}

footer {
  margin-top: 2rem;
  padding: 1rem;
  background: var(--purple);
  color: white;
  font-weight: bold;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes spin {
  0% { transform: rotate(0); }
  100% { transform: rotate(360deg); }
}

/* Mobile-first adjustments */
@media(min-width: 600px) {
  .facts {
    flex-direction: row;
    justify-content: center;
  }
}
