@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=Work+Sans:wght@300;400;500;600&display=swap");

:root {
  --cream: #f8f1e6;
  --peach: #f6c9b5;
  --coral: #e17d6a;
  --terracotta: #c45a45;
  --sage: #6f8b7a;
  --ink: #2f2220;
  --shadow: rgba(47, 34, 32, 0.12);
  --glow: rgba(246, 201, 181, 0.6);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Work Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 20%, rgba(246, 201, 181, 0.4), transparent 35%),
    radial-gradient(circle at 90% 5%, rgba(111, 139, 122, 0.35), transparent 35%),
    linear-gradient(180deg, #fdf6ee 0%, #f7ece2 50%, #f4e1d3 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body.loading {
  overflow: hidden;
}

body.loading .page {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

body.loaded .page {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  position: relative;
  z-index: 1;
}

.loader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(246, 201, 181, 0.45), transparent 45%),
    linear-gradient(180deg, #fdf6ee 0%, #f7ece2 60%, #f4e1d3 100%);
  z-index: 3;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

body.loaded .loader {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.loader__ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid rgba(196, 90, 69, 0.25);
  border-top-color: rgba(196, 90, 69, 0.8);
  border-right-color: rgba(225, 125, 106, 0.6);
  box-shadow: 0 0 30px rgba(246, 201, 181, 0.5);
  animation: spin 1.6s linear infinite;
}

.loader__date {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.4rem, 6vw, 3.2rem);
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
  animation: pulse 1.8s ease-in-out infinite;
}

.loader__subtitle {
  margin: 0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: rgba(47, 34, 32, 0.6);
  animation: shimmer 2.4s ease-in-out infinite;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 201, 181, 0.45), transparent 70%);
  filter: blur(2px);
  animation: drift 18s ease-in-out infinite;
}

.orb--1 {
  top: -80px;
  left: -60px;
}

.orb--2 {
  top: 20%;
  right: -120px;
  width: 340px;
  height: 340px;
  animation-delay: -4s;
  background: radial-gradient(circle, rgba(111, 139, 122, 0.35), transparent 70%);
}

.orb--3 {
  bottom: -140px;
  left: 20%;
  width: 360px;
  height: 360px;
  animation-delay: -9s;
}

.orb--4 {
  bottom: 10%;
  right: 20%;
  width: 220px;
  height: 220px;
  animation-delay: -12s;
  background: radial-gradient(circle, rgba(225, 125, 106, 0.35), transparent 70%);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
  align-items: center;
  padding: 32px 0 48px;
}

.hero__content > * {
  opacity: 0;
  animation: hero-rise 0.9s ease forwards;
}

.hero__content > *:nth-child(1) {
  animation-delay: 0.1s;
}

.hero__content > *:nth-child(2) {
  animation-delay: 0.2s;
}

.hero__content > *:nth-child(3) {
  animation-delay: 0.32s;
}

.hero__content > *:nth-child(4) {
  animation-delay: 0.45s;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.75rem;
  color: var(--sage);
  margin: 0 0 10px;
  font-weight: 600;
}

h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}

.lead {
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 20px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip {
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(196, 90, 69, 0.25);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.hero__photo {
  display: flex;
  justify-content: center;
  opacity: 0;
  animation: hero-fade 1s ease 0.4s forwards;
}

.photo-frame {
  width: min(320px, 90vw);
  aspect-ratio: 4 / 5;
  border-radius: 40% 60% 55% 45% / 45% 55% 45% 55%;
  border: 3px solid rgba(196, 90, 69, 0.35);
  box-shadow: 0 20px 50px var(--shadow), 0 0 40px var(--glow);
  overflow: hidden;
  position: relative;
  background: rgba(255, 255, 255, 0.6);
  animation: float 7s ease-in-out infinite;
}

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

.photo-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  background: rgba(248, 241, 230, 0.95);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  opacity: 0;
  pointer-events: none;
}

.photo-fallback code {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  padding: 6px 10px;
  background: rgba(196, 90, 69, 0.1);
  border-radius: 8px;
}

.photo-frame.is-missing .photo-fallback {
  opacity: 1;
}

main {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.card {
  background: rgba(255, 255, 255, 0.75);
  border-radius: 24px;
  padding: 28px 32px;
  box-shadow: 0 14px 40px var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.6);
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: -60% -40% auto;
  height: 120%;
  background: radial-gradient(
    circle,
    rgba(246, 201, 181, 0.35),
    transparent 70%
  );
  opacity: 0.35;
  transform: translateY(0);
  animation: glow-sweep 12s ease-in-out infinite;
  pointer-events: none;
}

.card--alt {
  background: rgba(255, 255, 255, 0.9);
}

.card__title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.card__title h2 {
  font-family: "Cormorant Garamond", serif;
  margin: 0;
  font-size: 2rem;
}

.rule {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--coral), transparent);
}

.signature {
  margin-top: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.tile {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 22px 24px;
  border: 1px solid rgba(225, 125, 106, 0.2);
  box-shadow: 0 12px 30px var(--shadow);
  min-height: 180px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(47, 34, 32, 0.16);
}

.tile h3 {
  margin-top: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
}

.playlist {
  padding-left: 18px;
  line-height: 1.8;
}

.small {
  font-size: 0.9rem;
  color: rgba(47, 34, 32, 0.7);
}

.footer {
  margin-top: 48px;
  text-align: center;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: rgba(47, 34, 32, 0.6);
}

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

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

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

@keyframes hero-fade {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0) translateX(0) scale(1);
  }
  50% {
    transform: translateY(20px) translateX(14px) scale(1.05);
  }
}

@keyframes glow-sweep {
  0%,
  100% {
    transform: translateX(-10%) translateY(-10%);
  }
  50% {
    transform: translateX(20%) translateY(10%);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

@keyframes shimmer {
  0%,
  100% {
    opacity: 0.6;
    letter-spacing: 0.4em;
  }
  50% {
    opacity: 1;
    letter-spacing: 0.6em;
  }
}

@media (max-width: 720px) {
  .page {
    padding: 32px 18px 48px;
  }

  .hero {
    padding: 24px 0 36px;
  }

  .lead {
    font-size: 1rem;
  }

  .hero__meta {
    gap: 8px;
  }

  .chip {
    font-size: 0.78rem;
  }

  .card {
    padding: 22px 20px;
  }

  .card__title {
    flex-direction: column;
    align-items: flex-start;
  }

  .rule {
    width: 100%;
  }

  .photo-frame {
    width: min(280px, 86vw);
  }

  .loader__ring {
    width: 90px;
    height: 90px;
  }

  .loader__subtitle {
    letter-spacing: 0.28em;
  }
}
