/* ============================================================
   RARE. Retreats — placeholder page
   A large framed painting hangs on a gilded, glowing gallery wall.
   Relies on :root variables + base styles from style.css
   ============================================================ */

.rr {
  background: #000;
  overflow: hidden;
}

/* ---------- back link ---------- */

.rr-back {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  padding: 1.25rem var(--pad);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
}

.rr-back a {
  font-family: var(--font-display);
  letter-spacing: 0.2em;
  color: var(--zima);
  font-size: 0.95rem;
  transition: color 0.3s, text-shadow 0.3s;
}

.rr-back a::before { content: "← "; }

.rr-back a:hover {
  color: #d6f7ff;
  text-shadow: 0 0 18px rgba(91, 194, 231, 0.6);
}

/* ---------- scene ---------- */

.rr-scene {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  padding: 6rem 4vw 2.5rem;
  box-sizing: border-box;
  background:
    radial-gradient(120% 90% at 50% 30%, rgba(120, 88, 34, 0.16), transparent 60%),
    linear-gradient(to bottom, #14100b 0%, #0a0806 68%, #050403 100%);
}

/* faint floor line grounding the gallery wall */
.rr-scene::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 22%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  pointer-events: none;
}

/* ---------- the framed painting ---------- */

.rr-stage {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rr-gallery {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 3 / 2; /* matches the source painting, so it's never cropped */
  display: flex;
  justify-content: center;
}

/* ambient golden glow bleeding onto the wall around the frame */
.rr-halo {
  position: absolute;
  inset: -18% -55%;
  background: radial-gradient(
    ellipse at 50% 42%,
    rgba(217, 164, 65, 0.32),
    rgba(217, 164, 65, 0.1) 42%,
    transparent 70%
  );
  filter: blur(24px);
  animation: rr-breathe 8s ease-in-out infinite;
}

/* the gilded frame */
.rr-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 1.1rem;
  box-sizing: border-box;
  background: linear-gradient(
    155deg,
    #8a6a29 0%,
    #f5dfa0 16%,
    #b68a3e 32%,
    #f8e8b8 48%,
    #a17c34 64%,
    #f5dfa0 82%,
    #7c5a22 100%
  );
  box-shadow:
    0 0 46px 10px rgba(217, 164, 65, 0.45),
    0 0 110px 34px rgba(217, 164, 65, 0.22),
    0 26px 50px rgba(0, 0, 0, 0.75);
  animation: rr-frame-glow 6s ease-in-out infinite;
}

.rr-frame__art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  box-shadow: inset 0 0 2px 1px rgba(0, 0, 0, 0.5);
}

/* soft contact shadow grounding the frame on the wall/floor */
.rr-frame__shadow {
  position: absolute;
  left: 50%;
  bottom: -6%;
  width: 78%;
  height: 14%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55), transparent 72%);
  filter: blur(4px);
}

/* ---------- foreground copy ---------- */

.rr-copy {
  position: relative;
  flex: 0 0 auto;
  width: min(90%, 46rem);
  text-align: center;
  z-index: 5;
}

.rr-soon {
  font-size: 0.78rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--zima);
}

.rr-subscribe {
  max-width: 100%;
}

/* ---------- keyframes ---------- */

@keyframes rr-breathe {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.05); }
}

@keyframes rr-frame-glow {
  0%, 100% {
    box-shadow:
      0 0 46px 10px rgba(217, 164, 65, 0.45),
      0 0 110px 34px rgba(217, 164, 65, 0.22),
      0 26px 50px rgba(0, 0, 0, 0.75);
  }
  50% {
    box-shadow:
      0 0 56px 14px rgba(217, 164, 65, 0.6),
      0 0 130px 44px rgba(217, 164, 65, 0.3),
      0 26px 50px rgba(0, 0, 0, 0.75);
  }
}

/* ---------- mobile ---------- */

@media (max-width: 40rem) {
  .rr-scene { padding: 5.5rem 6vw 2rem; gap: 1.25rem; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .rr-halo,
  .rr-frame {
    animation: none;
  }
}
