html body .stationery-paper{position:relative;isolation:isolate;background-color:var(--invite-paper)!important;background-image:var(--stationery-art)!important;background-size:100% 100%!important;background-position:center!important;background-repeat:no-repeat!important;color:var(--invite-ink)!important;border:6px solid var(--inv-border,transparent)!important;padding:clamp(30px,8%,58px) clamp(26px,11%,66px)!important;min-height:480px;overflow-wrap:anywhere;box-sizing:border-box;text-align:center}
html body .stationery-paper .stationery-reading{position:relative;color:var(--invite-ink)!important;min-width:0}
html body .stationery-paper :is(h2,p,dd,dt,small,span){color:var(--invite-ink)!important;-webkit-text-fill-color:var(--invite-ink)!important;text-shadow:none!important}
html body .stationery-paper h2{font-family:var(--invitation-font,Georgia)!important;font-size:clamp(26px,4vw,40px)!important;font-weight:750!important;line-height:1.18!important;margin:18px 0!important;overflow-wrap:anywhere}
html body .stationery-paper .invitation-personal{font-family:var(--invitation-font,Georgia)!important;font-size:18px!important;line-height:1.6!important;white-space:pre-wrap!important}
html body .stationery-paper dl{margin:22px 0!important;padding:18px 0!important;gap:16px!important}
html body .stationery-paper dd{font-size:17px!important;line-height:1.5!important;font-weight:650!important}
html body .stationery-paper .invitation-eyebrow{font-size:12px!important;letter-spacing:.14em}
html body .stationery-paper .stationery-photo{position:relative;display:block;width:100%;height:auto;max-height:280px;object-fit:contain;margin:0 auto 24px;border-radius:3px;box-shadow:0 3px 12px #0002}
html body .theme-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
html body .theme-choice{position:relative;min-width:0;display:grid;grid-template-rows:145px auto;gap:0;padding:0!important;border:2px solid #607252!important;border-radius:10px;overflow:hidden;background:#142238!important;color:#fff!important;text-align:center}
html body .theme-choice .theme-art{width:100%;height:145px;object-fit:cover;object-position:center;display:block;opacity:1}
html body .theme-choice strong{font-size:16px!important;padding:10px 30px 10px 8px;color:#fff!important}
html body .theme-choice input{position:absolute;bottom:13px;right:10px;margin:0;accent-color:#c5d789;width:18px;height:18px}
html body .theme-choice:has(input:checked){border:3px solid #c5d789!important;box-shadow:0 0 0 2px #f3e0a866}
html body .theme-choice:has(input:checked) strong{background:#c5d789!important;color:#000!important}
.invitation-category-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.stationery-help{font-size:14px;line-height:1.5}.thank-photo-settings{margin:14px 0}.thank-photo-settings img{display:block;max-width:180px;max-height:140px;object-fit:contain;margin:10px 0}.thank-steps{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.thank-steps span{background:#c5d789;color:#000;border-radius:6px;padding:7px 10px;font-size:15px}
@media(max-width:560px){html body .stationery-paper{padding:36px 27px!important;min-height:420px}html body .stationery-paper h2{font-size:28px!important}html body .stationery-paper .invitation-personal{font-size:17px!important}html body .theme-choice{grid-template-rows:130px auto}html body .theme-choice .theme-art{height:130px}.invitation-category-row{grid-template-columns:1fr}}
@media print{html body .stationery-paper{print-color-adjust:exact;-webkit-print-color-adjust:exact;box-shadow:none!important;break-inside:avoid}}

/* Fixed-width illustrated edges keep decoration clear of long messages. */
html body .stationery-paper{background-image:none!important;padding:100px 58px 110px!important}
html body .stationery-paper::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;border-style:solid;border-color:transparent;border-width:90px 46px 100px;border-image-source:var(--stationery-art);border-image-slice:22% fill;border-image-repeat:stretch;border-image-width:90px 46px 100px}
@media(max-width:560px){html body .stationery-paper{padding:80px 40px 90px!important}html body .stationery-paper::before{border-width:72px 30px 80px;border-image-width:72px 30px 80px}}

html body dialog.invitation-reveal .stationery-paper{padding:66px 46px 74px!important;min-height:360px}
html body dialog.invitation-reveal .stationery-paper::before{border-width:58px 36px 64px;border-image-width:58px 36px 64px}
html body dialog.invitation-reveal .stationery-paper .stationery-photo{max-height:210px;margin-bottom:16px}
@media(max-width:700px){
 html body dialog.invitation-reveal .stationery-paper{padding:54px 27px 60px!important;min-height:320px}
 html body dialog.invitation-reveal .stationery-paper::before{border-width:48px 20px 52px;border-image-width:48px 20px 52px}
 html body dialog.invitation-reveal .stationery-paper h2{font-size:24px!important;line-height:1.2!important;margin:12px 0!important}
 html body dialog.invitation-reveal .stationery-paper .invitation-personal{font-size:16px!important;line-height:1.5!important;margin:12px 0!important}
 html body dialog.invitation-reveal .stationery-paper dd{font-size:16px!important;line-height:1.4!important}
 html body dialog.invitation-reveal .stationery-paper dl{margin:15px 0!important;padding:12px 0!important;gap:12px!important}
 html body dialog.invitation-reveal .stationery-paper .stationery-photo{max-height:150px;margin-bottom:14px}
 html body dialog.invitation-reveal .stationery-paper .invitation-eyebrow{font-size:11px!important;letter-spacing:.09em}
}
html body .guest-page>.stationery-paper{width:min(680px,100%);margin:16px auto}

/* Ten compositions, with editable text kept clear of their occasion artwork. */
html body .stationery-paper.template-paper{min-height:800px!important;padding:var(--template-top) 58px var(--template-bottom)!important}
html body .stationery-paper.template-paper::before{border-width:var(--template-top) 25px var(--template-bottom);border-image-width:var(--template-top) 25px var(--template-bottom);border-image-slice:var(--template-top-slice) 4.1667% var(--template-bottom-slice) fill}
html body .stationery-paper.template-paper h2{font-size:34px!important}
html body .stationery-paper.template-paper .invitation-personal{font-size:19px!important}
html body .stationery-paper.template-paper :is(dt,.invitation-eyebrow){font-weight:750!important}
html body .stationery-paper.template-paper .stationery-photo{max-height:250px;object-fit:contain}
html body .stationery-paper.template-deco,html body .stationery-paper.template-starlight{--invite-ink:#fff6df}
html body dialog.invitation-reveal .stationery-paper.template-paper{min-height:800px!important;padding:var(--template-top) 44px var(--template-bottom)!important}
@media(max-width:700px){html body .guest-page>.template-paper,html body dialog.invitation-reveal .stationery-paper.template-paper{min-height:560px!important;padding:calc(var(--template-top)*.65) 25px calc(var(--template-bottom)*.65)!important}html body dialog.invitation-reveal .stationery-paper.template-paper::before,html body .guest-page>.template-paper::before{border-image-width:calc(var(--template-top)*.65) 18px calc(var(--template-bottom)*.65)}html body dialog.invitation-reveal .stationery-paper.template-paper h2,html body .guest-page>.template-paper h2{font-size:26px!important}html body dialog.invitation-reveal .stationery-paper.template-paper .invitation-personal,html body .guest-page>.template-paper .invitation-personal{font-size:17px!important}}

/* The signature Letterpress sample has engraved foil laid over warm laid paper. */
html body .stationery-paper.stationery-showcase {
  border: 0 !important;
  background-color: #faf0da !important;
  box-shadow: inset 0 0 0 1px #a7874c, inset 0 0 20px #ac854724, 0 3px 12px #17100638;
}
html body .stationery-paper.stationery-showcase::before {
  opacity: .29;
}
.stationery-gold-frame {
  --foil-corner: clamp(44px, 13vw, 78px);
  position: absolute;
  inset: 3px;
  pointer-events: none;
  border: var(--foil-corner) solid transparent;
  border-image: url('/assets/engraved-gold-frame.svg') 86 / var(--foil-corner) / 0 stretch;
}
.stationery-gold-frame > svg {
  position: absolute;
  left: 50%;
  width: clamp(58px, 17%, 86px);
  height: 16px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, #faf0da 38%, #faf0daee 60%, transparent 76%);
  overflow: visible;
}
.stationery-gold-frame > svg:first-child { top: calc(3px - var(--foil-corner)); }
.stationery-gold-frame > svg:last-child { bottom: calc(3px - var(--foil-corner)); transform: translateX(-50%) rotate(180deg); }
