@font-face{font-family:Caveat;src:url(caveat.ttf)}*{box-sizing:border-box}body{margin:0;color:#2e2c28;background:#eee9df radial-gradient(#c7bfae88 .7px,transparent .95px) 0 0/6px 6px;font-family:Arial,sans-serif}.defs{display:none}svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}header{height:76px;background:#fbf9f3;border-bottom:1px solid #d1cbbf;display:flex;align-items:center;justify-content:space-between;padding:0 6vw}.brand{display:flex;align-items:center;font: bold 28px Georgia;letter-spacing:-1.7px}.branddot{color:#ac4c39}.mark{display:grid;place-items:center;width:38px;height:38px;margin-right:10px;border:1.5px solid;border-radius:10px;transform:rotate(-7deg);background:#ece6da}.mark svg{width:28px;height:28px}button{cursor:pointer;color:inherit;font:inherit}.primary{background:#30332d;color:#fffdf6;border:0;padding:13px 19px;border-radius:8px;font-weight:600;font-size:15px;display:inline-flex;align-items:center;justify-content:center;gap:8px}.primary b{font-size:20px;line-height:16px}.primary:hover{background:#484c42}.intro{text-align:center;padding:49px 12px 36px}.occasion{font:600 12px monospace;letter-spacing:2px;color:#895946}.intro h1{margin:10px 0 14px;font:normal clamp(44px,5.5vw,83px)/1.06 Georgia,serif;letter-spacing:-.055em}.intro em{position:relative;color:#a34e3b}.intro em svg{position:absolute;width:102%;height:14px;bottom:-6px;left:0;stroke-width:2}.intro p{font-size:16px;color:#655f55}.desk{width:min(1110px,89%);margin:auto}.tools,.tools div,.tools button{display:flex;align-items:center}.tools{justify-content:space-between;border-bottom:1px solid #c8c1b3;padding:0 0 14px;font-size:14px}.tools div{gap:9px}.tools button{gap:7px;background:none;border:0;font-size:14px;padding:6px}.tools button svg{width:16px}.tools span{border:1px solid #c8c0b1;background:#f3efe6;padding:2px 8px;border-radius:20px;font:13px monospace}#board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:52px clamp(22px,6vw,90px);padding:46px 4% 80px;align-items:start}.card{display:flex;flex-direction:column;position:relative;background:#fffdf5;border:0;box-shadow:1px 3px 4px #53462d38,3px 10px 17px #53462d20;padding:clamp(9px,1vw,15px);padding-bottom:11px;text-align:center;transform:translateY(var(--y)) rotate(var(--r));transition:box-shadow .2s}.card:hover{z-index:1;box-shadow:2px 8px 16px #53462d44}.card img,#detail img{display:block;width:100%;aspect-ratio:1.18;object-fit:cover;filter:saturate(.84) contrast(.97)}.note{font:500 clamp(20px,2.05vw,30px)/1.06 Caveat,cursive;overflow-wrap:anywhere;white-space:pre-wrap;margin:13px 2px 6px}.by{font:11px/1.3 monospace;text-transform:uppercase;letter-spacing:1.4px;color:#726c61;margin:0 0 4px}.card:nth-child(3n + 1):before,.card:nth-child(4n + 3):before{content:'';position:absolute;z-index:1;top:-9px;left:36%;width:30%;height:23px;background:#d8c797c4;transform:rotate(-6deg);clip-path:polygon(1% 0,99% 3%,97% 24%,100% 40%,97% 58%,100% 78%,98% 100%,0 98%,2% 77%,0 58%,3% 30%)}.fall{animation:fall .65s cubic-bezier(.2,.75,.3,1) backwards;animation-delay:var(--delay)}@keyframes fall{from{opacity:0;transform:translateY(-65vh) scale(1.07) rotate(calc(var(--r) - 7deg));box-shadow:3px 35px 50px #53462d55}80%{opacity:1;transform:translateY(calc(var(--y) + 4px)) rotate(var(--r))}}dialog{border:1px solid #c9c2b5;border-radius:12px;background:#f6f2e9;color:inherit;padding:22px;width:min(400px,94vw);max-height:94dvh;overflow:auto}dialog::backdrop{background:#302b2399}.modalHead{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}h2{margin:0;font:32px Georgia}.close{background:#fffdf5;border:1px solid #c9c2b5;border-radius:50%;width:35px;height:35px;font:24px/1 Arial}.preview,#detail{background:#fffdf5;padding:14px;text-align:center;box-shadow:0 3px 8px #382c171f}#pick{display:grid;place-items:center;position:relative;aspect-ratio:1.18;background:#e7e1d6;cursor:pointer}#pick img,#file{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}#file{opacity:0;cursor:pointer}textarea{resize:vertical;width:100%;background:transparent;border:0;text-align:center;font:25px/1.1 Caveat;margin-top:10px;color:inherit}.signature,#crop{font-size:14px;margin:15px 0 0;display:block}.signature input{display:block;padding:8px;width:100%;margin-top:5px;border:1px solid #c5bcad;background:#fffdf5;border-radius:5px}#crop input{vertical-align:middle;width:65%}.submit{width:100%}#error{font-size:14px;color:#993d2d}[hidden]{display:none!important}@media(max-width:700px){header{height:66px;padding:0 5%}.intro{padding:35px 8px 24px}.desk{width:90%}#board{grid-template-columns:repeat(2,minmax(0,1fr));padding:33px 2% 60px;gap:34px 6%}.primary{padding:11px 13px}.by{font-size:10px}.note{margin:9px 0 5px}.tools div{gap:5px}.tools{font-size:13px}.tools button{font-size:13px}.brand{font-size:25px}}@media(prefers-reduced-motion:reduce){.fall{animation:none}}

/* The desk and reader scale the same sheet of photographic paper. */
.card, #detail {
  display: block;
  min-width: 0;
  width: 100%;
  padding: 0;
  border-radius: 0;
  container-type: inline-size;
}
.instant-print {
  padding: 5.5cqi 5.5cqi 0;
  background: #fffdf5;
  box-shadow: inset 0 0 0 1px #69523815;
}
.instant-print img, #detail .instant-print img, #pick { aspect-ratio: 1; }
.caption {
  min-height: 28cqi;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2cqi;
  padding: 3cqi 0 4cqi;
}
.caption .note { margin: 0; font-size: 8.3cqi; line-height: 1.06; }
.caption .by { margin: 0; max-width: 100%; overflow-wrap: anywhere; font-size: 3.6cqi; letter-spacing: .38cqi; }
#reader {
  width: min(480px, 88vw, 65dvh);
  padding: 46px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: auto;
}
#reader::backdrop { background: #24211cbd; }
#reader > .close { position: absolute; top: 0; right: 0; }
#detail { text-align: center; }

body {
  background-color: #faf3e9;
  background-image: radial-gradient(#d6c3aa88 .8px, transparent 1px);
}
.mark { background: #f1d9cb; }
.primary { background: #675268; }
.primary:hover { background: #554157; }
.intro { position: relative; isolation: isolate; overflow: hidden; }
.intro em { color: #aa5766; }
.intro p { margin-bottom: 13px; }
.fiesta { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.guirnalda {
  position: absolute;
  top: -26px;
  left: -2%;
  width: min(31vw, 460px);
  height: 57px;
  border-bottom: 2px solid #ad9377;
  border-radius: 0 0 50% 50%;
  transform: rotate(9deg);
}
.guirnalda:nth-child(2) { left: auto; right: -2%; transform: scaleX(-1) rotate(9deg); }
.guirnalda i {
  position: absolute;
  top: 85%;
  left: 9%;
  width: 12%;
  height: clamp(19px, 3.5vw, 48px);
  background: repeating-linear-gradient(90deg,#e3a6a2 0 5px,#efc0b9 5px 9px);
  clip-path: polygon(0 0,100% 0,55% 99%);
  transform: rotate(11deg);
}
.guirnalda i:nth-child(2) { left: 27%; top: 95%; background: #b2cac2; transform: rotate(5deg); }
.guirnalda i:nth-child(3) { left: 46%; top: 98%; background: radial-gradient(#fff6d8 1.4px,transparent 2px) 0 0/8px 8px,#e5c67d; transform: none; }
.guirnalda i:nth-child(4) { left: 65%; top: 93%; background: #c5b6cd; transform: rotate(-6deg); }
.guirnalda i:nth-child(5) { left: 82%; top: 77%; background: #b8cfda; transform: rotate(-14deg); }
.estrella { position: absolute; color: #c99552; font: 29px Georgia; }
.e1 { left: 13%; top: 57%; transform: rotate(-12deg); }
.e2 { right: 17%; top: 43%; color: #b78d9c; }
.e3 { right: 12%; top: 61%; font-size: 17px; }
#music {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px;
  padding: 7px 15px; border: 1px solid #cbb5bd; border-radius: 30px;
  background: #fff8f4; color: #634a62; font-size: 14px;
}
#music span { font-size: 19px; }
#music[aria-pressed="true"] { background: #e8d9e5; border-color: #a991a6; }
#musicError:not(:empty) { display: block; margin-top: 7px; }
@media (max-width: 700px) {
  .intro { padding-top: 49px; }
  .guirnalda { width: 34vw; top: -35px; }
  .e1 { left: 4%; top: 72%; font-size: 18px; }
  .e2 { right: 7%; top: 75%; font-size: 18px; }
  .e3 { display: none; }
}
#albumStatus:empty, #shareError:empty { display: none; }
#shareLocal { margin-top: 12px; }
#shareError { background: #fffdf5; padding: 8px; }
.entrance { min-height:100svh; display:grid; place-items:center; padding:24px; }
.invitation { width:min(100%,420px); background:#fffdf5; padding:38px clamp(20px,5vw,40px); border-top:6px solid #d5a6a8; box-shadow:0 8px 30px #59473323; }
.invitation h1 { font:46px/1.1 Georgia,serif; letter-spacing:-2px; margin:16px 0; }
.invitation em { color:#aa5766; }
.invitation p { line-height:1.5; }
.invitation label { display:block; margin:20px 0 6px; font-size:15px; line-height:1.4; }
.invitation input { width:100%; padding:10px; border:1px solid #bdafa4; border-radius:5px; background:white; font:inherit; }
.invitation .primary { width:100%; margin-top:12px; }
.gate-error { color:#963d30; }
.gate-error:empty { display:none; }
.photo-frame { position:relative; width:100%; aspect-ratio:1; overflow:hidden; background:#eee8dd; }
.photo-frame > img, #detail .photo-frame > img, #pick .photo-frame > img {
  position:absolute; inset:auto; left:var(--x,50%); top:var(--y,50%);
  width:var(--width,100%); height:var(--height,100%); max-width:none; aspect-ratio:auto;
  transform:translate(-50%,-50%) rotate(var(--angle,0deg)) scale(var(--zoom,1));
  pointer-events:none; user-select:none;
}
#pick #file { width:1px; height:1px; clip-path:inset(50%); }
#pick:focus-within { outline:2px solid #99778a; }
#choose { cursor:pointer; display:grid; place-items:center; width:100%; height:100%; }
#editFrame { touch-action:none; cursor:grab; }
#editFrame:active { cursor:grabbing; }
#crop { margin-top:8px; }
#crop small { color:#665c59; }
.crop-tools { display:flex; align-items:center; gap:6px; margin-top:3px; }
.crop-tools button { border:0; background:#eee6db; min-width:34px; min-height:34px; border-radius:6px; font-size:19px; }
#crop .crop-tools input { width:25%; accent-color:#795b73; }
.crop-tools label { margin-left:auto; cursor:pointer; text-decoration:underline; }
.angle-tools { display:flex; align-items:center; gap:10px; margin-top:6px; }
#crop .angle-tools input { flex:1; min-width:0; accent-color:#795b73; }
.angle-tools output { width:4em; text-align:right; font-variant-numeric:tabular-nums; }
