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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f8f4f0;
    color: #6b5a7a;
    font-family: 'Lora', Georgia, serif;
    font-size: 18px;
    line-height: 1.7;
    overflow-x: hidden;
}

.svg-filters {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* === Hero === */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(ellipse at 50% 40%, #f0e8d8 0%, #f8f4f0 60%, #e8ddd0 100%);
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.snowflake-hero {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 72px;
    font-weight: 400;
    color: #6b5a7a;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    font-size: 20px;
    color: #9b8ea0;
    max-width: 480px;
    margin: 0 auto;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #9b8ea0;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, #9b8ea0, transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* === Snowflake SVGs === */
.snowflake-svg {
    overflow: visible;
}

.snowflake-large {
    width: 80px;
    height: 80px;
}

.snowflake-medium {
    width: 40px;
    height: 40px;
}

.snowflake-small {
    width: 24px;
    height: 24px;
}

.snowflake-arm {
    stroke: #c9a84c;
    stroke-width: 1;
    fill: none;
    stroke-linecap: round;
}

.snowflake-branch {
    stroke: #9b8ea0;
    stroke-width: 0.8;
    fill: none;
    stroke-linecap: round;
}

/* Snowflake draw animation */
.snowflake-arm,
.snowflake-branch {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 1.2s ease-out;
}

.snowflake-svg.drawn .snowflake-arm,
.snowflake-svg.drawn .snowflake-branch {
    stroke-dashoffset: 0;
}

/* === Timeline === */
.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px 120px;
}

.timeline-spine {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, #e8ddd0 10%, #9b8ea0 50%, #e8ddd0 90%, transparent);
    transform: translateX(-0.5px);
    z-index: 0;
}

/* === Timeline Entry === */
.timeline-entry {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 100px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.timeline-entry.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-left {
    flex-direction: row-reverse;
    padding-right: calc(50% + 40px);
    padding-left: 20px;
}

.timeline-right {
    flex-direction: row;
    padding-left: calc(50% + 40px);
    padding-right: 20px;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

/* === Vintage Frame === */
.vintage-frame {
    background: #f8f4f0;
    border: 1px solid #e8ddd0;
    border-radius: 4px;
    padding: 28px;
    box-shadow: 0 2px 20px rgba(107, 90, 122, 0.08), inset 0 0 40px rgba(232, 221, 208, 0.3);
    position: relative;
    max-width: 380px;
}

.timestamp {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #b8966e;
    display: block;
    margin-bottom: 8px;
}

.entry-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 28px;
    font-weight: 400;
    color: #6b5a7a;
    margin-bottom: 16px;
    line-height: 1.3;
}

.vintage-photo {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 16px;
    filter: url(#duotone);
}

.photo-placeholder {
    width: 100%;
    height: 100%;
}

.vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(107, 90, 122, 0.3) 100%);
    pointer-events: none;
}

.entry-text {
    font-family: 'Lora', Georgia, serif;
    font-size: 15px;
    line-height: 1.75;
    color: #6b5a7a;
}

/* === Footer === */
.site-footer {
    text-align: center;
    padding: 80px 20px 60px;
    background: linear-gradient(to bottom, #f8f4f0, #f0e8d8);
}

.footer-snowflake {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.footer-snowflake .snowflake-large {
    width: 60px;
    height: 60px;
}

.footer-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 24px;
    color: #6b5a7a;
    margin-bottom: 8px;
}

.footer-note {
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    font-size: 14px;
    color: #9b8ea0;
}

/* === Parallax float particles === */
.floating-particle {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
    border-radius: 50%;
    background: #c9a84c;
}

/* === Responsive === */
@media (max-width: 768px) {
    .hero-title {
        font-size: 44px;
    }

    .hero-subtitle {
        font-size: 16px;
        padding: 0 20px;
    }

    .timeline-spine {
        left: 24px;
    }

    .timeline-left,
    .timeline-right {
        flex-direction: row;
        padding-left: 60px;
        padding-right: 20px;
    }

    .timeline-marker {
        left: 24px;
    }

    .vintage-frame {
        max-width: 100%;
    }

    .entry-title {
        font-size: 22px;
    }
}
