:root {
  --navy: #071b38;
  --navy-light: #0d2c54;
  --blue: #1d5f97;
  --mist: #dcecf4;
  --cream: #f9f6ef;
  --gold: #d8b46a;
  --ink: #1b2d45;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  background-color: rgb(49, 49, 49);
  color: var(--cream);
  font-family: "DM Sans", sans-serif;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background: url('hand_paint_abstract_watercolor_texture_vector_artwork.jpg') center/cover no-repeat;
  opacity: .3;
}
button, a { font: inherit; }
button { cursor: pointer; }

.invitation {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: min(100%, 490px);
  height: calc(100vh - 40px);
  max-height: calc(100vh - 40px);
  margin: auto;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background: var(--cream);
  box-shadow: 0 18px 55px rgba(0, 9, 24, .42);
  border-radius: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(7, 27, 56, .25) transparent;
}
.invitation::-webkit-scrollbar { width: 5px; }
.invitation::-webkit-scrollbar-track { background: transparent; }
.invitation::-webkit-scrollbar-thumb { background: rgba(7, 27, 56, .25); border-radius: 3px; }

.hero {
  position: relative;
  display: flex;
  height: 100%;
  padding: 76px 26px 46px;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  text-align: center;
  pointer-events: none;
  background: radial-gradient(circle at 50% 42%, #174a7a 0, var(--navy-light) 31%, var(--navy) 77%);
}
.hero-main {
  display: flex;
  width: 100%;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}
.hero > .section-label { margin-bottom: 0; }
.hero::before, .hero::after {
  position: absolute;
  width: 300px;
  height: 300px;
  content: "";
  border: 1px solid rgba(216, 180, 106, .22);
  border-radius: 50%;
}
.hero::before { top: -148px; right: -118px; }
.hero::after { bottom: -172px; left: -144px; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(12px); opacity: .4; }
.glow-one { top: 16%; left: -60px; width: 160px; height: 160px; background: #307eb7; }
.glow-two { right: -85px; bottom: 19%; width: 185px; height: 185px; background: #1a6195; }

.section-label {
  position: relative;
  margin: 0 0 18px;
  color: var(--gold);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.crest {
  position: relative;
  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-size: 2.1rem;
  letter-spacing: .13em;
}
.crest span { font-size: 1.35rem; font-style: italic; }
h1, h2, h3, .ampersand { font-family: "Cormorant Garamond", serif; font-weight: 500; }
h1 { position: relative; max-width: 360px; margin: 16px 0 21px; font-size: clamp(3.5rem, 15vw, 5.15rem); line-height: .77; letter-spacing: -.04em; }
h1 span { display: block; margin: 7px 0; color: var(--gold); font-size: .62em; font-style: italic; }
.hero-divider { position: relative; display: flex; width: 150px; gap: 9px; align-items: center; color: var(--gold); }
.hero-divider span { flex: 1; height: 1px; background: rgba(216, 180, 106, .6); }
.hero-divider i { font-size: .65rem; font-style: normal; }
.hero-date { position: relative; margin: 21px 0 20px; font-size: 1.25rem; font-weight: 500; letter-spacing: .1em; }

.guest-title {
  min-height: 18px;
  margin: 20px 0 12px;
  color: var(--gold);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.guest-name {
  font-family: "Cormorant Garamond", serif;
  min-height: 18px;
  margin: 0 0 24px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.btn {
  position: relative;
  padding: 13px 22px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--cream);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  transition: background .25s, color .25s, transform .25s, border-color .25s;
}
.btn--open { pointer-events: auto; }
.btn--open span { display: inline-block; margin-left: 9px; color: var(--gold); font-size: 1.1rem; }
.btn:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); }
.btn--copy { padding: 8px 16px; border: 1px solid var(--navy); border-radius: 4px; background: var(--navy); color: var(--cream); font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.btn--copy:hover { background: transparent; color: var(--navy); }
.btn--submit { border-color: var(--navy); background: var(--navy); color: var(--cream); }
.btn--submit:hover { background: transparent; color: var(--navy); }

.content {
  display: none;
  color: var(--ink);
  background: linear-gradient(180deg, #eef7f7 0%, #d5e9f0 28%, #10385f 71%, var(--navy) 100%);
}
.content.is-visible { display: block; animation: reveal .8s ease both; }
.section { position: relative; padding: 78px 30px; text-align: center; }
.opening { background: linear-gradient(180deg, #f5f8f4 0%, #e5f1f3 74%, #d7e9ef 100%); }
.section .section-label { color: var(--blue); }
h2 { margin: 0 auto 18px; color: var(--navy); font-size: clamp(2.35rem, 10vw, 3.2rem); line-height: .9; letter-spacing: -.035em; }
.section-desc { max-width: 340px; margin: 0 auto; color: #556b80; font-size: .82rem; line-height: 1.9; }

.couple-section {
  overflow: hidden;
  padding-top: 68px;
  padding-bottom: 75px;
  background: linear-gradient(180deg, #d7e9ef 0%, #b9d8e5 55%, #8abbd0 100%);
}
.flower {
  position: absolute;
  width: 86px;
  height: 116px;
  opacity: .58;
  pointer-events: none;
}
.flower::before {
  position: absolute;
  top: 3px;
  bottom: 0;
  left: 43px;
  width: 1px;
  content: "";
  background: currentColor;
  transform: rotate(26deg);
  transform-origin: bottom;
}
.flower span, .flower i, .flower b {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 1px solid currentColor;
  border-radius: 50% 50% 50% 0;
  background: color-mix(in srgb, currentColor 15%, transparent);
}
.flower span { top: 14px; left: 21px; transform: rotate(-25deg); }
.flower i { top: 45px; right: 8px; transform: rotate(48deg); }
.flower b { top: 71px; left: 10px; transform: rotate(-41deg); }
.flower--top { top: 14px; right: -12px; color: #6b9fb6; transform: rotate(18deg); }
.flower--event { top: 13px; left: -13px; color: var(--gold); transform: rotate(-15deg); }
.flower--rsvp { right: -16px; bottom: 12px; color: #4f8daa; transform: rotate(195deg); }
.bloom { position: absolute; color: #96bdd2; font-size: 7rem; line-height: 1; opacity: .48; }
.bloom--left { top: 10px; left: -26px; transform: rotate(-18deg); }
.bloom--right { right: -26px; bottom: 28px; transform: rotate(27deg); }
.person { position: relative; }
.portrait { display: grid; width: 130px; height: 130px; margin: 0 auto 18px; place-items: center; border: 5px solid rgba(255,255,255,.82); border-radius: 50%; box-shadow: 0 9px 21px rgba(20, 63, 94, .16); color: rgba(255,255,255,.92); font-size: 1.5rem; }
.portrait--groom { background: linear-gradient(135deg, #9dc8d7, #285f88); }
.portrait--bride { background: linear-gradient(135deg, #477fa1, #102e51); }
h3 { margin: 0 0 6px; color: var(--navy); font-size: 1.75rem; line-height: 1; }
.person p { margin: 0; color: #60788d; font-size: .73rem; line-height: 1.7; }
.ampersand { margin: 24px 0; color: var(--gold); font-size: 2.9rem; font-style: italic; line-height: .7; }

.event-section { background: linear-gradient(180deg, #8abbd0 0%, #235b86 18%, var(--navy-light) 54%, var(--navy) 100%); }
.event-section .section-label { color: var(--gold); }
.event-section h2 { color: var(--cream); }
.event__card { margin: 29px auto 0; padding: 31px 22px 28px; border: 1px solid rgba(216,180,106,.5); background: rgba(255,255,255,.035); }
.event__label { margin: 0; color: var(--gold); font-size: .68rem; font-weight: 600; letter-spacing: .17em; text-transform: uppercase; }
.event__time { margin: 7px 0 0; color: white; font-family: "Cormorant Garamond", serif; font-size: 2.1rem; }
.divider { width: 45px; height: 1px; margin: 20px auto; background: rgba(216,180,106,.6); }
.event__place { margin: 26px 0 19px; color: white; font-family: "Cormorant Garamond", serif; font-size: 1.4rem; line-height: 1.2; }
.event__place span { color: #bbd2df; font-family: "DM Sans", sans-serif; font-size: .68rem; line-height: 2.4; }
.map-link { color: var(--gold); font-size: .68rem; font-weight: 600; letter-spacing: .09em; text-decoration: none; text-transform: uppercase; }
.map-link span { margin-left: 5px; font-size: 1rem; }

.countdown-section { background: linear-gradient(180deg, var(--navy) 0%, #123d67 38%, #7db3ca 100%); }
.countdown-section .section-label { color: #c8e3eb; }
.countdown-section h2 { color: var(--cream); }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 27px auto 0; }
.countdown div { padding: 13px 2px; border-bottom: 1px solid #a6c7d9; }
.countdown strong { display: block; color: var(--cream); font-family: "Cormorant Garamond", serif; font-size: 2.25rem; font-weight: 500; line-height: 1; }
.countdown span { display: block; margin-top: 7px; color: #c8e3eb; font-size: .57rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

.love-story-section { background: linear-gradient(180deg, #7db3ca 0%, #b9d8e5 55%, #d7e9ef 100%); }
.love-story-section h2 { color: var(--navy); }
.timeline { position: relative; max-width: 340px; margin: 32px auto 0; text-align: left; }
.timeline::before { position: absolute; top: 6px; bottom: 6px; left: 11px; width: 2px; content: ""; background: rgba(7, 27, 56, .2); }
.timeline-item { position: relative; padding: 0 0 26px 38px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; top: 2px; left: 5px; width: 14px; height: 14px; border: 2px solid var(--gold); border-radius: 50%; background: var(--cream); }
.timeline-content h3 { margin: 0 0 4px; color: var(--gold); font-family: "Cormorant Garamond", serif; font-size: 1.5rem; }
.timeline-content p { margin: 0; color: var(--navy); font-size: .85rem; line-height: 1.5; }

.gift-section { background: linear-gradient(180deg, #d7e9ef 0%, #eef7f7 55%, #f5f8f4 100%); }
.gift-section h2 { color: var(--navy); }
.gifts { display: grid; gap: 16px; max-width: 340px; margin: 24px auto 0; }
.gift { padding: 22px 18px; border: 1px solid rgba(7,27,56,.15); border-radius: 4px; background: rgba(255,255,255,.6); text-align: left; }
.gift h3 { margin: 0 0 4px; color: var(--navy); font-size: 1.1rem; }
.gift__label { margin: 0 0 8px; color: #60788d; font-size: .72rem; }
.gift__number { margin: 0 0 14px; color: var(--navy); font-family: "Cormorant Garamond", serif; font-size: 1.6rem; letter-spacing: .02em; }
.gift__address { max-width: 340px; margin: 22px auto 0; }
.gift__address p { margin: 0; color: #60788d; font-size: .8rem; line-height: 1.7; }

.rsvp-section { padding-bottom: 88px; background: linear-gradient(180deg, #f5f8f4 0%, #d8e9ea 52%, #7db3ca 100%); }
.rsvp-section .section-label { color: var(--blue); }
.rsvp-section h2 { color: var(--navy); }
.btn--submit { border-color: var(--navy); background: var(--navy); color: var(--cream); }
.rsvp-form { max-width: 340px; margin: 28px auto 0; text-align: left; }
.rsvp-form label { display: block; margin: 14px 0 6px; color: var(--navy); font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.rsvp-form input[type="text"],
.rsvp-form textarea { width: 100%; padding: 12px 14px; border: 1px solid rgba(7,27,56,.15); border-radius: 4px; background: rgba(255,255,255,.85); color: var(--ink); font-family: "DM Sans", sans-serif; font-size: .85rem; }
.rsvp-form input[type="text"]:focus,
.rsvp-form textarea:focus { outline: none; border-color: var(--gold); }
.rsvp-form textarea { resize: vertical; }
.rsvp-options { display: flex; gap: 14px; flex-wrap: wrap; margin: 8px 0; }
.rsvp-options label { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--navy); font-size: .82rem; font-weight: 400; text-transform: none; cursor: pointer; }
.rsvp-options input { width: auto; margin: 0; }
.rsvp-form .btn--submit { margin-top: 18px; width: 100%; }
.rsvp-note { min-height: 18px; margin: 16px 0 0; color: var(--blue); font-size: .72rem; text-align: center; }
.guestbook { max-width: 340px; margin: 34px auto 0; text-align: left; }
.guestbook h3 { margin: 0 0 16px; color: var(--navy); font-size: 1.3rem; }
.guestbook__list { max-height: 260px; overflow-y: auto; padding: 0; margin: 0; list-style: none; }
.gift, .guestbook__list li { transition: transform .25s ease, box-shadow .25s ease; }
.gift:hover, .guestbook__list li:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(7,27,56,.12); }
.guestbook__list li { padding: 16px; margin-bottom: 12px; border-radius: 6px; background: rgba(255,255,255,.92); box-shadow: 0 4px 12px rgba(7,27,56,.08); }
.guestbook__list li:last-child { margin-bottom: 0; }
.guestbook__list strong { display: block; color: var(--navy); font-size: .9rem; }
.guestbook__list small { display: block; margin: 3px 0; color: var(--gold); font-size: .68rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.guestbook__list p { margin: 0; color: #60788d; font-size: .82rem; line-height: 1.6; }
.event__card { border-radius: 6px; }
.map-link:hover { text-decoration: underline; }
::selection { background: rgba(7, 27, 56, .18); }
footer { padding: 40px 20px; text-align: center; background: var(--navy); }
footer p { margin: 10px 0 0; color: #acc5d4; font-size: .68rem; letter-spacing: .04em; }

.music-btn {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 100;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: rgba(7, 27, 56, .42);
  color: var(--gold);
  font-size: 1.1rem;
  line-height: 1;
  transition: background .25s, transform .25s;
}
.music-btn:hover { background: rgba(29, 95, 151, .65); transform: scale(1.05); }
.music-btn.is-playing { background: rgba(29, 95, 151, .75); }
@media (min-width: 620px) { .music-btn { right: calc(50% - 245px - 60px); } }

@keyframes reveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.hero-glow { will-change: transform; }

@media (min-width: 600px) { .invitation { border-radius: 4px; } }
