:root {
  --ink: #251617;
  --muted: #6d5557;
  --paper: #fff8f2;
  --rose: #b83b5e;
  --wine: #641f32;
  --teal: #1b6f72;
  --gold: #d3a24f;
  --cream: #f8eadb;
  --shadow: 0 24px 70px rgba(55, 27, 31, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
}

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

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background-image: url("assets/hero-romantico.png");
  background-position: center;
  background-size: cover;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(37, 22, 23, 0.78), rgba(37, 22, 23, 0.2) 56%, rgba(37, 22, 23, 0.08)),
    linear-gradient(0deg, rgba(37, 22, 23, 0.32), rgba(37, 22, 23, 0));
}

.topbar {
  position: absolute;
  z-index: 2;
  top: 24px;
  left: 50%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: min(92%, 940px);
  transform: translateX(-50%);
  justify-content: flex-end;
}

.topbar a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  border: 1px solid rgba(255, 248, 242, 0.34);
  border-radius: 999px;
  color: #fff8f2;
  background: rgba(37, 22, 23, 0.24);
  backdrop-filter: blur(12px);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(92%, 940px);
  margin: 0 auto;
  padding: 120px 0 80px;
  color: #fff8f2;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.02;
}

h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(3rem, 9vw, 6.7rem);
}

.hero__text {
  max-width: 610px;
  margin: 22px 0 0;
  color: rgba(255, 248, 242, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.7;
}

.verse {
  max-width: 620px;
  margin: 24px 0 0;
  padding: 18px 20px;
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  background: rgba(255, 253, 250, 0.74);
}

.verse p {
  margin: 0;
  color: var(--wine);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.1rem, 2vw, 1.42rem);
  line-height: 1.35;
}

.verse cite {
  display: block;
  margin-top: 10px;
  color: var(--teal);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.verse--hero,
.verse--light {
  background: rgba(255, 248, 242, 0.13);
  border-left-color: rgba(255, 224, 168, 0.9);
}

.verse--hero p,
.verse--light p,
.verse--hero cite,
.verse--light cite {
  color: #fff8f2;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button,
.surprise-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.button--primary {
  width: 52px;
  background: #fff8f2;
  color: var(--wine);
  font-size: 1.35rem;
}

.button--ghost {
  padding: 0 23px;
  border: 1px solid rgba(255, 248, 242, 0.38);
  color: #fff8f2;
  background: rgba(255, 248, 242, 0.13);
}

.music-button {
  padding: 0 23px;
  color: #fff8f2;
  background: var(--rose);
}

.music-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: rgba(255, 248, 242, 0.82);
  font-size: 0.92rem;
  font-weight: 700;
}

.countdown,
.story,
.reasons,
.read-when,
.gallery,
.letter {
  padding: 78px max(24px, calc((100vw - 1080px) / 2));
}

.countdown {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  background: var(--wine);
  color: #fff8f2;
}

.countdown h2,
.section-heading h2,
.gallery__intro h2,
.letter h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.7rem);
}

.countdown h2 {
  max-width: 700px;
}

.countdown .verse {
  max-width: 560px;
}

.timer {
  display: grid;
  grid-template-columns: repeat(4, 86px);
  gap: 10px;
}

.timer span {
  min-height: 88px;
  display: grid;
  place-items: center;
  padding: 12px 8px;
  border: 1px solid rgba(255, 248, 242, 0.18);
  border-radius: 8px;
  color: rgba(255, 248, 242, 0.78);
  background: rgba(255, 248, 242, 0.08);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.timer strong {
  display: block;
  color: #fff8f2;
  font-size: 2rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.reason-grid {
  display: grid;
  gap: 18px;
}

.reason-grid article {
  min-height: 230px;
  padding: 26px;
  border: 1px solid rgba(100, 31, 50, 0.1);
  border-radius: 8px;
  background: #fffdfa;
  box-shadow: var(--shadow);
}

.memory-timeline {
  position: relative;
  display: grid;
  gap: 24px;
}

.memory-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.15fr);
  gap: 24px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(100, 31, 50, 0.1);
  border-radius: 8px;
  background: #fffdfa;
  box-shadow: var(--shadow);
}

.memory-card--reverse {
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
}

.memory-card--reverse .memory-photo {
  order: 2;
}

.memory-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(184, 59, 94, 0.16), rgba(27, 111, 114, 0.16)),
    #f8eadb;
}

.memory-photo img,
.photo-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.memory-photo span,
.photo-card span {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  color: rgba(100, 31, 50, 0.68);
  font-weight: 800;
}

.memory-photo.is-empty img,
.photo-card.is-empty img {
  display: none;
}

.memory-photo.is-empty span,
.photo-card.is-empty span {
  display: grid;
}

.memory-copy {
  padding: 10px min(2vw, 18px);
}

.memory-date {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.memory-copy h3,
.reason-grid h3 {
  margin: 14px 0 12px;
  color: var(--wine);
  font-size: 1.25rem;
}

.memory-copy p,
.reason-grid p,
.letter p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.reasons {
  background: linear-gradient(180deg, #fff8f2 0%, #f4e4df 100%);
}

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

.read-when {
  background:
    linear-gradient(180deg, #f4e4df 0%, #fff8f2 100%);
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.note-card {
  min-height: 148px;
  border: 1px solid rgba(100, 31, 50, 0.12);
  border-radius: 8px;
  background: #fffdfa;
  box-shadow: var(--shadow);
}

.note-card summary {
  min-height: 76px;
  display: flex;
  align-items: center;
  padding: 22px 24px;
  color: var(--wine);
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 800;
  list-style: none;
}

.note-card summary::-webkit-details-marker {
  display: none;
}

.note-card summary::before {
  content: "♥";
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: inline-grid;
  place-items: center;
  margin-right: 12px;
  border-radius: 50%;
  background: rgba(184, 59, 94, 0.12);
  color: var(--rose);
  font-size: 0.9rem;
}

.note-card p {
  margin: 0;
  padding: 0 24px 24px 68px;
  color: var(--muted);
  line-height: 1.75;
}

.gallery {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 26px;
  align-items: center;
  background: var(--teal);
  color: #fff8f2;
}

.gallery .section-kicker {
  color: #ffe0a8;
}

.gallery .verse {
  max-width: 520px;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 14px;
}

.photo-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px dashed rgba(255, 248, 242, 0.48);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 248, 242, 0.2), rgba(255, 248, 242, 0.05)),
    rgba(255, 248, 242, 0.08);
  color: rgba(255, 248, 242, 0.72);
  font-weight: 800;
}

.photo-card span {
  color: rgba(255, 248, 242, 0.74);
}

.letter {
  background:
    radial-gradient(circle at 20% 10%, rgba(211, 162, 79, 0.22), transparent 32%),
    var(--cream);
}

.letter__paper {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 58px);
  border-radius: 8px;
  background: #fffdfa;
  box-shadow: var(--shadow);
}

.letter p + p {
  margin-top: 18px;
}

.letter .verse {
  margin-top: 24px;
  background: rgba(248, 234, 219, 0.66);
}

.surprise-button {
  margin-top: 28px;
  padding: 0 24px;
  background: var(--rose);
  color: #fff8f2;
}

.surprise-message {
  margin-top: 18px;
  color: var(--wine);
  font-weight: 800;
}

@media (max-width: 860px) {
  .topbar {
    justify-content: center;
  }

  .topbar a {
    padding: 0 12px;
    font-size: 0.82rem;
  }

  .countdown,
  .gallery {
    grid-template-columns: 1fr;
  }

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

  .memory-card,
  .memory-card--reverse {
    grid-template-columns: 1fr;
  }

  .memory-card--reverse .memory-photo {
    order: 0;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 92vh;
    background-position: 58% center;
  }

  .hero__content {
    padding: 150px 0 64px;
  }

  .hero__shade {
    background: linear-gradient(0deg, rgba(37, 22, 23, 0.82), rgba(37, 22, 23, 0.3));
  }

  .topbar {
    top: 14px;
    gap: 6px;
  }

  .topbar a {
    min-height: 36px;
    padding: 0 9px;
  }

  .timer,
  .reason-grid,
  .note-grid,
  .photo-strip {
    grid-template-columns: 1fr;
  }

  .timer span {
    min-height: 70px;
  }
}
