:root{
  --bg: #fff5f7;
  --card: #ffffff;
  --ink: #2b2b2b;
  --subtle: #6b6b6b;
  --accent: #ff4d6d;
  --accent-2: #ffccd5;
  --ring: rgba(255,77,109,0.3);
}

*{ box-sizing: border-box; }
.photo-frame {
  margin: 2rem 0;
  text-align: center;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  justify-items: center;
}

.gallery img {
  width: 100%;
  max-width: 350px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}


html, body{
  margin: 0;
  padding: 0;
  background: radial-gradient(1200px 800px at 80% -10%, #ffe3ec 0%, rgba(255,227,236,0) 60%) no-repeat,
              radial-gradient(900px 700px at 10% 110%, #ffccd5 0%, rgba(255,204,213,0) 60%) no-repeat,
              var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', sans-serif;
  line-height: 1.6;
}

.card{
  max-width: 920px;
  margin: clamp(24px, 5vw, 56px) auto;
  background: var(--card);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
  padding: clamp(18px, 4vw, 42px);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,77,109,0.12);
}

.hero{
  text-align: center;
  margin-bottom: 24px;
}

.hero h1{
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 800;
  letter-spacing: 0.3px;
  font-size: clamp(32px, 4.2vw, 56px);
  margin: 10px 0 6px;
  color: var(--accent);
  text-shadow: 0 2px 0 #fff;
}

.names{
  margin: 0;
  font-weight: 600;
  color: var(--subtle);
}

.names .amp{ color: var(--accent); }

.ribbon{
  display: inline-block;
  background: linear-gradient(180deg, var(--accent), #ff8095);
  color: white;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 8px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  font-size: 12px;
  box-shadow: 0 8px 18px var(--ring);
}

.photo-frame{
  margin: 26px auto 16px;
  border-radius: 20px;
  padding: clamp(8px, 1.5vw, 12px);
  background: linear-gradient(135deg, #fff, #fff), linear-gradient(135deg, var(--accent-2), #ffe3ec);
  background-clip: padding-box, border-box;
  border: 2px solid transparent;
  box-shadow: 0 10px 24px rgba(255,77,109,0.15);
  text-align: center;
}

.photo-frame img{
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 14px;
  filter: saturate(1.08) contrast(1.02);
}

.photo-frame figcaption{
  margin-top: 10px;
  color: var(--subtle);
  font-style: italic;
  font-size: 0.98rem;
}

.message{
  margin: 26px 0;
}

.message h2,
.milestones h2{
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 28px);
  margin: 0 0 6px;
}

.milestones ul{
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 10px 18px;
}

.milestones li{
  background: #fff7f9;
  border: 1px dashed var(--accent-2);
  border-radius: 14px;
  padding: 10px 12px;
}

.footer{
  margin-top: 24px;
  text-align: center;
  color: var(--subtle);
  font-size: 0.95rem;
}

.hearts{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.hearts span{
  position: absolute;
  font-size: 14px;
  opacity: 0.35;
  animation: floatUp 10s linear infinite;
}

.hearts span:nth-child(odd){ opacity: 0.25; }
.hearts span:nth-child(3n){ font-size: 18px; }
.hearts span:nth-child(5n){ font-size: 22px; }

.hearts span:nth-child(1){ left: 8%; animation-delay: 0s; }
.hearts span:nth-child(2){ left: 20%; animation-delay: 2s; }
.hearts span:nth-child(3){ left: 32%; animation-delay: 4s; }
.hearts span:nth-child(4){ left: 45%; animation-delay: 1s; }
.hearts span:nth-child(5){ left: 58%; animation-delay: 3s; }
.hearts span:nth-child(6){ left: 70%; animation-delay: 6s; }
.hearts span:nth-child(7){ left: 78%; animation-delay: 5s; }
.hearts span:nth-child(8){ left: 86%; animation-delay: 8s; }
.hearts span:nth-child(9){ left: 92%; animation-delay: 7s; }
.hearts span:nth-child(10){ left: 50%; animation-delay: 9s; }

@keyframes floatUp{
  from{ transform: translateY(100vh) scale(1); }
  to{ transform: translateY(-10vh) scale(1.2); }
}

/* Small screens */
@media (max-width: 520px){
  .milestones ul{ grid-template-columns: 1fr; }
}
