:root {
    --bg: #f8f4ef;
    --text: #2f2b28;
    --accent: #d4a5a5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
}

/* SECTIONS */
.section {
    padding: 80px 20px;
    max-width: 720px;
    margin: auto;
    text-align: center;
}

/* HERO */
.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
}

.subtitle {
    margin-top: 16px;
    color: #6b5f58;
}

/* HEADINGS */
h2 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 24px;
}

/* LETTER */
.letter p {
    font-family: 'Allura', cursive;
    font-size: 1.8rem;
    color: #5c4747;
}

/* TIMELINE */
.timeline .line {
    width: 2px;
    height: 60px;
    background: var(--accent);
    margin: 20px auto;
}

/* SURPRISE */
button {
    background: transparent;
    border: 1px solid var(--accent);
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s ease;
}

button:hover {
    background: var(--accent);
    color: white;
}

/* HIDDEN MESSAGE */
.hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease;
}

.hidden.show {
    opacity: 1;
    transform: translateY(0);
}

/* FINAL */
.final {
    font-style: italic;
    opacity: 0.7;
}

/* ANIMATIONS */
.fade-in {
    animation: fadeIn 2s ease forwards;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    transition: all 1.5s ease;
}

/* KEYFRAMES */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 🔐 LOCK SCREEN */
.lock-screen {
  height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.lock-quote {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  margin-bottom: 30px;
  color: #5c4b45;
}

.lock-screen input {
  padding: 12px 18px;
  border-radius: 30px;
  border: 1px solid #d8cfc7;
  font-size: 1rem;
  width: 80%;
  max-width: 280px;
  margin-bottom: 16px;
}

.lock-screen button {
  border-radius: 30px;
}

.error {
  margin-top: 12px;
  color: #b47b7b;
  font-size: 0.9rem;
}

/* ✍️ Handwriting cursor */
#handwrittenText::after {
  content: '|';
  animation: blink 1s infinite;
  margin-left: 4px;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* 💗 Floating Hearts */
.heart {
  position: fixed;
  bottom: -20px;
  font-size: 14px;
  color: rgba(212, 165, 165, 0.6);
  animation: floatUp 10s linear forwards;
  pointer-events: none;
}

@keyframes floatUp {
  from {
    transform: translateY(0) scale(1);
    opacity: 0.8;
  }
  to {
    transform: translateY(-120vh) scale(1.4);
    opacity: 0;
  }
}
