/* La Rambla Film Festival — Save the date 2027 (provisional) */

:root {
  --bg: #000000;
  --green: #4ea364;
  --date: #b4b4b4;
  --text: #ffffff;
  --pad: clamp(1.25rem, 5vw, 3rem);
  --font-display: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  height: 100%;
}

body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.4;
  overflow: hidden;
}

main {
  height: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.poster {
  height: 100svh;
  max-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.25rem, 4vh, 2.75rem) var(--pad) clamp(1rem, 3vh, 2rem);
  max-width: 48rem;
  margin: 0 auto;
  overflow: hidden;
}

.poster__brand {
  width: min(100%, clamp(14rem, 28vh, 22rem));
  margin: 0;
  flex-shrink: 0;
  animation: rise 0.9s ease-out both;
}

.poster__brand img {
  width: 100%;
  height: auto;
}

.poster__dates {
  margin: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(0.35rem, 1.8vh, 1.1rem);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.75rem, 12vh, 7rem);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--date);
  text-transform: uppercase;
  animation: rise 0.9s ease-out 0.12s both;
}

.poster__dates span {
  display: block;
}

.poster__visual {
  width: 100%;
  max-width: min(34rem, 100%);
  margin: 0;
  flex-shrink: 1;
  animation: rise 0.9s ease-out 0.24s both;
}

.poster__visual img {
  width: 100%;
  max-height: clamp(7rem, 22vh, 14rem);
  object-fit: contain;
  object-position: center;
  filter: brightness(1.08) contrast(1.05);
}

.poster__tagline {
  margin: 0;
  flex-shrink: 0;
  text-align: center;
  font-family: var(--font-body);
  font-size: clamp(0.65rem, 1.8vh, 0.9rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  animation: rise 0.9s ease-out 0.36s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 768px) {
  .poster__brand {
    width: min(100%, clamp(16rem, 30vh, 24rem));
  }

  .poster__dates {
    font-size: clamp(4.5rem, 13vh, 7.25rem);
    gap: clamp(0.5rem, 2.2vh, 1.35rem);
  }
}

@media (max-width: 480px) {
  .poster__dates {
    font-size: clamp(3.5rem, 14vw, 4.75rem);
    gap: clamp(0.3rem, 1.5vh, 0.85rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
