/* paying.html: the folded letter */

.pay-open h1 { font-size: clamp(1.55rem, 1rem + 2.3vw, 3rem); margin-bottom: .5em; }
.pay-open .snap .arch img { object-position: 30% 62%; }

.stage__grid > .snap--cross { justify-self: end; margin-bottom: -3rem; width: min(62%, 15rem); }
@media (min-width: 60rem) {
  .pay-open .stage__grid { align-items: end; }
  .stage__grid > .snap--cross {
    grid-column: 9 / span 4; justify-self: center; margin: 0 0 -6rem;
    width: clamp(14rem, 24vw, 24rem);
  }
}

/* Letter: cream paper, three folds */
.pay-letter { align-items: start; padding-top: 8rem; }
.letter {
  background: var(--cream); color: var(--ink); overflow: hidden;
  border-radius: var(--sill-r) var(--sill-r) .375rem .375rem;
  box-shadow: 0 1rem 2.5rem rgba(34, 26, 46, .25);
}
@media (min-width: 60rem) { .stage__grid > .letter { grid-column: 2 / span 10; } }
.letter__head { padding: 2.5rem 1.5rem 1.75rem; }
@media (min-width: 60rem) { .letter__head { padding: 3rem 3rem 2rem; } }
.letter__head p { margin-bottom: 0; max-width: 42rem; }

.fold {
  position: relative; background: var(--cream);
  box-shadow: inset 0 .7rem .7rem -.55rem rgba(34, 26, 46, .22);
}
.fold:nth-of-type(even) { background-image: linear-gradient(rgba(34, 26, 46, .035), rgba(34, 26, 46, .035)); }
.fold summary {
  display: flex; align-items: center; gap: 1rem; min-height: 4.5rem;
  padding: 1.25rem 1.5rem; font-size: 1.375rem; line-height: 1.35; cursor: pointer; list-style: none;
}
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after {
  content: ""; flex: none; margin-left: auto; width: .7rem; height: .7rem;
  border-right: .16rem solid var(--ink); border-bottom: .16rem solid var(--ink);
  transform: translateY(-.15rem) rotate(45deg);
}
.fold[open] summary::after { transform: translateY(.15rem) rotate(-135deg); }
.fold summary:hover .fold__t { text-decoration: underline; text-decoration-color: var(--violet); text-decoration-thickness: .125rem; }
.fold__n {
  flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--moss); color: var(--ink); font-family: 'Krona One', sans-serif; font-size: 1.1rem;
}
.fold__body {
  padding: 1.75rem 1.5rem 1.5rem;
  background: linear-gradient(rgba(34, 26, 46, .16), rgba(34, 26, 46, 0) 1.4rem) no-repeat;
}
.fold__body p { margin: 0; max-width: 40rem; }
.fold[open] .fold__body { animation: unfold .8s var(--settle) both; }
@keyframes unfold {
  from { clip-path: inset(0 0 100% 0); opacity: 0; }
  to { clip-path: inset(0 0 0 0); opacity: 1; }
}
@media (min-width: 60rem) {
  .fold summary { padding: 1.5rem 3rem; }
  .fold__body { padding: 1.75rem 3rem 2rem 7rem; }
}
@media (max-width: 30rem) {
  .fold summary { padding: 1.1rem 1rem; gap: .75rem; font-size: 1.25rem; }
  .fold__body { padding: 1.5rem 1rem 1.25rem; }
}

/* Two panels and the close */
.pay-close { align-items: center; }
.panel { border-radius: 2.5rem 2.5rem .375rem .375rem; }
.panel p { margin-bottom: 0; }
@media (min-width: 60rem) {
  .stage__grid > .panel { grid-column: span 6; align-self: stretch; }
  .stage__grid > .close { grid-column: 1 / -1; }
}
.close { display: flex; flex-wrap: wrap; align-items: center; gap: 1.75rem 2.5rem; }
.close__text { flex: 1 1 20rem; }
.close__text p { margin-bottom: 0; }
.ask {
  flex: none; display: grid; place-items: center; width: 10.5rem; height: 10.5rem; padding: 1.25rem;
  border-radius: 50%; background: var(--violet); color: var(--cream); text-align: center;
  font-size: 1.1rem; line-height: 1.3; text-decoration: none;
  box-shadow: 0 .45rem 1.1rem rgba(34, 26, 46, .3); transition: background .25s var(--settle);
}
.ask:hover { background: var(--dusk); text-decoration: none; }
