/* =========================================================
   Melody Garden theme
   A soft, strawberry-milk layer on top of the base site.
   ========================================================= */

:root {
  --ink: #5a3444;
  --ink-soft: #714455;
  --night: #472a3a;
  --night-2: #5b3548;
  --cream: #fffaf6;
  --paper: #fff8f4;
  --paper-deep: #ffe9ed;
  --peach: #ffc2d1;
  --peach-deep: #ef88a5;
  --rose: #d95d80;
  --gold: #e9a5b9;
  --lilac: #cdbce8;
  --muted: #8e6a78;
  --muted-light: rgba(90, 52, 68, 0.65);
  --line: rgba(111, 65, 82, 0.13);
  --line-light: rgba(255, 250, 246, 0.18);
}

body {
  background: var(--paper);
  color: var(--ink);
}

::selection {
  background: #f7b8c9;
  color: #4f2938;
}

:focus-visible {
  outline-color: var(--rose);
}

.grain {
  opacity: 0.032;
}

.scroll-progress {
  background: linear-gradient(90deg, #f5b3c5, #e67799, #ceb5e8);
  box-shadow: 0 0 14px rgba(217, 93, 128, 0.3);
}

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */

.site-header {
  color: var(--ink);
}

.site-header.is-scrolled {
  background: rgba(255, 248, 244, 0.95);
  border-bottom-color: rgba(217, 93, 128, 0.14);
  box-shadow: 0 12px 32px rgba(137, 73, 91, 0.08);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
}

.brand__mark {
  border-color: rgba(217, 93, 128, 0.36);
  background: rgba(255, 255, 255, 0.34);
  color: var(--rose);
}

.brand:hover .brand__mark {
  background: rgba(255, 255, 255, 0.72);
}

.brand__text em {
  color: var(--rose);
}

.nav a {
  color: rgba(90, 52, 68, 0.68);
}

.nav a::after {
  background: var(--rose);
}

.nav a:hover {
  color: var(--ink);
}

.nav__album span {
  color: var(--rose);
  font-size: 0.72em;
}

.music-btn {
  border-color: rgba(217, 93, 128, 0.23);
  background: rgba(255, 255, 255, 0.35);
  color: rgba(90, 52, 68, 0.76);
}

.music-btn:hover,
.music-btn[aria-pressed="true"] {
  border-color: rgba(217, 93, 128, 0.56);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
}

.music-bars i {
  background: var(--rose);
}

.nav-share {
  border-color: rgba(217, 93, 128, 0.25);
  background: rgba(255, 255, 255, 0.32);
  color: var(--ink);
}

.nav-share:hover {
  border-color: var(--rose);
  background: rgba(255, 255, 255, 0.72);
}

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */

.hero {
  background: #ffe7ee;
  color: var(--ink);
}

.hero::after {
  display: none;
}

.hero__wallpaper {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  pointer-events: none;
  user-select: none;
}

.hero__wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 52% 42% at 48% 65%, rgba(255, 250, 246, 0.74), rgba(255, 250, 246, 0.24) 65%, transparent 82%),
    linear-gradient(180deg, rgba(255, 250, 247, 0.1) 0%, rgba(255, 250, 247, 0.16) 35%, rgba(255, 250, 247, 0.54) 68%, rgba(255, 250, 247, 0.42) 100%);
}

.hero__floaties {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.floaty {
  position: absolute;
  color: rgba(217, 93, 128, 0.48);
  font-family: var(--font-display);
  line-height: 1;
  animation: floaty-drift 7s ease-in-out infinite;
}

.floaty--1 { top: 28%; left: 10%; font-size: 1.2rem; animation-delay: -1s; }
.floaty--2 { top: 53%; left: 6%; font-size: 0.8rem; animation-delay: -3.2s; }
.floaty--3 { top: 20%; right: 27%; font-size: 1.55rem; animation-delay: -2s; color: rgba(255, 250, 246, 0.86); }
.floaty--4 { top: 63%; right: 9%; font-size: 1rem; animation-delay: -4.5s; }
.floaty--5 { top: 38%; right: 42%; font-size: 0.75rem; animation-delay: -0.7s; color: rgba(255, 250, 246, 0.7); }

@keyframes floaty-drift {
  0%, 100% { transform: translateY(0) rotate(-4deg); opacity: 0.55; }
  50% { transform: translateY(-15px) rotate(5deg); opacity: 0.95; }
}

.hero__content {
  z-index: 4;
}

.hero__eyebrow {
  color: rgba(157, 65, 91, 0.8);
}

.hero__eyebrow .rule {
  background: linear-gradient(90deg, transparent, rgba(217, 93, 128, 0.55));
}

.hero__eyebrow .rule:last-child {
  background: linear-gradient(90deg, rgba(217, 93, 128, 0.55), transparent);
}

.hero__title {
  color: var(--ink);
}

.hero__line--1 > span {
  text-shadow: 0 3px 0 rgba(255, 255, 255, 0.45);
}

.hero__line--2 > span {
  color: #fffaf6;
  -webkit-text-stroke: 1.5px #c45d7c;
  text-shadow:
    0 5px 0 rgba(184, 76, 108, 0.2),
    0 18px 44px rgba(153, 76, 99, 0.12);
}

.hero__name {
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 250, 246, 0.7), 0 4px 16px rgba(255, 250, 246, 0.8);
}

.hero__name > span[aria-hidden] {
  color: var(--rose);
  opacity: 0.8;
}

.hero__tagline {
  color: rgba(90, 52, 68, 0.8);
  text-shadow: 0 1px 0 rgba(255, 250, 246, 0.75), 0 4px 14px rgba(255, 250, 246, 0.85);
}

.countdown__label {
  color: rgba(90, 52, 68, 0.63);
  text-shadow: 0 1px 0 rgba(255, 250, 246, 0.75);
}

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

.countdown {
  border-color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 251, 248, 0.88);
  box-shadow:
    0 24px 55px -32px rgba(149, 78, 99, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
}

.countdown__cell strong {
  color: var(--ink);
}

.countdown__cell span {
  color: rgba(90, 52, 68, 0.52);
}

.countdown__cell + .countdown__cell::before {
  background: linear-gradient(to bottom, transparent, rgba(217, 93, 128, 0.2), transparent);
}

.countdown-wrap.is-today .countdown__cell strong {
  color: var(--rose);
}

.btn--light {
  background: var(--rose);
  color: #fffaf6;
  box-shadow: 0 18px 44px -18px rgba(191, 74, 108, 0.55);
}

.btn--light .btn__icon {
  background: #fffaf6;
  color: var(--rose);
}

.btn--light:hover {
  box-shadow: 0 25px 55px -20px rgba(191, 74, 108, 0.7);
}

.hero__stamp {
  border-color: rgba(217, 93, 128, 0.35);
  color: var(--rose);
}

.hero__stamp svg text {
  fill: rgba(90, 52, 68, 0.55);
}

.hero__clouds {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  z-index: 3;
  height: clamp(74px, 10vh, 112px);
  pointer-events: none;
}

.hero__clouds svg {
  width: 100%;
  height: 100%;
}

.hero__clouds path {
  fill: var(--paper);
}

/* ---------------------------------------------------------
   Shared light sections
   --------------------------------------------------------- */

.letter {
  background:
    radial-gradient(ellipse 45% 55% at 92% 8%, rgba(255, 190, 207, 0.3), transparent 70%),
    radial-gradient(ellipse 40% 45% at 4% 78%, rgba(213, 194, 237, 0.2), transparent 72%),
    var(--paper);
}

.letter::before {
  border-color: rgba(217, 93, 128, 0.14);
}

.section-head__meta::after {
  background: rgba(217, 93, 128, 0.22);
}

.section-num {
  border-color: rgba(217, 93, 128, 0.24);
  color: var(--ink);
}

.kicker {
  color: var(--rose);
}

.section-head h2 {
  color: var(--ink);
}

.section-head h2 em {
  color: var(--rose);
}

.section-head__note {
  color: var(--muted);
}

.ticket__star {
  color: var(--rose);
}

.ticket__month {
  color: var(--rose);
}

.ticket-note {
  color: #8f6d77;
}

.letter-card {
  border-color: rgba(217, 93, 128, 0.1);
}

.letter-card::before {
  background: rgba(217, 93, 128, 0.22);
}

.seal {
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 241, 236, 0.6), transparent 28%),
    radial-gradient(circle at 45% 40%, #ee9caf, #d46d8b 62%, #b54f6b);
}

/* ---------------------------------------------------------
   Wish / cake
   --------------------------------------------------------- */

.wish {
  color: var(--ink);
  background:
    radial-gradient(ellipse 45% 52% at 78% 50%, rgba(255, 255, 255, 0.8), transparent 68%),
    radial-gradient(ellipse 40% 45% at 8% 84%, rgba(205, 188, 232, 0.28), transparent 70%),
    linear-gradient(155deg, #ffe7ee 0%, #f9e6f1 48%, #eee2f7 100%);
}

.wish__texture {
  opacity: 0.24;
  background-image: radial-gradient(rgba(217, 93, 128, 0.4) 1px, transparent 1.4px);
}

.wish::before,
.wish::after {
  border-color: rgba(217, 93, 128, 0.13);
}

.section-head__meta--dark .section-num {
  border-color: rgba(217, 93, 128, 0.26);
  color: var(--ink);
}

.section-head__meta--dark::after {
  background: rgba(217, 93, 128, 0.23);
}

.section-head__meta--dark .kicker {
  color: var(--rose);
}

.wish-copy h2 {
  color: var(--ink);
}

.wish-copy h2 em {
  color: var(--rose);
}

.wish-copy__text {
  color: rgba(90, 52, 68, 0.7);
}

.btn--outline {
  border-color: rgba(217, 93, 128, 0.32);
  background: rgba(255, 255, 255, 0.3);
  color: var(--ink);
}

.btn--outline .btn__icon {
  background: var(--rose);
  color: #fffaf6;
}

.btn--outline:hover {
  border-color: var(--rose);
  background: rgba(255, 255, 255, 0.74);
}

.wish-status {
  color: rgba(90, 52, 68, 0.55);
}

.wish-status.is-happy {
  color: var(--rose);
}

.cake-halo {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.92), rgba(255, 196, 213, 0.32) 44%, transparent 70%);
}

.cake-orbit {
  border-color: rgba(217, 93, 128, 0.22);
}

.cake {
  width: min(335px, 80vw);
  filter: drop-shadow(0 32px 30px rgba(138, 73, 91, 0.2));
}

.cake-caption {
  color: rgba(90, 52, 68, 0.35);
}

.cake-sparkles i {
  background: var(--rose);
}

/* ---------------------------------------------------------
   Memories
   --------------------------------------------------------- */

.memories {
  background:
    radial-gradient(ellipse 40% 50% at 88% 14%, rgba(255, 190, 207, 0.35), transparent 72%),
    linear-gradient(180deg, #ffe8eb, #ffe4ea 55%, #fff0ee);
}

.memories::before {
  -webkit-text-stroke: 1px rgba(217, 93, 128, 0.1);
}

.memory__tape {
  background: rgba(255, 218, 226, 0.8);
}

.memory__date {
  color: #ad8490;
}

.memory figcaption p {
  color: #94737d;
}

/* ---------------------------------------------------------
   Wish wall
   --------------------------------------------------------- */

.wall {
  background:
    radial-gradient(ellipse 50% 42% at 8% 0%, rgba(255, 190, 207, 0.32), transparent 70%),
    radial-gradient(ellipse 38% 44% at 96% 82%, rgba(213, 194, 237, 0.2), transparent 74%),
    var(--paper);
}

.wall .section-head h2 em {
  color: var(--rose);
}

.wish-form button {
  background: var(--ink);
  color: var(--cream);
}

.wish-form button span {
  color: #ffd2de;
}

.note__text {
  color: #513742;
}

.note__author {
  color: rgba(81, 55, 66, 0.55);
}

.note__author::before {
  color: rgba(196, 93, 124, 0.55);
}

/* ---------------------------------------------------------
   Album teaser
   --------------------------------------------------------- */

.album-teaser {
  color: var(--cream);
  background:
    radial-gradient(ellipse 50% 80% at 78% 25%, rgba(255, 184, 203, 0.14), transparent 65%),
    radial-gradient(ellipse 40% 60% at 10% 90%, rgba(205, 188, 232, 0.12), transparent 70%),
    #472a3a;
}

.album-teaser__glow {
  position: absolute;
  top: 10%;
  left: 8%;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(255, 250, 246, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.album-teaser__glow::after {
  content: "";
  position: absolute;
  inset: 42px;
  border: 1px dashed rgba(255, 250, 246, 0.1);
  border-radius: 50%;
}

.album-teaser__grid {
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  gap: clamp(34px, 6vw, 80px);
  align-items: center;
}

.album-teaser__meta {
  margin-bottom: 18px;
}

.album-teaser .section-num {
  border-color: rgba(255, 250, 246, 0.24);
  color: var(--cream);
}

.album-teaser .kicker {
  color: #ffc2d1;
}

.album-teaser__meta::after {
  background: rgba(255, 250, 246, 0.22);
}

.album-teaser h2 {
  margin-bottom: 22px;
  font-family: var(--font-cn);
  font-size: clamp(2.6rem, 4.9vw, 4.4rem);
  font-weight: 400;
  line-height: 1.17;
  letter-spacing: 0.015em;
}

.album-teaser h2 em {
  color: #ffc2d1;
  font-style: italic;
}

.album-teaser__text {
  max-width: 450px;
  color: rgba(255, 250, 246, 0.62);
  font-family: var(--font-cn);
  font-size: 0.9rem;
  line-height: 2.1;
}

.album-teaser__btn {
  margin-top: 30px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.5);
}

.album-teaser__btn .btn__icon {
  background: var(--rose);
  color: #fffaf6;
}

.album-teaser__btn:hover .btn__icon {
  transform: translateX(3px);
}

.album-teaser__note {
  margin-top: 13px;
  color: rgba(255, 250, 246, 0.4);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
}

.album-teaser__note span {
  color: #ffc2d1;
}

.album-teaser__art {
  position: relative;
  min-height: 440px;
}

.album-teaser__halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 194, 209, 0.24), transparent 68%);
  transform: translate(-50%, -50%);
}

.album-mini {
  position: absolute;
  display: block;
  width: min(48%, 225px);
  padding: 9px 9px 34px;
  border-radius: 3px;
  background: #fffaf6;
  box-shadow: 0 28px 45px -24px rgba(0, 0, 0, 0.55);
  transition: transform 0.6s var(--ease), rotate 0.6s var(--ease);
}

.album-mini img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.album-mini--1 {
  top: 5%;
  left: 5%;
  rotate: -8deg;
}

.album-mini--2 {
  top: 20%;
  right: 3%;
  rotate: 7deg;
}

.album-mini--3 {
  bottom: 0;
  left: 22%;
  rotate: -2deg;
}

.album-teaser__art:hover .album-mini--1 { rotate: -11deg; transform: translateY(-5px); }
.album-teaser__art:hover .album-mini--2 { rotate: 10deg; transform: translateY(-5px); }
.album-teaser__art:hover .album-mini--3 { rotate: 0deg; transform: translateY(-7px); }

.album-teaser__lock {
  position: absolute;
  right: 2%;
  bottom: 2%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: clamp(88px, 9vw, 124px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 250, 246, 0.25);
  border-radius: 50%;
  background: rgba(71, 42, 58, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.6);
}

.album-teaser__lock img {
  width: 74%;
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */

.footer {
  background:
    radial-gradient(ellipse 40% 60% at 50% 0%, rgba(255, 184, 203, 0.13), transparent 72%),
    var(--night);
}

.footer__love span {
  color: #ffc2d1;
}

.marquee__item i {
  color: #ffc2d1;
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 1120px) {
  .hero__wallpaper {
    object-position: 55% bottom;
  }

  .floaty--2,
  .floaty--4 {
    display: none;
  }

  .nav {
    gap: clamp(16px, 2vw, 26px);
  }
}

@media (max-width: 900px) {
  .hero__wallpaper {
    object-position: 58% bottom;
  }

  .album-teaser__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .album-teaser__copy {
    text-align: center;
  }

  .album-teaser__meta {
    justify-content: center;
  }

  .album-teaser__text {
    margin-right: auto;
    margin-left: auto;
  }

  .album-teaser__art {
    min-height: 390px;
    width: min(100%, 520px);
    margin: 10px auto 0;
  }

  .album-mini {
    width: min(42%, 190px);
  }
}

@media (max-width: 720px) {
  .hero__wallpaper {
    object-position: 55% bottom;
  }

  .hero__floaties {
    display: none;
  }

  .hero__clouds {
    height: 70px;
  }

  .album-teaser__art {
    min-height: 330px;
  }

  .album-mini {
    padding: 7px 7px 27px;
  }

  .album-teaser__lock {
    right: 0;
    bottom: 0;
    width: 82px;
  }
}

@media (max-width: 380px) {
  .hero__tagline {
    font-size: 0.76rem;
    letter-spacing: 0.03em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .floaty {
    animation: none;
  }
}
