/* Wyrdenlore landing page. The colours match the game's login screen. */

:root {
  --gold: #f5c76b;
  --gold-dim: #94703a;
  --text: #ece2cf;
  --text-dim: #b9ab92;
  --panel: rgba(14, 10, 7, 0.72);
  --serif: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: #0e0a07 url("images/background.jpg") center / cover no-repeat;
  color: var(--text);
  font-family: var(--serif);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

/* Darkens the edges and the bottom of the picture, so the text stays easy to read. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.78) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.55));
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 16px 24px;
  animation: fade-in 1.2s ease-out both;
}

.logo {
  width: clamp(130px, 22vw, 220px);
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.7));
}

.title {
  margin: 8px 0 0;
  color: var(--gold);
  font-size: clamp(2.1rem, 7vw, 3.8rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  /* Shift right by half the letter spacing, so the word sits in the middle. */
  padding-left: 0.16em;
  text-shadow: 0 0 2px #2a1404, 0 3px 0 #2a1404, 0 6px 18px rgba(0, 0, 0, 0.85);
}

.tagline {
  margin: 10px 0 0;
  max-width: 32rem;
  color: var(--text);
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  line-height: 1.5;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

.alpha {
  margin-top: clamp(28px, 6vh, 48px);
  padding: 20px clamp(16px, 4vw, 32px) 18px;
  background: var(--panel);
  border: 1px solid var(--gold-dim);
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}

.alpha-heading {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 3vw, 24px);
}

.unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: clamp(56px, 15vw, 84px);
}

.number {
  color: var(--text);
  font-size: clamp(1.9rem, 7vw, 3rem);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.label {
  margin-top: 4px;
  color: var(--text-dim);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.alpha-date {
  margin: 14px 0 0;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer {
  position: relative;
  z-index: 1;
  padding: 16px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page {
    animation: none;
  }
}
