:root {
  --pink: #e85f8d;
  --pink-dark: #b93666;
  --blue: #2780bd;
  --blue-dark: #135986;
  --yellow: #ffc94b;
  --cream: #fff4d8;
  --wood: #f2d3a0;
  --wood-dark: #8e572f;
  --text: #4c2e20;
  --soft: rgba(255, 250, 235, 0.82);
  --shadow: 0 18px 40px rgba(79, 39, 16, 0.22);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 236, 143, 0.78), transparent 36rem),
    radial-gradient(circle at top right, rgba(232, 95, 141, 0.28), transparent 28rem),
    linear-gradient(180deg, #fff0bf 0%, #ffe0ad 36%, #fff8df 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(90deg, rgba(142, 87, 47, .18) 1px, transparent 1px),
    linear-gradient(rgba(142, 87, 47, .12) 1px, transparent 1px);
  background-size: 34px 34px;
  z-index: -2;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .7rem .9rem;
  background: rgba(255, 245, 220, .86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(142, 87, 47, .18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.brand-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  flex: 0 0 36px;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav {
  display: flex;
  gap: .35rem;
  overflow-x: auto;
  padding-bottom: .1rem;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }


.nav a {
  flex: 0 0 auto;
  padding: .48rem .68rem;
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 800;
  color: var(--blue-dark);
  background: rgba(255, 255, 255, .54);
}

.section {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 2.4rem 1rem;
}

.hero {
  padding-top: 1.1rem;
  display: grid;
  gap: 1rem;
}

.hero-image-card {
  position: relative;
  border-radius: 1.6rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 4px solid rgba(255, 255, 255, .8);
  min-height: 18rem;
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  min-height: 18rem;
  object-fit: cover;
  display: block;
}

.wood-card {
  position: relative;
  border-radius: 1.5rem;
  padding: 1.25rem;
  background:
    linear-gradient(90deg, rgba(255,255,255,.18), transparent 32%, rgba(255,255,255,.18)),
    repeating-linear-gradient(0deg, rgba(142, 87, 47, .10) 0 1px, transparent 1px 18px),
    linear-gradient(135deg, #ffe4b3, #f6cf90);
  box-shadow: var(--shadow);
  border: 3px solid rgba(142, 87, 47, .28);
}

.invite-card {
  margin-top: -.9rem;
  z-index: 2;
  text-align: center;
}

.eyebrow,
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 .35rem;
  padding: .28rem .75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  color: var(--pink-dark);
  font-weight: 900;
}

h1, h2, h3 {
  font-family: "Baloo 2", cursive;
  line-height: .98;
  margin: 0;
}

h1 {
  font-size: clamp(3.2rem, 17vw, 6rem);
  color: var(--pink);
  text-shadow: 0 3px 0 rgba(255,255,255,.7);
}

.age {
  display: block;
  margin-top: -.2rem;
  font-family: "Baloo 2", cursive;
  font-size: clamp(1.8rem, 8vw, 3.2rem);
  color: var(--blue);
}

.invite-info {
  display: grid;
  gap: .55rem;
  margin: 1.1rem 0;
  text-align: left;
}

.invite-info p {
  display: flex;
  gap: .55rem;
  align-items: center;
  margin: 0;
  padding: .62rem .75rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, .48);
  font-weight: 900;
}

.hero-actions,
.confirmation-card {
  display: grid;
  gap: .7rem;
}

.btn {
  appearance: none;
  border: 0;
  width: 100%;
  min-height: 3.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .85rem 1rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

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

.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
  box-shadow: 0 12px 24px rgba(185, 54, 102, .28);
}

.secondary {
  color: var(--blue-dark);
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 10px 18px rgba(19, 89, 134, .14);
}

.section-heading {
  text-align: center;
  margin-bottom: 1.35rem;
}

.section-heading h2,
.confirmation-card h2 {
  font-size: clamp(2.1rem, 10vw, 3.5rem);
  color: var(--blue-dark);
}

.section-heading p,
.confirmation-card p {
  max-width: 42rem;
  margin: .55rem auto 0;
  font-size: 1rem;
  font-weight: 700;
}

.location-grid {
  display: grid;
  gap: 1rem;
}

.location-card,
.tips-card,
.confirmation-card {
  text-align: center;
}

.big-icon {
  display: inline-grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  margin-bottom: .45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  font-size: 1.8rem;
}

.location-card h3,
.tips-card h3,
.modal-content h3 {
  font-size: 1.75rem;
  color: var(--pink-dark);
}

.location-card p { font-weight: 900; }

.tips-card {
  border-radius: 1.5rem;
  padding: 1.15rem;
  background: rgba(255, 255, 255, .62);
  box-shadow: 0 14px 32px rgba(79, 39, 16, 0.12);
  border: 2px dashed rgba(39, 128, 189, .34);
}

.tips-card ul {
  padding: 0;
  margin: .9rem 0 0;
  list-style: none;
  display: grid;
  gap: .6rem;
  text-align: left;
}

.tips-card li {
  padding: .72rem .85rem;
  border-radius: 1rem;
  background: rgba(255, 246, 220, .82);
  font-weight: 800;
}

.tips-card li::before { content: "💙 "; }

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

.gift-card {
  min-height: 8.4rem;
  border: 0;
  border-radius: 1.35rem;
  padding: 1rem .65rem;
  background: rgba(255, 255, 255, .68);
  box-shadow: 0 12px 24px rgba(79, 39, 16, 0.13);
  color: var(--text);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  display: grid;
  place-items: center;
  gap: .35rem;
  border: 2px solid rgba(255, 255, 255, .8);
}

.gift-card span {
  font-size: 2.25rem;
  filter: drop-shadow(0 4px 6px rgba(79, 39, 16, .12));
}

.gift-card small {
  color: var(--blue-dark);
  font-weight: 900;
}

.confirmation-section { padding-bottom: 1.7rem; }

.footer {
  padding: 1.1rem 1rem 6rem;
  text-align: center;
  font-weight: 900;
  color: var(--wood-dark);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.is-open { display: flex; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(56, 29, 17, .48);
  backdrop-filter: blur(6px);
}

.modal-content {
  width: min(25rem, 100%);
  z-index: 1;
  text-align: center;
  animation: pop .22s ease both;
}

.modal-close {
  position: absolute;
  top: .65rem;
  right: .75rem;
  width: 2.35rem;
  height: 2.35rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: var(--pink-dark);
  font-size: 1.8rem;
  font-weight: 900;
  cursor: pointer;
}

.modal-icon {
  display: block;
  font-size: 3.2rem;
  margin-bottom: .2rem;
}

.season-list {
  display: grid;
  gap: .75rem;
  margin-top: 1rem;
}

.season-card {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: .85rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, .62);
  font-weight: 900;
}

.season-card strong {
  color: var(--blue-dark);
  text-align: right;
}

.magic-bg span { position: fixed; pointer-events: none; z-index: -1; }

.feather {
  color: #39a9ff;
  text-shadow: 0 0 18px rgba(57, 169, 255, .85);
  animation: float 9s ease-in-out infinite;
}

.feather img {
  width: 48px;
  height: auto;
  display: block;
  object-fit: contain;
}

.feather-1 { top: 15%; left: 4%; font-size: 2rem; animation-delay: .2s; }
.feather-2 { top: 56%; right: 5%; font-size: 2.5rem; animation-delay: 1.4s; }
.feather-3 { bottom: 10%; left: 12%; font-size: 1.7rem; animation-delay: 2.8s; }

.sparkle {
  width: .55rem;
  height: .55rem;
  border-radius: 999px;
  background: #fff1a6;
  box-shadow: 0 0 22px 7px rgba(255, 224, 90, .85);
  animation: blink 2.4s ease-in-out infinite;
}

.sparkle-1 { top: 17%; right: 24%; }
.sparkle-2 { top: 71%; left: 8%; animation-delay: .7s; }
.sparkle-3 { bottom: 17%; right: 13%; animation-delay: 1.3s; }

@keyframes float {
  0%, 100% { transform: translate3d(0,0,0) rotate(-8deg); opacity: .75; }
  50% { transform: translate3d(18px,-28px,0) rotate(14deg); opacity: 1; }
}

@keyframes blink {
  0%, 100% { transform: scale(.7); opacity: .42; }
  50% { transform: scale(1.2); opacity: 1; }
}

@keyframes pop {
  from { transform: translateY(14px) scale(.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

@media (min-width: 720px) {
  .topbar { padding-inline: 1.8rem; }
  .nav a { font-size: .95rem; padding-inline: .95rem; }
  .section { padding: 4rem 1.4rem; }
  .hero {
    grid-template-columns: 1.08fr .92fr;
    align-items: center;
    padding-top: 2rem;
  }
  .hero-image-card { min-height: 33rem; }
  .hero-image-card img { min-height: 33rem; }
  .invite-card { margin-top: 0; margin-left: -4rem; }
  .hero-actions { grid-template-columns: 1fr 1fr; }
  .location-grid { grid-template-columns: .9fr 1.1fr; align-items: stretch; }
  .gift-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .confirmation-card { max-width: 42rem; margin: 0 auto; }
  .footer { padding-bottom: 2rem; }
}

@media (min-width: 1024px) {
  .gift-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .brand-icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }
}