/* ==========================================================================
   A Galaxy Far in Love — Amalia & Peter, January 16, 2027
   Design language taken from the printed invitation:
   paper, gilt, emerald, olive sprigs, Greek key, the AP monogram.
   ========================================================================== */

@font-face{font-family:"Pinyon Script";src:url("fonts/pinyon-script-latin-400-normal.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Cormorant Garamond";src:url("fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Cormorant Garamond";src:url("fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2");font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:"Cormorant Garamond";src:url("fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Cormorant Garamond";src:url("fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");font-weight:500;font-style:italic;font-display:swap}
@font-face{font-family:"Cormorant Garamond";src:url("fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Cormorant Garamond";src:url("fonts/cormorant-garamond-latin-600-italic.woff2") format("woff2");font-weight:600;font-style:italic;font-display:swap}
@font-face{font-family:"Cormorant SC";src:url("fonts/cormorant-sc-latin-500-normal.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Cormorant SC";src:url("fonts/cormorant-sc-latin-600-normal.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}

:root{
  --paper:#FBF6EA;
  --paper-2:#F4ECD9;
  --paper-3:#E9DDBF;
  --gilt:#B08D3E;
  --gilt-text:#7C5F1C;       /* gilt dark enough for small text on paper (5.6:1) */
  --gilt-script:#9A7A2E;     /* large script only */
  --gilt-light:#E0C985;      /* gilt on emerald */
  --emerald:#0C3524;
  --emerald-2:#134631;
  --olive:#737054;
  --ink:#17261E;
  --ink-soft:#35443B;
  --on-emerald:#F6F0DF;
  --on-emerald-soft:#C9D4C6;

  --serif:"Cormorant Garamond","Cormorant",Georgia,"Times New Roman",serif;
  --caps:"Cormorant SC","Cormorant Garamond",Georgia,serif;
  --script:"Pinyon Script","Snell Roundhand","Apple Chancery",cursive;

  --gutter:clamp(1.25rem,4vw,2.5rem);
  --measure:38rem;
}

*,*::before,*::after{box-sizing:border-box}
*{margin:0}
html{scroll-behavior:smooth;scroll-padding-top:4.5rem;-webkit-text-size-adjust:100%}
body{
  background:var(--paper);color:var(--ink-soft);
  font-family:var(--serif);font-size:1.28rem;line-height:1.62;font-weight:500;
  overflow-x:hidden;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--gilt-text);text-underline-offset:.2em;text-decoration-thickness:1px}
a:hover{color:var(--emerald)}
button,input,select,textarea{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--gilt-text);outline-offset:3px;border-radius:2px}
.on-emerald :focus-visible{outline-color:var(--gilt-light)}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
::selection{background:var(--gilt-light);color:var(--ink)}

h1,h2,h3{font-weight:500;line-height:1.1;color:var(--emerald);text-wrap:balance}
p{text-wrap:pretty}
.section-lede,.rsvp-intro,.hero-request{text-wrap:balance}
.caps{font-family:var(--caps);font-weight:600;letter-spacing:.1em;font-size:.95em}
.script{font-family:var(--script);font-weight:400}

/* ---------- Greek key devices ---------- */
.rule{
  width:min(11rem,50%);height:14px;margin:1.1rem auto 2.6rem;
  background:url("img/meander-h.svg") repeat-x center/auto 14px;
  -webkit-mask:linear-gradient(90deg,transparent,#000 18%,#000 82%,transparent);
          mask:linear-gradient(90deg,transparent,#000 18%,#000 82%,transparent);
}
.on-emerald .rule{filter:brightness(1.35)}
.band{height:20px;background:url("img/meander-h.svg") repeat-x left center/auto 20px;opacity:.9}

/* ---------- Layout ---------- */
.section{position:relative;padding:clamp(4.5rem,9vw,7.5rem) var(--gutter)}
.section-inner{max-width:56rem;margin-inline:auto}
.section-title{
  text-align:center;font-size:clamp(2.4rem,5.2vw,3.6rem);letter-spacing:.005em;
}
.section-lede{
  text-align:center;max-width:var(--measure);margin:0 auto;
  font-style:italic;font-size:1.3rem;color:var(--ink-soft);
}
.tint{background:var(--paper-2)}
.on-emerald{background:var(--emerald);color:var(--on-emerald)}
.on-emerald h2,.on-emerald h3{color:var(--on-emerald)}
.on-emerald .section-lede{color:var(--on-emerald-soft)}
.on-emerald::before,.on-emerald::after{
  content:"";position:absolute;left:0;right:0;height:20px;
  background:url("img/meander-h.svg") repeat-x left center/auto 20px;opacity:.8;
}
.on-emerald::before{top:0}
.on-emerald::after{bottom:0}
.on-emerald a{color:var(--gilt-light)}

/* ---------- Buttons ---------- */
.btn{
  display:inline-block;cursor:pointer;text-decoration:none;text-align:center;
  font-family:var(--caps);font-weight:600;font-size:1.05rem;letter-spacing:.1em;
  padding:.8rem 2rem;border:1px solid var(--emerald);background:var(--emerald);color:var(--paper);
  transition:background .2s,color .2s,border-color .2s;border-radius:1px;
}
.btn:hover{background:var(--emerald-2);color:var(--paper)}
.btn-ghost{background:transparent;color:var(--emerald);border-color:var(--gilt)}
.btn-ghost:hover{background:var(--paper-3);color:var(--emerald)}
.on-emerald .btn{background:var(--gilt-light);border-color:var(--gilt-light);color:var(--ink)}
.on-emerald .btn:hover{background:#EBD79B;color:var(--ink)}
.on-emerald .btn-ghost{background:transparent;color:var(--on-emerald);border-color:rgba(224,201,133,.6)}
.on-emerald .btn-ghost:hover{background:rgba(224,201,133,.14);color:var(--on-emerald)}
.btn[disabled]{opacity:.45;cursor:default}

/* ==========================================================================
   HERO — the invitation, as a page
   ========================================================================== */
.hero{
  position:relative;isolation:isolate;min-height:100vh;min-height:100svh;
  display:grid;place-items:center;text-align:center;overflow:hidden;
  padding:clamp(3.2rem,6.5vh,5rem) calc(var(--gutter) + 22px) clamp(3rem,6vh,4.5rem);
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%,#FFFCF3 0%,rgba(255,252,243,0) 70%),
    var(--paper);
}
.hero-frame{
  position:absolute;inset:14px;z-index:3;pointer-events:none;
  border:22px solid transparent;border-image:url("img/frame-meander.svg") 20 round;
}
.hero-art{position:absolute;z-index:0;pointer-events:none;user-select:none}
.hero-parthenon{left:0;top:26%;width:min(33vw,440px);opacity:.95}
.hero-church{right:0;top:24%;width:min(29vw,390px);opacity:.95}
.hero-sprig{z-index:2;filter:drop-shadow(0 6px 10px rgba(60,60,30,.12))}
.hero-sprig.tl{left:-1.5rem;top:-1rem;width:min(26vw,290px);transform:rotate(-6deg);transform-origin:20% 90%}
.hero-sprig.br{right:-1.5rem;bottom:-1rem;width:min(28vw,320px);transform:scaleX(-1) rotate(-4deg);transform-origin:80% 90%}
.hero-constellation{right:clamp(3rem,7vw,7rem);top:clamp(2.5rem,6vh,4.5rem);width:clamp(120px,14vw,200px);opacity:.9;z-index:1}
.hero-star{position:absolute;z-index:1;width:11px;height:11px;pointer-events:none;
  background:url("img/star.svg") center/contain no-repeat;opacity:.8}
.hero-content{position:relative;z-index:4;max-width:46rem;width:100%}
.hero-monogram{width:clamp(88px,8vw,112px);margin:0 auto .8rem}
.hero-kicker{font-family:var(--caps);font-weight:600;letter-spacing:.14em;font-size:1.05rem;color:var(--emerald)}
.hero-names{margin:.6rem 0 0;font-family:var(--script);font-weight:400;color:var(--gilt-script);
  font-size:clamp(3.5rem,8.2vw,6.2rem);line-height:1.0;letter-spacing:0}
.hero-names .nm{display:block;white-space:nowrap}
.hero-and{display:flex;align-items:center;justify-content:center;gap:1.1rem;margin:.1rem auto;
  font-family:var(--script);font-size:clamp(1.8rem,3.6vw,2.6rem);color:var(--gilt-script);line-height:1.2}
.hero-and::before,.hero-and::after{content:"";height:1px;width:clamp(3rem,10vw,7rem);background:var(--gilt);opacity:.7}
.hero-request{margin:1.2rem auto 0;max-width:30rem;font-family:var(--caps);font-weight:600;font-size:1.05rem;
  letter-spacing:.1em;line-height:1.6;color:var(--emerald)}
.hero-rule{width:min(15rem,60%);margin:1.1rem auto;display:flex;align-items:center;gap:.8rem}
.hero-rule::before,.hero-rule::after{content:"";flex:1;height:1px;background:linear-gradient(90deg,transparent,var(--gilt))}
.hero-rule::after{background:linear-gradient(270deg,transparent,var(--gilt))}
.hero-rule i{width:10px;height:10px;background:url("img/star.svg") center/contain no-repeat}
.hero-date{font-family:var(--caps);font-weight:600;letter-spacing:.06em;color:var(--emerald);font-size:clamp(1.35rem,2.6vw,1.8rem);line-height:1.3}
.hero-year{font-style:italic;font-weight:500;color:var(--gilt-text);font-size:clamp(1.3rem,2.4vw,1.6rem);margin-top:.15rem}
.hero-time{margin-top:.4rem;font-family:var(--caps);font-weight:600;letter-spacing:.1em;font-size:1.02rem;color:var(--emerald)}
.hero-actions{display:flex;flex-wrap:wrap;gap:.9rem;justify-content:center;margin-top:1.5rem}

/* the one orchestrated moment: the invitation composes itself, once */
@media (prefers-reduced-motion:no-preference){
  .hero [data-in]{opacity:0;transform:translateY(14px);animation:rise 1.1s cubic-bezier(.2,.7,.2,1) forwards;animation-delay:calc(var(--i,0)*140ms + 150ms)}
  .hero-frame{opacity:0;animation:fadein 1.6s ease .1s forwards}
  .hero-art{opacity:0;animation:fadein 2.4s ease .5s forwards}
  .hero-sprig{opacity:0;animation:fadein 2s ease .9s forwards}
  .hero-star{animation:twinkle 7s ease-in-out infinite;animation-delay:var(--td,0s)}
}
@keyframes rise{to{opacity:1;transform:none}}
@keyframes fadein{to{opacity:1}}
@keyframes twinkle{0%,100%{opacity:.25}50%{opacity:.9}}

@media (max-width:900px){
  .hero-parthenon{top:auto;bottom:0;width:44vw;opacity:.55}
  .hero-church{top:auto;bottom:0;width:38vw;opacity:.55}
}
@media (max-width:640px){
  .hero{padding-inline:calc(var(--gutter) + 12px)}
  .hero-frame{inset:8px;border-width:16px}
  .hero-sprig.tl{width:42vw;left:-1.5rem}
  .hero-sprig.br{width:42vw;right:-1.5rem;bottom:-1rem}
  .hero-constellation{display:none}
  .hero-names .nm{white-space:normal}
}

/* ---------- NAV ---------- */
.nav{
  position:sticky;top:0;z-index:50;background:rgba(251,246,234,.94);
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  border-bottom:1px solid rgba(176,141,62,.45);
}
.nav ul{list-style:none;padding:0;margin:0 auto;max-width:72rem;display:flex;gap:.2rem;
  justify-content:safe center;overflow-x:auto;scrollbar-width:none;padding:.35rem var(--gutter)}
.nav ul::-webkit-scrollbar{display:none}
.nav a{display:block;white-space:nowrap;padding:.55rem .85rem;text-decoration:none;color:var(--emerald);
  font-family:var(--caps);font-weight:600;letter-spacing:.09em;font-size:1rem;
  background:linear-gradient(var(--gilt),var(--gilt)) no-repeat 50% calc(100% - .3rem)/0 1px;transition:background-size .25s}
.nav a:hover{background-size:calc(100% - 1.7rem) 1px;color:var(--emerald)}
.nav a[aria-current="true"]{background-size:calc(100% - 1.7rem) 1px}
.nav .ext{color:var(--gilt-text)}

/* ---------- OUR STORY ---------- */
.story-text{max-width:var(--measure);margin:0 auto;text-align:center;font-size:1.34rem;line-height:1.7}
.story-text p+p{margin-top:1.3rem}
.story-text em{color:var(--emerald)}
.story-pull{
  max-width:34rem;margin:3.2rem auto;padding:1.7rem 1rem;text-align:center;
  border-block:1px solid rgba(176,141,62,.55);
  font-family:var(--script);font-size:clamp(2rem,4.4vw,2.8rem);line-height:1.3;color:var(--gilt-script);
}
.timeline{position:relative;max-width:40rem;margin:3.5rem auto 0;list-style:none;padding:0}
.timeline::before{content:"";position:absolute;left:50%;top:.5rem;bottom:.5rem;width:1px;
  background:linear-gradient(transparent,var(--gilt) 12%,var(--gilt) 88%,transparent);transform:translateX(-.5px)}
.tl-item{position:relative;display:grid;grid-template-columns:1fr 1fr;column-gap:3rem;margin-bottom:2.4rem}
.tl-item:last-child{margin-bottom:0}
.tl-item::before{content:"";position:absolute;left:50%;top:.35rem;width:16px;height:16px;transform:translateX(-50%);
  background:var(--paper) url("img/star.svg") center/16px no-repeat}
.tl-body{grid-column:2}
.tl-item:nth-child(even) .tl-body{grid-column:1;grid-row:1;text-align:right}
.tl-label{font-family:var(--caps);font-weight:600;letter-spacing:.1em;color:var(--gilt-text);font-size:1.02rem;display:block}
.tl-text{font-style:italic;font-size:1.2rem;line-height:1.45;color:var(--ink)}
@media (max-width:620px){
  .timeline::before{left:8px}
  .tl-item{grid-template-columns:1fr;padding-left:2.4rem}
  .tl-item::before{left:8px}
  .tl-body,.tl-item:nth-child(even) .tl-body{grid-column:1;text-align:left}
}

/* ---------- THE DAY ---------- */
.day-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(1.5rem,4vw,3rem);max-width:50rem;margin:0 auto}
.day-card{
  position:relative;text-align:center;padding:2.4rem 1.6rem 2.2rem;background:var(--paper);
  border:1px solid rgba(176,141,62,.6);border-radius:999px 999px 2px 2px;
  box-shadow:0 0 0 5px var(--paper),0 0 0 6px rgba(176,141,62,.35);
}
.day-card h3{font-size:1.8rem;margin-top:2.4rem}
.day-card .caps{display:block;color:var(--gilt-text);margin-top:.35rem}
.day-card p{margin-top:.9rem;font-size:1.2rem}
.day-card .btn{margin-top:1.1rem;padding:.6rem 1.4rem;font-size:.98rem}
.day-card .star{width:16px;height:16px;margin:0 auto;background:url("img/star.svg") center/contain no-repeat}
.dress{max-width:34rem;margin:2.6rem auto 0;text-align:center;font-style:italic}
.dress strong{font-style:normal;color:var(--emerald);font-weight:600}
@media (max-width:640px){.day-grid{grid-template-columns:1fr}}

/* ---------- FAQ ---------- */
.faq{max-width:46rem;margin:0 auto;border-top:1px solid rgba(176,141,62,.5)}
.faq-item{border-bottom:1px solid rgba(176,141,62,.5)}
.faq-q{
  width:100%;display:flex;justify-content:space-between;align-items:center;gap:1.2rem;text-align:left;
  padding:1.15rem .2rem;background:none;border:0;cursor:pointer;
  font-family:var(--serif);font-weight:600;font-size:1.4rem;line-height:1.25;color:var(--emerald);
}
.faq-q:hover{color:var(--gilt-text)}
.faq-icon{flex:none;width:18px;height:18px;position:relative;transition:transform .35s}
.faq-icon::before,.faq-icon::after{content:"";position:absolute;left:0;right:0;top:50%;height:1px;background:var(--gilt-text)}
.faq-icon::after{transform:rotate(90deg)}
.faq-q[aria-expanded="true"] .faq-icon{transform:rotate(45deg)}
.faq-a{display:grid;grid-template-rows:0fr;transition:grid-template-rows .4s ease}
.faq-a.open{grid-template-rows:1fr}
.faq-a>div{overflow:hidden}
.faq-a p{padding:0 .2rem 1.3rem;max-width:40rem}
.faq-a p+p{padding-top:0;margin-top:-.4rem}
.faq-a strong{color:var(--emerald);font-weight:600}
.faq-note{font-style:italic;color:var(--gilt-text)}
@media (prefers-reduced-motion:reduce){.faq-a,.faq-icon{transition:none}}

/* ---------- GALLERY (arches, like the church windows) ---------- */
.gallery{
  list-style:none;padding:0;margin:3rem auto 0;max-width:60rem;
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2.4rem 1.8rem;
}
.gallery li:nth-child(3n+2){margin-top:2.6rem}
.arch{position:relative;display:block;width:100%;padding:0;border:0;background:none;cursor:zoom-in}
.arch-frame{
  display:block;aspect-ratio:3/4;overflow:hidden;border-radius:999px 999px 2px 2px;
  box-shadow:0 0 0 1px var(--gilt-light),0 0 0 6px var(--emerald),0 0 0 7px rgba(224,201,133,.55);
  background:var(--emerald-2);
}
.arch-frame img{width:100%;height:100%;object-fit:cover;transition:transform .6s ease}
.arch:hover .arch-frame img{transform:scale(1.04)}
.gallery figcaption{margin-top:1.4rem;text-align:center;font-style:italic;font-size:1.15rem;color:var(--on-emerald-soft)}
@media (max-width:760px){
  .gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:2rem 1.2rem}
  .gallery li:nth-child(3n+2){margin-top:0}
  .gallery li:nth-child(even){margin-top:1.8rem}
}
.lightbox{border:0;padding:0;background:transparent;max-width:none;max-height:none;width:100vw;height:100vh;height:100dvh;
  place-items:center;color:var(--on-emerald)}
.lightbox[open]{display:grid}
.lightbox::backdrop{background:rgba(6,24,16,.93)}
.lightbox img{max-width:min(92vw,900px);max-height:80vh;object-fit:contain;box-shadow:0 0 0 1px var(--gilt-light)}
.lightbox p{text-align:center;margin-top:1rem;font-style:italic;font-size:1.2rem}
.lightbox form{position:absolute;top:1rem;right:1rem}
.lightbox .close{background:none;border:1px solid rgba(224,201,133,.6);color:var(--on-emerald);
  font-family:var(--caps);font-weight:600;letter-spacing:.1em;padding:.5rem 1.1rem;cursor:pointer}

/* ---------- WEDDING PARTY ---------- */
.party-sides{display:grid;grid-template-columns:1fr auto 1fr;gap:2rem;align-items:start;margin-top:3rem}
.party-side-title{text-align:center;font-family:var(--script);font-weight:400;font-size:2.4rem;color:var(--gilt-script);margin-bottom:1.6rem}
.party-divider{align-self:stretch;width:1px;margin-top:3rem;background:linear-gradient(transparent,var(--gilt),transparent)}
.party-label{text-align:center;font-family:var(--caps);font-weight:600;letter-spacing:.12em;color:var(--gilt-text);font-size:1rem;margin:1.8rem 0 1rem}
.party-group{display:flex;flex-wrap:wrap;gap:1.4rem 1rem;justify-content:center}
.member{display:flex;flex-direction:column;align-items:center;text-align:center;width:5.7rem}
.member.lead{width:auto;margin-bottom:.4rem}
.ph{width:76px;height:76px;border-radius:50%;overflow:hidden;margin-bottom:.55rem;
  box-shadow:0 0 0 2px var(--paper),0 0 0 3px var(--gilt);background:var(--paper-3)}
.ph img{width:100%;height:100%;object-fit:cover;object-position:center 20%}
.member.lead .ph,.ph.big{width:116px;height:116px}
.role{font-family:var(--caps);font-weight:600;letter-spacing:.1em;color:var(--gilt-text);font-size:.98rem;line-height:1.2}
.pname{font-style:italic;font-size:1.12rem;line-height:1.2;color:var(--ink)}
.party-extra{margin-top:3.6rem}
.party-extra .group{display:flex;flex-wrap:wrap;gap:1.8rem;justify-content:center}
.party-extra h3{text-align:center;font-family:var(--script);font-weight:400;font-size:2.4rem;color:var(--gilt-script);margin-bottom:1.8rem}
@media (max-width:720px){
  .party-sides{grid-template-columns:1fr;gap:3rem}
  .party-divider{width:60%;height:1px;margin:0 auto;background:linear-gradient(90deg,transparent,var(--gilt),transparent)}
}

/* ---------- REGISTRY / PHOTOS / CONTACT ---------- */
.center{text-align:center}
.cta-row{margin-top:2.2rem;text-align:center}
.photo-panel{max-width:34rem;margin:2.4rem auto 1.4rem;padding:2.2rem 1.6rem;text-align:center;background:var(--paper);
  border:1px solid rgba(176,141,62,.6);box-shadow:0 0 0 5px var(--paper-2),0 0 0 6px rgba(176,141,62,.35)}
.photo-panel .caps{display:block;color:var(--gilt-text);margin-bottom:.4rem}
.photo-panel p{margin-bottom:1.4rem}
.kindly{max-width:34rem;margin:0 auto;text-align:center;font-style:italic;color:var(--gilt-text);font-size:1.15rem}
.contact-row{display:flex;gap:clamp(1.5rem,6vw,4rem);justify-content:center;flex-wrap:wrap;margin-top:2.2rem}
.contact-item{text-align:center}
.contact-item .caps{display:block;color:var(--gilt-text)}
.contact-name{font-family:var(--script);font-size:2.4rem;color:var(--emerald);line-height:1.2}
.closing-art{width:min(300px,70%);margin:0 auto 1.4rem}
.place-line{margin-top:2.4rem;text-align:center;font-family:var(--caps);font-weight:600;letter-spacing:.12em;color:var(--olive);font-size:1rem}

/* ---------- FOOTER ---------- */
.footer{position:relative;background:var(--emerald);color:var(--on-emerald-soft);text-align:center;padding:4rem var(--gutter) 3rem}
.footer::before{content:"";position:absolute;top:0;left:0;right:0;height:20px;background:url("img/meander-h.svg") repeat-x left center/auto 20px;opacity:.8}
.footer .star{width:22px;height:22px;margin:0 auto 1rem;background:url("img/star.svg") center/contain no-repeat;filter:brightness(1.3)}
.footer .footer-names{font-family:var(--script);font-weight:400;font-size:3.2rem;letter-spacing:0;color:var(--gilt-light);line-height:1.2;margin-bottom:.4rem}
.footer p{font-family:var(--caps);font-weight:600;letter-spacing:.12em;font-size:1rem}
.footer .fine{margin-top:.8rem;font-family:var(--serif);font-style:italic;font-weight:500;letter-spacing:0;font-size:1.1rem;opacity:.8}

/* ==========================================================================
   RSVP
   ========================================================================== */
.rsvp-card{
  max-width:34rem;margin:2.4rem auto 0;padding:clamp(1.8rem,5vw,2.8rem);text-align:center;
  background:var(--paper);color:var(--ink-soft);
  border:1px solid var(--gilt);box-shadow:0 0 0 5px var(--emerald),0 0 0 6px rgba(224,201,133,.55);
}
.rsvp-intro{margin-bottom:1.6rem}
.rsvp-intro strong{color:var(--emerald);font-weight:600}
.field{display:flex;flex-direction:column;gap:.35rem;text-align:left}
.field+.field{margin-top:1rem}
.field label,.field-label{font-family:var(--caps);font-weight:600;letter-spacing:.1em;color:var(--emerald);font-size:1rem}
.input{
  width:100%;background:#FFFDF6;border:1px solid #BFA566;border-radius:1px;color:var(--ink);
  padding:.7rem .9rem;font-size:1.15rem;line-height:1.3;
}
.input::placeholder{color:#6F7A70}
.input:focus{outline:2px solid var(--emerald);outline-offset:1px;border-color:var(--emerald)}
textarea.input{min-height:6.5rem;resize:vertical}
.row{display:flex;gap:.6rem}
.row .input{flex:1;min-width:0}
.code-input{text-transform:uppercase;letter-spacing:.14em}
.rsvp-error{margin-top:.8rem;color:#8F2B2B;font-style:italic;font-size:1.05rem}
.rsvp-status{text-align:center;font-style:italic;color:var(--on-emerald-soft);margin-top:1.4rem}
.toggle{display:grid;grid-template-columns:1fr 1fr;gap:.6rem;margin-bottom:1.3rem}
.toggle button{
  padding:.7rem .6rem;cursor:pointer;background:transparent;border:1px solid var(--gilt);color:var(--emerald);
  font-family:var(--caps);font-weight:600;letter-spacing:.08em;font-size:1rem;border-radius:1px;transition:background .2s,color .2s
}
.toggle button[aria-pressed="true"]{background:var(--emerald);border-color:var(--emerald);color:var(--paper)}
.prompt{font-style:italic;margin-bottom:1rem}
.members{display:flex;flex-direction:column;gap:.55rem;margin-bottom:1.5rem;text-align:left}
.member-row{display:flex;align-items:center;gap:.8rem;padding:.65rem .9rem;background:#FFFDF6;
  border:1px solid #D2BE86;border-radius:1px;cursor:pointer;width:100%;text-align:left;transition:border-color .2s,background .2s}
.member-row:hover{border-color:var(--gilt)}
.member-row[aria-checked="true"]{border-color:var(--emerald);background:#EEF1E6}
.checkbox{flex:none;width:20px;height:20px;border:1.5px solid var(--gilt-text);display:grid;place-items:center;border-radius:2px;background:#fff}
.member-row[aria-checked="true"] .checkbox{background:var(--emerald);border-color:var(--emerald)}
.member-row[aria-checked="true"] .checkbox::after{content:"";width:5px;height:10px;border:solid var(--paper);border-width:0 2px 2px 0;transform:rotate(45deg) translate(-1px,-1px)}
.member-name{font-size:1.2rem;color:var(--ink)}
.actions{display:flex;gap:.7rem;flex-wrap:wrap}
#rsvp-step-members .actions{margin-top:1.5rem}
#rsvp-step-members .plusone{margin-bottom:0}
.actions .btn{flex:1;min-width:9rem;padding-inline:1rem}
.plusone{margin-top:1.4rem;padding-top:1.3rem;border-top:1px solid rgba(176,141,62,.4);text-align:left}
.plusone .prompt{font-size:1.3rem;margin-bottom:.8rem}
.plusone .input{font-size:1.15rem}
.plusone .btn{font-size:1.1rem}
.plus-list{display:flex;flex-direction:column;gap:.5rem;margin-bottom:.7rem}
.plus-chip{display:flex;justify-content:space-between;align-items:center;padding:.5rem .8rem;background:#F6EFD8;border:1px solid #D2BE86}
.plus-chip button{background:none;border:0;cursor:pointer;color:var(--ink-soft);font-size:1.1rem;padding:0 .3rem}
.confirmed{padding:.9rem 1.1rem;margin-bottom:1.3rem;text-align:left;font-style:italic;background:#F6EFD8;border:1px solid #D2BE86;color:var(--ink)}
.confirmed strong{font-style:normal;color:var(--emerald)}
.link-btn{display:block;margin:.9rem auto 0;background:none;border:0;cursor:pointer;color:var(--gilt-text);
  font-family:var(--caps);font-weight:600;letter-spacing:.1em;font-size:1rem;text-decoration:underline;text-underline-offset:.25em}
[hidden]{display:none!important}
.on-emerald .rsvp-card .btn{background:var(--emerald);border-color:var(--emerald);color:var(--paper)}
.on-emerald .rsvp-card .btn:hover{background:var(--emerald-2);color:var(--paper)}
.on-emerald .rsvp-card .btn-ghost{background:transparent;border-color:var(--gilt);color:var(--emerald)}
.on-emerald .rsvp-card .btn-ghost:hover{background:var(--paper-3);color:var(--emerald)}
.on-emerald .rsvp-card :focus-visible{outline-color:var(--gilt-text)}
.toast{
  position:fixed;left:50%;bottom:1.6rem;z-index:1000;max-width:calc(100vw - 2rem);
  transform:translate(-50%,calc(100% + 3rem));transition:transform .4s ease;
  background:var(--emerald);color:var(--on-emerald);border:1px solid var(--gilt-light);padding:.8rem 1.6rem;text-align:center;
  font-family:var(--caps);font-weight:600;letter-spacing:.08em;font-size:1.02rem;
}
.toast.show{transform:translate(-50%,0)}

/* ==========================================================================
   SUB-PAGES (RSVP confirmations, bridal shower)
   ========================================================================== */
.page-hero{position:relative;text-align:center;padding:clamp(3.5rem,8vw,5.5rem) var(--gutter) 3rem;background:
  radial-gradient(ellipse 70% 70% at 50% 30%,#FFFCF3,rgba(255,252,243,0) 70%),var(--paper)}
.page-hero::before,.page-hero::after{content:"";position:absolute;left:0;right:0;height:20px;background:url("img/meander-h.svg") repeat-x left center/auto 20px;opacity:.85}
.page-hero::before{top:0}
.page-hero::after{bottom:0}
.page-hero .mono{width:84px;margin:0 auto 1rem}
.page-hero .kicker{font-family:var(--caps);font-weight:600;letter-spacing:.14em;color:var(--emerald);font-size:1.05rem}
.page-hero h1{font-family:var(--script);font-weight:400;font-size:clamp(3rem,8vw,5rem);color:var(--gilt-script);line-height:1.15;margin:.5rem 0 .6rem}
.page-hero p.sub{max-width:36rem;margin:0 auto;font-style:italic;font-size:1.3rem}
.page-main{max-width:62rem;margin:0 auto;padding:3.2rem var(--gutter) 5rem}
.venue{display:flex;flex-wrap:wrap;gap:1rem 1.6rem;align-items:center;justify-content:space-between;
  padding:1.2rem 1.6rem;margin-bottom:2.6rem;background:var(--paper-2);border:1px solid rgba(176,141,62,.55)}
.venue .caps{display:block;color:var(--gilt-text)}
.venue .addr{font-size:1.25rem;color:var(--ink)}
.h-label{text-align:center;font-family:var(--caps);font-weight:600;letter-spacing:.14em;color:var(--gilt-text);font-size:1.02rem}
.h-title{text-align:center;font-size:clamp(1.9rem,4vw,2.6rem);margin:.2rem 0 1.6rem}
.banner{max-width:44rem;margin:0 auto 2rem;padding:1rem 1.4rem;text-align:center;font-style:italic;background:var(--paper-2);border:1px solid rgba(176,141,62,.4)}
.banner strong{font-style:normal;color:var(--emerald);font-weight:600}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(18rem,1fr));gap:1.6rem}
.card{display:flex;flex-direction:column;padding:1.6rem;background:var(--paper);border:1px solid rgba(176,141,62,.6);box-shadow:0 0 0 4px var(--paper-2),0 0 0 5px rgba(176,141,62,.3)}
.card.feature{border-color:var(--gilt)}
.card .tag{font-family:var(--caps);font-weight:600;letter-spacing:.1em;color:var(--gilt-text);font-size:.98rem}
.card .name{font-size:1.5rem;font-weight:600;line-height:1.2;color:var(--emerald);margin:.3rem 0}
.card .addr{font-size:1.02rem;color:var(--olive);margin-bottom:.7rem;font-style:italic}
.card .detail{font-style:italic;margin-bottom:1rem;flex:1}
.card .detail strong{font-style:normal;color:var(--emerald);font-weight:600}
.card .meta{font-family:var(--caps);font-weight:600;letter-spacing:.06em;color:var(--emerald);margin-bottom:1rem}
.card .btn{align-self:flex-start;padding:.55rem 1.3rem;font-size:.98rem}
.badge{display:inline-block;align-self:flex-start;font-family:var(--caps);font-weight:600;letter-spacing:.08em;font-size:.95rem;
  padding:.15rem .7rem;margin-bottom:.6rem;background:var(--paper-2);border:1px solid rgba(176,141,62,.6);color:var(--emerald)}
.box{padding:.9rem 1.1rem;margin-bottom:1rem;background:var(--paper-2);border:1px solid rgba(176,141,62,.5)}
.box .caps{display:block;color:var(--gilt-text);margin-bottom:.3rem}
.box p{font-size:1.08rem;line-height:1.5;margin-top:.2rem}
.box p strong{color:var(--emerald);font-weight:600}
.box .code{font-family:var(--caps);font-weight:600;font-size:1.6rem;letter-spacing:.18em;color:var(--emerald);margin:.1rem 0}
.box .small{font-style:italic;font-size:1rem;color:var(--ink-soft)}
.tabs{display:flex;justify-content:center;gap:.6rem;margin-bottom:2.4rem;flex-wrap:wrap}
.tabs button{cursor:pointer;background:transparent;border:1px solid var(--gilt);color:var(--emerald);padding:.6rem 1.6rem;
  font-family:var(--caps);font-weight:600;letter-spacing:.1em;font-size:1.02rem;border-radius:1px}
.tabs button[aria-selected="true"]{background:var(--emerald);border-color:var(--emerald);color:var(--paper)}
.tab-panel[hidden]{display:none}
.note{max-width:40rem;margin:3.2rem auto 0;padding:1.5rem 1.8rem;text-align:center;font-style:italic;border:1px solid rgba(176,141,62,.45);background:var(--paper-2)}
.note strong{font-style:normal;color:var(--emerald);font-weight:600}
.back{display:block;text-align:center;margin-top:2.4rem;font-family:var(--caps);font-weight:600;letter-spacing:.12em;font-size:1rem}
.quote-line{max-width:34rem;margin:2.4rem auto;text-align:center;padding:1.4rem 1rem;border-block:1px solid rgba(176,141,62,.5);
  font-family:var(--script);font-size:clamp(1.9rem,4.2vw,2.5rem);color:var(--gilt-script);line-height:1.3}
.panel{max-width:36rem;margin:0 auto;padding:clamp(1.6rem,4vw,2.4rem);background:var(--paper);border:1px solid rgba(176,141,62,.6);
  box-shadow:0 0 0 5px var(--paper-2),0 0 0 6px rgba(176,141,62,.3);text-align:center}
.panel p+p{margin-top:1rem}
.panel strong{color:var(--emerald);font-weight:600}
.details-strip{display:flex;flex-wrap:wrap;gap:1.2rem 3rem;justify-content:center;padding:1.6rem var(--gutter);background:var(--paper-2);border-block:1px solid rgba(176,141,62,.5)}
.details-strip div{text-align:center}
.details-strip .caps{display:block;color:var(--gilt-text)}
.details-strip .v{color:var(--ink);font-size:1.2rem}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.form-grid .full{grid-column:1/-1}
@media (max-width:560px){.form-grid{grid-template-columns:1fr}}
.form-grid .field+.field{margin-top:0}
.sub-section{padding:clamp(3.2rem,7vw,5rem) var(--gutter)}
.sub-section .inner{max-width:46rem;margin:0 auto}
.hidden-msg{display:none;text-align:center;padding:1.6rem 0}
.hidden-msg h3{font-family:var(--script);font-weight:400;font-size:2.4rem;color:var(--gilt-script);margin-bottom:.6rem}
.hidden-msg.show{display:block}

@media print{.nav,.hero-art,.hero-sprig,.toast{display:none}}
