/* ============================================================
   ElaraVTT landing page
   Dark fantasy: charcoal background, gold accents.
   ============================================================ */

:root {
  --ink: #0e0c0a;
  --ink-soft: #1a1510;
  --paper: #e0d0c0;
  --gold: #b89d6a;
  --gold-bright: #d4b97e;
  --shadow: rgba(0, 0, 0, 0.6);
  --serif: 'Cormorant Garamond', 'EB Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   Hero — full-screen banner with overlay
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 24px;
  background-image: url('/assets/banner.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--ink);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(14, 12, 10, 0.35) 0%,
    rgba(14, 12, 10, 0.65) 60%,
    rgba(14, 12, 10, 0.92) 100%
  );
  pointer-events: none;
}

.content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* ============================================================
   Brand — dice with overlay text
   ============================================================ */

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
}

.dice {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.7));
}

.brand-text {
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 3.4rem);
  letter-spacing: 0.04em;
  color: var(--gold);
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.5),
    0 4px 18px rgba(0, 0, 0, 0.95);
  white-space: nowrap;
  pointer-events: none;
}

.tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  color: var(--paper);
  opacity: 0.92;
  margin-top: 8px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

/* ============================================================
   Blurb — short description of ElaraVTT
   ============================================================ */

.blurb {
  max-width: 640px;
  margin: 8px auto 0;
  padding: 22px 28px;
  background: rgba(14, 12, 10, 0.72);
  border: 1px solid rgba(184, 157, 106, 0.35);
  border-radius: 2px;
  backdrop-filter: blur(3px);
  text-align: left;
}

.blurb p {
  font-family: var(--serif);
  font-size: clamp(0.98rem, 1.6vw, 1.1rem);
  line-height: 1.55;
  color: var(--paper);
  opacity: 0.95;
}

.blurb p + p { margin-top: 12px; }

.blurb .closed {
  text-align: center;
  font-style: italic;
  font-size: 0.95rem;
  opacity: 0.7;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(184, 157, 106, 0.18);
}

/* ============================================================
   Action buttons
   ============================================================ */

.actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px 36px;
  min-width: 240px;
  border: 1px solid var(--gold);
  background: rgba(14, 12, 10, 0.72);
  color: var(--gold);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  backdrop-filter: blur(2px);
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease, transform 150ms ease;
}

.btn-label {
  font-weight: 600;
}

.btn-sub {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  opacity: 0.7;
  font-family: var(--sans);
  text-transform: uppercase;
}

.btn:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold-bright);
  transform: translateY(-2px);
}

.btn:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 4px;
}

.btn-primary {
  /* same as base for now; reserved for future emphasis */
}

.btn-secondary {
  /* same as base for now; reserved for future styling */
}

/* Join button — same size as the row above, but visually softer so the
   primary Portal/Wiki pairing leads. */
.btn-join {
  opacity: 0.95;
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  position: relative;
  z-index: 1;
  margin-top: 48px;
  padding-top: 24px;
  font-size: 0.9rem;
  color: var(--paper);
  opacity: 0.6;
  text-align: center;
  letter-spacing: 0.05em;
}

.discord-link {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px dotted var(--gold);
  transition: color 200ms ease, border-color 200ms ease;
}

.discord-link:hover {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
}

.sep {
  margin: 0 12px;
  opacity: 0.5;
}

/* ============================================================
   Small screens
   ============================================================ */

@media (max-width: 540px) {
  .actions,
  .actions-row {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    min-width: 0;
    width: 100%;
  }

  .brand {
    max-width: 280px;
  }
}

/* ============================================================
   Reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
  .btn:hover {
    transform: none;
  }
}
