dialog[data-type="blessings"] {
  width: min(1080px, calc(100% - 32px));
  overflow: hidden;
}

.blessings {
  width: min(100%, 980px);
  max-height: calc(100svh - 150px);
  margin-inline: auto;
  padding: 2px 12px 12px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #e6cda377 transparent;
  scrollbar-gutter: stable;
  color: var(--floating-ink, #fff5df);
  font-family: var(--story, "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif);
  font-weight: 400;
  text-shadow: var(--floating-shadow, 0 2px 4px #21160ff0, 0 0 18px #21160fb0);
}

.blessings,
.blessings-title,
.blessings-columns,
.blessings-family,
.blessings-letter,
.blessings-salutation,
.blessings-body,
.blessings-paragraph,
.blessings-signature {
  box-sizing: border-box;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.blessings:focus { outline: none; }
.blessings:focus-visible .blessings-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; }
.blessings-title {
  margin: 0 0 34px;
  color: inherit;
  font: inherit;
  font-size: clamp(24px, 3.5vw, 30px);
  line-height: 1.6;
  letter-spacing: .13em;
  text-align: left;
}
.blessings-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(30px, 4.5vw, 66px);
  align-items: start;
}
.blessings-family { display: grid; gap: 54px; padding-top: 4px; }
.blessings-letter { min-width: 0; margin: 0; }
.blessings-salutation {
  margin: 0 0 22px;
  color: inherit;
  font: inherit;
  font-size: 19px;
  line-height: 1.9;
  letter-spacing: .045em;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.blessings-body {
  color: inherit;
  font-size: 16px;
  line-height: 2.1;
  letter-spacing: .025em;
}
.blessings-paragraph {
  margin: 0 0 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.blessings-paragraph:last-child { margin-bottom: 0; }
.blessings-family .blessings-body { font-size: 18px; line-height: 2.15; }
.blessings-signature {
  margin: 25px 0 0;
  color: var(--floating-muted, #eee0ca);
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: .04em;
  text-align: right;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 700px) {
  .blessings { max-height: calc(100svh - 136px); padding-inline: 4px 9px; }
  .blessings-title { margin-bottom: 27px; font-size: 25px; }
  .blessings-columns { grid-template-columns: minmax(0, 1fr); gap: 45px; }
  .blessings-family { padding-top: 0; gap: 42px; }
  .blessings-salutation { margin-bottom: 19px; font-size: 18px; }
  .blessings-body { font-size: 15px; line-height: 2.15; }
  .blessings-family .blessings-body { font-size: 17px; }
  .blessings-signature { margin-top: 21px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .blessings { scroll-behavior: auto; }
}
