/* ============================================
   CRYPT — The Descent
   Below the Archive, where pages turn to stone
   ============================================ */

/* --- Page Layout --- */
.crypt-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 80px 20px 60px;
}

/* --- Opening Descent --- */
.crypt-descent {
  margin-top: 40px;
  margin-bottom: 20px;
}

.crypt-descent .cathedral-text {
  margin-bottom: 24px;
  text-indent: 2em;
}

.crypt-descent .cathedral-text:first-child {
  text-indent: 0;
}

/* --- Paths Section --- */
.crypt-paths {
  margin-top: 20px;
}

.crypt-paths-heading {
  font-family: var(--font-blackletter);
  font-size: 0.8rem;
  color: var(--stone-dim);
  text-align: center;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.path-card {
  background: var(--stone-dark);
  border: 1px solid var(--stone-border);
  padding: 24px 28px;
  margin-bottom: 20px;
  position: relative;
  transition: border-color 0.6s ease, box-shadow 0.6s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.path-card:hover {
  border-color: var(--amber);
  box-shadow: 0 0 30px rgba(139, 107, 26, 0.06), inset 0 0 20px rgba(139, 107, 26, 0.02);
}

.path-card--ruby:hover {
  border-color: var(--ruby);
  box-shadow: 0 0 30px rgba(139, 27, 27, 0.08), inset 0 0 20px rgba(139, 27, 27, 0.03);
}

.path-card--amber:hover {
  border-color: var(--amber);
  box-shadow: 0 0 30px rgba(139, 107, 26, 0.08), inset 0 0 20px rgba(139, 107, 26, 0.03);
}

.path-card--deep:hover {
  border-color: var(--sapphire);
  box-shadow: 0 0 30px rgba(26, 26, 107, 0.08), inset 0 0 20px rgba(26, 26, 107, 0.03);
}

.path-name {
  font-family: var(--font-blackletter);
  font-size: 1rem;
  color: var(--stone-text);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.path-card--ruby .path-name {
  color: var(--ruby-glow);
  text-shadow: 0 0 8px rgba(187, 42, 42, 0.2);
}

.path-card--amber .path-name {
  color: var(--amber-glow);
  text-shadow: 0 0 8px rgba(187, 154, 42, 0.2);
}

.path-card--deep .path-name {
  color: var(--sapphire-glow);
  text-shadow: 0 0 8px rgba(51, 51, 170, 0.2);
}

.path-symbol {
  font-size: 0.75rem;
  color: var(--stone-dim);
  margin-bottom: 10px;
  letter-spacing: 0.3em;
}

.path-desc {
  font-family: var(--font-blackletter);
  font-style: italic;
  font-size: 0.8rem;
  color: var(--stone-dim);
  line-height: 1.7;
}

/* --- Footer Depth Marker --- */
.crypt-footer {
  margin-top: 60px;
  text-align: center;
}

.depth-marker {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: var(--stone-dark);
  letter-spacing: 0.4em;
  opacity: 0.3;
  transition: opacity 2s ease;
}

.depth-marker:hover {
  opacity: 0.6;
}

/* --- Fade-in for scroll reveal --- */
.crypt-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.crypt-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Mobile --- */
@media (max-width: 768px) {
  .crypt-page {
    padding: 60px 12px 40px;
  }

  .path-card {
    padding: 18px 20px;
  }
}
