:root {
  --bg: #100e0c;
  --bg-elev: #1b1713;
  --cream: #f4ebe0;
  --cream-muted: #b9ad9d;
  --amber: #d4a05a;
  --amber-soft: rgba(212, 160, 90, 0.2);
  --line: rgba(244, 235, 224, 0.1);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --font-serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-sans: "Outfit", "Avenir Next", system-ui, sans-serif;
  --radius: 1.35rem;
  --pad: 1.25rem;
  --bar-h: 10.25rem;
}

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

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  color: var(--cream);
  background:
    radial-gradient(1200px 520px at 50% -10%, rgba(212, 160, 90, 0.12), transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gate {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: var(--pad);
  background:
    radial-gradient(900px 420px at 50% 20%, rgba(212, 160, 90, 0.1), transparent 58%),
    var(--bg);
  transition:
    opacity 1.8s ease,
    transform 1.8s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1.8s ease;
}

.gate__form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 18rem);
  transition: opacity 1.15s ease, transform 1.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.gate__brand {
  margin: 0 0 2.4rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber);
}

.gate__input {
  width: 100%;
  padding: 0.85rem 0.2rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--cream);
  font-size: 1.15rem;
  letter-spacing: 0.16em;
  text-align: center;
  outline: none;
}

.gate__input:focus {
  border-bottom-color: var(--amber);
}

.gate__input::placeholder {
  letter-spacing: 0.08em;
  color: var(--cream-muted);
}

.gate__submit {
  margin-top: 1.6rem;
  min-height: 2.85rem;
  padding: 0 1.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--amber);
  color: #1a130c;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

.gate__error {
  margin: 0.9rem 0 0;
  font-size: 0.82rem;
  color: var(--cream-muted);
}

.gate__form.is-wrong {
  animation: gate-shake 0.36s ease;
}

.gate__form.is-wrong .gate__input {
  border-bottom-color: #c9894a;
}

@keyframes gate-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-6px);
  }
  75% {
    transform: translateX(6px);
  }
}

body.is-locked {
  overflow: hidden;
}

body.is-locked .page {
  opacity: 0;
  transform: translateY(52px);
  pointer-events: none;
}

body.is-unlocking .gate__form {
  opacity: 0;
  transform: translateY(-36px);
}

body.is-unlocking .gate {
  opacity: 0;
  transform: translateY(-12vh);
  filter: blur(12px);
  pointer-events: none;
}

body.is-unlocking .page,
body.is-open .page,
html.has-access .page {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

body.is-unlocking .page {
  transition:
    opacity 1.7s ease 0.45s,
    transform 1.9s cubic-bezier(0.22, 1, 0.36, 1) 0.45s;
}

html.has-access .gate {
  display: none;
}

.page {
  width: min(100%, 46rem);
  margin: 0 auto;
  padding: 1.75rem var(--pad) calc(var(--bar-h) + 2.5rem + env(safe-area-inset-bottom));
}

.hero {
  padding: 0.25rem 0 1.75rem;
}

.hero__brand {
  margin: 0 0 1.1rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber);
}

.hero__date {
  margin: 0 0 0.7rem;
  font-family: var(--font-serif);
  font-size: clamp(2.15rem, 8vw, 3.15rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  word-spacing: 0.08em;
  text-transform: capitalize;
}

.hero__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--cream);
}

.hero__subtitle {
  margin: 0.28rem 0 0;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--cream-muted);
}

.status {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--bg-elev);
  color: var(--cream-muted);
}

.status:not([hidden]) {
  display: block;
}

.grid {
  display: grid;
  gap: 1.15rem;
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  box-shadow: var(--shadow);
  scroll-margin-bottom: calc(var(--bar-h) + 1.5rem);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.card.is-selected {
  border-color: var(--amber);
  box-shadow: 0 0 0 1px var(--amber), var(--shadow);
}

.card__select {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #2a221b;
}

.card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-serif);
  font-size: 4.5rem;
  color: var(--cream);
  background: linear-gradient(160deg, #3a2c20, #161310 70%);
}

.card__placeholder[hidden] {
  display: none;
}

.card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 14, 12, 0.88) 0%, rgba(16, 14, 12, 0.15) 45%, transparent 70%);
  pointer-events: none;
}

.card__check {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--amber);
  color: #1a130c;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.card.is-selected .card__check {
  opacity: 1;
  transform: scale(1);
}

.card__body {
  position: relative;
  margin-top: -4.75rem;
  padding: 0 1.15rem 1.2rem;
  z-index: 1;
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream-muted);
}

.card__name {
  margin: 0 0 0.4rem;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  word-spacing: 0.06em;
  line-height: 1.2;
}

.card__desc {
  margin: 0;
  max-width: 28ch;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--cream-muted);
}

.card__maps {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.85rem;
  border-radius: 999px;
  background: rgba(16, 14, 12, 0.72);
  color: var(--cream);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  backdrop-filter: blur(8px);
}

.choice-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  padding: 0.95rem var(--pad) calc(0.95rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(16, 14, 12, 0.92);
  backdrop-filter: blur(16px);
  transform: translateY(110%);
  transition: transform 0.28s ease;
}

.choice-bar.is-open {
  transform: translateY(0);
}

.choice-bar[hidden] {
  display: none;
}

.choice-bar__main {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 0;
}

.choice-bar__copy {
  min-width: 0;
}

.choice-bar__label {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-muted);
}

.choice-bar__name {
  margin: 0.15rem 0 0;
  overflow: hidden;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.choice-bar__times {
  display: flex;
  gap: 0.45rem;
}

.choice-bar__time {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

.choice-bar__time.is-selected {
  border-color: var(--amber);
  background: var(--amber);
  color: #1a130c;
}

.choice-bar__cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0 1.1rem;
  border-radius: 999px;
  background: var(--amber);
  color: #1a130c;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.choice-bar__cta.is-disabled {
  opacity: 0.38;
  pointer-events: none;
}

@media (min-width: 720px) {
  :root {
    --bar-h: 7.25rem;
  }

  .page {
    width: min(100%, 58rem);
    padding-top: 2.5rem;
  }

  .grid {
    grid-template-columns: 1fr 1fr;
  }

  .choice-bar {
    left: 50%;
    right: auto;
    flex-direction: row;
    align-items: center;
    width: min(calc(100% - 2rem), 48rem);
    bottom: 1rem;
    border: 1px solid var(--line);
    border-radius: 1.2rem;
    transform: translate(-50%, 140%);
  }

  .choice-bar__main {
    flex: 1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .choice-bar__time {
    flex: 0 0 auto;
    min-width: 4.4rem;
  }

  .choice-bar.is-open {
    transform: translate(-50%, 0);
  }
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-2px);
  }

  .choice-bar__cta:hover,
  .choice-bar__time:hover,
  .card__maps:hover,
  .gate__submit:hover {
    filter: brightness(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .card__check,
  .choice-bar,
  .gate,
  body.is-unlocking .page {
    transition: none;
    animation: none;
  }
}
