/* Base styles and minimal reset */
:root {
    --text-main: #222;
    --text-muted: #555;
    --bg-main: #ffffff;
    --accent: #0f172a;
    --link-color: #2563eb;
    --link-hover: #1d4ed8;
    --border-color: #e5e7eb;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-main);
    margin: 0;
    padding: 20px;
    font-size: 16px;
}

.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3 {
    color: var(--accent);
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 2rem;
    margin-bottom: 0.2em;
}

h2 {
    font-size: 1.25rem;
    margin-bottom: 1em;
    padding-bottom: 0.3em;
    border-bottom: 1px solid var(--border-color);
    margin-top: 2em;
}

h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3em;
}

p {
    margin-bottom: 1em;
    color: var(--text-main);
}

.bio {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1em;
}

/* Links */
a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* Header Links */
.links {
    display: flex;
    gap: 15px;
    margin-bottom: 2em;
    flex-wrap: wrap;
}

.links a {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
}

.links a:hover {
    color: var(--accent);
}

/* Nav Section */
.navigation-section {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5em 0;
    margin-bottom: 3.5em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-links a {
    font-size: 1.05rem;
    font-weight: 500;
}

.separator {
    color: var(--text-muted);
    opacity: 0.4;
    user-select: none;
}

/* Timeline */
.timeline-intro {
    color: var(--text-muted);
    margin-bottom: 1.5em;
}

.timeline {
    list-style: none;
    border-left: 2px solid var(--border-color);
    padding-left: 20px;
    margin-left: 140px;
    /* Space for the date */
}

.timeline-item {
    margin-bottom: 2em;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    /* -20px padding + half of 2px border (1px) + half of 10px width (5px) = 26px */
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--accent);
    border: 2px solid var(--bg-container);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-date {
    position: absolute;
    left: -170px;
    width: 140px;
    text-align: right;
    top: 2px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

.timeline-content p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.timeline-content ul {
    margin-top: 0.5em;
    padding-left: 20px;
    color: var(--text-main);
    font-size: 0.95rem;
}

.timeline-content li {
    margin-bottom: 0.4em;
}

.timeline-content li:last-child {
    margin-bottom: 0;
}

.location {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 0.5em !important;
}

/* Footer */
footer {
    margin-top: 3em;
    padding-top: 2em;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .container {
        padding: 0 15px;
        margin: 20px auto;
    }

    h1 {
        font-size: 1.75rem;
    }

    .timeline {
        margin-left: 10px;
    }

    .timeline-date {
        position: static;
        width: auto;
        text-align: left;
        margin-bottom: 0.5em;
    }
}