:root {
    --bg-color: #fdf8f1;
    --text-color: #1f1f1f;
    --accent-color: #0a3d62;
    --highlight-color: #40739e;
    --font-family: 'EB Garamond', serif;
    --line-x: 80px;
}

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

html, body {
    font-size: 18px;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow: hidden;
}

.scroll-container {
    height: 100vh;
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
}

a {
    color: var(--highlight-color);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: var(--accent-color);
}


/* ─── Snap panels ─── */

.snap-panel {
    height: 100vh;
    scroll-snap-align: start;
}


/* ─── Hero ─── */

.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem 3rem;
    gap: 2rem;
}

@media (min-width: 768px) {
    .hero {
        flex-direction: row;
        text-align: left;
        align-items: center;
        padding: 2rem 8rem;
        gap: 4rem;
    }
}

.hero-image img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
    flex-shrink: 0;
}

.hero-text h1 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.05rem;
    max-width: 560px;
    margin-bottom: 1.5rem;
    color: #3a3a3a;
}

.scroll-cta {
    display: inline-block;
    font-size: 0.95rem;
    color: var(--highlight-color);
    border-bottom: 1px solid var(--highlight-color);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}
.scroll-cta:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
}


/* ─── Timeline wrapper — holds the continuous vertical line ─── */

.timeline-wrapper {
    position: relative;
}

.timeline-wrapper::before {
    content: '';
    position: absolute;
    left: var(--line-x);
    top: 0;
    bottom: auto;
    /* spans from top to just past the last dot (6 full panels + dot offset + fade room) */
    height: calc(600vh + 16vh);
    width: 1.5px;
    background: linear-gradient(
        to bottom,
        transparent 0,
        transparent 5vh,
        rgba(10, 61, 98, 0.25) 10.5vh,
        rgba(10, 61, 98, 0.25) calc(100% - 5.5vh),
        transparent 100%
    );
}


/* ─── Each timeline panel ─── */

.timeline-panel {
    display: flex;
    align-items: flex-start;
    padding-top: 10vh;
    padding-right: 4rem;
    opacity: 0.2;
    transition: opacity 0.5s ease;
}

.timeline-panel.active {
    opacity: 1;
}


/* ─── Dot column ─── */

.panel-dot-col {
    width: calc(var(--line-x) * 2);
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 0.4rem;
    position: relative;
    z-index: 1;
}

.panel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    background: var(--bg-color);
    transition: background 0.4s ease, width 0.3s ease, height 0.3s ease, box-shadow 0.3s ease;
}

.timeline-panel.active .panel-dot {
    background: var(--accent-color);
    width: 14px;
    height: 14px;
    box-shadow: 0 0 0 4px rgba(10, 61, 98, 0.12);
}


/* ─── Panel content ─── */

.panel-content {
    max-width: 580px;
}

.timeline-date {
    display: block;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 0.6rem;
}

.future-date {
    color: var(--highlight-color);
    font-style: italic;
}

.panel-content h3 {
    font-size: 1.7rem;
    line-height: 1.3;
    margin-bottom: 0.7rem;
    color: var(--text-color);
}

.panel-content p {
    font-size: 1rem;
    color: #4a4a4a;
    line-height: 1.75;
}


/* ─── Contact button ─── */

.contact-button {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 100;
}

.contact-button a {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--bg-color);
    padding: 0.65rem 1.2rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: background 0.2s ease;
}

.contact-button a:hover {
    background-color: var(--highlight-color);
}


/* ─── Mobile ─── */

@media (max-width: 767px) {
    :root {
        --line-x: 36px;
    }

    html {
        font-size: 16px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .hero-image img {
        width: 130px;
        height: 130px;
    }

    .timeline-panel {
        padding-right: 1.5rem;
    }

    .panel-content h3 {
        font-size: 1.3rem;
    }
}
