body {
  margin: 0;
  font-family: 'Epilogue', sans-serif;
  background-color: #f5f7fa;
  background-image: url('img/noise-bg.png');
  background-repeat: repeat;
  background-size: 300px;
  color: #1a1a1a;
  min-height: 100vh;
  overflow-x: hidden;
}


.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

header {
  padding-bottom: 1rem;
  border-bottom: 1px solid #e0e0e0;
  background: transparent;
}



header h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-family: 'Italiana', sans-serif;
  -webkit-text-stroke: 0.1px #1a1a1a;
}

.brand-name {
  font-family: 'Italiana', serif;
  font-size: 3.5rem;
  letter-spacing: 0.02em;
  font-weight: 400;
  text-transform: uppercase;
  -webkit-text-stroke: 0.1px #1a1a1a;
}

.tagline {
  font-size: 1.25rem;
  font-weight: 500;
  color: #4a4a4a;
  margin-bottom: 2rem;
  font-family: 'Italiana', sans-serif;
  -webkit-text-stroke: 0.3px #1a1a1a;
}

.description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #2d2d2d;
  line-height: 1.6;
  font-family: 'Epilogue', sans-serif;
}

.email-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 4rem;
}

.email-form input[type="email"] {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  width: 100%;
  max-width: 340px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: border-color 0.2s;
  font-family: 'Epilogue', sans-serif;
}

.email-form input[type="email"]:focus {
  outline: none;
  border-color: #2962ff;
}

.email-form button {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  background-color: #2962ff;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s, transform 0.2s;
}

.email-form button:hover {
  background-color: #0039cb;
  transform: scale(1.03);
}

.preview-wrapper {
  margin-left: calc(-1 * (100vw - 100%) / 2);
  margin-right: calc(-1 * (100vw - 100%) / 2);
  padding: 2rem 0;
}


.preview {
  max-width: none;
}

.beer-slider {
  position: relative;
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}



.beer-slider img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.beer-slider:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  transition: box-shadow 0.2s ease-in-out;
}


.beer-reveal {
  background: transparent;
}

.hero .description {
  margin-bottom: 0;
}

.preview h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #222;
  font-family: 'Italiana', sans-serif;
  -webkit-text-stroke: 0.1px #1a1a1a;
}

.preview p {
  font-weight: 400;
  margin-bottom: 1rem;
  color: #444;
}

footer {
  margin-top: 4rem;
  font-size: 0.875rem;
  color: #888;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeIn 0.6s ease-out forwards;
}

.fade-in-delay {
  animation-delay: 0.2s;
}

.beer-slider-wrapper {
  position: relative;
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
}

.slider-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.9rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  animation: fadeHint 0.6s ease-out 1.2s forwards, fadeOutHint 0.5s ease-out 4.5s forwards;
  z-index: 10;
}


@keyframes fadeHint {
  to {
    opacity: 1;
  }
}

@keyframes fadeOutHint {
  to {
    opacity: 0;
  }
}


@keyframes fadeIn {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 768px) {
  .beer-slider {
    width: calc(100vw - 2rem); /* gives room for padding */
  }
}
