@import url('https://fonts.googleapis.com/css2?family=Berkshire+Swash&family=Cormorant+Garamond:wght@400;500;600&display=swap');

:root {
  --pink: #e78fb3;
  --hot-pink: #d9679b;
  --soft-pink: #fff0f7;
  --cream: #fffafc;
  --green: #719d72;
  --dark-green: #42634a;
  --ink: #5c5360;
  --border: #efbfd4;
  --shadow: 0 10px 28px rgba(135, 91, 112, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;

  color: var(--ink);

  background-image: url("pink.jpg");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  background-attachment: fixed;

  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  line-height: 1.55;
}

body::before {
  content: "✿  ˚₊‧  ✧   ⋆˚꩜｡  ♡   .☘︎ ݁˖   ✿  ˚₊‧  ✧";
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(217,103,155,.28);
  letter-spacing: 12px;
  pointer-events: none;
  z-index: 20;
}

body::after {
  content: "🦋";
  position: fixed;
  right: 5%;
  top: 18%;
  font-size: 25px;
  opacity: .55;
  pointer-events: none;
  animation: butterfly 7s ease-in-out infinite;
  z-index: 15;
}

.sparkles::before,
.sparkles::after {
  content: "✦";
  position: fixed;
  color: #f3a9c7;
  font-size: 25px;
  animation: float 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 10;
}

.sparkles::before {
  left: 7%;
  top: 32%;
}

.sparkles::after {
  right: 8%;
  top: 62%;
  animation-delay: 1.8s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0);
    opacity: .45;
  }

  50% {
    transform: translateY(-18px) rotate(12deg);
    opacity: 1;
  }
}

@keyframes butterfly {
  0%, 100% {
    transform: translate(0, 0) rotate(-8deg);
  }

  25% {
    transform: translate(-12px, 18px) rotate(5deg);
  }

  50% {
    transform: translate(8px, 35px) rotate(-4deg);
  }

  75% {
    transform: translate(-8px, 15px) rotate(7deg);
  }
}


/* =========================
   HERO
   ========================= */

.hero {
  width: min(1050px, 92%);
  margin: 55px auto 18px;
  min-height: 330px;

  display: grid;
  place-items: center;

  text-align: center;

  padding: 45px 25px;

  border: 3px solid rgba(239,191,212,.8);
  border-radius: 34px;

  background:
    linear-gradient(
      rgba(255,250,252,.25),
      rgba(255,250,252,.72)
    ),
    url("sunny-garden.png") center/cover;

  box-shadow: var(--shadow);

  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "🦋";
  position: absolute;
  left: 8%;
  top: 18%;
  font-size: 30px;
  opacity: .65;
  animation: butterfly 6s ease-in-out infinite reverse;
}

.hero::after {
  content: "✿  ˚₊‧  ✧   ⋆˚꩜｡  ♡   .☘︎ ݁˖   ✿  ˚₊‧  ✧";
  position: absolute;
  bottom: 18px;
  font-size: 24px;
  color: #e78fb3;
  letter-spacing: 10px;
}

.hero-text {
  max-width: 900px;
  padding: 25px;
  border-radius: 28px;
  backdrop-filter: blur(1px);
}

.tiny {
  color: var(--hot-pink);
  text-transform: lowercase;
  letter-spacing: 2px;
  font-size: .82rem;
  font-weight: 600;
}

h1,
h2,
h3 {
  font-family: "Berkshire Swash", cursive;
  color: var(--dark-green);
  margin-top: .2em;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2.7rem, 8vw, 5.2rem);
  margin-bottom: 0;
  letter-spacing: 1px;
  text-shadow: 2px 3px 0 rgba(255,255,255,.7);
}

h2 {
  font-size: 2.2rem;
}

h3 {
  font-size: 1.6rem;
}

.subtitle {
  color: var(--hot-pink);
  font-size: 1.25rem;
  margin-top: 0;
}


/* =========================
   BUTTONS
   ========================= */

.magic-btn,
.nav-btn {
  border: 2px solid var(--border);
  background: rgba(255,255,255,.88);
  color: var(--hot-pink);
  font-family: inherit;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;

  transition:
    transform .2s ease,
    background .2s ease,
    box-shadow .2s ease;
}

.magic-btn {
  padding: 10px 17px;
}

.magic-btn:hover,
.nav-btn:hover {
  transform: translateY(-3px) rotate(-1deg);
  background: var(--soft-pink);
  box-shadow: 0 7px 18px rgba(217,103,155,.16);
}

.magic-btn:active,
.nav-btn:active {
  transform: translateY(0) scale(.97);
}

.magic-message {
  min-height: 25px;
  margin-bottom: 0;
  color: var(--green);
  font-weight: 600;
}


/* =========================
   NAVIGATION
   ========================= */

.nav {
  width: min(950px, 92%);
  margin: 15px auto 25px;

  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-btn {
  padding: 10px 18px;
}

.nav-btn.active {
  background: #ffe2ef;
  color: var(--dark-green);
}


/* =========================
   MAIN
   ========================= */

main {
  width: min(1050px, 92%);
  margin: 0 auto;
}

.page-section {
  display: none;
  animation: fadeIn .35s ease;
}

.page-section.active-section {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =========================
   HOME LAYOUT
   ========================= */

.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
}

.card {
  background: rgba(255,255,255,.86);

  border: 2px solid var(--border);
  border-radius: 24px;

  padding: 24px;

  box-shadow: var(--shadow);

  margin-bottom: 20px;

  position: relative;
}

.card::before {
  content: "✿";

  position: absolute;
  top: 10px;
  right: 15px;

  color: rgba(217,103,155,.35);
  font-size: 18px;

  pointer-events: none;
}

.card:hover {
  box-shadow: 0 14px 34px rgba(135, 91, 112, .16);
}


/* =========================
   PROFILE
   ========================= */

.profile-card {
  align-self: flex-start;
  position: sticky;
  top: 20px;
}

.avatar {
  width: 120px;
  height: 120px;

  margin: 0 auto 18px;

  border-radius: 50%;

  border: 3px dotted var(--pink);

  background: #ffe4ef;

  overflow: visible;

  display: block;

  position: relative;

  transition:
    transform .3s ease,
    box-shadow .3s ease;
}

.avatar img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
  object-position: center;

  border-radius: 50%;

  overflow: hidden;

  transition:
    transform .3s ease,
    filter .3s ease;
}

.avatar-flower {
  position: absolute;

  right: -10px;
  top: -10px;

  color: var(--pink);

  font-size: 22px;

  background: #fffafc;

  width: 28px;
  height: 28px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  z-index: 2;

  transition: transform .3s ease;
}

.avatar:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(217, 103, 155, .18);
}

.avatar:hover img {
  transform: scale(1.04);
  filter: brightness(1.04);
}

.avatar:hover .avatar-flower {
  transform: rotate(15deg) scale(1.1);
}

@keyframes gentleSpin {
  0%, 100% {
    transform: rotate(-3deg);
  }

  50% {
    transform: rotate(3deg) translateY(-3px);
  }
}

.profile-card h2,
.profile-card p {
  text-align: center;
}


/* =========================
   STATUS
   ========================= */

.mini-status {
  margin: 20px 0;
  padding: 10px;

  border-radius: 14px;

  background: #f0f8ed;

  font-size: .95rem;
}

.status-dot {
  display: inline-block;

  width: 9px;
  height: 9px;

  border-radius: 50%;

  background: #78b97c;

  margin-right: 5px;

  box-shadow: 0 0 0 4px rgba(120,185,124,.15);
}


/* =========================
   FAVORITES
   ========================= */

.favorites {
  list-style: none;
  padding: 0;
  line-height: 1.9;
}

.favorites li::before {
  content: "♡ ";
  color: var(--pink);
}

.quote {
  color: var(--hot-pink);

  text-align: center;

  font-family: "Berkshire Swash", cursive;

  font-size: 1.45rem;
}


/* =========================
   HOME IMAGE GRID
   ========================= */

.image-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 15px;
}

.photo-card {
  margin: 0;

  background: #fff;

  border: 2px solid #f2c9db;

  border-radius: 20px;

  padding: 9px;

  box-shadow: var(--shadow);

  transition:
    transform .25s ease,
    box-shadow .25s ease;
}

.photo-card:hover {
  transform: translateY(-6px) rotate(.7deg);

  box-shadow:
    0 16px 30px rgba(135, 91, 112, .18);
}

.photo-card img {
  width: 100%;

  display: block;

  aspect-ratio: 1 / 1;

  object-fit: cover;

  border-radius: 14px;

  cursor: zoom-in;
}


/* =========================
   LITTLE GALLERY
   ========================= */

.gallery-page {
  width: 92%;
  max-width: 850px;

  margin: 0 auto;

  padding: 10px 0 40px;
}

.gallery-note {
  margin-bottom: 8px;

  font-family: "Courier New", monospace;

  font-size: 13px;

  letter-spacing: 2px;

  color: #d4779b;
}

.gallery-page h2 {
  margin: 0 0 5px;

  font-family: "Berkshire Swash", cursive;

  font-size: 42px;

  color: var(--dark-green);
}

.gallery-year {
  margin: 0 0 20px;

  font-family: "Cormorant Garamond", serif;

  font-size: 15px;

  color: #8c8884;
}


/* PHOTO DUMP */

.gallery-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 8px;

  max-height: 580px;

  overflow-y: auto;

  padding: 15px;

  background: rgba(255, 250, 252, .72);

  border: 1px solid #ddd6d2;

  box-shadow:
    inset 0 0 15px rgba(135, 91, 112, .06);
}


/* INDIVIDUAL GALLERY PHOTO */

.gallery-item {
  margin: 0;

  padding: 0;

  background: transparent;

  border: none;

  border-radius: 0;

  box-shadow: none;

  overflow: hidden;

  transition:
    opacity .25s ease,
    transform .25s ease;
}

.gallery-item:hover {
  transform: none;

  box-shadow: none;
}


/* GALLERY IMAGE */

.gallery-item img {
  width: 100%;

  height: 300px;

  display: block;

  aspect-ratio: auto;

  object-fit: cover;

  border-radius: 0;

  cursor: zoom-in;

  transition:
    opacity .25s ease,
    transform .25s ease;
}

.gallery-item:hover img {
  opacity: .82;

  transform: scale(1.02);
}


/* GALLERY CAPTION */

.gallery-item figcaption {
  text-align: center;

  padding: 5px 3px 8px;

  color: var(--green);

  font-family: "Cormorant Garamond", serif;

  font-size: .95rem;

  font-style: italic;

  font-weight: 500;
}


/* =========================
   DIARY
   ========================= */

details {
  border-top: 1px dashed var(--border);

  padding: 15px 0;

  line-height: 1.7;
}

details:first-of-type {
  border-top: 0;
}

summary {
  cursor: pointer;

  color: var(--hot-pink);

  font-weight: 600;

  transition: color .2s ease;
}

summary:hover {
  color: var(--dark-green);
}

.tag {
  display: inline-block;

  background: #f7e4ed;

  border-radius: 999px;

  padding: 5px 9px;

  margin: 5px 3px 0 0;

  font-size: .9rem;

  transition: transform .2s ease;
}

.tag:hover {
  transform: translateY(-2px);
}


/* =========================
   GUESTBOOK
   ========================= */

.guestbook-card {
  max-width: 720px;
  margin: 0 auto 25px;
}

input,
textarea {
  width: 100%;

  border: 2px solid var(--border);

  border-radius: 15px;

  padding: 12px;

  margin: 7px 0;

  font: inherit;

  color: var(--ink);

  background: #fffafb;

  outline: none;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--pink);

  box-shadow:
    0 0 0 4px rgba(231,143,179,.12);
}

.guest-entries {
  margin-top: 20px;
}

.entry {
  padding: 13px;

  margin: 10px 0;

  border-radius: 16px;

  background: #fff3f8;

  border-left: 5px solid var(--pink);
}

.entry strong {
  color: var(--dark-green);
}

.text-btn {
  border: 0;

  background: transparent;

  color: #a67b8d;

  text-decoration: underline;

  cursor: pointer;

  font-family: inherit;

  margin-top: 10px;
}


/* =========================
   FOOTER
   ========================= */

footer {
  text-align: center;

  padding: 45px 20px 35px;

  color: #8c7c87;

  font-size: .95rem;
}


/* =========================
   LIGHTBOX
   ========================= */

.lightbox {
  position: fixed;

  inset: 0;

  display: none;

  place-items: center;

  padding: 25px;

  background: rgba(62,45,57,.82);

  z-index: 100;
}

.lightbox.show {
  display: grid;
}

.lightbox img {
  max-width: min(900px, 92vw);

  max-height: 78vh;

  border-radius: 20px;

  border: 5px solid white;

  box-shadow:
    0 20px 60px rgba(0,0,0,.35);
}

.lightbox p {
  color: white;

  font-weight: 600;

  margin: 10px;
}

.close-lightbox {
  position: fixed;

  top: 20px;
  right: 25px;

  border: 0;

  background: white;

  color: var(--hot-pink);

  width: 42px;
  height: 42px;

  border-radius: 50%;

  font-size: 30px;

  line-height: 1;

  cursor: pointer;
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 760px) {

  .profile-card {
    position: static;
  }

  .image-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 380px;
  }

  .nav-btn {
    flex: 1 1 40%;
  }

  body {
    font-size: 17px;
  }

}