/* =========================
   CUPHEAD-INSPIRED STYLE
   ========================= */

/* 1930s theatre-marquee headline font */
@import url('https://fonts.googleapis.com/css2?family=Stardos+Stencil:wght@400;700&display=swap');

/* Comic body font with hand-inked feel */
@import url('https://fonts.googleapis.com/css2?family=Zilla+Slab+Highlight&display=swap');

:root {
  /* Candy palette punched through sepia */
  --candy-red: #e63946;
  --sky-blue: #457b9d;
  --sickly-green: #81b29a;
  --sepia-ink: rgba(79,59,26,0.8);
  --off-paper: #f5e4c4;
}

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

html, body {
  height: 100%;
}

body {
  font-family: 'Zilla Slab Highlight', serif;
  background: var(--off-paper);
  /* subtle film grain */
  position: relative;
  color: var(--sepia-ink);
  line-height: 1.4;
}

/* Grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Crect width='120' height='120' fill='%23ffffff'/%3E%3Ccircle cx='3' cy='3' r='1' fill='%23000000' fill-opacity='0.05'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  opacity: .4;
}

.site-header {
  text-align: center;
  padding: 2rem 1rem 1.2rem;
}

.title {
  font-family: 'Stardos Stencil', cursive;
  font-size: clamp(2.8rem, 6vw + 1rem, 5rem);
  letter-spacing: .05em;
  color: var(--candy-red);
  text-shadow: -3px 3px 0 #000, 3px -3px 0 #000, -3px -3px 0 #000, 3px 3px 0 #000;
  /* wobbly ink outline */
  transform: rotate(-1deg);
}

.potion-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  padding: 1.5rem 1rem 3rem;
}

.potion-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.6), rgba(255,255,255,0.3));
  padding: 1rem 1.5rem;
  border: 4px solid #000;
  border-radius: 8px;
  max-width: 220px;
  flex: 1 1 180px;
  box-shadow: 6px 6px 0 0 #000;
  position: relative;
  text-align: center;
  transition: transform .2s ease;
}

.potion-card:hover {
  transform: translateY(-4px) rotate(-1deg);
}

.potion-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
  filter: drop-shadow(-4px 4px 0 #000) drop-shadow(4px -4px 0 #000);
  animation: wobble 4s ease-in-out infinite;
}

@keyframes wobble {
  0%, 100% { transform: rotate(0deg) translate(0,0); }
  25% { transform: rotate(-1.5deg) translate(-1px, 2px); }
  50% { transform: rotate(1.5deg) translate(1px, -2px); }
  75% { transform: rotate(-1deg) translate(-1px,1px); }
}

.potion-name {
  margin-top: .8rem;
  font-size: 1.25rem;
  font-family: 'Stardos Stencil', cursive;
  color: var(--sky-blue);
  text-shadow: 2px 2px 0 #000;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 1rem 0 2rem;
  font-size: .9rem;
  color: var(--sepia-ink);
}
