@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap');

:root {
  --pink: #e9a9bc;
  --rose: #c87591;
  --deep: #74475a;
  --ink: #59424a;
  --cream: #fffaf8;
  --paper: #fffdfb;
  --blush: #f9e8ed;
  --line: #efd7df;
  --shadow: 0 22px 70px rgba(117, 67, 86, .13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 10% 5%, #fbe8ee 0, transparent 35%),
    radial-gradient(ellipse at 90% 35%, #f7e8e6 0, transparent 32%),
    var(--cream);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
}

button {
  font: inherit;
}

.site-shell {
  width: min(1120px, calc(100% - 40px));
  margin: auto;
}

.topbar {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  text-decoration: none;
  color: var(--deep);
  font-family: 'Playfair Display', serif;
  font-size: 20px;
}

.wordmark span,
.footer span {
  color: var(--rose);
}

.music-button {
  border: 1px solid var(--line);
  color: var(--deep);
  background: rgba(255,255,255,.7);
  border-radius: 30px;
  padding: 10px 16px;
  cursor: pointer;
}

.music-icon {
  color: var(--rose);
  margin-right: 7px;
}

.intro {
  min-height: calc(100svh - 82px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 0 90px;
  transition: opacity .7s, transform .7s;
}

.intro-sparkle {
  color: var(--rose);
  letter-spacing: 9px;
  font-size: 22px;
  margin-bottom: 24px;
  animation: float 3s ease-in-out infinite;
}

.eyebrow {
  color: var(--rose);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: 10px;
  font-weight: 600;
  margin: 0 0 14px;
}

h1,
h2,
h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
}

.intro h1 {
  color: var(--deep);
  font-size: clamp(64px, 11vw, 116px);
  line-height: .91;
  margin: 0;
  letter-spacing: -.055em;
}

em {
  color: var(--rose);
  font-weight: 500;
}

.intro-copy {
  max-width: 390px;
  line-height: 1.8;
  color: #927782;
  margin: 28px 0;
  font-size: 14px;
}

.primary-button {
  border: 0;
  color: white;
  background: var(--rose);
  border-radius: 30px;
  padding: 15px 25px;
  box-shadow: 0 9px 25px #d58ca555;
  cursor: pointer;
  transition: transform .2s, background .2s;
}

.primary-button:hover {
  transform: translateY(-3px);
  background: var(--deep);
}

.primary-button span {
  margin-left: 14px;
}

.intro-date {
  margin-top: 55px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 13px;
  color: #b18c9a;
}

.intro-date span {
  color: var(--rose);
}

.hidden {
  display: none !important;
}

/* Algemene secties */

.book-section,
.timeline-section,
.countdown-section {
  padding: 70px 0;
  animation: rise .8s both;
}

.section-heading,
.timeline-section > .eyebrow,
.timeline-section > h2 {
  text-align: center;
}

.section-heading h2,
.timeline-section > h2,
.countdown-card h2 {
  color: var(--deep);
  font-size: clamp(32px, 5vw, 48px);
  margin: 0 0 35px;
}

/* Oude boek- en tijdlijnstijlen */

.book-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 3vw, 35px);
}

.book {
  width: min(440px, calc(100vw - 112px));
  height: min(590px, 128vw);
  min-height: 470px;
  position: relative;
  perspective: 1800px;
  filter: drop-shadow(0 20px 24px rgba(112,65,83,.13));
}

.book-page {
  position: absolute;
  inset: 0;
  border-radius: 5px 17px 17px 5px;
  background: var(--paper);
  border: 1px solid #f0dce2;
  padding: clamp(24px, 5vw, 48px);
  overflow: hidden;
  transform-origin: left center;
  backface-visibility: hidden;
  transition: transform .85s cubic-bezier(.2,.7,.15,1), box-shadow .85s;
}

.book-page::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 13px;
  width: 1px;
  background: #f5e9ec;
}

.book-page.flipped {
  transform: rotateY(-180deg);
  box-shadow: inset -8px 0 18px rgba(90,50,65,.08);
}

.cover-page {
  z-index: 7;
  background: linear-gradient(145deg, #f6dce5, #f3cbd8);
  border: 8px solid #fff5f7;
  text-align: center;
  display: grid;
  place-items: center;
}

.cover-inner {
  width: 100%;
  border: 1px solid #ffffffa8;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cover-flower {
  color: #bd718c;
  font-size: 34px;
  margin-bottom: 28px;
}

.cover-inner h2 {
  font-size: clamp(48px, 8vw, 74px);
  color: var(--deep);
  line-height: .94;
  margin: 0;
}

.cover-subtitle {
  font-size: 10px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: #a76f83;
  margin-top: 23px;
}

.cover-heart {
  color: #bf718c;
  font-size: 35px;
  margin-top: 28px;
}

.cover-bottom {
  position: absolute;
  bottom: 15px;
  color: #a76f83;
  font-size: 10px;
  letter-spacing: .12em;
}

.memory-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-number {
  position: absolute;
  right: 25px;
  top: 20px;
  color: #cba8b4;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 13px;
}

.memory-page h3 {
  font-size: clamp(25px, 4vw, 34px);
  line-height: 1.1;
  margin: 0 0 20px;
  color: var(--deep);
}

.photo-frame {
  width: 82%;
  height: 265px;
  background: #f5e4e9;
  padding: 9px 9px 27px;
  box-shadow: 0 8px 22px #75435718;
  transform: rotate(-2deg);
  position: relative;
  overflow: hidden;
}

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

.photo-frame.tilted {
  transform: rotate(2.5deg);
  width: 75%;
  height: 280px;
}

.photo-frame.wide {
  width: 100%;
  height: 235px;
  transform: rotate(1deg);
}

.photo-frame.photo-four {
  transform: rotate(-1deg);
  height: 270px;
}

.photo-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f3dce4, #f8edf0);
  border: 1px dashed #d9a8b9;
}

.placeholder-label {
  display: none;
  color: #a66f83;
  font-size: 11px;
}

.photo-placeholder .placeholder-label {
  display: block;
}

.memory-caption {
  color: #947b84;
  font-size: 12px;
  line-height: 1.8;
  max-width: 290px;
  margin: 24px auto 0;
}

.doodle-heart {
  color: var(--rose);
  font-size: 22px;
  margin-top: auto;
  padding-top: 10px;
}

.ending-page {
  display: grid;
  place-items: center;
  text-align: center;
  background: #f9e8ed;
}

.ending-content h2 {
  color: var(--deep);
  font-size: clamp(48px, 8vw, 68px);
  line-height: .98;
  margin: 15px 0 25px;
}

.ending-content p:not(.eyebrow) {
  color: #947782;
  font-size: 13px;
  line-height: 1.9;
}

.ending-heart {
  font-size: 42px;
  color: var(--rose);
}

.signature {
  display: block;
  margin-top: 28px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--rose);
}

.page-arrow {
  border: 1px solid var(--line);
  background: #fff9fa;
  color: var(--rose);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
  transition: .2s;
}

.page-arrow:hover:not(:disabled) {
  background: var(--rose);
  color: white;
}

.page-arrow:disabled {
  opacity: .3;
  cursor: not-allowed;
}

.book-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 28px;
  color: #a17d8a;
  font-size: 11px;
}

.page-dots {
  display: flex;
  gap: 7px;
}

.page-dot {
  border: 0;
  background: #e9cbd5;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
}

.page-dot.active {
  background: var(--rose);
  transform: scale(1.5);
}

.hint {
  color: #b49aa3;
}

.timeline-section {
  max-width: 680px;
  margin: auto;
}

.timeline {
  position: relative;
  margin: 45px auto 0;
  padding-left: 35px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 5px;
  bottom: 5px;
  width: 1px;
  background: #e8c3cf;
}

.timeline-item {
  position: relative;
  display: flex;
  gap: 22px;
  margin: 0 0 38px;
}

.timeline-dot {
  position: absolute;
  left: -35px;
  top: 0;
  background: #f7dfe7;
  border: 1px solid #e6bdcb;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--rose);
  font-size: 12px;
}

.timeline-date {
  color: var(--rose) !important;
  font-size: 10px !important;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 7px !important;
}

.timeline-item h3 {
  margin: 0 0 7px;
  color: var(--deep);
  font-size: 23px;
}

.timeline-item p {
  color: #987f89;
  line-height: 1.7;
  font-size: 13px;
  margin: 0;
}

/* Aftelklok */

.countdown-card {
  max-width: 650px;
  margin: auto;
  padding: 55px 25px;
  border: 1px solid #efd8e0;
  background: #fff9fae8;
  text-align: center;
  border-radius: 5px;
  box-shadow: var(--shadow);
}

.countdown-flower {
  font-size: 28px;
  color: var(--rose);
}

.countdown-card h2 {
  margin-bottom: 10px;
}

.countdown-note,
.countdown-date {
  color: #a0848e;
  font-size: 12px;
}

.countdown-grid {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 5vw, 42px);
  margin: 32px 0;
}

.countdown-grid div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 48px;
}

.countdown-grid strong {
  font-family: 'Playfair Display', serif;
  color: var(--deep);
  font-size: clamp(30px, 6vw, 46px);
  font-weight: 500;
}

.countdown-grid span {
  color: #b08b99;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.footer {
  text-align: center;
  padding: 25px 0 45px;
  color: #a78a95;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 13px;
}

/* Bewegende hartjes op de achtergrond */

.ambient-hearts {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;

  overflow: hidden;
  pointer-events: none;
  z-index: 100;
}



/* Animaties */

@keyframes float {
  50% {
    transform: translateY(-8px);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  to {
    transform: translateY(-110vh) rotate(25deg);
    opacity: 0;
  }
}

/* Mobiele vormgeving */

@media (max-width: 600px) {
  .site-shell {
    width: min(100% - 24px, 520px);
  }

  .topbar {
    height: 68px;
  }

  .book-section,
  .timeline-section,
  .countdown-section {
    padding: 48px 0;
  }

  .book {
    height: 510px;
    min-height: 0;
    width: calc(100vw - 100px);
  }

  .book-page {
    padding: 30px 22px;
  }

  .photo-frame {
    height: 225px;
  }

  .photo-frame.tilted {
    height: 230px;
  }

  .photo-frame.wide {
    height: 205px;
  }

  .memory-caption {
    font-size: 11px;
    margin-top: 17px;
  }

  .book-controls {
    gap: 13px;
    flex-wrap: wrap;
  }

  .hint {
    width: 100%;
    text-align: center;
  }

  .page-arrow {
    width: 34px;
    height: 34px;
    font-size: 25px;
  }
}

/* Scrollende herinneringen */

.section-intro {
  color: #987f89;
  font-size: 13px;
  line-height: 1.8;
  margin: -18px auto 55px;
  max-width: 390px;
  text-align: center;
}

.memories-section {
  padding: 65px 0 35px;
  animation: rise .8s both;
}

.memory-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, .9fr);
  align-items: center;
  gap: clamp(28px, 6vw, 75px);
  max-width: 900px;
  margin: 0 auto 105px;
}

.memory-card.reverse {
  grid-template-columns: minmax(240px, .9fr) minmax(0, 1.1fr);
}

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

.memory-card.reverse .memory-text {
  order: 1;
}

.memory-photo {
  min-height: 360px;
  height: clamp(300px, 43vw, 470px);
  padding: 12px 12px 38px;
  background: #fff;
  box-shadow: 0 15px 45px rgba(117,67,86,.13);
  transform: rotate(-1.8deg);
  position: relative;
  display: grid;
  place-items: center;
}

.memory-card.reverse .memory-photo {
  transform: rotate(1.8deg);
}

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

.memory-photo.photo-placeholder {
  background: linear-gradient(145deg, #f7e1e8, #fdf1f4);
  border: 1px dashed #d9a8b9;
}

.memory-photo .placeholder-label {
  display: none;
  color: #a66f83;
  font-size: 12px;
}

.memory-photo.photo-placeholder .placeholder-label {
  display: block;
}

.memory-text {
  padding: 20px 0;
}

.memory-text h3 {
  color: var(--deep);
  font-size: clamp(30px, 4vw, 43px);
  line-height: 1.08;
  margin: 0 0 17px;
}

.memory-text p:not(.eyebrow) {
  color: #59424a;
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 16px;
  max-width: 360px;
}

.memory-deco {
  position: absolute;
  bottom: -25px;
  right: 8%;
  color: var(--rose);
  font-size: 29px;
}

.memory-card.reverse .memory-deco {
  right: auto;
  left: 8%;
}

.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity .85s ease, transform .85s ease;
}

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

.closing-note {
  text-align: center;
  padding: 65px 20px 95px;
}

.closing-note h2 {
  color: var(--deep);
  font-size: clamp(42px, 7vw, 65px);
  margin: 10px 0 18px;
}

.closing-note > p:not(.eyebrow) {
  color: #987f89;
  font-size: 13px;
  line-height: 1.9;
}

/* Mobiele weergave van de herinneringen */

@media (max-width: 680px) {
  .memories-section {
    padding-top: 45px;
  }

  .memory-card,
  .memory-card.reverse {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 75px;
  }

  .memory-card.reverse .memory-photo,
  .memory-card.reverse .memory-text {
    order: initial;
  }

  .memory-photo {
    height: 330px;
    min-height: 0;
    width: min(100% - 20px, 430px);
    margin: auto;
  }

  .memory-text {
    text-align: center;
    padding: 0 12px;
  }

  .memory-text > p:last-child {
    margin-left: auto;
    margin-right: auto;
  }

  .memory-deco,
  .memory-card.reverse .memory-deco {
    right: 7%;
    left: auto;
    bottom: -22px;
  }
  /* Relatieklok */

.relationship-clock {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 500px;
  margin: 40px auto;
}

.relationship-clock div {
  background: #fff0f4;
  border: 1px solid #f2d4de;
  border-radius: 15px;
  padding: 20px 10px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  transition: transform 0.3s ease;
}

.relationship-clock div:hover {
  transform: translateY(-5px);
}

.relationship-clock strong {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  font-weight: 500;
  color: var(--deep);
}

.relationship-clock span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--rose);
  margin-top: 5px;
}

@media (max-width: 500px) {
  .relationship-clock {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .relationship-clock div {
    padding: 18px 8px;
  }

  .relationship-clock strong {
    font-size: 32px;
  }
}
/* Tekst van onze eerste ontmoeting */

.memory-text p:not(.eyebrow) {
  color: #987f89;
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 16px;
}

.memory-text h3 {
  margin-bottom: 24px;
}

/* Hartjesregen aan de zijkanten */

.ambient-hearts {
  left: 10px;
  width: calc(100% - 20px);
}

.rain-heart {
  position: absolute;
  top: 0;
  width: .55em;
  height: .55em;
  border-radius: 0 0 2px 0;
  background: #e95376;
  color: transparent;
  animation: heartRain 8s linear both;
}

.rain-heart::before,
.rain-heart::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
}

.rain-heart::before {
  top: -50%;
  left: 0;
}

.rain-heart::after {
  top: 0;
  left: -50%;
}

@keyframes heartRain {
  0% {
    transform: translate(0, -28px) rotate(-18deg);
    opacity: 0;
  }

  12% {
    background-color: #f38aab;
    opacity: .62;
  }

  83% {
    background-color: #cf365c;
    opacity: .62;
  }

  50% {
    transform: translate(-7px, 50vh) rotate(-45deg);
  }

  100% {
    transform: translate(3px, calc(100vh + 28px)) rotate(-68deg);
    opacity: 0;
  }
}

@media (max-width: 600px) {
  .rain-heart {
    scale: .72;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-hearts {
    display: none;
  }
}
}