.memorial-leaf {
  min-height: calc(100svh - 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-margin-top: 4rem;
  padding: clamp(5rem, 13vh, 10rem) var(--gutter) 1.2rem;
  border-top: 1px solid var(--faint);
}
.leaf-spread {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  column-gap: clamp(2.5rem, 8vw, 8rem);
  align-items: center;
  align-content: center;
  width: min(100%, 63rem);
  margin-inline: auto;
}
.leaf-song blockquote { margin: 0; }
.leaf-song blockquote p {
  font: 400 clamp(1.19rem, 1.85vw, 1.62rem)/1.55 "Beforeword Serif", Georgia, serif;
  letter-spacing: normal;
}
.leaf-song blockquote p span { display: block; }
.leaf-song figcaption {
  margin-top: 1.65rem;
  color: var(--muted);
  font: 400 .86rem/1.5 Golos, Arial, sans-serif;
}
.leaf-song cite { display: block; font-style: normal; }
.leaf-lettering { width: clamp(9.3rem, 15vw, 12.6rem); }
.leaf-lettering img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.leaf-lettering .leaf-reversed, .leaf-mirrored .leaf-forward { display: none; }
.leaf-mirrored .leaf-reversed { display: block; }
.leaf-gloss { margin-top: .75rem; color: var(--muted); font: .88rem/1.5 "Beforeword Serif", Georgia, serif; }
.leaf-toggle {
  display: inline-block;
  margin-top: 1.65rem;
  min-height: 2.75rem;
  padding: .5rem 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  font: .9rem/1.4 Golos, Arial, sans-serif;
  text-decoration: underline;
  text-underline-offset: .24em;
  cursor: pointer;
}
.leaf-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.leaf-toggle[hidden], .leaf-print-impression { display: none; }
.leaf-accessible { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.leaf-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  margin-top: clamp(3.5rem, 9vh, 7rem);
}
.leaf-domain {
  grid-column: 2;
  padding: .7rem .4rem;
  color: var(--muted);
  font-size: .8rem;
  text-decoration: none;
}
.leaf-domain:hover { text-decoration: underline; }
.leaf-onward { justify-self: end; padding-block: .7rem; color: var(--blue); font-size: .9rem; }
.end-links { display: flex; flex-wrap: wrap; gap: .65rem 1.7rem; }
.alphabet-leaf {
  position: relative;
  z-index: 5;
  height: 100vh;
  height: 100dvh;
  background: var(--paper) url("paper-stock.png") repeat 0 0 / 512px 512px;
}
.alphabet-leaf picture, .alphabet-leaf img { display: block; width: 100%; height: 100%; }
.alphabet-leaf img { object-fit: contain; }
.mast:focus-within { z-index: 6; }
.leaf-next { margin-top: 1.75rem; }
.leaf-next a { color: var(--blue); font-size: .94rem; }
@media (max-width: 45em) {
  .memorial-leaf { min-height: calc(100svh - 3.45rem); scroll-margin-top: 3.45rem; }
  .leaf-spread { grid-template-columns: 1fr; row-gap: 3.75rem; }
  .leaf-song blockquote p { font-size: clamp(1.06rem, 4.4vw, 1.35rem); }
  .leaf-inscription { justify-self: center; }
}
@media print {
  .memorial-leaf { break-before: page; break-inside: avoid; min-height: 0; border: 0; padding: 2rem 0; }
  .leaf-spread { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); }
  .leaf-next, .leaf-toggle, .leaf-onward { display: none; }
  .alphabet-leaf { height: 96vh; break-before: page; break-inside: avoid; }
  .leaf-lettering { width: 10rem; }
  .leaf-mirrored .leaf-forward, .leaf-print-impression .leaf-reversed { display: block; }
  .leaf-mirrored .leaf-reversed { display: none; }
  .leaf-print-impression { display: block; margin-top: 2.2rem; color: #65768e; }
}

main { overflow-wrap: anywhere; }
.leaf-lettering, .leaf-inscription { max-inline-size: 100%; }
.leaf-inscription { min-inline-size: 0; }
.cover-script, html:lang(en) .cover-script { max-width: calc(100% - 1.2em); }
@media (forced-colors: none) {
  .cover-transcript { max-width: 100%; overflow: hidden; }
}
@media (max-width: 45em) {
  .leaf-spread { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 18em) {
  .leaf-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: .5em 1.25em; }
  .ink-controls { flex-wrap: wrap; gap: 0 .5em; }
  .birth-record { grid-template-columns: minmax(0, 1fr); }
}
