/* ===== Base Reset & Variables ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --text-primary: #1a1a1a;
  --text-soft: #2a2a2a;
  --accent-gold: #9a8560;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "EB Garamond", Georgia, serif;
  min-height: 100vh;
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
  background: #f8f5fc;
}

/* ===== Night Sky Canvas ===== */
#nightSky {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* ===== Main Content ===== */
.content {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.message-container {
  max-width: 680px;
  text-align: center;
  padding: 3rem 2.5rem;
  animation: fadeIn 2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Typography ===== */
.message {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  line-height: 2;
  color: var(--text-soft);
  margin-bottom: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  animation: fadeIn 2s ease-out backwards;
}

.message:nth-child(1) {
  animation-delay: 0.3s;
}

.message:nth-child(2) {
  animation-delay: 0.6s;
}

.message:nth-child(3) {
  animation-delay: 0.9s;
}

.message:nth-child(4) {
  animation-delay: 1.2s;
}

.message:nth-child(5) {
  animation-delay: 1.5s;
}

.message:nth-child(6) {
  animation-delay: 1.8s;
}

.message:nth-child(7) {
  animation-delay: 2.1s;
}

.signature {
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(1.1rem, 2.8vw, 1.35rem);
  font-style: italic;
  font-weight: 400;
  color: var(--text-primary);
  margin-top: 2.5rem;
  letter-spacing: 0.05em;
  animation: fadeIn 2s ease-out 2.4s backwards;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .content {
    padding: 1.5rem;
  }

  .message-container {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .message-container {
    padding: 1.5rem 1rem;
  }

  .message {
    line-height: 1.9;
  }
}

/* ===== Selection styling ===== */
::selection {
  background: rgba(180, 160, 200, 0.4);
  color: #1a1a1a;
}

/* ===== Smooth scrollbar (for webkit) ===== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f8f5fc;
}

::-webkit-scrollbar-thumb {
  background: rgba(160, 140, 180, 0.4);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(160, 140, 180, 0.6);
}
