/* Living Tanach — shared site footer.
   One compact band on every page. Self-contained on purpose: each story
   folder ships its own palette, so this never reads page-level custom
   properties or inherits page-level link styles.

   Three columns: brand block left, links centred, third column reserved.
   Column 3 is deliberately empty — add a third child to .lt-footer and it
   lands there, right-aligned, without shifting the centred links. */

.lt-footer {
  box-sizing: border-box;
  background: #2a2117;
  padding: 1.4rem 6vw;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 2rem;
  row-gap: 1rem;
  font-family: 'Cormorant Garamond', serif;
}

/* the reserved third column */
.lt-footer > :nth-child(3) {
  justify-self: end;
  text-align: right;
}

.lt-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.lt-footer-mark {
  display: block;
  line-height: 0;
}

.lt-footer-logo {
  display: block;
  height: 1rem;
  width: auto;
  opacity: 0.9;
}

.lt-footer-links {
  justify-self: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.8rem;
}

.lt-footer-links a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  font-style: normal;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  border: none;
  transition: color 0.2s ease;
}

.lt-footer-links a:hover {
  color: #c9a45c;
}

.lt-footer-copyright {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
}

.lt-footer-credit {
  margin: 0;
}

.lt-footer-credit a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  border: none;
  transition: color 0.2s ease;
}

.lt-footer-credit a:hover {
  color: #c9a45c;
}

@media (max-width: 860px) {
  .lt-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    row-gap: 0.9rem;
    padding: 1.7rem 5vw;
  }

  .lt-footer-brand {
    align-items: center;
    gap: 0.4rem;
  }

  .lt-footer > :nth-child(3) {
    justify-self: center;
    text-align: center;
  }

  /* tightened just enough that all four links hold one line on a phone */
  .lt-footer-links {
    gap: 0.5rem 1rem;
  }

  .lt-footer-links a {
    font-size: 0.8rem;
  }
}
