@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,500;1,600&display=swap');

:root {
  --night: #050b17;
  --blue: #73c9ff;
  --gold: #f6d68b;
  --sans: 'DM Sans', Arial, sans-serif;
  --serif: 'Playfair Display', Georgia, serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--night);
}

body { font-family: var(--sans); color: white; }

.entry {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  padding: clamp(7rem, 15vh, 10rem) clamp(1.25rem, 5vw, 5rem) 1.25rem;
  background: var(--night);
  overflow: hidden;
}

.entry-image, .entry-shade { position: absolute; inset: 0; pointer-events: none; }

.entry-image {
  z-index: -2;
  background-image: url('../assets/images/elven_astronaut.png');
  background-size: cover;
  background-position: center 45%;
  transform: scale(1.015);
}

.entry-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(2, 7, 18, 0.78) 0%, rgba(2, 7, 18, 0.43) 45%, rgba(2, 7, 18, 0.2) 100%),
    linear-gradient(0deg, rgba(2, 7, 18, 0.72) 0%, transparent 42%, rgba(2, 7, 18, 0.18) 100%);
}

.entry-stars {
  position: absolute;
  top: 7%;
  right: 7%;
  color: #d8efff99;
  letter-spacing: 0.15rem;
  font-size: 0.8rem;
}

.logo-badge {
  position: absolute;
  top: clamp(1.3rem, 4vw, 3rem);
  left: clamp(1.3rem, 5vw, 5rem);
  width: 180px;
  height: 120px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.logo-badge:hover { transform: translateY(-2px) scale(1.01); }
.logo-badge img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }

.entry-copy {
  position: relative;
  z-index: 2;
  grid-row: 1;
  width: min(100%, 540px);
  justify-self: end;
  margin: 0;
  text-align: center;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.55);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--gold);
  font-size: clamp(0.58rem, 0.8vw, 0.7rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.entry-copy h1 {
  margin: 0 0 1rem;
  font: 600 clamp(2.15rem, 4.3vw, 4.25rem) / 1.12 var(--serif);
  letter-spacing: -0.035em;
}

.entry-copy h1 em { color: #bce5ff; font-weight: 500; }

.entry-copy p:not(.eyebrow) {
  max-width: 440px;
  margin: 0 auto 1.35rem;
  color: #e8edf4;
  font-size: clamp(0.82rem, 1.1vw, 0.95rem);
  line-height: 1.6;
}

.enter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.75rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(5, 11, 23, 0.48);
  backdrop-filter: blur(10px);
  font-size: 0.78rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}

.enter-button:hover {
  background: rgba(5, 11, 23, 0.75);
  border-color: var(--blue);
  transform: translateY(-2px);
}

.entry-footer {
  position: relative;
  z-index: 2;
  grid-row: 2;
  justify-self: center;
  margin: 1.5rem 0 0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.57rem;
  line-height: 1.5;
  color: #d4deea99;
}

@media (max-width: 700px) {
  .entry {
    padding: clamp(8.5rem, 25svh, 13rem) 1.25rem 1rem;
  }
  .entry-image { background-position: 62% center; }
  .entry-shade {
    background: linear-gradient(0deg, rgba(2, 7, 18, 0.91) 0%, rgba(2, 7, 18, 0.49) 55%, rgba(2, 7, 18, 0.13) 100%);
  }
  .logo-badge {
    width: min(220px, 55vw);
    left: 50%;
    transform: translateX(-50%);
    top: 1.2rem;
  }
  .logo-badge:hover { transform: translateX(-50%) translateY(-2px); }
  .entry-copy { justify-self: center; max-width: 440px; }
  .entry-copy h1 { font-size: clamp(2rem, 8vw, 3.1rem); }
  .entry-copy p:not(.eyebrow) { font-size: 0.85rem; }
  .entry-footer { font-size: 0.5rem; letter-spacing: 0.09em; }
}

/* On short screens, allow vertical scrolling instead of obscuring the footer. */
@media (max-height: 620px) {
  .entry { padding-top: 6rem; }
  .entry-copy h1 { font-size: clamp(1.85rem, 4vw, 3rem); }
  .entry-copy p:not(.eyebrow) { margin-bottom: 0.85rem; }
  .entry-footer { margin-top: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .logo-badge, .enter-button { transition: none; }
}
