:root {
  --paper: #fbf7ef;
  --warm: #efe1cf;
  --ink: #34261f;
  --muted: #75645b;
  --gold: #b98f4f;
  --sage: #5f705a;
  --rose: #9c6d62;
  --shadow: 0 24px 70px rgba(52, 38, 31, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #d9c8b6;
  font-family: "Inter", sans-serif;
}

body.locked {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(185, 143, 79, 0.18), transparent 34rem),
    linear-gradient(135deg, #eee0cf 0%, #f8f2e9 54%, #d8e1d4 100%);
}

.cover {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: end center;
  min-height: 100svh;
  overflow: hidden;
  padding: 28px 22px 54px;
  transition: transform 0.9s ease, opacity 0.9s ease, visibility 0.9s ease;
}

.cover.is-open {
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
}

.cover-photo,
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cover-shade,
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(30, 22, 17, 0.1) 0%, rgba(30, 22, 17, 0.22) 38%, rgba(30, 22, 17, 0.82) 100%),
    radial-gradient(circle at 50% 78%, rgba(255, 244, 226, 0.18), transparent 28rem);
}

.cover-content,
.hero-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  text-align: center;
  color: #fff8ed;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.38);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cover .eyebrow,
.hero .eyebrow {
  color: #f4d7a5;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  line-height: 1;
}

h1 {
  font-size: clamp(4.25rem, 13vw, 7rem);
  font-family: "Parisienne", cursive;
  font-weight: 400;
}

h2 {
  font-size: clamp(2.35rem, 10vw, 4rem);
  font-weight: 700;
}

h3 {
  font-size: 2rem;
}

.date-line {
  margin: 10px 0 24px;
  font-size: 0.94rem;
  font-weight: 600;
}

.guest-card {
  width: min(100%, 360px);
  margin: 0 auto 18px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 248, 237, 0.45);
  border-radius: 8px;
  background: rgba(255, 248, 237, 0.13);
  backdrop-filter: blur(10px);
}

.guest-card span {
  display: block;
  margin-bottom: 4px;
  font-size: 0.78rem;
  opacity: 0.86;
}

.guest-card strong {
  display: block;
  overflow-wrap: anywhere;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  color: #fffdf7;
  background: linear-gradient(135deg, var(--gold), #8f6635);
  box-shadow: 0 12px 34px rgba(76, 46, 18, 0.28);
  font-weight: 700;
  cursor: pointer;
}

.invite {
  min-height: 100vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease;
}

.invite.is-visible {
  opacity: 1;
  visibility: visible;
}

.section {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 72px 22px;
  text-align: center;
}

.hero {
  position: relative;
  display: grid;
  place-items: end center;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  padding-bottom: 78px;
}

.hero-copy h2 {
  margin-bottom: 10px;
  font-family: "Parisienne", cursive;
  font-size: clamp(4rem, 15vw, 7.5rem);
  font-weight: 400;
}

.intro {
  font-size: 1rem;
  line-height: 1.85;
}

.arabic {
  margin: 0 0 20px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.7rem;
  font-weight: 700;
}

.couple-grid {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}

.couple article,
.event-card,
.bank-box {
  border: 1px solid rgba(185, 143, 79, 0.24);
  border-radius: 8px;
  background: rgba(255, 252, 246, 0.68);
  box-shadow: var(--shadow);
}

.couple article {
  padding: 30px 24px;
}

.couple p,
.gift p {
  color: var(--muted);
  line-height: 1.7;
}

.ampersand {
  font-family: "Parisienne", cursive;
  color: var(--rose);
  font-size: 4.5rem;
  line-height: 0.85;
}

.quote {
  width: 100%;
  max-width: none;
  padding: 76px max(24px, calc((100vw - 720px) / 2));
  color: #fff9ee;
  background: linear-gradient(135deg, rgba(95, 112, 90, 0.96), rgba(67, 58, 45, 0.95));
}

.quote p {
  margin: 0 auto 18px;
  max-width: 680px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.55rem, 6vw, 2.4rem);
  line-height: 1.25;
}

.quote span {
  color: #efd4a3;
  font-weight: 700;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
}

.countdown div {
  min-height: 86px;
  padding: 14px 6px;
  border: 1px solid rgba(95, 112, 90, 0.22);
  border-radius: 8px;
  background: #fffaf1;
}

.countdown strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 8vw, 3rem);
}

.countdown span {
  color: var(--muted);
  font-size: 0.78rem;
}

.event-list {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.event-card {
  padding: 30px 22px;
}

.event-card span {
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}

.event-card p {
  color: var(--muted);
  line-height: 1.65;
}

.event-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 8px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fffdf8;
  background: var(--sage);
  font-weight: 700;
  text-decoration: none;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 28px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.gallery-grid img:nth-child(2) {
  object-position: 58% center;
}

.gallery-grid img:nth-child(3) {
  object-position: 35% center;
}

.rsvp {
  padding-bottom: 126px;
}

form {
  display: grid;
  gap: 14px;
  margin-top: 26px;
  text-align: left;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(52, 38, 31, 0.16);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  outline: 0;
}

input,
select {
  height: 46px;
  padding: 0 14px;
}

textarea {
  min-height: 110px;
  resize: vertical;
  padding: 14px;
}

.wish-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  text-align: left;
}

.wish {
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 252, 246, 0.82);
  border: 1px solid rgba(185, 143, 79, 0.2);
}

.wish strong {
  display: block;
  margin-bottom: 6px;
}

.wish p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.bank-box {
  width: min(100%, 360px);
  margin: 26px auto 0;
  padding: 22px;
}

.bank-box span {
  color: var(--gold);
  font-weight: 800;
}

.bank-box strong {
  display: block;
  margin: 8px 0;
  font-size: 1.45rem;
}

footer {
  padding: 54px 22px 96px;
  text-align: center;
  color: #fff9ee;
  background: #3f332b;
}

footer strong {
  display: block;
  margin-top: 8px;
  font-family: "Parisienne", cursive;
  font-size: 2.6rem;
  font-weight: 400;
}

.bottom-nav {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  max-width: 430px;
  margin: 0 auto;
  padding: 8px;
  border: 1px solid rgba(185, 143, 79, 0.2);
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.9);
  box-shadow: 0 16px 38px rgba(52, 38, 31, 0.16);
  backdrop-filter: blur(14px);
}

.bottom-nav a {
  display: grid;
  place-items: center;
  min-height: 36px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
}

.bottom-nav a:hover {
  background: var(--warm);
}

.music-button {
  position: fixed;
  right: 18px;
  top: 18px;
  z-index: 11;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 252, 246, 0.88);
  box-shadow: 0 12px 28px rgba(52, 38, 31, 0.18);
  cursor: pointer;
}

.music-button span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--rose);
}

.music-button.is-playing span {
  animation: pulse 1s infinite ease-in-out;
}

@keyframes pulse {
  50% {
    transform: scale(0.72);
    opacity: 0.6;
  }
}

@media (min-width: 720px) {
  .site-shell {
    max-width: 480px;
    margin: 0 auto;
    box-shadow: 0 0 80px rgba(52, 38, 31, 0.26);
  }

  .cover {
    right: calc((100vw - 480px) / 2);
    left: calc((100vw - 480px) / 2);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
