/* ——— Welcome / Hi Couples ——— */
/* Paper ornament: intrinsic image ratio (702×1243) via <img>; scales from --layout-ref-w (798px). */

.welcome {
  position: relative;
  container-type: inline-size;
}

.welcome__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--asset-welcome-bg) center / cover no-repeat;
}

.welcome__inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding:
    calc(51 * 100cqw / var(--layout-ref-w))
    calc(32 * 100cqw / var(--layout-ref-w))
    calc(60 * 100cqw / var(--layout-ref-w));
}

.welcome-note {
  position: relative;
  width: 92cqw;
  container-type: inline-size;
}

.welcome-note__paper {
  display: block;
  width: 100%;
  height: auto;
}

.welcome-note__body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding:
    calc(52 * 100cqw / var(--welcome-paper-ref-w))
    calc(50 * 100cqw / var(--welcome-paper-ref-w))
    calc(60 * 100cqw / var(--welcome-paper-ref-w));
  box-sizing: border-box;
}

.welcome-note__title {
  flex-shrink: 0;
  margin:
    0
    0
    calc(20 * 100cqw / var(--welcome-paper-ref-w))
    calc(24 * 100cqw / var(--welcome-paper-ref-w));
  font-family: var(--font-serif);
  font-size: calc(33.5 * 100cqw / var(--welcome-paper-ref-w));
  font-weight: 400;
  font-style: normal;
  line-height: 1.1;
  color: var(--color-ink);
}

.welcome-note__title em {
  font-style: italic;
}

.welcome-note__content {
  flex: 0 0 auto;
  font-family: var(--font-sans);
  font-size: calc(17.5 * 100cqw / var(--welcome-paper-ref-w));
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-ink);
}

.welcome-note__content p {
  margin: 0 0 calc(9 * 100cqw / var(--welcome-paper-ref-w));
}

.welcome-note__content > p:last-child,
.welcome-note__italics p:last-child {
  margin-bottom: 0;
}

.welcome-note__italics {
  font-style: italic;
}

.welcome-note__italics p {
  margin: 0 0 calc(9 * 100cqw / var(--welcome-paper-ref-w));
}

.welcome-note__cheer {
  margin:
    calc(2.4 * 100cqw / var(--welcome-paper-ref-w))
    0
    calc(3.2 * 100cqw / var(--welcome-paper-ref-w)) !important;
  font-family: var(--font-serif);
  font-size: calc(17.6 * 100cqw / var(--welcome-paper-ref-w));
  font-weight: 700;
  font-style: italic;
  line-height: 1.3;
}

.welcome-kw {
  font-family: var(--font-sans-bold-italic);
  font-weight: 400;
  font-style: normal;
}

.welcome-kw-colon {
  font-family: var(--font-sans-bold-italic);
  font-weight: 400;
  font-style: normal;
}

.welcome-note__sign {
  flex-shrink: 0;
  margin-top: calc(8 * 100cqw / var(--welcome-paper-ref-w));
  padding-top: 0;
  text-align: right;
}

.welcome-note__with-love {
  margin: 0 0 calc(2.4 * 100cqw / var(--welcome-paper-ref-w));
  font-family: var(--font-script);
  font-size: calc(26.4 * 100cqw / var(--welcome-paper-ref-w));
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-ink);
}

.welcome-note__sign-name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: calc(14.4 * 100cqw / var(--welcome-paper-ref-w));
  font-weight: 400;
  line-height: 1.35;
  color: var(--color-ink);
}

@media (min-width: 540px) {
  .welcome-note {
    width: min(calc(496 * 100cqw / var(--layout-ref-w)), 92cqw);
  }
}
