:root {
    --bg-color: #000000;
    --text-pure: rgba(255, 255, 255, 0.95);
    --text-main: rgba(255, 255, 255, 0.65);
    --text-muted: rgba(255, 255, 255, 0.35);
    --text-dark: rgba(255, 255, 255, 0.15);
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Lora', serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 2.2;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* A soft, barely visible dark vignette */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, transparent 30%, rgba(0,0,0,0.85) 100%);
    pointer-events: none;
    z-index: 5;
}

/* Interactive subtle mouse glow */
#mouse-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 2;
    background: radial-gradient(circle 800px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.02), transparent 60%);
    mix-blend-mode: screen;
    will-change: background;
}

#dust-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
}

.content-wrapper {
    position: relative;
    z-index: 10;
    max-width: 600px;
    margin: 0 auto;
    padding: 15vh 24px 25vh 24px;
    display: flex;
    flex-direction: column;
    gap: 30vh;
}

/* Animations */
@keyframes slowBreathe {
    0%, 100% { opacity: 0.9; transform: scale(1); filter: blur(0px); }
    50% { opacity: 0.7; transform: scale(0.99); filter: blur(1px); }
}

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

@keyframes pulseClosing {
    0%, 100% { opacity: 0.8; text-shadow: 0 0 10px rgba(255,255,255,0); }
    50% { opacity: 1; text-shadow: 0 0 20px rgba(255,255,255,0.1); }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    filter: blur(12px);
    transition: opacity 2.5s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 3s cubic-bezier(0.25, 1, 0.5, 1),
                filter 3.5s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform, filter;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Typography & Layout */
section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero {
    margin-top: 15vh;
    text-align: center;
    gap: 2rem;
}

.headline {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 400;
    color: var(--text-pure);
    line-height: 1.3;
    letter-spacing: -0.01em;
    animation: slowBreathe 10s infinite ease-in-out;
    animation-delay: 3s; /* Starts breathing after fading in */
}

.subheadline {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
    line-height: 2;
    text-align: justify;
    text-align-last: center;
}

.emotional-letter {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--text-main);
    max-width: 500px;
    margin: 0 auto;
}

.emotional-letter p {
    margin-bottom: 1.5rem;
}

.emotional-letter p.spaced {
    margin-top: 3.5rem;
    color: var(--text-pure);
}

.people-i-love {
    align-items: center;
    text-align: center;
    padding: 10vh 0;
    position: relative;
}

.people-i-love::before, .people-i-love::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 50px;
    background-color: var(--text-dark);
}
.people-i-love::before { top: 0; }
.people-i-love::after { bottom: 0; }

.section-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 2rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.letter-format {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--text-pure);
    font-style: italic;
    line-height: 2.2;
}

.letter-format p {
    margin: 0.2rem 0;
}
.spaced-top {
    margin-top: 2rem !important;
}

.quote-section {
    text-align: center;
    padding: 5vh 0;
}

.cinematic-quote {
    font-family: var(--font-serif);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 400;
    color: var(--text-main);
    line-height: 1.8;
    font-style: italic;
    position: relative;
    display: inline-block;
    animation: floatQuote 14s infinite ease-in-out;
}

.cinematic-quote::before, .cinematic-quote::after {
    content: '';
    display: block;
    width: 20px;
    height: 1px;
    background-color: var(--text-muted);
    margin: 2rem auto;
}

.final-message {
    text-align: center;
    gap: 3rem;
    padding-bottom: 10vh;
}

.warning-text {
    font-size: 0.8rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.closure-text {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--text-pure);
    letter-spacing: 0.05em;
}
.heartbeat.visible {
    animation: pulseClosing 6s infinite ease-in-out;
    animation-delay: 2s;
}

.thank-you-text {
    color: var(--text-muted);
    font-size: 1rem;
}

footer {
    text-align: center;
    margin-top: 10vh;
    opacity: 0.5;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.brand {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.tagline {
    font-size: 0.75rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

::selection {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-pure);
}
