/* Stephen & Elvira — shared styles. Most layout lives inline in each page's templates. */
@font-face{font-family:Cinzel;font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/cinzel-400.woff2) format("woff2")}
@font-face{font-family:Cinzel;font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/cinzel-500.woff2) format("woff2")}
@font-face{font-family:Lora;font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/lora-400.woff2) format("woff2")}
@font-face{font-family:Lora;font-style:italic;font-weight:400;font-display:swap;src:url(/assets/fonts/lora-400-italic.woff2) format("woff2")}
@font-face{font-family:Lora;font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/lora-500.woff2) format("woff2")}
@font-face{font-family:Lora;font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/lora-600.woff2) format("woff2")}

*{-webkit-tap-highlight-color:transparent}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;font-family:Lora,Georgia,serif;background:#FFFFFF;color:#5E0A59;overflow-x:hidden}
a{color:#A33A86}a:hover{color:#7C2563}
input,button,select,textarea{font-family:inherit}
button{cursor:pointer}
button:disabled{cursor:default;opacity:.55}
strong{font-weight:600}
img,video{max-width:100%}
:focus-visible{outline:2px solid #B8479A;outline-offset:2px}
input:focus,textarea:focus,select:focus{outline:2px solid #B8479A;outline-offset:0;border-color:#5E0A59 !important}
summary{cursor:pointer;list-style:none}
summary::-webkit-details-marker{display:none}
details[open] summary .faq-plus{transform:rotate(45deg)}
.faq-plus{display:inline-block;transition:transform 200ms ease}
[id]{scroll-margin-top:16px}

.btn-o{transition:background-color 150ms ease,color 150ms ease,border-color 150ms ease}
.btn-o:hover{background:#B8479A !important;border-color:#B8479A !important;color:#FFFFFF !important}
.btn-lb:hover{background:#FFFFFF !important;color:#5E0A59 !important}
[role="tab"]{transition:background-color 150ms ease}
[role="tab"][aria-selected="false"]:hover{background:#F8F2F7 !important}
.spin{animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.swipe{scrollbar-width:none}.swipe::-webkit-scrollbar{display:none}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.pre-line{white-space:pre-line}

/* Hero over a photo */
.hero-photo > div, .hero-photo > div *{color:#FFFFFF !important}
.hero-photo .btn-o{color:#5E0A59 !important}
.hero-photo .btn-o:hover{color:#FFFFFF !important}
.hero-photo h1 img{filter:brightness(0) invert(1)}
.hero-photo [role="dialog"], .hero-photo [role="dialog"] *{color:#5E0A59 !important}

/* Album tiles */
.tile .tile-cap{opacity:1;transition:opacity 200ms ease}
@media (min-width:1024px) and (hover:hover){.tile .tile-cap{opacity:0}.tile:hover .tile-cap,.tile:focus-visible .tile-cap{opacity:1}}
.tile img,.tile video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.tile:focus-visible{outline:2px solid #B8479A;outline-offset:2px}

/* Toasts / page loader */
.loading{min-height:100vh;display:flex;align-items:center;justify-content:center}

.btn-f{transition:background-color 150ms ease}
.btn-f:hover{background:#A33A86 !important}

/* No single words left alone on the last line of a paragraph; headings break into even lines */
p{text-wrap:pretty}
h1,h2,h3{text-wrap:balance}

/* Hero: fills the screen below the menu bar; everything shrinks a little on short screens so nothing is cut off.
   Very short screens (a phone held sideways) get the minimum height and simply scroll. */
.hero{display:flex;flex-direction:column;align-items:center}
.hero > *{z-index:1}
.hero-mid{flex:1 1 auto;min-height:0}
.hero-m{height:calc(100vh - 64px);height:calc(100svh - 64px);min-height:540px;padding:clamp(20px,4.5vh,32px) 24px clamp(24px,5vh,40px);gap:clamp(12px,2.6vh,20px)}
.hero-m .hero-num{font-size:clamp(34px,7vh,46px)}
.hero-m .hero-low{gap:clamp(12px,2.4vh,20px)}
.hero-m .hero-names{width:clamp(220px,42vh,330px);max-width:calc(100vw - 48px)}
.hero-m .hero-date{font-size:clamp(16px,2.4vh,18px)}
.hero-m .hero-venue{font-size:clamp(13px,2vh,15px)}
.hero-m .hero-btns > *{min-height:clamp(46px,6.5vh,50px) !important}
.hero-d{height:calc(100vh - 80px);height:calc(100svh - 80px);min-height:600px;padding:clamp(32px,6vh,56px) 80px clamp(36px,6vh,64px);gap:clamp(16px,2.6vh,24px)}
.hero-d .hero-units{gap:clamp(40px,5vw,72px)}
.hero-d .hero-num{font-size:clamp(56px,11vh,88px)}
.hero-d .hero-low{gap:clamp(14px,2.4vh,20px)}
.hero-d .hero-names{width:clamp(340px,50vh,480px)}
.hero-d .hero-date{font-size:clamp(22px,3vh,26px)}
.hero-d .hero-venue{font-size:clamp(18px,2.5vh,22px)}
.hero-d .hero-btns > *{min-height:clamp(50px,6.5vh,56px) !important}
@supports (height:1svh){
  .hero-m .hero-num{font-size:clamp(34px,7svh,46px)}
  .hero-m .hero-names{width:clamp(220px,42svh,330px)}
  .hero-d .hero-num{font-size:clamp(56px,11svh,88px)}
  .hero-d .hero-names{width:clamp(340px,50svh,480px)}
}

/* Garland (layered watercolour flowers) */
.gl{position:relative;aspect-ratio:1304/601}
.gl img{position:absolute;display:block;height:auto;max-width:none;pointer-events:none;user-select:none}
.gl-fl{position:absolute;inset:0}
/* Undrawn until on screen; js/garland.js sets data-gl="in" while at least a third of it is visible */
.gl .gl-fol{clip-path:inset(0 100% 0 0)}
.gl .gl-flw{opacity:0}
.gl[data-gl="in"] .gl-fl{animation:bqnod 7s ease-in-out infinite}
.gl[data-gl="in"] .gl-fol{animation:glfol12 12s cubic-bezier(.4,.1,.3,1) infinite both}
.gl[data-gl="in"] .gl-flw{animation:glflw12 12s ease-out infinite both}
.gl-static .gl .gl-fol{clip-path:none}.gl-static .gl .gl-flw{opacity:1}
@keyframes bqnod{0%,100%{transform:rotate(0)}50%{transform:rotate(2.2deg)}}
/* One 12 s cycle: leaves draw (0-2.2 s), flowers bloom, rest with a sway, fade out at about 10.5 s, replay */
@keyframes glfol12{0%{clip-path:inset(0 100% 0 0);opacity:1}18%{clip-path:inset(0 0 0 0);opacity:1}88%{clip-path:inset(0 0 0 0);opacity:1}94%{clip-path:inset(0 0 0 0);opacity:0}100%{clip-path:inset(0 100% 0 0);opacity:0}}
@keyframes glflw12{0%{transform:scale(.1) rotate(-60deg);opacity:0}4%{opacity:1}7.5%{transform:none;opacity:1}82%{transform:none;opacity:1}88%{transform:scale(.6);opacity:0}100%{transform:scale(.1) rotate(-60deg);opacity:0}}
@media (prefers-reduced-motion: reduce){.gl *{animation:none !important}.gl .gl-fol{clip-path:none}.gl .gl-flw{opacity:1}html{scroll-behavior:auto}}

/* Couple admin on small screens */
@media (max-width: 899px){
  .admin-root{flex-direction:column !important}
  .admin-root > aside{width:auto !important;padding:16px !important;gap:12px !important}
  .admin-root > aside nav{flex-direction:row !important;overflow-x:auto;gap:4px}
  .admin-root > main{padding:28px 16px !important;overflow:visible !important}
  .admin-root > main > div[style*="grid-template-columns: repeat(4"]{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
  .admin-root > main > div[style*="grid-template-columns: repeat(6"]{grid-template-columns:repeat(3,minmax(0,1fr)) !important}
  .admin-root table{display:block;overflow-x:auto}
}

/* "Along the way" on computers: two rows drifting left at different speeds; hovering pauses both */
.atw-track{position:relative;height:325px;overflow:hidden}
.atw-row{position:absolute;left:0;top:0;height:325px;display:flex;gap:24px;will-change:transform;backface-visibility:hidden;animation-name:atwdrift;animation-timing-function:linear;animation-iteration-count:infinite}
.atw-row img{flex-shrink:0;height:325px;object-fit:cover;display:block;border-radius:2px;background:#F3ECF2;backface-visibility:hidden;transform:translateZ(0)}
.atw:hover .atw-row{animation-play-state:paused}
@keyframes atwdrift{from{transform:translate3d(0,0,0)}to{transform:translate3d(-50%,0,0)}}
@media (prefers-reduced-motion: reduce){.atw-row{animation:none;position:static}.atw-track{overflow-x:auto}}

/* Older browsers (Safari < 15) without aspect-ratio */
@supports not (aspect-ratio: 1 / 1){
  .gl{height:0 !important;padding-bottom:46.09%}
  .tile{aspect-ratio:auto !important;height:0 !important;padding-bottom:110% !important}
}

/* Before the big day: shoot grid and the full-screen viewer (shoot.js) */
.shoot-ph{border:0;padding:0;margin:0;background:#F3ECF2;cursor:zoom-in;display:block;border-radius:2px;overflow:hidden;width:100%}
.shoot-ph picture{display:block;width:100%;height:100%}
.shoot-ph img{transition:transform 500ms ease}
@media (hover:hover){.shoot-ph:hover img{transform:scale(1.03)}}
.shoot-ph:focus-visible{outline:2px solid #B8479A;outline-offset:3px}
.lbx{position:fixed;inset:0;z-index:200;display:none;grid-template-columns:96px minmax(0,1fr) 96px;grid-template-rows:72px minmax(0,1fr) 64px;background:rgba(40,5,38,.96);color:#FFFFFF;font-family:Lora,Georgia,serif}
.lbx.on{display:grid;animation:lbxin 200ms ease both}
@keyframes lbxin{from{opacity:0}to{opacity:1}}
.lbx-top{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;padding:0 16px 0 28px}
.lbx-count{font-size:15px;letter-spacing:.12em}
.lbx-btn{border:0;background:rgba(255,255,255,.12);color:#FFFFFF;width:52px;height:52px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;align-self:center;justify-self:center}
.lbx-btn:hover{background:rgba(255,255,255,.24)}
.lbx-btn:focus-visible{outline:2px solid #E8B6DA;outline-offset:3px}
.lbx-stage{min-height:0;min-width:0;display:flex;align-items:center;justify-content:center;padding:4px}
.lbx-img{max-width:100%;max-height:100%;object-fit:contain;display:block;border-radius:2px;user-select:none;-webkit-user-drag:none}
.lbx-hint{grid-column:1/-1;display:flex;align-items:center;justify-content:center;font-size:14px;opacity:.75}
@media (max-width:1023px){
  .lbx{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:64px minmax(0,1fr) 88px}
  .lbx-stage{grid-column:1/-1;grid-row:2;padding:4px 8px}
  .lbx-prev{grid-column:1;grid-row:3;justify-self:end;margin-right:20px}
  .lbx-next{grid-column:2;grid-row:3;justify-self:start;margin-left:20px}
  .lbx-hint{grid-row:4;display:none}
}
@media (prefers-reduced-motion:reduce){.lbx.on{animation:none}.shoot-ph img{transition:none}}

/* Full-width photo breaks: on computers the photo drifts a little as you scroll (offset set by shoot.js) */
.band-d{position:relative;height:680px;overflow:hidden;margin:0;background:#EBDFEA}
.band-d img{position:absolute;left:0;top:-24px;width:100%;height:calc(100% + 48px);object-fit:cover;display:block;will-change:transform}
.band-d[data-band="a"] img{transform:translate3d(0,var(--drift-a,0px),0)}
.band-d[data-band="b"] img{transform:translate3d(0,var(--drift-b,0px),0)}

/* Footer: solid plum. To use a photo, add it as assets/photos/footer.jpg and put it back under a plum wash. */
.site-ft{background-color:#5E0A59}
@media (min-width:1024px){.site-ft{min-height:640px;box-sizing:border-box;justify-content:center;background-position:center 58%}}
