
:root{
  --paper:#F2EEE7;--ink:#2B2825;--red:#B42A30;--muted:#7D766E;
  --grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='.32' intercept='.76'/%3E%3CfeFuncG type='linear' slope='.32' intercept='.76'/%3E%3CfeFuncB type='linear' slope='.32' intercept='.76'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  --mottle:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.007' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='.45' intercept='.7'/%3E%3CfeFuncG type='linear' slope='.45' intercept='.7'/%3E%3CfeFuncB type='linear' slope='.45' intercept='.7'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='520' height='520' filter='url(%23n)'/%3E%3C/svg%3E");
  /* Panel de los novios y música (demo/shared/panel.css) */
  --p-bg:var(--paper);--p-surface:#FDFBF7;--p-ink:var(--ink);--p-muted:var(--muted);--p-line:#2B282533;--p-accent:var(--red);--p-on-accent:#FBF7F1;
  --p-serif:Forum,Georgia,serif;--p-sans:'Courier Prime',monospace;--m-bg:var(--red);--m-fg:#FBF7F1;--m-border:#2B282555
}
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none !important}
html{-webkit-text-size-adjust:100%}
body.locked{overflow:hidden}
h1,h2,h3,p,blockquote{margin:0}
img{display:block;max-width:100%}
a{color:inherit}
button{font-family:inherit}
details summary{list-style:none;cursor:pointer}
details summary::-webkit-details-marker{display:none}
.ph-img{width:100%;height:100%;object-fit:cover}
/* La invitación es una columna (como en el teléfono); en pantallas grandes queda centrada. */
main{position:relative;max-width:480px;margin:0 auto;overflow:hidden}
.opening{position:fixed;inset:0;z-index:60;overflow:hidden;transition:opacity .8s,visibility 0s .8s}
.opening.gone{opacity:0;visibility:hidden;pointer-events:none}
.mbar{position:fixed;z-index:50;left:max(10px,calc(50% - 230px));right:max(10px,calc(50% - 230px));top:10px;height:48px;padding:0 20px;border-radius:999px;display:flex;align-items:center;justify-content:space-between;opacity:0;transform:translateY(-70px);transition:opacity .5s,transform .6s cubic-bezier(.22,1,.36,1);pointer-events:none}
.mbar.show{opacity:1;transform:none}
body{margin:0;font-family:'Courier Prime',monospace;color:var(--ink);background:var(--paper)}
a:focus-visible,button:focus-visible,summary:focus-visible,textarea:focus-visible{outline:2px solid var(--red);outline-offset:3px}
/* Marcos dibujados a la medida del contenido (se rehacen si el texto crece) */
[data-frame]{position:relative;isolation:isolate}
.fr{position:absolute;inset:0;width:100%;height:100%;overflow:visible;z-index:-1;pointer-events:none}

/* Aparecer, crecer, dibujar y escribir al llegar a la pantalla */
[data-rv]{opacity:0;transform:translateY(26px);transition:opacity .9s ease,transform 1s cubic-bezier(.22,1,.36,1)}
[data-rv=left]{transform:translateX(-60px) rotate(-8deg)}
[data-rv=right]{transform:translateX(60px) rotate(8deg)}
[data-rv=stamp]{transform:scale(2.2) rotate(-25deg);transition:opacity .25s,transform .5s cubic-bezier(.5,1.7,.6,1)}
[data-rv].in{opacity:1;transform:none}
.grow .st{stroke-dasharray:1;stroke-dashoffset:1}
.grow .lf,.grow .bl{transform:scale(0);transform-box:fill-box}
.grow .lf{transform-origin:0% 50%}
.grow .bl{transform-origin:50% 50%}
.grow.in .st{animation:gDraw var(--t,1.3s) var(--d,0s) ease-out forwards}
.grow.in .lf{animation:gPop .8s var(--d,0s) cubic-bezier(.3,1.6,.5,1) forwards}
.grow.in .bl{animation:gBloom 1.2s var(--d,0s) cubic-bezier(.3,1.45,.5,1) forwards}
@keyframes gDraw{to{stroke-dashoffset:0}}
@keyframes gPop{to{transform:scale(1)}}
@keyframes gBloom{0%{transform:scale(0) rotate(-70deg)}100%{transform:scale(1) rotate(0)}}
.draw path{stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset 2s cubic-bezier(.5,0,.3,1)}
.draw.in path,.in>.fr.draw path{stroke-dashoffset:0}
.write{display:inline-block;clip-path:inset(-20% 100% -30% -5%);transition:clip-path 2s cubic-bezier(.6,.1,.4,1)}
.write.in{clip-path:inset(-20% -10% -30% -5%)}
.typer i{font-style:normal;opacity:0;transition:opacity .05s calc(var(--i) * 24ms + .5s)}
.typer.in i{opacity:1}

.paper{background-color:var(--paper);background-image:var(--grain);background-blend-mode:multiply}
.ms{font-family:'Mrs Saint Delafield',cursive;font-weight:400;color:var(--red);letter-spacing:0;text-transform:none}
.fm{font-family:Forum,serif;font-weight:400}
.cap{font:400 12px/1.6 Forum,serif;letter-spacing:.26em;text-transform:uppercase}
.bw{overflow:hidden;background:#ccc}
.bw img{filter:grayscale(1) contrast(1.07)}
.sec{position:relative;padding:58px 24px;text-align:center;overflow:hidden}
:where(.sec) p{font-size:12.5px;line-height:1.8}
.sec h2{font:400 21px/1.35 Forum,serif;letter-spacing:.2em;text-transform:uppercase;margin:2px 0 14px}
.hand{display:block;font:400 50px/1 'Mrs Saint Delafield',cursive;color:var(--red)}
.btn{text-decoration:none;display:inline-flex;align-items:center;gap:8px;padding:13px 22px;border:0;border-radius:2px;background:var(--red);color:#FBF7F1;font:700 11px 'Courier Prime',monospace;letter-spacing:.16em;text-transform:uppercase;cursor:pointer;box-shadow:3px 3px 0 #2B282526}
.loop{position:absolute;left:-10%;right:-10%;white-space:nowrap;font:400 58px/1 'Mrs Saint Delafield',cursive;color:var(--red);pointer-events:none}
.loop span{display:inline-block;animation:marq var(--du,22s) linear infinite}
.loop.rev span{animation-direction:reverse}
/* apertura: marcar la fecha en el calendario */
.opening{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:24px 22px;text-align:center}
.opening>.loop{opacity:.85}
.oname{font:400 40px/1.1 Forum,serif;letter-spacing:.12em}
.oname .ms{font-size:60px;margin:0 2px}
.cal{position:relative;display:grid;grid-template-columns:repeat(3,1fr);border-top:1.5px solid var(--ink);border-bottom:1.5px solid var(--ink);width:100%}
.cal>div{position:relative;padding:0 0 10px}
.cal>div+div{border-left:1.5px solid var(--ink)}
.cal .wd{font:400 11px/1 Forum,serif;letter-spacing:.14em;text-transform:uppercase;padding:9px 0 7px;border-bottom:1.5px solid var(--ink);margin-bottom:6px}
.cal .mo{font-size:10px;color:var(--muted)}
.cal .dn{font:400 64px/1 Forum,serif}
.ring{position:absolute;left:50%;top:76px;width:116px;height:126px;translate:-50% -50%;overflow:visible;pointer-events:none;color:var(--red)}
.ring path{transition-duration:1.3s}
.ocal{cursor:pointer;background:#FBF8F3;box-shadow:0 14px 26px -18px #0006}
.ocal>div:nth-child(2) .dn{animation:ttTap 1.6s ease-in-out infinite}
@keyframes ttTap{50%{transform:scale(1.08);color:var(--red)}}
.circled>div:nth-child(2) .dn{animation:none;color:var(--ink)}
.circled .ring path{stroke-dashoffset:0}
.opening .after{opacity:0;transform:translateY(12px);transition:opacity .8s 1.1s,transform .8s 1.1s;pointer-events:none}
.open .after{opacity:1;transform:none;pointer-events:auto}
.opening .save{font:400 52px/1.1 'Mrs Saint Delafield',cursive;color:var(--red);margin-bottom:6px}
.hint{font:italic 13px 'Courier Prime',monospace;color:var(--muted)}
/* portada */
.hero{position:relative;padding:56px 24px 46px;text-align:center;overflow:hidden}
.loops{position:relative;height:330px;margin:14px -24px 16px}
.loops .loop{rotate:-7deg}
.loops .ph{position:absolute;z-index:1;left:50%;top:34px;width:178px;height:236px;margin-left:-89px;rotate:-3deg;box-shadow:0 18px 26px -14px #0008}
.loops .front{z-index:2;opacity:.95}
.hero h1{font:400 42px/1.1 Forum,serif;letter-spacing:.12em;margin-top:6px}
.hero h1 .ms{font-size:62px;margin:0 2px}
/* carta en sobre rojo */
.renv{position:relative;width:282px;height:270px;margin:56px auto 0;rotate:-4deg;filter:drop-shadow(0 18px 18px #0003)}
.renv>div{position:absolute;left:0;right:0}
.rback{bottom:0;height:172px;background:color-mix(in srgb,var(--red),#000 24%);box-shadow:inset 0 16px 18px -10px #0007}
.rflap{bottom:172px;height:96px;clip-path:polygon(0 100%,50% 0,100% 100%);background-color:color-mix(in srgb,var(--red),#000 12%);background-image:var(--grain);background-blend-mode:multiply}
/* forro del sobre: papel crema con rayita fina del color de la tinta */
.rflap::after{content:"";position:absolute;inset:9px 15px 0;clip-path:polygon(0 100%,50% 0,100% 100%);background:repeating-linear-gradient(135deg,transparent 0 5px,color-mix(in srgb,var(--red),transparent 80%) 5px 6px),linear-gradient(180deg,#F6F0E6,#EDE4D6);box-shadow:inset 0 -8px 10px -6px #0003}
.letter{top:56px;left:32px!important;right:32px!important;height:186px;padding:16px 16px;text-align:left;background-color:#FDFBF7;background-image:var(--grain),linear-gradient(180deg,transparent 64%,#0000000f 64.3%,#ffffffcc 65%,transparent 66.5%),linear-gradient(160deg,#ffffff,transparent 50%,#0000000a);background-blend-mode:multiply,normal,normal;box-shadow:0 2px 3px #0002,0 8px 14px -6px #0004;font-size:11.5px;line-height:1.65;transform:translateY(24px);transition:transform 1.4s cubic-bezier(.4,0,.2,1) .3s}
.renv.in .letter{transform:translateY(-62px)}
.rpocket{bottom:0;height:172px;clip-path:polygon(0 0,50% 46%,100% 0,100% 100%,0 100%);background-color:var(--red);background-image:var(--grain),linear-gradient(180deg,#00000022,transparent 40%);background-blend-mode:multiply,normal}
.rpocket .ms{position:absolute;left:12px;bottom:18px;color:#F8E9E4;font-size:34px;text-shadow:0 1px 0 #0003}
.letter .lt{font-size:8.5px;line-height:1.5;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);border-bottom:1px solid #2B28251f;padding-bottom:6px;margin-bottom:10px}
.letter .lt b{color:var(--red);font-weight:700}
.letter .sig{display:block;text-align:right;font:400 34px/1 'Mrs Saint Delafield',cursive;color:var(--red);margin:4px 6px 0 0}
/* sello postal con borde perforado y matasellos */
.stamp{position:absolute;right:18px;bottom:18px;width:56px;height:68px;padding:5px;background:#FBF8F2;rotate:5deg;-webkit-mask:radial-gradient(circle,#0000 2.2px,#000 2.7px) -4px -4px/8px 8px,linear-gradient(#000 0 0) content-box;mask:radial-gradient(circle,#0000 2.2px,#000 2.7px) -4px -4px/8px 8px,linear-gradient(#000 0 0) content-box}
.stamp .pic{position:relative;width:100%;height:100%;outline:1px solid #2B282533;outline-offset:-1px}
.stamp .pic b{position:absolute;right:3px;top:1px;font:400 13px Forum,serif;color:#fff;text-shadow:0 1px 2px #000a}
.pmark{position:absolute;right:30px;bottom:30px;width:130px;height:60px;color:var(--ink);opacity:.6;mix-blend-mode:multiply;rotate:-8deg;pointer-events:none}
/* fecha y cuenta regresiva */
.tcd{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:22px}
.tcd>div{border:1.5px solid var(--ink);padding:12px 0 8px;background:#FBF8F3}
.tcd>div:nth-child(odd){rotate:-1.5deg}.tcd>div:nth-child(even){rotate:1.2deg}
.tcd b{display:block;font:400 32px/1 Forum,serif;font-variant-numeric:tabular-nums}
.tcd span{font-size:9px;letter-spacing:.16em;text-transform:uppercase}
.wave{display:block;width:calc(100% + 48px);height:46px;margin:34px -24px -20px;color:var(--red);overflow:visible}
/* historia */
.prints{display:flex;justify-content:center;margin-top:30px}
.print{position:relative;width:106px;padding:6px;background:#FDFBF7;box-shadow:0 12px 18px -10px #0007}
.print .pic{aspect-ratio:3/4}
.print:nth-child(1){rotate:-6deg;margin-top:22px;margin-right:-12px}
.print:nth-child(2){rotate:4deg;z-index:1}
.print:nth-child(3){rotate:-2deg;margin-top:44px;margin-left:-12px}
.tape{position:absolute;z-index:1;top:-10px;left:50%;width:58px;height:20px;margin-left:-29px;background:#E7DCC4b8;rotate:-5deg;clip-path:polygon(3% 0,97% 0,100% 20%,97% 40%,100% 60%,97% 80%,100% 100%,3% 100%,0 80%,3% 60%,0 40%,3% 20%)}
/* programa */
.evs{text-align:left;margin-top:16px}
.evr{display:grid;grid-template-columns:52px 1fr;gap:10px;padding:16px 0}
.evr .no{font:400 60px/.8 'Mrs Saint Delafield',cursive;color:var(--red);text-align:center}
.evr h3{font:400 17px Forum,serif;letter-spacing:.14em;text-transform:uppercase}
.evr .tm{font-weight:700}
.evr a,.clip a.lk{display:inline-block;margin-top:4px;font-size:11px;color:var(--red);text-decoration:underline wavy;text-underline-offset:4px}
.mini{display:block;width:100%;height:16px;color:var(--red);opacity:.7}
.bub{padding:26px 22px 24px;margin-top:30px}
.bub h3{font:400 20px Forum,serif;letter-spacing:.16em;text-transform:uppercase;margin:4px 0 6px}
.swatch{display:flex;justify-content:center;gap:12px;margin-top:12px}
.swatch i{width:32px;height:32px;border-radius:46% 54% 50% 50%/54% 46% 54% 46%;border:1.3px solid var(--ink)}
/* viaje: tarjetas con clip */
.clip{position:relative;padding:28px 20px 22px;margin-top:26px;background:#FDFBF7;box-shadow:0 12px 18px -12px #0006,0 0 0 1px #0000000a;text-align:left}
.clip:nth-child(odd){rotate:-1deg}.clip:nth-child(even){rotate:1.2deg}
.clip .pc{position:absolute;top:-17px;left:22px;width:18px;height:46px;color:#8E8A84}
.clip .tag{font:400 40px/1 'Mrs Saint Delafield',cursive;color:var(--red)}
.clip h3{font:400 16px Forum,serif;letter-spacing:.16em;text-transform:uppercase;margin:2px 0 8px}
:where(.clip p){font-size:12px}
/* ¡salud!, deseos y respuesta */
.cheers{position:relative;height:310px;margin:0 -24px 12px}
.cheers .loop{rotate:-6deg}
.cheers .ph{position:absolute;z-index:1;left:50%;top:40px;width:160px;height:210px;margin-left:-80px;rotate:4deg;box-shadow:0 18px 26px -14px #0008}
blockquote{margin:0 0 8px;font:400 20px/1.45 Forum,serif}
.wish{position:relative;width:88%;padding:20px 20px 18px;margin-top:22px;text-align:left}
.wish:nth-child(odd){margin-right:auto}.wish:nth-child(even){margin-left:auto}
.wish h3{font:700 12.5px/1.5 'Courier Prime',monospace;margin-bottom:4px}
.wish p{font-size:12px!important}
.person{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:12px 0;border-bottom:1px dashed #2B282544;text-align:left}
.person span{font:400 15px Forum,serif;letter-spacing:.04em}
.person div{display:flex;gap:6px;flex:none}
.person button{white-space:nowrap}
.person button{padding:6px 10px;border:1.3px solid var(--ink);border-radius:46% 54% 50% 50%/60% 40% 60% 40%;background:none;font:700 10px 'Courier Prime',monospace;text-transform:uppercase;letter-spacing:.06em;cursor:pointer;color:var(--ink)}
.person button[aria-pressed=true]{background:var(--red);border-color:var(--red);color:#fff}
label{display:block;margin-top:16px;font:700 10px 'Courier Prime',monospace;letter-spacing:.14em;text-transform:uppercase;text-align:left}
textarea{width:100%;margin-top:6px;border:0;border-bottom:1.2px solid var(--ink);background:repeating-linear-gradient(transparent 0 25px,#2B282522 25px 26px);font:400 13px/26px 'Courier Prime',monospace;color:var(--ink);resize:none;padding:0}
footer{position:relative;padding:44px 24px 54px;text-align:center}
.fph{width:220px;height:290px;margin:0 auto;rotate:-2deg;box-shadow:0 18px 26px -14px #0007}
.with{position:relative;z-index:1;margin-top:-48px}
.with b{display:block;font:400 68px/1 Forum,serif;letter-spacing:.06em;text-shadow:0 0 18px var(--paper)}
.with .ms{display:block;font-size:86px;line-height:.4;margin:-6px 0 18px 70px}


.mbar{background:#F2EEE7ee;border:1.5px solid var(--ink);border-radius:2px}
.loops .ph img{position:relative;height:124%;top:-12%}
/* Página completa */
footer{padding-bottom:110px !important}
.lz-content .swatch{display:none}
.rs-err{margin-top:14px;font-size:12px;color:var(--red)}
.evs>.evw:first-of-type .mini{display:none}
.cal .wd,.cal .mo{white-space:nowrap}
.lz-editor [data-rv]{opacity:1;transform:none}
.lz-editor .grow .st,.lz-editor .draw path{stroke-dashoffset:0}.lz-editor .grow .lf,.lz-editor .grow .bl{transform:none;animation:none}.lz-editor .write{clip-path:none}.lz-editor .typer i{opacity:1}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none !important;transition:none !important}[data-rv]{opacity:1;transform:none}.grow .st,.draw path{stroke-dashoffset:0}.grow .lf,.grow .bl{transform:none}.write{clip-path:none}.typer i{opacity:1}}

/* ---------- Computador: una sola columna, más ancha y con todo más grande ---------- */
@media (min-width:900px){
  main{max-width:760px}
  .mbar{left:max(10px,calc(50% - 370px));right:max(10px,calc(50% - 370px))}
  .hero{padding:80px 40px 70px}
  .hero .loops{height:470px;margin:20px -40px 24px;-webkit-mask:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent);mask:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent)}
  .hero .loops .loop{font-size:76px}
  .hero .loops .loop:nth-child(1){top:10px}.hero .loops .loop:nth-child(2){top:125px}.hero .loops .loop:nth-child(3){top:240px}.hero .loops .loop:nth-child(4){top:355px}
  .hero .loops .ph{width:280px;height:370px;margin-left:-140px;top:44px}
  .hero .cap{font-size:14px}
  .hero h1{font-size:68px}
  .hero h1 .ms{font-size:100px}
  .flow{max-width:620px;margin:0 auto}
  .sec{padding:70px 40px}
  .sec p{font-size:14px}
  .sec h2{font-size:26px}
  .renv{scale:1.18;margin-top:90px;margin-bottom:40px}
  .cal .dn{font-size:78px}
  .prints .print{width:140px}
  .cheers{height:380px}
  .cheers .ph{width:210px;height:270px;margin-left:-105px}
  footer .fph{width:300px;height:400px}
  footer .with b{font-size:84px}
  footer .with .ms{font-size:110px}
}


/* Tinta · a personal letter, edited as a photographic journal. */
html{overflow-x:clip}
main{max-width:1040px;overflow:clip}
.flow{max-width:880px;margin-inline:auto}
.sec{padding:clamp(56px,7vw,90px) 28px;overflow:clip}
:where(.sec) p{font-size:16px;line-height:1.75}
.sec h2{font-size:clamp(25px,3vw,34px);letter-spacing:.12em;line-height:1.3;margin-bottom:22px}
.hand{font-size:clamp(54px,6vw,70px);line-height:1.1;margin-bottom:8px}
.cap{font-size:13px;letter-spacing:.18em;line-height:1.7}
.btn{min-height:48px;justify-content:center;font-size:12px;letter-spacing:.08em;padding:14px 24px;box-shadow:2px 3px 0 #2B28251a}
.btn:disabled{cursor:default}
.write,.write.in{clip-path:none;transition:none}
.typer i{opacity:1;transition:none}
[data-rv],[data-rv=left],[data-rv=right]{transform:translateY(18px);transition:opacity .5s,transform .65s cubic-bezier(.22,1,.36,1)}
[data-rv].in{transform:none}
.loop span{animation:none}
@keyframes marq{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.hero.motion-active .loop:first-of-type span,.cheers.motion-active .loop:first-of-type span{animation:marq 65s linear infinite}
body.locked #invite *,html.motion-paused *{animation-play-state:paused!important}

/* Mark the date, then open: the hidden invitation never receives focus. */
.opening{display:block;padding:0;overflow-y:auto;scroll-padding-block:24px 105px}
.opening-content{min-height:100svh;max-width:600px;padding:64px 30px 100px;margin:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;position:relative;z-index:1}
.opening-content>.cap{margin-top:0!important;max-width:380px;font-size:12px;line-height:1.8}
.opening>.loop{font-size:42px;opacity:.28;overflow:hidden}
.oname{max-width:100%;font-size:clamp(32px,5vw,45px);line-height:1.2;letter-spacing:.06em;overflow-wrap:anywhere}
.oname .ms{font-size:1.4em;line-height:.8;white-space:nowrap}
.cal{width:100%;max-width:520px;margin-inline:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:0;border:0;border-block:1px solid var(--ink);border-radius:0;background:none;color:var(--ink);font:inherit;text-align:center}
.cal-cell{position:relative;min-width:0;display:block;padding-bottom:16px}
.cal-cell+.cal-cell{border-left:1px solid var(--ink)}
.cal .wd{display:block;font:13px/1.3 Forum;letter-spacing:.08em;text-transform:uppercase;white-space:normal;border-bottom:1px solid var(--ink);padding:12px 4px;margin:0 0 12px}
.cal .mo{display:block;font:11px/1.5 'Courier Prime';color:var(--muted);margin-bottom:4px;white-space:normal;overflow-wrap:anywhere}
.cal .dn{display:block;font:clamp(66px,8vw,88px)/1 Forum}
.ring{top:calc(50% + 21px);width:clamp(86px,18vw,125px);height:auto;aspect-ratio:116/126}
.ocal{background:#fbf8f3;border:1px solid var(--ink);box-shadow:0 12px 22px -18px #0006;cursor:pointer}
.ocal>div:nth-child(2) .dn{animation:none}
.ocal .cal-cell:nth-child(2) .dn{color:var(--red)}
.ocal:disabled{cursor:default}
.ring path{transition:stroke-dashoffset 1s cubic-bezier(.22,1,.36,1)}
.opening .after{width:100%;min-height:158px;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(8px);transition:opacity .45s .25s,transform .45s .25s,visibility 0s .25s}
.open .after{opacity:1;visibility:visible;pointer-events:auto;transform:none}
.opening .save{font-size:52px;line-height:1.1;margin-bottom:12px}
.opening .after>p:not(.save){font-size:14px!important;line-height:1.6}
.opening .after .btn{margin-top:18px!important}
.hint{font-size:13px;line-height:1.5;min-height:20px}

/* Photograph and handwritten ink are the leading visual materials. */
.hero{padding:72px 32px 60px;isolation:isolate}
.loops{height:420px;margin:24px -32px 28px;overflow:hidden;mask:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent)}
.loops .ph{width:min(66vw,310px);height:350px;left:50%;top:34px;margin-left:0;transform:translateX(-50%);rotate:-3deg;transform-origin:center;box-shadow:0 16px 22px -16px #0007}
.loops .ph img{height:100%;top:0}
.loops .loop{font-size:70px;rotate:-8deg;line-height:1.2}
.loops .ink-line-a{top:16px}
.loops .ink-line-b{top:157px}
.loops .ink-line-c{top:330px;opacity:.85}
.hero h1{font-size:clamp(40px,6vw,68px);line-height:1.2;letter-spacing:.04em;overflow-wrap:anywhere}
.hero h1 .ms{font-size:1.45em;line-height:.8}
.hero .htxt>.cap:first-child{font-size:14px;letter-spacing:.16em;margin-bottom:12px}
.hero .htxt>.cap:last-child{font-size:13px!important;letter-spacing:.08em;margin-top:22px!important;max-width:40ch;margin-inline:auto;line-height:1.8}

/* The red envelope sizes itself to the complete letter from the editor. */
.letter-section{padding-top:20px!important}
.renv{width:min(100%,390px);height:calc(var(--letter-height,250px) + 160px);margin:30px auto 0;rotate:-3deg;scale:1;filter:drop-shadow(0 14px 16px #00000020)}
.letter{top:0;left:32px!important;right:32px!important;height:auto;min-height:230px;padding:24px 22px 28px;font-size:16px;line-height:1.7;transform:translateY(24px);transition:transform .8s cubic-bezier(.22,1,.36,1);box-shadow:0 1px 2px #0002,0 6px 14px -7px #0004}
.renv.in .letter{transform:translateY(0)}
.letter p[data-lz],.letter p:has([data-lz=msg]){font-size:16px!important;line-height:1.7}
.letter .lt{font-size:11px;line-height:1.6;letter-spacing:.06em;padding-bottom:14px;margin-bottom:18px;overflow-wrap:anywhere}
.letter .sig{font-size:38px;line-height:1.1;margin-top:18px;overflow-wrap:anywhere}
.rback,.rpocket{height:180px}
.rflap{bottom:180px;height:120px}
.rpocket .ms{font-size:38px;left:20px;bottom:24px;max-width:64%;line-height:1.1;overflow-wrap:anywhere}
.stamp{width:62px;height:76px;right:20px;bottom:22px}
.pmark{bottom:40px;right:20px}
.date-section{max-width:700px;margin-inline:auto;padding-top:50px}
.date-section h2{font-size:22px;letter-spacing:.1em;max-width:30ch;margin:0 auto 28px}
.date-section .hand{margin-top:28px!important}
.date-section .cal{background:#fbf8f340}
.tcd{max-width:520px;margin:30px auto 0;gap:12px}
.tcd>div{border-width:1px;padding:18px 6px 14px;box-shadow:2px 3px 0 #2b28250b}
.tcd b{font-size:46px;line-height:1.1}
.tcd span{display:block;margin-top:8px;font-size:10px;letter-spacing:.1em}
.wave{margin-top:48px;opacity:.8}
#historia{max-width:880px;margin:auto}
#historia>p[data-lz=story]{max-width:54ch;margin-inline:auto}
.prints{display:flex;justify-content:center;align-items:flex-start;gap:5%;margin-top:40px;padding:16px 10px 30px}
.print{width:30%;flex:none;padding:9px;background:#fdfbf7;box-shadow:0 12px 20px -14px #0007}
.print:nth-child(1){margin:16px 0 0;rotate:-4deg}
.print:nth-child(2){margin:0;rotate:3deg}
.print:nth-child(3){margin:44px 0 0;rotate:-2deg}
.print:nth-child(n+4){display:none}
.print .pic{aspect-ratio:3/4}
.tape{opacity:.65;width:52px;height:17px;top:-7px}
.gallery-link{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:10px 8px;color:var(--red);font:12px/1.5 'Courier Prime';background:none;border:0;border-bottom:1px solid var(--red);cursor:pointer}
#itinerario{max-width:780px;margin:auto}
.evr{grid-template-columns:110px minmax(0,1fr);gap:28px;padding:26px 0}
.evr .event-time{font:700 16px/1.5 'Courier Prime';color:var(--red);padding-top:2px;white-space:nowrap}
.evr h3{font-size:24px;line-height:1.3;letter-spacing:.08em;margin-bottom:10px}
.evr p{font-size:16px;line-height:1.7}
.evr a,.clip a.lk{display:inline-flex;align-items:center;gap:7px;min-height:44px;font-size:13px;margin-top:10px;text-decoration-style:solid}
.bub{padding:36px 30px;margin-top:42px}
.bub h3{font-size:26px;letter-spacing:.12em;margin-block:12px}
.bub .cap{font-size:12px}
.bub p{font-size:16px}
#viaje>p[data-lz=travelIntro]{max-width:52ch;margin-inline:auto}
.clip{padding:32px 28px;margin-top:32px;box-shadow:0 10px 18px -15px #0004,0 0 0 1px #0000000a}
.clip:nth-child(n){rotate:0deg}
.clip .pc{left:24px;top:-17px;color:#8a8278}
.clip .tag{font-size:46px;line-height:1.1;margin-bottom:12px}
.clip h3{font-size:23px;line-height:1.3;letter-spacing:.08em;margin-bottom:16px}
.clip p{font-size:16px;line-height:1.7}
#viaje>div{margin-top:40px}
#viaje .clip:not(:first-child){background:transparent;box-shadow:none;border-top:1px solid #2b282530;padding-top:28px}
#viaje .clip:not(:first-child) .pc{display:none}
.clip .demo-booking,.clip .demo-note{font-size:12px;line-height:1.6;color:var(--muted);margin-top:18px}
.clip:has([data-lz-href=hotelLink]:not([hidden])) .demo-booking{display:none}
.cheers{height:410px;margin-bottom:28px;overflow:hidden}
.cheers .ph{width:240px;height:320px;margin-left:-120px;top:40px;rotate:3deg}
.cheers .loop{font-size:68px;line-height:1.2;opacity:.9}
blockquote{font-size:clamp(25px,3vw,33px);line-height:1.5;max-width:35ch;margin:0 auto 18px}
#faq{max-width:780px;margin:auto}
.wish{width:88%;padding:30px 28px 26px;margin-top:28px}
.wish h3{font-size:16px;line-height:1.5;margin-bottom:12px;color:var(--red)}
.wish p{font-size:15px!important;line-height:1.75}
#rsvp{max-width:720px;margin:auto}
#rsvp .clip{padding:36px 30px}
#rsvp .clip h2{font-size:28px}
.person{flex-wrap:wrap;gap:12px;padding:18px 0}
.person>span{font:400 22px/1.4 Forum;letter-spacing:.02em;flex:1 1 180px}
.person>div{display:flex;gap:10px;flex-wrap:wrap}
.person button{min-height:48px;padding:10px 15px;font:700 12px/1.4 'Courier Prime';letter-spacing:0;border-width:1px;cursor:pointer}
label{font-size:12px;letter-spacing:.05em;line-height:1.6;margin-top:22px}
textarea{font:400 16px/1.7 'Courier Prime';min-height:96px;padding:10px;background:#fff4;border:1px solid #2b282533;resize:vertical}
.rs-err,.person .person-error{font-size:14px;color:var(--red);line-height:1.6}
.person-error{flex-basis:100%}
.reply-list{padding:0;list-style:none;text-align:left;margin-top:20px}
.reply-list li{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 0;border-bottom:1px dashed #2b282533;font-size:14px;line-height:1.6}
.reply-list b{font-weight:400}
#rsSave{width:100%;margin-top:28px!important}
footer{padding:64px 28px 120px!important;border-top:1px solid #2b28251a}
footer .fph{width:310px;height:410px;max-width:85%}
.with{margin-top:-55px}
.with b{font-size:84px;line-height:1.05}
.with .ms{font-size:106px;line-height:.65;margin-bottom:30px}
footer>.cap{font-size:17px;letter-spacing:.12em;line-height:1.6;overflow-wrap:anywhere}
footer>p:last-of-type{font-size:13px!important;line-height:1.8;max-width:42ch;margin-inline:auto}
.footer-links{display:flex;gap:12px 28px;justify-content:center;flex-wrap:wrap;margin-top:25px}
.footer-links a{display:inline-flex;align-items:center;min-height:44px;font:12px/1.5 'Courier Prime';color:var(--red);text-underline-offset:5px}
@media(min-width:900px){
.hero{display:grid;grid-template-columns:1.1fr .9fr;gap:0 45px;align-items:center;padding:90px 42px 70px}
.hero>.cap{grid-column:1;grid-row:1;margin-bottom:0;font-size:15px}
.hero .loops{grid-column:1;grid-row:2;width:calc(100% + 50px);height:510px;margin:20px -25px 0}
.hero .loops .ph{width:340px;height:440px;top:30px;margin-left:0}
.hero .loops .loop{font-size:82px}
.hero .loops .ink-line-a{top:5px}.hero .loops .ink-line-b{top:185px}.hero .loops .ink-line-c{top:415px}
.hero .htxt{grid-column:2;grid-row:1/3}
.hero .htxt>.cap:first-child{margin-bottom:24px}
.hero h1 [data-lz]{display:block}
.hero h1 .ms{display:block;font-size:80px;margin-block:12px}
.letter-section{padding-bottom:30px}
#viaje>div{display:grid;grid-template-columns:1fr 1fr;gap:0 40px;align-items:start}
#viaje .clip:first-child{grid-row:span 2;margin-top:0}
#viaje .clip:nth-child(2){margin-top:0}
#viaje .clip:not(:first-child){padding-inline:0}
.person>div{width:100%}.person button{flex:1}
}
@media(max-width:600px){
.opening-content{padding:55px 24px 100px;gap:18px}.opening-content>.cap{font-size:11px;line-height:1.7}.oname{font-size:32px;letter-spacing:.04em}.cal .wd{font-size:11px;letter-spacing:.04em;padding:10px 2px}.cal .mo{font-size:10px}.cal .dn{font-size:66px}.cal-cell{padding-bottom:13px}.ring{width:90px}.hero{padding:62px 24px 50px}.loops{height:390px;margin:24px -24px}.loops .ph{width:67vw;max-width:290px;height:320px;top:28px}.loops .loop{font-size:59px}.loops .ink-line-a{top:7px}.loops .ink-line-b{top:148px}.loops .ink-line-c{top:302px}.hero h1{font-size:42px;letter-spacing:.03em}.hero .htxt>.cap:last-child{font-size:12px!important}.sec{padding-inline:24px}.letter-section{padding-inline:22px}.renv{width:100%;rotate:-2deg;margin-top:26px}.letter{left:22px!important;right:22px!important;padding:22px 18px 26px}.letter .sig{font-size:34px}.rpocket .ms{font-size:32px;max-width:58%;left:14px}.date-section h2{font-size:20px}.tcd{gap:7px}.tcd>div{padding:14px 4px 11px}.tcd b{font-size:36px}.tcd span{font-size:9px;letter-spacing:.04em}.prints{gap:6%;flex-wrap:wrap;padding-inline:8px}.print{width:44%;padding:7px}.print:nth-child(1){margin-top:16px}.print:nth-child(2){margin-top:0}.print:nth-child(3){width:66%;margin-top:25px;rotate:-2deg}.evr{grid-template-columns:82px minmax(0,1fr);gap:14px;padding:24px 0}.evr .event-time{font-size:13px}.evr h3{font-size:21px;letter-spacing:.06em}.bub{padding:30px 24px}.clip{padding:30px 22px}.clip h3{font-size:21px}.clip .tag{font-size:43px}.cheers{height:355px}.cheers .ph{width:210px;height:280px;margin-left:-105px;top:32px}.cheers .loop{font-size:62px}.wish{width:94%;padding:26px 23px}.wish h3{font-size:15px}.wish p{font-size:14px!important}#rsvp .clip{padding:32px 20px}.person>span{flex-basis:100%}.person>div{width:100%;gap:8px}.person button{flex:1;padding-inline:9px;font-size:11px;white-space:normal}footer .fph{width:250px;height:335px}.with b{font-size:74px}.with .ms{font-size:94px}footer>.cap{font-size:15px}}
@media(max-height:650px){.opening-content{padding-top:35px}.opening>.loop{opacity:.15}.opening .after{min-height:155px}}
@media(prefers-reduced-motion:reduce){.hero .loop span,.cheers .loop span{animation:none!important}.opening .after{transition:none}}
/* Preserve typographic roles against the original desktop paragraph rule. */
.sec>p:not(.hand):not(.cap){font-size:16px;line-height:1.75}
.sec .hand{font:400 clamp(54px,6vw,70px)/1.1 'Mrs Saint Delafield',cursive;color:var(--red)}
.sec .cap{font-size:12px;line-height:1.7}
@media(min-width:900px){.hero .loops .loop.ink-line-a{top:5px}.hero .loops .loop.ink-line-b{top:185px}.hero .loops .loop.ink-line-c{top:415px}}

.prints>.print:only-child{width:min(80%,380px);margin-top:0}
