
:root{
  --bg:#E8F1F8; --surface:#F7FAFD; --ink:#5A1426; --muted:#6E4653; --sage:#7FA9CC; --line:#C5D8E7; --accent:#5A1426; --on-accent:#F7FAFD; --blush:#E9CFC7;
  box-sizing:border-box; padding-top:env(safe-area-inset-top,0px); padding-bottom:env(safe-area-inset-bottom,0px);
  color-scheme:light;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){--bg:#2A0C16;--surface:#3A1421;--ink:#E3EEF7;--muted:#B9C9D6;--sage:#9DBFD9;--line:#5A2535;--accent:#BFD8EC;--on-accent:#2A0C16;--blush:#E9CFC7;color-scheme:dark}
}
:root[data-theme="dark"]{--bg:#2A0C16;--surface:#3A1421;--ink:#E3EEF7;--muted:#B9C9D6;--sage:#9DBFD9;--line:#5A2535;--accent:#BFD8EC;--on-accent:#2A0C16;--blush:#E9CFC7;color-scheme:dark}
html{scroll-padding-top:env(safe-area-inset-top,0px);scroll-behavior:smooth}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;background:var(--bg) url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .3 0 0 0 0 .22 0 0 0 0 .22 0 0 0 .22 -.04'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");color:var(--ink);font:400 1.0625rem/1.65 "Jost",system-ui,sans-serif}
h1,h2,h3{font-family:"Cormorant Garamond",Georgia,serif;font-weight:400;margin:0;line-height:1.05}
.wrap{max-width:46rem;margin:0 auto;padding:0 1.5rem}

.hero{min-height:92vh;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:4rem 1.5rem;position:relative}
.hero .small{color:var(--muted);letter-spacing:.04em;margin:0 0 1.5rem}
.hero h1{font-size:clamp(3.6rem,15vw,9rem);font-style:italic;letter-spacing:-.02em}
.hero h1 .amp{display:block;font-size:.38em;font-style:normal;color:var(--sage);margin:.15em 0}
.hero .when{margin:2rem 0 0;font-size:1.15rem}
.hero .where{color:var(--muted);margin:.2rem 0 0}
.count{margin-top:2.5rem;display:flex;gap:1.75rem;justify-content:center}
.count div{min-width:3.5rem}
.count b{display:block;font:400 2.2rem/1 "Cormorant Garamond",Georgia,serif}
.count span{font-size:.85rem;color:var(--muted)}
.btn{display:inline-block;background:var(--accent);color:var(--on-accent);text-decoration:none;font-weight:500;padding:.95rem 2rem;border-radius:999px;border:0;cursor:pointer;font-size:1rem;font-family:inherit}
.btn:hover{opacity:.9}
.btn:focus-visible,a:focus-visible{outline:3px solid var(--sage);outline-offset:3px}
.hero .btn{margin-top:2.5rem}
.hero .invited{max-width:24rem;margin:2rem 0 0;color:var(--muted)}

section{padding:4.5rem 0;border-top:1px solid var(--line)}
section h2{font-size:clamp(2.1rem,6vw,3rem);margin-bottom:1.5rem}
.grid{display:grid;gap:2rem}
@media(min-width:40rem){.grid{grid-template-columns:repeat(3,1fr);gap:1.5rem}}
.grid h3{font-size:1.6rem;font-style:italic;margin-bottom:.4rem}
.grid p{margin:0;color:var(--muted)}
.grid p strong{color:var(--ink);font-weight:500}
dl{margin:0}
dt{font-family:"Cormorant Garamond",Georgia,serif;font-size:1.4rem;font-style:italic;margin-top:1.5rem}
dd{margin:.2rem 0 0;color:var(--muted)}

.rsvp{background:var(--surface);border:1px solid var(--line);border-radius:1.25rem;padding:2.5rem 1.75rem;text-align:center}
.rsvp p{max-width:30rem;margin:0 auto 1.5rem;color:var(--muted)}
.rsvp .deadline{color:var(--ink);font-weight:500}
.note{margin-top:1.25rem;font-size:.95rem;color:var(--muted)}
.setup{display:none;margin:1.5rem auto 0;max-width:30rem;text-align:left;font-size:.92rem;background:var(--bg);border:1px dashed var(--sage);border-radius:.75rem;padding:1rem 1.25rem;color:var(--muted)}
.setup.show{display:block}
.looks{display:flex;gap:1.5rem;flex-wrap:wrap;margin-top:1.25rem}
.looks figure{margin:0;text-align:center;width:6.5rem}
.looks svg{width:5rem;height:auto;filter:url(#rough);opacity:.8}
.looks .a svg,.looks .c svg{color:var(--sage)}
.looks .b svg{color:var(--ink);opacity:.5}
.looks figcaption{font-size:.85rem;margin-top:.4rem}
footer{padding:3rem 1.5rem 4rem;text-align:center;color:var(--muted);font-size:.95rem}
footer i{font-family:"Cormorant Garamond",Georgia,serif;font-size:1.5rem;color:var(--ink)}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Pressed-flower accents */
.press{position:absolute;pointer-events:none;z-index:0;opacity:.7;filter:url(#rough)}
.p1,.p2,.p5{color:var(--sage)}
.p3,.p4,.p6{color:var(--ink);opacity:.28}
.p1{top:-1rem;left:-1.5rem;width:clamp(6rem,24vw,11rem);transform:rotate(-18deg)}
.p2{right:-1rem;bottom:-1.5rem;width:clamp(7rem,28vw,13rem);transform:rotate(155deg)}
.p3{top:12%;right:7%;width:clamp(3.5rem,11vw,5.5rem);transform:rotate(20deg)}
.p4{bottom:16%;left:7%;width:clamp(3rem,9vw,4.5rem);transform:rotate(-25deg)}
.p5{top:1.5rem;right:-2.5rem;width:9rem;transform:rotate(28deg);opacity:.45}
.p6{top:-1.2rem;left:-1.2rem;width:4.5rem;transform:rotate(15deg)}
.hero{overflow:hidden}
.hero>:not(.press),.rsvp>:not(.press){position:relative;z-index:1}
section{position:relative;overflow:hidden}
.wrap{position:relative;z-index:1}
.rsvp{position:relative;overflow:hidden}
.paws{display:flex;justify-content:center;align-items:flex-end;gap:1.1rem;margin-bottom:1.5rem;color:var(--ink);opacity:.3;filter:url(#rough)}
.paws svg{width:1.6rem;height:1.6rem}
.paws .pw1{transform:translateY(.35rem) rotate(-14deg)}
.paws .pw2{transform:translateY(-.35rem) rotate(14deg)}
.paws .peek{width:3.6rem;height:auto;transform:none}

[hidden]{display:none!important}
.page{position:relative;overflow:hidden;min-height:100vh;padding:3rem 0 4rem}
.page .wrap{position:relative;z-index:1}
.back{display:inline-block;color:var(--muted);text-decoration:none;margin-bottom:2rem}
.back:hover{color:var(--ink)}
.page h1{font-size:clamp(2.6rem,9vw,4rem);font-style:italic}
.lead{color:var(--muted);margin:.8rem 0 2rem}
.card{background:var(--surface);border:1px solid var(--line);border-radius:1.25rem;padding:2rem 1.5rem}
@media(min-width:40rem){.card{padding:2.5rem}}
.field{margin-bottom:1.4rem}
.field>label,.field>.lbl{display:block;font-weight:500;margin-bottom:.4rem}
.hint{font-weight:400;color:var(--muted);font-size:.92rem}
.field input[type=text],.field input[type=email],.field select,.field textarea{width:100%;font:inherit;color:var(--ink);background:var(--bg);border:1px solid var(--line);border-radius:.7rem;padding:.75rem .9rem}
.field textarea{min-height:5.5rem;resize:vertical}
.field input:focus,.field select:focus,.field textarea:focus{outline:3px solid var(--sage);outline-offset:1px}
.row{display:grid;gap:1.4rem}
@media(min-width:36rem){.row{grid-template-columns:1fr 1fr}}
.choices{display:grid;gap:.6rem}
.choice{display:flex;gap:.7rem;align-items:center;border:1px solid var(--line);background:var(--bg);border-radius:.7rem;padding:.8rem .9rem;cursor:pointer}
.choice input{accent-color:var(--accent);width:1.1rem;height:1.1rem}
.choice:has(input:checked){border-color:var(--accent)}
.err{color:#B3261E;margin:0 0 1rem;min-height:1.4em}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]) .err{color:#FFB4AB}}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.thanks{text-align:center}
.thanks h2{margin-bottom:1rem}

/* Invite-based RSVP form */
.greet{font-family:"Cormorant Garamond",Georgia,serif;font-size:1.7rem;font-style:italic;line-height:1.2;margin:0 0 1.4rem}
.guest{border:1px solid var(--line);border-radius:.9rem;padding:.6rem 1rem 1rem;margin:0 0 1rem;min-width:0}
.guest legend{font-weight:500;padding:0 .4rem;color:var(--muted)}
.guest .field{margin-bottom:1rem}
.guest .field:last-child{margin-bottom:0}
.guest .remove{margin-top:0}
.btn-quiet{background:none;border:1px solid var(--sage);color:var(--ink);font:inherit;font-size:.95rem;border-radius:999px;padding:.6rem 1.2rem;min-height:2.75rem;cursor:pointer}
.btn-quiet:hover{border-color:var(--accent)}
.btn-quiet:focus-visible{outline:3px solid var(--sage);outline-offset:3px}
#addGuest{margin-bottom:1.4rem}
.final{background:var(--bg);border:1px solid var(--line);border-left:4px solid var(--accent);border-radius:.7rem;padding:.85rem 1rem;margin:0 0 1rem}
.final a,.notice a,.thanks a:not(.btn){color:inherit;overflow-wrap:anywhere}
.notice{text-align:center}
.notice h2{font-size:2rem;margin-bottom:1rem}
.notice p{max-width:30rem;margin:0 auto 1rem;color:var(--muted)}
.notice p:last-child{margin-bottom:0}
#guestFields>.lbl{display:block;font-weight:500;margin-bottom:.6rem}
