/* Prayer rooms: /prayer/<prayer>/<Name>. Uses the Temple palette and Inter only. */

.prayer-room {
  padding-block: clamp(2.5rem, 7vw, 7rem) clamp(4rem, 9vw, 9rem);
  background: radial-gradient(60rem 30rem at 15% 0%, rgb(227 199 127 / 0.1), transparent 70%);
}

.prayer-room__inner {
  max-width: 60rem;
}

.prayer-room__sent {
  margin: 1.6rem 0 0.4rem;
  color: var(--petal);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prayer-room__sent + .eyebrow,
.back-link + .eyebrow {
  margin-top: 1.6rem;
}

.prayer-room__heading {
  max-width: 16ch;
  margin-bottom: clamp(2rem, 5vw, 4rem);
  font-size: clamp(2.6rem, 6.4vw, 6rem);
  line-height: 0.95;
  overflow-wrap: anywhere;
}

.prayer-room__lines {
  display: grid;
  margin: 0;
  padding: 0.2rem 0 0.2rem clamp(1.1rem, 3vw, 2.4rem);
  border-left: 2px solid var(--gold);
  color: var(--light-gold, #e3c77f);
  font-size: clamp(1.45rem, 3vw, 2.55rem);
  font-weight: 420;
  font-style: italic;
  line-height: 1.3;
  letter-spacing: -0.025em;
  gap: 0.55em;
}

.prayer-room__line {
  display: block;
  text-wrap: pretty;
}

@media (prefers-reduced-motion: no-preference) {
  .prayer-room__line {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(0.35em);
    animation: prayer-arrive 1.8s var(--ease) forwards;
  }
  .prayer-room__line:nth-child(1) { animation-delay: 0.5s; }
  .prayer-room__line:nth-child(2) { animation-delay: 3.1s; }
  .prayer-room__line:nth-child(3) { animation-delay: 5.7s; }
  .prayer-room__line:nth-child(4) { animation-delay: 8.3s; }
  .prayer-room__line:nth-child(5) { animation-delay: 10.9s; }

  .prayer-room__meditation {
    opacity: 0;
    animation: prayer-arrive 1.6s var(--ease) 10.6s forwards;
  }
  .prayer-room--lost .prayer-room__meditation { animation: none; opacity: 1; }

  /* A visitor who scrolls or taps should never wait for words. */
  .prayer-room.is-settled .prayer-room__line,
  .prayer-room.is-settled .prayer-room__meditation {
    animation-duration: 0.6s;
    animation-delay: 0s;
  }
}

@keyframes prayer-arrive {
  to {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}

.prayer-room__meditation {
  max-width: 44rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  font-size: clamp(1.02rem, 1.3vw, 1.2rem);
}

.prayer-room__meditation .eyebrow {
  margin-bottom: 0.6rem;
}

.prayer-room__again {
  min-height: 2.75rem;
  margin-top: 0.4rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--patina);
  font-size: 0.86rem;
  font-weight: 650;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

.prayer-send {
  margin-top: clamp(3.5rem, 8vw, 6.5rem);
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--glass-edge, var(--rule));
  background: var(--glass, transparent);
}

.prayer-send h2 {
  margin-bottom: 0.6rem;
}

.prayer-send__lead {
  max-width: 48ch;
  color: var(--clay);
}

.prayer-send__form {
  display: grid;
  margin-top: 1.5rem;
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
  gap: 1rem;
}

.prayer-send__form label {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.prayer-send__form label span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.prayer-send__form input {
  width: 100%;
  min-height: 3.15rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid color-mix(in srgb, var(--ink) 28%, transparent);
  border-radius: 0;
  background: rgb(0 0 0 / 0.3);
  color: var(--ink);
  font: inherit;
  font-size: max(16px, 1rem);
}

.prayer-send__form input:focus-visible {
  outline: 2px solid var(--patina);
  outline-offset: 2px;
}

.prayer-send__form .button {
  cursor: pointer;
  white-space: nowrap;
}

.prayer-send__address {
  margin: 1.1rem 0 0;
  color: var(--clay);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.prayer-send__address a {
  color: var(--patina);
  font-weight: 600;
}

.prayer-send__status {
  min-height: 1.6em;
  margin: 0.4rem 0 0;
  color: var(--light-gold, #e3c77f);
  font-size: 0.9rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.prayer-room__others {
  display: grid;
  margin-top: clamp(3.5rem, 8vw, 6rem);
  border-top: 1px solid var(--rule);
  grid-template-columns: repeat(4, 1fr);
}

.prayer-room__others--five {
  grid-template-columns: repeat(5, 1fr);
}

.prayer-room__others a {
  display: flex;
  min-height: 7rem;
  padding: 1.25rem 1rem 1.25rem 0;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}

.prayer-room__others a + a {
  padding-left: 1rem;
  border-left: 1px solid var(--rule);
}

.prayer-room__others span {
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.prayer-room__others strong {
  margin-top: 0.35rem;
  font-weight: 560;
  line-height: 1.2;
}

.prayer-room__others a:hover strong {
  color: var(--patina);
}

.prayer-room__lead {
  max-width: 50ch;
  font-size: clamp(1.08rem, 1.6vw, 1.4rem);
}

.lost__offer {
  max-width: 50ch;
  margin-top: 1.4rem;
  padding: 1rem 1.25rem;
  border-left: 2px solid var(--petal);
  background: var(--glass, transparent);
}

.lost__offer a {
  color: var(--patina);
  font-weight: 600;
}

.prayer-room__ways {
  display: flex;
  margin-top: 2rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.prayer-room--lost .eyebrow {
  overflow-wrap: anywhere;
  text-transform: none;
  letter-spacing: 0.04em;
}

@media (max-width: 760px) {
  .prayer-send__form {
    grid-template-columns: 1fr;
  }
  .prayer-send__form .button {
    width: 100%;
  }
  .prayer-room__others,
  .prayer-room__others--five {
    grid-template-columns: 1fr 1fr;
  }
  .prayer-room__others a,
  .prayer-room__others a + a {
    padding: 1rem 0.9rem;
    border-left: 0;
  }
  .prayer-room__others a:nth-child(2n) {
    border-left: 1px solid var(--rule);
  }
  .prayer-room__others a {
    min-height: 5.5rem;
  }
}
