:root {
  --cream: #f8f3ea;
  --paper: #fffdf8;
  --green: #385647;
  --green-dark: #20372c;
  --sage: #9eae9d;
  --gold: #ad8b57;
  --text: #2f352f;
  --muted: #777b74;
  --shadow: 0 20px 60px rgba(33, 53, 43, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: "Montserrat", sans-serif;
  line-height: 1.7;
}
body.locked { overflow: hidden; }
button, input, textarea { font: inherit; }
a { color: inherit; }

.opening-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.75), transparent 34%),
    linear-gradient(145deg, #eef0e8, #cbd3c6 60%, #aebdaf);
  transition: opacity .9s ease, visibility .9s ease;
}
.opening-screen.is-hidden { opacity: 0; visibility: hidden; }
.opening-card {
  position: relative;
  width: min(520px, 92vw);
  padding: 68px 32px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 220px 220px 24px 24px;
  background: rgba(255,253,248,.72);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.opening-copy { max-width: 380px; margin: 18px auto 28px; font-size: .88rem; color: var(--muted); }
.floral { position: absolute; width: 340px; height: 340px; opacity: .34; pointer-events: none; }
.floral::before, .floral::after {
  content: ""; position: absolute; inset: 30%; border: 4px solid var(--green); border-radius: 80% 10% 80% 10%; transform: rotate(35deg);
}
.floral::after { inset: 48% 8% 8% 48%; transform: rotate(-25deg); border-color: var(--gold); }
.floral-top-left { top: -120px; left: -80px; transform: rotate(-15deg); }
.floral-bottom-right { right: -85px; bottom: -120px; transform: rotate(165deg); }

.eyebrow { margin: 0 0 12px; text-transform: uppercase; letter-spacing: .22em; font-size: .72rem; font-weight: 600; color: var(--gold); }
.eyebrow.light { color: rgba(255,255,255,.88); }
.couple-title { display: grid; gap: 0; margin: 0; color: var(--green-dark); font-family: "Cormorant Garamond", serif; font-size: clamp(4rem, 13vw, 7rem); font-weight: 500; line-height: .72; }
.couple-title small { margin: 14px 0 8px; color: var(--gold); font-family: "Great Vibes", cursive; font-size: .56em; font-weight: 400; }
.primary-button, .secondary-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 25px; border: 0; border-radius: 999px; text-decoration: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.primary-button { background: var(--green); color: #fff; box-shadow: 0 10px 24px rgba(56,86,71,.24); }
.primary-button:hover, .secondary-button:hover { transform: translateY(-2px); }
.secondary-button { margin-top: 14px; border: 1px solid var(--green); background: transparent; color: var(--green); font-size: .8rem; }

.invitation { opacity: 0; transition: opacity .8s ease; }
.invitation.is-open { opacity: 1; }
.section { position: relative; padding: 88px 22px; }
.hero {
  display: grid; place-items: center; min-height: 100svh; text-align: center; color: #fff;
  background:
    linear-gradient(rgba(20,42,32,.36), rgba(20,42,32,.62)),
    radial-gradient(circle at 50% 25%, #93aa95 0, #526e5d 42%, #243f31 100%);
}
.hero-overlay { position: absolute; inset: 18px; border: 1px solid rgba(255,255,255,.42); border-radius: 240px 240px 14px 14px; }
.hero-content { position: relative; z-index: 2; }
.hero-title { color: #fff; text-shadow: 0 8px 30px rgba(0,0,0,.22); }
.date-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: min(430px, 86vw); margin: 42px auto 16px; border-top: 1px solid rgba(255,255,255,.55); border-bottom: 1px solid rgba(255,255,255,.55); }
.date-grid > div { padding: 10px 18px; }
.date-grid > div + div { border-left: 1px solid rgba(255,255,255,.45); }
.date-grid span, .date-grid strong { display: block; letter-spacing: .14em; font-size: .7rem; }
.date-number { font-family: "Cormorant Garamond", serif; font-size: 3rem; line-height: 1; }
.hashtag { letter-spacing: .18em; font-size: .8rem; }

.intro-section, .prayer-section { background: linear-gradient(180deg, var(--cream), #eef0e8); }
.content-card { width: min(760px, 100%); margin: auto; padding: clamp(34px, 7vw, 70px); text-align: center; background: rgba(255,253,248,.92); border: 1px solid rgba(173,139,87,.25); border-radius: 160px 160px 18px 18px; box-shadow: var(--shadow); }
.arabic { margin: 0 0 18px; color: var(--green-dark); font-family: serif; font-size: clamp(1.5rem, 5vw, 2.35rem); line-height: 1.8; }
.salutation, .soft-label { letter-spacing: .14em; text-transform: uppercase; font-size: .72rem; color: var(--gold); }
.parents, .person-name { margin: 6px 0; font-family: "Cormorant Garamond", serif; font-size: clamp(1.75rem, 5vw, 2.6rem); line-height: 1.15; }
.ampersand { margin: 3px; color: var(--gold); font-family: "Great Vibes", cursive; font-size: 2.2rem; }
.body-copy { max-width: 620px; margin: 28px auto; color: #62675f; font-size: .92rem; }
blockquote { margin: 36px 0 0; padding-top: 26px; border-top: 1px solid rgba(173,139,87,.35); color: var(--muted); font-family: "Cormorant Garamond", serif; font-size: 1.2rem; font-style: italic; }

.section-heading { margin-bottom: 42px; text-align: center; }
.section-heading span { color: var(--gold); text-transform: uppercase; letter-spacing: .22em; font-size: .7rem; }
.section-heading h2 { margin: 4px 0; color: var(--green-dark); font-family: "Cormorant Garamond", serif; font-size: clamp(2.4rem, 8vw, 4rem); font-weight: 500; }
.section-heading.compact { margin-bottom: 20px; }
.details-section { background: var(--paper); }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; width: min(980px, 100%); margin: auto; }
.detail-card { padding: 42px 26px; text-align: center; border: 1px solid rgba(56,86,71,.14); border-radius: 18px; background: #fff; box-shadow: 0 16px 40px rgba(33,53,43,.07); }
.detail-card h3 { font-family: "Cormorant Garamond", serif; font-size: 1.8rem; }
.detail-card p { margin: 8px 0; color: var(--muted); font-size: .88rem; }
.icon { color: var(--gold); font-size: 2rem; }

.schedule-section { background: #e8ece5; }
.timeline { width: min(720px, 100%); margin: auto; }
.timeline-item { display: grid; grid-template-columns: 110px 24px 1fr; gap: 20px; align-items: center; min-height: 84px; }
.timeline-item time { text-align: right; color: var(--green); font-weight: 600; font-size: .82rem; }
.timeline-dot { position: relative; width: 13px; height: 13px; border: 3px solid #e8ece5; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.timeline-dot::after { content: ""; position: absolute; top: 13px; left: 50%; width: 1px; height: 71px; background: rgba(173,139,87,.5); }
.timeline-item:last-child .timeline-dot::after { display: none; }
.timeline-item p { font-family: "Cormorant Garamond", serif; font-size: 1.55rem; }

.countdown-section { color: #fff; background: var(--green-dark); }
.countdown-section .section-heading h2 { color: #fff; }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; width: min(760px, 100%); margin: auto; }
.countdown div { padding: 24px 10px; text-align: center; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; background: rgba(255,255,255,.06); }
.countdown strong { display: block; font-family: "Cormorant Garamond", serif; font-size: clamp(2rem, 8vw, 4rem); font-weight: 500; line-height: 1; }
.countdown span { display: block; margin-top: 8px; text-transform: uppercase; letter-spacing: .16em; font-size: .62rem; opacity: .74; }
.prayer { margin-top: 20px; }
.transliteration { color: var(--gold); font-family: "Cormorant Garamond", serif; font-size: 1.2rem; font-style: italic; }

.wishes-section { background: var(--paper); }
.wish-form { display: grid; gap: 16px; width: min(680px, 100%); margin: 0 auto 32px; padding: 28px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.wish-form label { display: grid; gap: 8px; font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--green); }
.wish-form input, .wish-form textarea { width: 100%; padding: 14px 16px; border: 1px solid #d9ddd6; border-radius: 10px; outline: none; background: #fbfcf9; color: var(--text); resize: vertical; }
.wish-form input:focus, .wish-form textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(56,86,71,.1); }
.wish-list { display: grid; gap: 14px; width: min(680px, 100%); margin: auto; }
.wish-item { padding: 20px; border-left: 3px solid var(--gold); border-radius: 8px; background: #f3f2ec; }
.wish-item strong { display: block; color: var(--green); }
.wish-item p { margin: 6px 0 0; color: var(--muted); }
.empty-state { text-align: center; color: var(--muted); font-style: italic; }
footer { padding: 42px 20px; text-align: center; color: #fff; background: #17291f; }
footer p { margin: 0; font-family: "Great Vibes", cursive; font-size: 2.4rem; }
footer small { opacity: .6; letter-spacing: .15em; }

.music-toggle { position: fixed; z-index: 20; right: 18px; bottom: 18px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--green); color: #fff; box-shadow: var(--shadow); cursor: pointer; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 700px) {
  .section { padding: 68px 17px; }
  .opening-card { padding: 58px 22px; }
  .detail-grid { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 82px 20px 1fr; gap: 12px; }
  .timeline-item p { font-size: 1.25rem; }
  .countdown { gap: 7px; }
  .countdown div { padding: 20px 4px; }
  .date-grid > div { padding-inline: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}