/* Default light mode styles */
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #eef6ea;
  color: #1a1a1a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  padding: 2rem 1.5rem;
  box-sizing: border-box;
  width: 100%;
  max-width: 480px;
}

h1 {
  margin: 0;
  font-size: clamp(1.75rem, 6vw, 2.75rem);
  color: #3f6b3a;
  transform: rotate(-2deg);
}

img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 1.25rem;
  border: 4px solid #3f6b3a;
  box-shadow: 0 10px 25px rgba(63, 107, 58, 0.25);
  animation: float 3.5s ease-in-out infinite;
}

p {
  margin: 0;
  font-size: 1.1rem;
  color: #5a5a5a;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

/* Dark mode styles */
@media (prefers-color-scheme: dark) {
  body {
    background: #16241a;
    color: #ffffff;
  }

  h1 {
    color: #9fd48a;
  }

  img {
    border-color: #9fd48a;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  }

  p {
    color: #cfcfcf;
  }
}

@media (max-width: 400px) {
  main {
    padding: 1.5rem 1rem;
  }
}
