/* =============================================
   THE LANTERN KEEP — style.css
   ============================================= */

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

:root {
  --gold:        #c9a46a;
  --gold-dim:    #8a6a3a;
  --gold-faint:  #4a3520;
  --amber:       #d4954a;
  --dark:        #080604;
  --text-main:   #c4aa80;
  --text-muted:  #7a6245;
  --text-faint:  #4a3a28;
  --font-display: 'Cinzel', serif;
  --font-body:    'Sorts Mill Goudy', serif;
  --font-witness: 'IM Fell English', serif;
}

html, body {
  width: 100%;
  height: 100%;
  background: var(--dark);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* ── BACKGROUND SLIDESHOW ── */

#bg-container {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2.5s ease-in-out;
}

.bg-slide.active {
  opacity: 1;
}

/* ── OVERLAY ── */

#overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}

/* ── NAVIGATION ── */

#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 44px;
  padding: 24px 48px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 100%);
}

#main-nav a {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #a08050;
  text-decoration: none;
  transition: color 0.4s ease;
  position: relative;
  text-shadow: 0 1px 6px rgba(0,0,0,0.9);
}

#main-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold-dim);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

#main-nav a:hover {
  color: var(--gold);
}

#main-nav a:hover::after {
  transform: scaleX(1);
}

/* ── HERO ── */

#hero {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 48px 80px;
}

#hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 50%;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.3) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.eyebrow {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 16px;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-bottom: 24px;
  opacity: 0;
  animation: rise 2s ease 0.6s forwards;
  text-shadow: 0 1px 12px rgba(0,0,0,0.9), 0 0 40px rgba(0,0,0,0.7);
}

.site-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 52px);
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 28px;
  opacity: 0;
  animation: rise 2.4s ease 1.2s forwards;
  text-shadow: 0 2px 20px rgba(0,0,0,0.98), 0 0 60px rgba(0,0,0,0.95);
}

.ornament {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  opacity: 0;
  animation: rise 1.8s ease 2s forwards;
}

.rule {
  display: block;
  width: 64px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-faint));
}

.ornament .rule:last-child {
  background: linear-gradient(to left, transparent, var(--gold-faint));
}

.diamond {
  display: block;
  width: 6px;
  height: 6px;
  background: var(--gold-faint);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.tagline {
  font-family: var(--font-witness);
  font-style: italic;
  font-size: 15px;
  color: #c9a46a;
  letter-spacing: 0.08em;
  margin-bottom: 52px;
  opacity: 0;
  animation: rise 1.8s ease 2.4s forwards;
  text-shadow: 0 1px 8px rgba(0,0,0,1), 0 0 30px rgba(0,0,0,1), 0 2px 4px rgba(0,0,0,1);
}

.enter-link {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #c9a46a;
  text-decoration: none;
  border: 1px solid #8a6a3a;
  padding: 12px 36px;
  background: rgba(0,0,0,0.45);
  transition: color 0.4s ease, border-color 0.4s ease, background 0.4s ease;
  opacity: 0;
  animation: rise 1.8s ease 3s forwards;
  text-shadow: 0 1px 6px rgba(0,0,0,1);
}

.enter-link:hover {
  color: var(--gold);
  border-color: var(--gold-dim);
  background: rgba(180, 130, 60, 0.06);
}

/* ── FOOTER ── */

#site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  text-align: center;
  padding: 16px;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  border-top: 1px solid rgba(150, 110, 55, 0.08);
}

.witness-name {
  color: var(--gold-faint);
}

/* ── ANIMATIONS ── */

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

/* ── RESPONSIVE ── */

@media (max-width: 640px) {
  #main-nav {
    gap: 24px;
    padding: 18px 24px;
  }

  #main-nav a {
    font-size: 10px;
    letter-spacing: 0.14em;
  }

  #hero {
    padding: 100px 28px 80px;
  }

  #lantern {
    width: 48px;
    bottom: 10%;
    left: 3%;
  }
}
