.gratitude-page { max-width: 44rem; padding-block: clamp(1.25rem, 4vw, 3.5rem); }
.gratitude-page h1 { margin-top: 1rem; }
.gratitude-page .lede { max-width: 54ch; margin-top: .65rem; }
#journal { margin-top: 1.6rem; padding: clamp(1.1rem, 4vw, 2rem); background: var(--sheet); border: 1px solid var(--rule); border-radius: .8rem; }
#journal label { font: 500 1.35rem/1.3 var(--display); }
#journal textarea { width: 100%; resize: vertical; }
#journal summary { width: fit-content; }
#journal details { margin: .4rem 0 1rem; }
#history { margin-top: 2rem; }
#history h2 { margin-bottom: .6rem; }
#moments li { padding: .9rem 1rem; border-top: 1px solid var(--rule); overflow-wrap: anywhere; }
#moments time { display: block; margin-bottom: .3rem; color: var(--muted); font-size: .87rem; }
#moments a, #moments p { white-space: pre-wrap; }
#moments p { margin-top: .35rem; }
.gratitude-intro {
  display: grid;
  grid-template: "title letter" auto "intro letter" auto / minmax(0, 1fr) clamp(6rem, 17vw, 9rem);
  align-items: center;
  column-gap: 1rem;
  margin-top: 1rem;
}
.gratitude-intro h1 { grid-area: title; align-self: end; margin: 0; }
.gratitude-intro .lede { grid-area: intro; align-self: start; }
.gratitude-letter {
  grid-area: letter;
  width: 100%;
  height: auto;
  mask-image: radial-gradient(ellipse closest-side, black 68%, transparent 104%);
}
.journal-feedback { display: flex; align-items: center; gap: .6rem; }
.journal-feedback:has([role=status]:not(:empty)) { margin-top: .85rem; }
.journal-feedback p { margin: 0; }
#journal-stamp { flex: none; }
@media (max-width: 30rem) {
  .gratitude-intro { grid-template-areas: "title title" "intro letter"; grid-template-columns: minmax(0, 1fr) 4.6rem; column-gap: .55rem; }
}
@media (prefers-reduced-motion: no-preference) {
  #journal-stamp:not([hidden]) { animation: place-stamp 280ms ease-out; }
  #journal-stamp:not([hidden]) .stamp-heart { stroke-dasharray: 1; animation: ink-heart 360ms 70ms ease-out both; }
}
@keyframes place-stamp {
  from { transform: translateY(-3px) rotate(-6deg) scale(1.1); }
  to { transform: none; }
}
@keyframes ink-heart { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.journal-storage { margin-top: .7rem; font-size: .88rem; }
#revisit { display: inline-block; margin: .25rem 0 .7rem; }
