*{box-sizing:border-box}body{margin:0;background:#f8f3e9;color:#222;font:16px system-ui}header,footer{background:#172131;color:#e9cb8b;padding:22px;text-align:center;letter-spacing:3px}main{max-width:1000px;margin:auto;padding:24px}h1,h2{font-family:Georgia;font-weight:normal}h1{text-align:center;font-size:clamp(30px,5vw,52px)}.intro{text-align:center}.layout{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:30px}section{background:white;padding:22px;border-radius:16px}label{display:block;margin:12px 0 5px}input,textarea,select,button{font:inherit;width:100%;padding:12px;border:1px solid #c8bda9;border-radius:8px}button{background:#172131;color:white;cursor:pointer;margin-top:12px}#invite{background:radial-gradient(ellipse at top,#843c4e,#350b19);color:#f5dca5;text-align:center;padding:25px;border-radius:12px;overflow-wrap:anywhere} .arch{border:4px double #d8b675;border-radius:160px 160px 12px 12px;padding:48px 14px 28px}#names{font:italic 38px Georgia;margin:20px 0}#portrait{width:120px;height:120px;object-fit:cover;border-radius:50%;border:2px solid #d8b675}#events{white-space:pre-wrap;line-height:1.8}a{color:inherit}small{display:block;line-height:1.5} @media(max-width:700px){.layout{grid-template-columns:1fr}main{padding:14px}} @media print{header,footer,.intro,#editor,#print{display:none}.layout{display:block}body{background:white}#invite{print-color-adjust:exact;-webkit-print-color-adjust:exact}}
[hidden]{display:none!important} button:focus-visible,a:focus-visible{outline:3px solid #b68b40;outline-offset:3px}#design-frame[data-style=modern]{border-radius:4px;border:1px solid currentColor;padding-top:30px}#design-frame[data-style=traditional]{border-radius:12px;border:6px double currentColor}#design-frame[data-style=devotional]{border-radius:50% 50% 15px 15px;border:3px double currentColor}#design-frame[data-style=cinematic]{border-radius:12px;border:1px solid currentColor;box-shadow:inset 0 0 30px #0005}#design-frame.play[data-opening=doors]{animation:doors 1s ease both}#design-frame.play[data-opening=flowers]{animation:floatin 1s ease both}#design-frame.play[data-opening=envelope]{animation:envelope 1s ease both}#design-frame.play[data-opening=fade]{animation:fade 1s ease both}@keyframes doors{from{clip-path:inset(0 50%)}to{clip-path:inset(0)}}@keyframes floatin{from{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:none}}@keyframes envelope{from{clip-path:inset(0 0 100% 0)}to{clip-path:inset(0)}}@keyframes fade{from{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){#design-frame.play{animation:none!important}}
.gallery-section{margin-top:32px;padding:24px;background:#fffdf8;border:1px solid #e4d8c1}.eyebrow{font-size:11px;letter-spacing:3px;color:#806132}.gallery-section h2{font-size:32px;margin:10px 0}.template-gallery{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.template-tile{margin:0;padding:8px;background:#fff;color:#392e24;border:1px solid #d8cbb6;display:flex;flex-direction:column;gap:10px;align-items:center;font-size:13px;min-width:0}.tile-art{width:100%;aspect-ratio:3/4;display:grid;place-items:center;background:radial-gradient(ellipse at top,var(--tone),var(--shade));color:#f5dca5;border:4px double #c7a66a;border-radius:48% 48% 4px 4px;font:36px Georgia}.template-tile[data-theme=ivory] .tile-art{color:#63451c}.template-tile[aria-pressed=true]{outline:3px solid #987039;outline-offset:2px}#gallery-status{font-size:14px;min-height:1.3em}.layout>section{min-width:0} @media(max-width:700px){.template-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}.gallery-section{padding:16px}}@media print{.gallery-section{display:none}}

.template-gallery{grid-template-columns:repeat(4,minmax(0,1fr))}@media(max-width:700px){.template-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}
.published-page{max-width:640px;margin:auto}.published-page #schedule{white-space:pre-wrap;line-height:1.8}.published-page #invite{min-height:480px}.published-page #names{overflow-wrap:anywhere}.published-page #map{display:inline-block;margin-top:12px}
