:root {
  --bg-rose: #fff5f7;
  --bg-pink: #ffe9ec;
  --bg-lilac: #f2eaff;
  --card: rgba(255, 255, 255, 0.7);
  --card-strong: rgba(255, 255, 255, 0.88);
  --text: #4f1f2d;
  --text-soft: #7b4c5d;
  --primary: #f54c73;
  --primary-deep: #c81d4c;
  --secondary: #d67ae5;
  --rose: #ff7aa2;
  --wine: #7b1e45;
  --gold: #ffdb8a;
  --line: rgba(123, 30, 69, 0.12);
  --shadow: 0 18px 50px rgba(168, 54, 89, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 199, 210, 0.75), transparent 26%),
    radial-gradient(circle at bottom right, rgba(214, 122, 229, 0.28), transparent 32%),
    linear-gradient(135deg, #fff9fb 0%, #fff0f5 15%, #fef5ff 52%, #fff5f7 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

button,
a {
  font: inherit;
}

.page-shell {
  position: relative;
  width: min(1200px, calc(100% - 32px));
  margin: 20px auto 60px;
}

.bg-decorations {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.floating-shape,
.sparkle {
  position: absolute;
  opacity: 0.7;
  animation: drift 18s ease-in-out infinite alternate;
}

.floating-shape {
  width: 18px;
  height: 18px;
  background: rgba(255, 105, 145, 0.45);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(255, 105, 145, 0.5);
}

.floating-shape::before {
  content: "❤";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: rgba(255, 100, 130, 0.7);
}

.sparkle {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}

.topbar,
.hero,
.section,
.footer {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  padding: 14px 24px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 18px;
  margin-bottom: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Pacifico", cursive;
  color: var(--wine);
  font-size: 1.2rem;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #ff93b2);
  color: white;
  font-size: 0.8rem;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav a:hover {
  color: var(--primary-deep);
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
  padding: 52px 20px 30px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-deep);
  font-weight: 700;
}

.hero h1,
.section-heading h2,
.footer-card h3 {
  font-family: "Cormorant Garamond", serif;
  margin: 0;
  line-height: 0.98;
  color: var(--wine);
}

.hero h1 {
  font-size: clamp(2.7rem, 5vw, 5rem);
  max-width: 650px;
}

.lead {
  margin: 22px 0 0;
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.8;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  padding: 12px 18px;
  font-weight: 700;
  color: var(--wine);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 25px rgba(112, 59, 77, 0.08);
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: linear-gradient(135deg, var(--primary), #ff8ea9);
  color: white;
}

.button.secondary {
  background: linear-gradient(135deg, #f4d4ff, #f4b7d9);
}

.button.tertiary {
  background: linear-gradient(135deg, #f6d8e6, #ffcfe0);
}

.button.quaternary {
  background: linear-gradient(135deg, #f9e7f7, #e7d4ff);
}

.rotating-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  margin-top: 26px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-soft);
  box-shadow: 0 10px 30px rgba(115, 60, 82, 0.08);
}

.label {
  font-weight: 800;
  color: var(--primary-deep);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
}

.glow-ring {
  position: absolute;
  width: min(420px, 82%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 178, 205, 0.95) 0%, rgba(255, 255, 255, 0.2) 52%, transparent 74%);
  box-shadow: 0 0 0 18px rgba(255, 182, 202, 0.18), 0 0 80px rgba(244, 97, 130, 0.24);
  animation: pulse 3.8s ease-in-out infinite;
}

.heart-core {
  position: relative;
  width: 210px;
  height: 210px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 118, 152, 0.96), rgba(194, 35, 88, 0.8));
  color: white;
  font-size: 7rem;
  box-shadow: 0 22px 40px rgba(194, 44, 88, 0.33);
  transform: rotate(-8deg);
  animation: floatHeart 4.5s ease-in-out infinite;
}

.floating-note {
  position: absolute;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--primary-deep);
  font-weight: 700;
  box-shadow: 0 12px 25px rgba(176, 68, 110, 0.07);
}

.note-one {
  top: 16%;
  right: 10%;
  animation: drift 8s ease-in-out infinite alternate;
}

.note-two {
  bottom: 12%;
  left: 12%;
  animation: drift 10s ease-in-out infinite alternate;
}

.section {
  margin-top: 52px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 32px;
  box-shadow: var(--shadow);
  padding: 28px 24px 30px;
}

.section.alt {
  background: linear-gradient(160deg, rgba(255, 244, 248, 0.82), rgba(247, 233, 251, 0.72));
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: clamp(2.1rem, 3vw, 3rem);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.filter-chip {
  border: 1px solid rgba(123, 30, 69, 0.14);
  background: rgba(255, 255, 255, 0.6);
  color: var(--text-soft);
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip.active,
.filter-chip:hover {
  background: linear-gradient(135deg, var(--primary), #ff9aaf);
  border-color: transparent;
  color: white;
}

.cards-grid {
  display: grid;
  gap: 18px;
}

.poems-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  position: relative;
  background: var(--card-strong);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 18px 35px rgba(121, 63, 81, 0.06);
  padding: 18px 18px 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(121, 63, 81, 0.12);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.card-category {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-deep);
  font-weight: 700;
}

.card-heart {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 114, 145, 0.12);
  color: var(--primary);
  font-size: 1.05rem;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  color: var(--wine);
  font-family: "Cormorant Garamond", serif;
}

.poem-text,
.letter-text,
.declaration-text {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.9;
  font-size: 1rem;
  white-space: pre-line;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.action-btn {
  border: 1px solid rgba(123, 30, 69, 0.12);
  background: rgba(255, 255, 255, 0.7);
  color: var(--wine);
  border-radius: 999px;
  padding: 8px 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn:hover {
  background: #fff4f8;
  border-color: rgba(123, 30, 69, 0.18);
}

.action-btn.is-favorite {
  background: linear-gradient(135deg, #fdf0f5, #ffe6d8);
  border-color: rgba(245, 76, 115, 0.18);
}

.surprise-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 240, 245, 0.75));
  border: 1px solid rgba(255, 255, 255, 0.75);
  margin-bottom: 20px;
}

.surprise-copy {
  flex: 1;
}

.mini-badge {
  margin: 0 0 8px;
  color: var(--primary-deep);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
}

#random-cantada {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  line-height: 1.7;
  color: var(--text);
  max-width: 760px;
  font-family: "Cormorant Garamond", serif;
}

.cantadas-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.letters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.letter-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 240, 246, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  padding: 18px 18px 16px;
  position: relative;
  overflow: hidden;
}

.letter-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(90deg, var(--primary), #ffb5c8, var(--secondary));
}

.letter-card h3 {
  margin: 0 0 14px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  color: var(--wine);
}

.declarations-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.declaration-card {
  background: rgba(255, 255, 255, 0.72);
}

.footer {
  padding-top: 28px;
}

.footer-card {
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 241, 246, 0.92), rgba(246, 235, 255, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 32px;
  padding: 26px 18px 30px;
  box-shadow: var(--shadow);
}

.footer-card h3 {
  font-size: clamp(2rem, 3vw, 3.2rem);
  max-width: 700px;
  margin: 0 auto 18px;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(0.98);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

@keyframes floatHeart {
  0%, 100% {
    transform: translateY(0) rotate(-8deg);
  }
  50% {
    transform: translateY(-18px) rotate(-8deg);
  }
}

@keyframes drift {
  0% {
    transform: translateY(0) translateX(0);
  }
  100% {
    transform: translateY(-18px) translateX(12px);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero h1,
  .lead {
    max-width: 100%;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .surprise-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 18px, 1200px);
  }

  .topbar {
    padding: 14px 16px;
    border-radius: 24px;
  }

  .nav {
    display: none;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-actions {
    justify-content: center;
  }

  .button {
    width: 100%;
  }

  .rotating-line {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
  }

  .heart-core {
    width: 170px;
    height: 170px;
    font-size: 5.5rem;
  }
  .section {
    padding-left: 16px;
    padding-right: 16px;
  }
}
