/* ─── LETTER ─────────────────────────────────────── */
.letter {
  position: absolute;
  width: 640px;
  height: 454px;
  top: 0;
  left: 0;
  opacity: 1;
  z-index: 2;
  background: linear-gradient(148deg, var(--navy-700) 0%, var(--navy-700) 65%, var(--navy-900) 100%);
  border-radius: 2px;
  box-shadow:
    0 12px 40px color-mix(in srgb, var(--black) 65%, transparent),
    0 4px 12px color-mix(in srgb, var(--black) 40%, transparent),
    inset 0 0 0 1px color-mix(in srgb, var(--amber-600) 10%, transparent);
}

.letter-frame {
  position: absolute;
  inset: 18px;
  border: 1px solid color-mix(in srgb, var(--amber-600) 22%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.letter-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* Corner marks */
.letter-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: color-mix(in srgb, var(--amber-600) 35%, transparent);
  border-style: solid;
}
.letter-corner.tl { top: -1px;  left: -1px;  border-width: 1px 0 0 1px; }
.letter-corner.tr { top: -1px;  right: -1px; border-width: 1px 1px 0 0; }
.letter-corner.bl { bottom: -1px; left: -1px;  border-width: 0 0 1px 1px; }
.letter-corner.br { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

.letter-logo-mark {
  width: 38px;
  height: 38px;
  opacity: 0.65;
}

.letter-title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  color: color-mix(in srgb, var(--cream-400) 82%, transparent);
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1;
}

.letter-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.38;
}
.letter-rule-line {
  width: 54px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber-600));
}
.letter-rule-line:last-child { transform: scaleX(-1); }
.letter-rule-diamond {
  width: 4px;
  height: 4px;
  background: var(--amber-600);
  transform: rotate(45deg);
}

.letter-sub {
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--amber-600) 45%, transparent);
  text-align: center;
}

/* ─── LETTER INNER STRUCTURE ────────────────────── */
.letter-preview {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.invitation-content {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--navy-900);
  font-family: 'Playfair Display', serif;
  color: var(--cream-300);
  -webkit-overflow-scrolling: touch;
}
