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

html,
body {
  height: 100%;
}

body {
  font-family: "Prata", serif;
  background: #f4e9d4; /* Warm sepia wash */
  color: #2c1a0e;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* -------- Header -------- */
header {
  text-align: center;
  padding: 40px 20px 20px;
}

header h1 {
  font-family: "Alfa Slab One", cursive;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: 2px;
  color: #e03d2b; /* Punchy technicolor red */
  -webkit-text-stroke: 2px #000;
  text-shadow: 3px 3px 0 #000;
}

/* -------- Potion Banner -------- */
.banner {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 40px 20px;
  flex-wrap: wrap;
}

.potion-card {
  position: relative;
  text-align: center;
  max-width: 240px;
  padding: 1.2rem 1.2rem 2rem;
}

/* Hand-inked outline around the card */
.potion-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 4px solid #000;
  border-radius: 14px;
  pointer-events: none;
  /* Imperfect wobble on hover for extra rubber-hose charm */
  transition: transform 0.2s ease;
}

.potion-card:hover::before {
  transform: rotate(1.5deg) translateY(-2px);
}

/* Potion image */
.potion-card img {
  width: 180px;
  aspect-ratio: 1 / 1;
  background: var(--accent);
  border: 5px solid #000;
  border-radius: 50%;
  padding: 10px;
  animation: wobble 3s ease-in-out infinite;
}

/* Potion heading */
.potion-card h2 {
  font-family: "Alfa Slab One", cursive;
  font-size: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 0.35rem;
  -webkit-text-stroke: 1px #000;
  color: #fff;
  text-shadow: 2px 2px 0 #000;
}

/* Potion description */
.potion-card p {
  font-size: 0.9rem;
  line-height: 1.25rem;
  margin-bottom: 1rem;
  color: #2c1a0e;
}

/* Call-to-action button */
button {
  font-family: "Alfa Slab One", cursive;
  font-size: 1rem;
  background: var(--accent);
  color: #fff;
  border: 3px solid #000;
  padding: 8px 18px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 0 #000;
}

/* Accent colors for each potion */
.potion-card.green {
  --accent: #3e7d54;
}

.potion-card.red {
  --accent: #be2b2b;
}

.potion-card.blue {
  --accent: #1e6fad;
}

/* -------- Footer -------- */
footer {
  text-align: center;
  padding: 20px 10px 40px;
  margin-top: auto;
  font-size: 0.85rem;
  color: #2c1a0e;
}

/* -------- Wobble Animation -------- */
@keyframes wobble {
  0% {
    transform: rotate(-2deg) translateY(-2px);
  }
  50% {
    transform: rotate(2deg) translateY(2px);
  }
  100% {
    transform: rotate(-2deg) translateY(-2px);
  }
}
