/* Custom properties */
:root {
    --timeline-width: 2px;
    --timeline-color: #000;
    --entry-spacing: 4rem;
    --entry-width: 90%;
    --image-width: 70%;
    --text-width: 30%;
    --font-family: 'Inter var', system-ui, sans-serif;
    --entry-height: 65vh;
}

/* Typography */
body {
    font-family: var(--font-family);
    font-feature-settings: 'liga' 1, 'calt' 1; /* Enable ligatures */
    margin: 0;
    padding: 2rem;
    background: #f5f5f5;
    min-height: 100vh;
}

/* Timeline layout */
.timeline {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: var(--timeline-width);
    height: 100%;
    background: var(--timeline-color);
}

.entry {
    position: relative;
    margin-bottom: var(--entry-spacing);
}

.entry-date {
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 2;
    margin-bottom: 2rem;
}

.entry-content {
    display: flex;
    width: var(--entry-width);
    margin: 0 auto;
    align-items: center;
}

.entry-image {
    width: var(--image-width);
    height: 500px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-right: -4rem;
    z-index: 1;
}

.entry-text {
    width: var(--text-width);
    height: 250px;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    line-height: 1.6;
    overflow-y: auto;
    z-index: 2;
}

/* Reverse layout for even entries */
.entry-reverse .entry-content {
    flex-direction: row-reverse;
}

.entry-reverse .entry-image {
    margin-right: 0;
    margin-left: -4rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .entry-content {
        flex-direction: column;
    }

    .entry-image,
    .entry-text {
        width: 100%;
        margin: 0;
    }

    .entry-reverse .entry-content {
        flex-direction: column;
    }

    .entry-reverse .entry-image {
        margin-left: 0;
    }

    .timeline::before {
        left: 1rem;
    }

    .entry-date {
        left: 1rem;
        transform: none;
    }
}
