:root {
  --bg: #f3fbff;
  --bg-deep: #dff6ff;
  --surface: rgba(255, 255, 255, 0.56);
  --surface-strong: rgba(255, 255, 255, 0.8);
  --line: rgba(93, 136, 171, 0.18);
  --text: #2f4662;
  --text-soft: #597693;
  --cyan: #9ee7f5;
  --cyan-strong: #56c9dd;
  --aqua: #7ad4dc;
  --lilac: #d6d3ff;
  --pink: #f8d4e8;
  --gold: #e3c27d;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(61, 118, 160, 0.18);
  --shadow-soft: 0 16px 40px rgba(61, 118, 160, 0.12);
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --container: min(1160px, calc(100% - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(248, 212, 232, 0.45), transparent 28%),
    radial-gradient(circle at 90% 12%, rgba(158, 231, 245, 0.48), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(214, 211, 255, 0.4), transparent 35%),
    linear-gradient(180deg, #f5fdff 0%, #f2fbff 48%, #fbfbff 100%);
  min-height: 100vh;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.page-shell {
  overflow: hidden;
}

.hero {
  position: relative;
  padding: 18px 0 84px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.08)),
    linear-gradient(135deg, rgba(122, 212, 220, 0.15), rgba(248, 212, 232, 0.12));
  pointer-events: none;
}

.hero-backdrop,
.topbar,
.hero-content,
.section-heading,
.detail-grid,
.gift-grid,
.rsvp-layout,
.site-footer .container {
  position: relative;
  z-index: 1;
}

.hero-backdrop span {
  position: absolute;
  pointer-events: none;
}

.orb {
  border-radius: 50%;
  filter: blur(12px);
  opacity: 0.58;
}

.orb-one {
  top: 80px;
  right: -70px;
  width: 280px;
  height: 280px;
  background: rgba(158, 231, 245, 0.62);
}

.orb-two {
  top: 280px;
  left: -84px;
  width: 260px;
  height: 260px;
  background: rgba(214, 211, 255, 0.55);
}

.orb-three {
  bottom: 90px;
  right: 14%;
  width: 160px;
  height: 160px;
  background: rgba(248, 212, 232, 0.54);
}

.bubble {
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.95), rgba(255,255,255,0.1));
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 14px rgba(255, 255, 255, 0.4), 0 10px 24px rgba(90, 153, 194, 0.12);
  animation: bubbleFloat 9s ease-in-out infinite;
}

.bubble-one {
  top: 140px;
  left: 7%;
  width: 18px;
  height: 18px;
}

.bubble-two {
  top: 240px;
  right: 10%;
  width: 28px;
  height: 28px;
  animation-delay: 1s;
}

.bubble-three {
  bottom: 160px;
  left: 14%;
  width: 14px;
  height: 14px;
  animation-delay: 2.4s;
}

.bubble-four {
  bottom: 140px;
  right: 22%;
  width: 12px;
  height: 12px;
  animation-delay: 3.2s;
}

.sea-star {
  width: 28px;
  height: 28px;
  background: linear-gradient(180deg, #ffd8a6, #e3c27d);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 93%, 50% 70%, 21% 93%, 32% 57%, 2% 35%, 39% 35%);
  opacity: 0.62;
  filter: drop-shadow(0 10px 20px rgba(177, 141, 81, 0.18));
}

.sea-star-one {
  top: 190px;
  right: 28%;
  transform: rotate(18deg);
}

.sea-star-two {
  bottom: 210px;
  left: 24%;
  transform: rotate(-16deg);
}

.shell {
  width: 54px;
  height: 36px;
  background: linear-gradient(180deg, rgba(248, 212, 232, 0.9), rgba(255,255,255,0.7));
  border-radius: 54px 54px 18px 18px;
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 14px 24px rgba(105, 154, 183, 0.12);
}

.shell::before,
.shell::after {
  content: "";
  position: absolute;
  inset: 8px 14px 6px;
  border-left: 1px solid rgba(255,255,255,0.62);
  border-right: 1px solid rgba(255,255,255,0.62);
}

.shell-one {
  top: 110px;
  left: 24%;
  transform: rotate(-12deg);
}

.shell-two {
  bottom: 120px;
  right: 14%;
  transform: rotate(14deg);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 6px 0 24px;
}

.brand {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav-links {
  display: none;
  gap: 24px;
}

.nav-links a {
  color: var(--text-soft);
  font-size: 0.95rem;
  transition: color 180ms ease;
}

.nav-links a:hover {
  color: var(--cyan-strong);
}

.hero-content {
  display: grid;
  gap: 34px;
  align-items: center;
}

.hero-copy h1,
.section-heading h2,
.detail-card h3,
.gift-card h3,
.rsvp-copy h2,
.site-footer strong {
  font-family: "Cormorant Garamond", serif;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(3.8rem, 10vw, 6.3rem);
  line-height: 0.94;
  color: #295274;
}

.hero-copy h1 span {
  display: block;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  color: #5e7ba0;
  margin-top: 8px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #5fb7c9;
}

.hero-subtitle {
  margin: 16px 0 0;
  font-size: clamp(1.16rem, 4vw, 1.58rem);
  font-weight: 700;
  color: #b9878d;
}

.hero-description,
.section-heading p,
.detail-card p,
.gift-card p,
.rsvp-copy p,
.site-footer p,
.hero-highlight span {
  color: var(--text-soft);
  line-height: 1.8;
}

.hero-description {
  max-width: 620px;
  margin: 18px 0 0;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.meta-pill,
.hero-highlight,
.detail-card,
.gift-card,
.countdown-card,
.form-shell,
.rsvp-notes,
.portrait-card {
  backdrop-filter: blur(18px);
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-soft);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, #63d3e2, #8fdde7 40%, #efb8d8 100%);
  box-shadow: 0 20px 40px rgba(95, 183, 201, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 28px 48px rgba(95, 183, 201, 0.34);
}

.btn-secondary,
.btn-tertiary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.btn-secondary:hover,
.btn-tertiary:hover {
  border-color: rgba(86, 201, 221, 0.35);
  box-shadow: 0 18px 30px rgba(61, 118, 160, 0.16);
}

.btn-full {
  width: 100%;
}

.btn-rsvp-submit {
  position: relative;
  min-height: 62px;
  font-size: 1.04rem;
  letter-spacing: 0.02em;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.42), transparent 34%),
    linear-gradient(135deg, #3fc9df 0%, #71dff0 42%, #f2a8cf 100%);
  border-color: rgba(255, 255, 255, 0.88);
  box-shadow:
    0 22px 42px rgba(78, 187, 208, 0.34),
    0 0 0 1px rgba(255,255,255,0.24) inset;
}

.btn-rsvp-submit::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.24), rgba(255,255,255,0));
  pointer-events: none;
}

.btn-rsvp-submit:hover,
.btn-rsvp-submit:focus-visible {
  transform: translateY(-4px) scale(1.01);
  box-shadow:
    0 30px 54px rgba(78, 187, 208, 0.42),
    0 0 0 1px rgba(255,255,255,0.3) inset,
    0 0 0 6px rgba(145, 226, 238, 0.22);
}

.btn-rsvp-submit:focus-visible {
  outline: none;
}

.btn-rsvp-submit:disabled {
  transform: none;
  opacity: 0.88;
}

.glass-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

.hero-highlight {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.hero-highlight strong {
  display: block;
  margin-bottom: 4px;
  color: #2f5c80;
}

.hero-visual {
  position: relative;
}

.portrait-card {
  position: relative;
  padding: 18px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255,255,255,0.48), rgba(255,255,255,0.24));
  overflow: hidden;
}

.portrait-glow {
  position: absolute;
  inset: auto 10% 8% 10%;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.86), rgba(158,231,245,0.1));
  filter: blur(34px);
  z-index: 0;
}

.portrait-frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 30px;
  padding: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.92), rgba(214,211,255,0.72) 44%, rgba(158,231,245,0.88));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.76),
    0 26px 54px rgba(55, 115, 153, 0.24);
}

.portrait-frame img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 24px;
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.6), transparent 40%),
    linear-gradient(180deg, #ecfbff 0%, #fef4fa 100%);
}

.countdown-card {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.52);
}

.countdown-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.countdown-label,
.countdown-note {
  margin: 0;
}

.countdown-label {
  font-weight: 700;
  color: #2f5c80;
}

.countdown-note {
  color: #7993af;
  font-size: 0.92rem;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.countdown-item {
  padding: 14px 10px;
  text-align: center;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(241,251,255,0.6));
  border: 1px solid rgba(255,255,255,0.74);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.92);
}

.countdown-item strong {
  display: block;
  font-size: 1.76rem;
  color: #2a5779;
}

.countdown-item span {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6f89a6;
}

.section-spacing {
  padding: 92px 0;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-heading h2,
.rsvp-copy h2 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  color: #295274;
}

.detail-grid,
.gift-grid {
  display: grid;
  gap: 18px;
}

.detail-card,
.gift-card,
.form-shell,
.rsvp-notes {
  border-radius: var(--radius-lg);
}

.detail-card {
  padding: 26px 22px;
  background: rgba(255,255,255,0.54);
  border: 1px solid rgba(255,255,255,0.72);
}

.detail-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(158,231,245,0.56), rgba(248,212,232,0.64));
  color: #c99b4f;
  font-size: 1.16rem;
}

.detail-card h3,
.gift-card h3 {
  margin: 0 0 10px;
  font-size: 1.8rem;
  color: #295274;
}

.gift-card {
  position: relative;
  overflow: hidden;
  padding: 28px 22px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.56), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,0.88), rgba(240,251,255,0.68));
  border: 1px solid rgba(255,255,255,0.86);
  box-shadow: var(--shadow-soft);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.gift-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.82);
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(236,249,255,0.78));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.88), 0 18px 28px rgba(61, 118, 160, 0.1);
}

.gift-card::after {
  content: "";
  position: absolute;
  inset: auto -18px -18px auto;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214,211,255,0.44), rgba(214,211,255,0));
}

.gift-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 46px rgba(61, 118, 160, 0.18);
}

.gift-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(214, 211, 255, 0.54);
  color: #6e68a2;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gift-card strong {
  display: block;
  margin: 20px 0;
  font-size: 1.72rem;
  color: #bc9051;
}

.rsvp-layout {
  display: grid;
  gap: 28px;
  align-items: start;
}

.rsvp-notes {
  margin-top: 22px;
  padding: 18px;
  background: rgba(255,255,255,0.56);
  border: 1px solid rgba(255,255,255,0.74);
}

.rsvp-notes div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rsvp-notes div + div {
  margin-top: 12px;
}

.rsvp-notes i {
  color: #bc9051;
}

.form-shell {
  padding: 22px;
  background: rgba(255,255,255,0.58);
}

.field-group + .field-group {
  margin-top: 16px;
}

.field-hint {
  display: block;
  margin-top: 8px;
  color: #6f89a2;
  font-size: 0.86rem;
  line-height: 1.5;
}

.field-group label {
  display: inline-block;
  margin-bottom: 8px;
  font-weight: 700;
  color: #32587a;
}

.field-group input,
.field-group textarea {
  width: 100%;
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid rgba(96, 152, 189, 0.16);
  background: rgba(255,255,255,0.86);
  color: var(--text);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.field-group input:focus,
.field-group textarea:focus {
  border-color: rgba(86, 201, 221, 0.52);
  box-shadow: 0 0 0 4px rgba(158, 231, 245, 0.2);
  transform: translateY(-1px);
}

.field-group textarea {
  min-height: 130px;
  resize: vertical;
}

.companions-shell {
  margin-top: 18px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(125, 187, 220, 0.18);
  background: linear-gradient(180deg, rgba(255,255,255,0.74) 0%, rgba(247,252,255,0.92) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
}

.companions-header {
  margin-bottom: 16px;
}

.companions-header strong {
  display: block;
  color: #2f5577;
  font-size: 1rem;
}

.companions-header span {
  display: block;
  margin-top: 6px;
  color: #6f89a2;
  font-size: 0.9rem;
  line-height: 1.5;
}

.companions-fields {
  display: grid;
  gap: 14px;
}

.companion-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(120, 181, 214, 0.16);
  background: rgba(255,255,255,0.74);
}

.companion-card-title {
  display: block;
  margin-bottom: 14px;
  color: #2f5577;
  font-weight: 700;
}

.companion-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(150px, 0.8fr);
  gap: 14px;
}

.error-message {
  display: block;
  min-height: 18px;
  margin-top: 6px;
  color: #be678d;
  font-size: 0.84rem;
}

.form-feedback {
  min-height: 24px;
  margin: 14px 4px 0;
  font-weight: 700;
}

.form-feedback.success {
  color: #488369;
}

.form-feedback.error {
  color: #be678d;
}

.site-footer {
  padding: 24px 0 42px;
}

.site-footer .container {
  text-align: center;
}

.site-footer strong {
  display: block;
  margin-top: 10px;
  font-size: 2.5rem;
  color: #295274;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 720px) {
  .companions-shell {
    padding: 18px;
  }

  .companion-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes bubbleFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -20px, 0);
  }
}

@media (min-width: 720px) {
  .hero {
    padding-bottom: 104px;
  }

  .nav-links {
    display: flex;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-content {
    grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.8fr);
    gap: 42px;
    min-height: calc(100vh - 96px);
  }

  .hero-highlight {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gift-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .detail-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .gift-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .rsvp-layout {
    grid-template-columns: minmax(0, 0.92fr) minmax(380px, 0.8fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
