/* floating-nav.css — Back link + floating "move to top" button styling
   Matches the dark/gold journal aesthetic */

/* === Inline "Back" link — sits just below the nav, above the article masthead === */
.back-link {
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(201, 168, 76, 0.6);
  background: transparent;
  border: none;
  text-decoration: none;
  cursor: pointer;
  padding: 18px 0 4px 24px;
  margin: 0;
  transition: color 0.2s ease;
  -webkit-font-smoothing: antialiased;
}
.back-link:hover,
.back-link:focus {
  color: var(--gold, #c9a84c);
  outline: none;
}
@media (max-width: 480px) {
  .back-link { padding-left: 16px; font-size: 0.55rem; }
}

/* === Floating "move to top" button — bottom-right, appears on scroll === */
.floating-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.4);
  background: rgba(15, 12, 7, 0.78);
  color: rgba(201, 168, 76, 0.85);
  font-family: "Cormorant Garamond", serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  padding: 0;
}
.floating-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.floating-top:hover,
.floating-top:focus {
  color: var(--gold2, #f0d080);
  border-color: var(--gold, #c9a84c);
  background: rgba(15, 12, 7, 0.95);
  outline: none;
}

.ft-arrow {
  display: block;
  line-height: 1;
  font-size: 1.4rem;
  font-weight: 300;
  margin-top: -2px;
}

@media (max-width: 480px) {
  .floating-top { bottom: 16px; right: 16px; width: 42px; height: 42px; }
  .ft-arrow { font-size: 1.3rem; }
}
