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

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

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

html {
  background: var(--dark);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--dark);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* ── BACKGROUND ── */

#bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url('../images/keep_bg.png');
  background-size: cover;
  background-position: center top;
}

#overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(0,0,0,0.45);
  pointer-events: none;
}

/* ── NAVIGATION ── */

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

.nav-home {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--gold-dim);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.4s ease;
  text-shadow: 0 1px 6px rgba(0,0,0,0.9);
}

.nav-home:hover {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 44px;
}

.nav-links 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;
  text-shadow: 0 1px 6px rgba(0,0,0,0.9);
  position: relative;
}

.nav-links 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;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-links a.active {
  color: var(--gold);
}

/* ── MAIN CONTENT ── */

#keep-content {
  position: relative;
  z-index: 10;
  max-width: 680px;
  margin: 0 auto;
  padding: 160px 40px 120px;
}

#keep-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: -1;
  border-radius: 2px;
}

/* ── TEXT ── */

.keep-text p {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.85;
  color: #d4bc94;
  margin-bottom: 2em;
  opacity: 0;
  animation: rise 1.6s ease forwards;
  text-shadow: 0 1px 6px rgba(0,0,0,0.95), 0 0 20px rgba(0,0,0,0.8);
}

.keep-text p:nth-child(1)  { animation-delay: 0.2s; }
.keep-text p:nth-child(2)  { animation-delay: 0.5s; }
.keep-text p:nth-child(3)  { animation-delay: 0.8s; }
.keep-text p:nth-child(4)  { animation-delay: 1.1s; }
.keep-text p:nth-child(5)  { animation-delay: 1.4s; }
.keep-text p:nth-child(6)  { animation-delay: 1.7s; }
.keep-text p:nth-child(7)  { animation-delay: 2.0s; }
.keep-text p:nth-child(8)  { animation-delay: 2.3s; }

.keep-text p:first-child {
  font-family: var(--font-witness);
  font-style: italic;
  font-size: 22px;
  color: var(--gold);
  letter-spacing: 0.03em;
}

.keep-text p:last-child {
  font-family: var(--font-witness);
  font-style: italic;
  color: var(--gold-dim);
  margin-bottom: 3em;
}

/* ── BOTTOM NAV ── */

.keep-nav {
  text-align: center;
  padding-top: 2em;
  border-top: 1px solid rgba(150, 110, 55, 0.15);
  opacity: 0;
  animation: rise 1.6s ease 2.8s forwards;
}

.keep-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);
  display: inline-block;
  transition: color 0.4s ease, border-color 0.4s ease, background 0.4s ease;
  text-shadow: 0 1px 6px rgba(0,0,0,0.9);
}

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

/* ── FOOTER ── */

#site-footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 24px;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 11px;
  color: #3a2e1e;
  letter-spacing: 0.06em;
  border-top: 1px solid rgba(150, 110, 55, 0.08);
}

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

/* ── ANIMATION ── */

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

/* ── RESPONSIVE ── */

@media (max-width: 640px) {
  #main-nav {
    padding: 18px 24px;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    font-size: 10px;
  }

  #keep-content {
    padding: 140px 28px 80px;
  }

  .keep-text p {
    font-size: 17px;
  }
}
