@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Great+Vibes&display=swap');

:root {
  color-scheme: light;
  --wine:#6c182c;
  --paper:#fffcf4;
  --script:"Great Vibes","Brush Script MT",cursive;
  --serif:"Cormorant Garamond",Georgia,serif;
}
*, *::before, *::after { box-sizing:border-box; }
body { margin:0; background:linear-gradient(#39142266,#240d1966) center / cover fixed,url(botanical.webp) center / cover fixed #2e101c; color:var(--wine); font:500 18px/1.35 var(--serif); }
button, a { -webkit-tap-highlight-color:transparent; }
:focus-visible { outline:3px solid #be8756; outline-offset:4px; }
[hidden] { display:none !important; }
.invitation { width:min(100% - 48px, 790px); margin:clamp(28px,7vh,74px) auto; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(24px,5vw,66px); align-items:stretch; }
.paper { overflow:hidden; background:var(--paper); text-align:center; box-shadow:0 14px 45px #11090675; display:flex; flex-direction:column; }
section, header, footer { padding:28px 24px; }
h1,h2,p { margin:0; }
p+p { margin-top:12px; }
h1,h2,.signature { font:400 44px/1.05 var(--script); }
h1 { font-size:clamp(51px,7vw,71px); margin:13px 0 5px; }
.hero h1:focus { outline:none; }
h1 span { font-size:.65em; }
h2 { margin-bottom:13px; }
.eyebrow { font:700 11px/1.5 Georgia,serif; text-transform:uppercase; letter-spacing:.13em; }
.surnames b { padding:0 5px; }
.hero { padding-top:34px; padding-bottom:27px; position:relative; }
.wine-panel { background:var(--wine); color:#fffcf0; position:relative; }
.wine-panel::before,.wine-panel::after { content:""; display:block; height:9px; position:absolute; left:0; right:0; background:inherit; clip-path:polygon(0 44%,7% 25%,16% 46%,24% 8%,37% 18%,48% 46%,59% 31%,68% 72%,77% 50%,89% 22%,94% 38%,100% 29%,100% 100%,0 100%); }
.wine-panel::before { top:-8px; }
.wine-panel::after { bottom:-8px; transform:rotate(180deg); }
.calendar-section { padding-top:33px; }
.calendar { width:100%; max-width:260px; margin:12px auto 16px; border-collapse:collapse; color:#47282e; font-variant-numeric:tabular-nums; }
.calendar th { font:600 11px Georgia,serif; }
.calendar td { height:30px; width:14.28%; }
.calendar time { display:inline-grid; place-items:center; width:29px; height:29px; border-radius:50%; background:var(--wine); color:white; font-weight:700; }
.venue { margin-top:auto; padding-top:11px; padding-bottom:35px; }
.venue-name { font-size:27px; line-height:1; font-weight:700; }
.venue .eyebrow { margin-top:7px; margin-bottom:15px; }
.button { display:inline-flex; align-items:center; justify-content:center; gap:7px; background:var(--wine); color:#fffaf0; border-radius:24px; text-decoration:none; padding:8px 16px; min-height:38px; font:700 10px/1.4 Georgia,serif; letter-spacing:.07em; text-transform:uppercase; }
.button:hover { background:#491020; }
.botanical { height:134px; background:linear-gradient(145deg,#40132030,#11180e14),url(botanical.webp) center 42% / cover,#421728; }
.celebration { padding-top:30px; padding-bottom:46px; }
.schedule { border-right:1px solid #e9dbb0; max-width:220px; margin:15px auto 0; padding:2px 12px 5px; position:relative; }
.schedule::after { content:""; position:absolute; right:-4px; top:50%; width:7px; height:7px; border-radius:50%; background:#f5e5b5; }
.schedule time { font-size:34px; }
.schedule p+p { margin-top:5px; }
.divider { color:#e0cd98; margin:22px 0 18px; }
.swatches { list-style:none; padding:0; display:flex; justify-content:center; gap:13px; margin:15px 0 0; }
.swatches li { font:600 13px var(--serif); flex:1; max-width:83px; }
.swatches span { display:block; width:44px; height:44px; margin:0 auto 8px; border-radius:50%; background:linear-gradient(145deg,#ffffff65,transparent 42%,#0004),var(--swatch); box-shadow:inset 0 0 0 1px #ffffff26; }
.contact { padding-top:47px; position:relative; }
.contact p { margin-bottom:15px; }
.contact .button { display:flex; max-width:245px; margin:8px auto 0; }
.ribbon { position:absolute; left:50%; top:-18px; transform:translateX(-50%); display:flex; align-items:center; width:120px; height:39px; z-index:1; }
.ribbon i { flex:1; height:33px; background:linear-gradient(155deg,#551326,#9a3b4b 48%,#580d21 70%); clip-path:polygon(0 0,100% 34%,100% 66%,0 100%,7% 50%); transform:rotate(9deg); }
.ribbon i+i { transform:scaleX(-1) rotate(9deg); }
.ribbon b { position:absolute; left:calc(50% - 9px); width:18px; height:17px; border-radius:35%; background:linear-gradient(140deg,#af525c,#570e24); }
.countdown { padding-top:15px; }
.countdown h2 { font-size:37px; }
.clock { display:grid; grid-template-columns:repeat(4,1fr); color:var(--wine); max-width:260px; margin:auto; }
.clock span { display:block; font:600 29px/1.1 var(--serif); font-variant-numeric:tabular-nums; }
.clock small { font:600 9px Georgia,serif; letter-spacing:.04em; text-transform:uppercase; }
footer { margin-top:auto; color:var(--wine); padding:15px 20px 35px; }
.signature { margin-top:6px; }
@media (max-width:650px) {
  .invitation { max-width:410px; grid-template-columns:1fr; gap:20px; width:min(100% - 28px,410px); margin:24px auto; }
  .botanical { height:112px; }
}

.attendance { margin-top:19px; }
.enquiry-link { display:inline-block; margin-top:5px; color:inherit; text-underline-offset:3px; }
.portrait-frame {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  display:grid;
  place-items:center;
  margin:23px -24px -27px;
  background:#5d3d32;
  mask-image:linear-gradient(to bottom,#000 85%,transparent 100%);
}
.portrait-frame::before {
  content:"";
  position:absolute;
  inset:-15px;
  z-index:-1;
  background:url(alex-gloria-close-up.webp) center / cover;
  filter:blur(14px) brightness(.75);
}
.couple-portrait {
  display:block;
  width:calc(100% - 36px);
  aspect-ratio:2 / 3;
  object-fit:cover;
  filter:blur(.7px);
}
.couple-gallery { padding-top:12px; }
.photo-album { margin-inline:auto; max-width:290px; }
.album-cover {
  display:grid;
  justify-items:center;
  gap:12px;
  padding:12px 17px;
  border-radius:22px;
  background:#f5eee3;
  cursor:pointer;
  list-style:none;
  font-weight:700;
}
.album-cover::-webkit-details-marker { display:none; }
.photo-stack {
  display:grid;
  width:min(76%, 176px);
  margin:14px auto 5px;
}
.photo-stack img {
  grid-area:1 / 1;
  width:100%;
  aspect-ratio:4 / 5;
  object-fit:cover;
  border:2px solid var(--paper);
  border-radius:20px;
  box-shadow:0 4px 12px #350b1940;
}
.photo-stack img:nth-child(1) { transform:translate(16px,-6px) rotate(9deg); }
.photo-stack img:nth-child(2) { transform:translate(-16px,-6px) rotate(-9deg); }
.album-hide, .photo-album[open] .album-show, .photo-album[open] .photo-stack { display:none; }
.photo-album[open] .album-hide { display:inline; }
.gallery-photos {
  display:grid;
  gap:8px;
  margin-top:8px;
  padding:8px;
  border-radius:22px;
  background:#f5eee3;
}
.gallery-photo {
  display:block;
  width:100%;
  height:auto;
  border-radius:16px;
}

.wedding-intro[open] {
  position:fixed;
  inset:0;
  display:grid;
  place-items:center;
  margin:0;
  width:100%;
  height:100%;
  max-width:none;
  max-height:none;
  padding:24px;
  border:0;
  background:radial-gradient(ellipse at center,var(--wine),#350b19 76%);
  color:#f3d49b;
  animation:intro-fade-out .45s ease 1.95s both;
}
.wedding-intro::backdrop { background:transparent; }
body:has(.wedding-intro[open]) { overflow:hidden; }
.intro-emblem {
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  width:min(66vw, 240px);
  aspect-ratio:1;
}
.intro-emblem::before,
.intro-emblem::after {
  content:"";
  position:absolute;
  inset:0;
  border:1px solid #eccb8e;
  border-radius:50%;
  animation:intro-ring 1.15s ease-out both;
}
.intro-emblem::after {
  inset:7px;
  border-color:#eccb8e60;
  animation-delay:.12s;
}
.intro-monogram {
  font:600 clamp(60px, 15vw, 94px)/1 var(--serif);
  animation:intro-rise .8s ease-out .16s both;
}
.intro-monogram span { font:400 .47em/1 var(--script); margin-inline:3px; }
.intro-date {
  font:700 11px/1.4 Georgia,serif;
  letter-spacing:.22em;
  margin-top:11px;
  animation:intro-rise .65s ease-out .55s both;
}
.wedding-intro form { position:absolute; bottom:max(18px, env(safe-area-inset-bottom)); }
.intro-skip {
  background:transparent;
  border:0;
  color:inherit;
  font:600 14px var(--serif);
  text-decoration:underline;
  text-underline-offset:4px;
  min-height:44px;
  padding-inline:16px;
  cursor:pointer;
}
@keyframes intro-ring {
  from { opacity:0; transform:scale(.75); }
  to { opacity:1; transform:scale(1); }
}
@keyframes intro-rise {
  from { opacity:0; transform:translateY(9px); }
  to { opacity:1; transform:translateY(0); }
}
@keyframes intro-fade-out {
  from { opacity:1; }
  to { opacity:0; }
}
