:root {
  --white: #ffffff;
  --sky: #e8f4fb;
  --sky-deep: #b9d9e8;
  --pink: #f8dce7;
  --pink-deep: #e7b8c7;
  --text: #3d4350;
  --muted: #6f7480;
  --shadow: 0 18px 35px rgba(88, 100, 120, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, var(--white) 0%, var(--sky) 100%);
  line-height: 1.6;
}

.hero--subpage {
  min-height: 70vh;
}

.page-intro {
  text-align: center;
  margin-bottom: 2rem;
}

.party-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.party-grid--people {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.party-grid--featured {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 2rem;
}

.party-card {
  background: rgba(255, 255, 255, 0.88);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.party-card--featured {
  border: 1px solid rgba(183, 205, 222, 0.8);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(242, 248, 252, 0.95));
}

.party-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  margin-bottom: 1rem;
  object-fit: cover;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.party-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pink-deep);
  margin: 0.2rem 0 0.7rem;
}

.party-section-heading {
  margin-top: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.form-grid textarea {
  grid-column: 1 / -1;
}

img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  padding: 1.2rem 1rem;
  flex-wrap: wrap;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.site-icon {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 112px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
  z-index: 2;
}

.footer-icon {
  display: block;
  width: 72px;
  height: auto;
  margin: 0 auto 1rem;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
}

.nav a {
  text-decoration: none;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
}

.hero {
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(37, 58, 84, 0.65), rgba(245, 208, 223, 0.35)),
    url("./UsedPhotos/E_0146_compressed.jpg") center/cover;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-content {
  padding: 4rem 1.5rem 4.5rem;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--pink-deep);
  margin-bottom: 0.6rem;
}

.hero .eyebrow {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
}

.hero h1,
.section h2 {
  font-family: "Playfair Display", serif;
  margin: 0;
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.3rem);
  margin-bottom: 0.8rem;
}

.hero-date {
  font-size: 1.05rem;
  margin-bottom: 1.6rem;
}

.button {
  display: inline-block;
  background: linear-gradient(135deg, var(--pink-deep), var(--pink));
  color: var(--text);
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.section {
  padding: 5rem 1.5rem;
  max-width: 1160px;
  margin: 0 auto;
}

.intro-section,
.rsvp-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.registry-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.registry-summary {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.5rem 0 0;
}

.registry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.registry-card {
  background: rgba(255, 255, 255, 0.88);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.registry-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.registry-card p {
  margin: 0;
  color: var(--muted);
}

.registry-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.95rem;
}

.registry-card__price {
  font-weight: 700;
  color: var(--pink-deep);
}

.registry-card__status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
}

.registry-card__status--needed {
  background: #eef8ff;
  color: #35637c;
}

.registry-card__status--wanted {
  background: #fff7e8;
  color: #8a5a13;
}

.registry-card__status--purchased {
  background: #edf8ef;
  color: #2e6b3b;
}

.registry-card__link {
  margin-top: auto;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.registry-card__link:hover {
  color: var(--pink-deep);
}

.registry-empty {
  padding: 1.2rem;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 20px;
}

.section-copy h2,
.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.image-card,
.detail-card,
.rsvp-form {
  background: rgba(255, 255, 255, 0.88);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.image-card {
  overflow: hidden;
}

.image-card img {
  height: 100%;
  min-height: 320px;
}

.details-section {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 30px;
  margin-top: 1rem;
}

.section-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.detail-card {
  padding: 1.5rem;
  text-align: center;
}

.gallery-feature {
  margin: 0 auto 1.5rem;
  max-width: 760px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-feature img {
  height: auto;
  max-height: 520px;
  width: 100%;
  object-fit: contain;
  background: #f5f0f4;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  height: 320px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.rsvp-form {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  border: 1px solid #dce7ed;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  font: inherit;
  background: var(--white);
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
  outline: none;
  border-color: #8ec5e8;
  box-shadow: 0 0 0 3px rgba(142, 197, 232, 0.25);
  background: #f7fcff;
}

.info-banner {
  margin: 0 auto 2rem;
  max-width: 960px;
  padding: 1rem 1.2rem;
  border: 1px solid #9fd0eb;
  border-radius: 16px;
  background: linear-gradient(135deg, #eaf7ff 0%, #d8eefc 100%);
  box-shadow: 0 10px 24px rgba(88, 100, 120, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #355468;
}

.info-banner__content {
  flex: 1;
}

.info-banner__close {
  border: none;
  background: transparent;
  color: #355468;
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.1rem 0.3rem;
}

.info-banner__close:hover {
  color: #1f3f4f;
}

.field-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

.form-status {
  margin: 0;
  font-size: 0.95rem;
  min-height: 1.2rem;
}

.form-status.pending {
  color: var(--muted);
}

.form-status.success {
  color: #2f7a4f;
}

.form-status.error {
  color: #b64545;
}

footer {
  text-align: center;
  padding: 2rem 1rem 2.8rem;
  color: var(--muted);
}

@media (max-width: 800px) {
  .hero {
    justify-content: flex-start;
    min-height: 100svh;
    min-height: 100vh;
    padding-bottom: 1rem;
  }

  .nav {
    width: 100%;
    gap: 0.6rem;
    padding: 1rem 0.75rem 0.25rem;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }

  .site-icon {
    position: relative;
    top: auto;
    left: auto;
    display: block;
    width: 72px;
    margin: 0.25rem auto 0.25rem;
    flex-shrink: 0;
  }

  .hero > .site-icon,
  .hero > .nav {
    position: relative;
    z-index: 3;
  }

  .hero-content {
    padding: 1.2rem 1rem 1.2rem;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    min-height: 38vh;
  }

  .hero h1 {
    font-size: clamp(2rem, 7vw, 2.7rem);
  }

  .hero-date {
    margin-bottom: 0;
  }

  .intro-section,
  .rsvp-section {
    grid-template-columns: 1fr;
  }

  .details-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid,
  .party-grid,
  .party-grid--featured,
  .party-grid--people,
  .form-grid,
  .registry-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .section {
    padding: 4rem 1rem;
  }

  .hero-content {
    padding: 2rem 1rem 2.5rem;
  }

  .nav a {
    font-size: 0.9rem;
    line-height: 1.2;
  }
}
