/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Newsreader', Georgia, serif;
    line-height: 1.6;
    color: #2c3e50;  /* Dark slate blue-grey */
    background-color: #f4f6f8;  /* Light grey-blue background */
    padding: 20px;
}

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

/* Header and navigation */
header {
    margin-bottom: 3rem;
    border-bottom: 1px solid #cbd5e0;  /* Steel blue border */
    padding-bottom: 1rem;
}

.site-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.site-title a {
    text-decoration: none;
    color: #333;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a {
    text-decoration: none;
    color: #5a7a9e;
}

nav a:hover {
    text-decoration: underline;
}

/* Main content */
main h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

main h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

main h3 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

/* Timeline section */
.timeline p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.timeline a {
    color: #5a7a9e;  /* Match navigation colour */
}

.timeline a:hover {
    color: #4a6a8e;
}

.timeline strong {
    font-weight: 600;
}

/* Bio section */
.bio {
    margin-top: 2rem;
}

.bio p {
    margin-bottom: 1rem;
    text-align: justify;
}

.bio a {
    color: #5a7a9e;  /* Match navigation colour */
}

.bio a:hover {
    color: #4a6a8e;
}

.bio strong {
    font-weight: 600;
}

/* Links section */
.links {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #cbd5e0;
}

.links a {
    color: #5a7a9e;
    text-decoration: none;
}

.links a:hover {
    color: #4a6a8e;
    text-decoration: underline;
}

.links a:first-child {
    margin-left: 0;
}

/* Publications list */
.publication-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    line-height: 1.7;
}

.publication-item:not(:last-child) {
    border-bottom: 1px solid #e2e8f0;
}

.pub-authors {
    font-weight: 500;
}

.pub-title {
    font-style: italic;
    margin: 0.25rem 0;
}

.pub-venue {
    color: #666;
}

.pub-link {
    color: #5a7a9e;
    text-decoration: none;
    font-size: 0.9rem;
}

.pub-link:hover {
    text-decoration: underline;
}

/* Projects/Code section */

.project-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    text-align: justify;
}

.project-item:not(:last-child) {
    border-bottom: 1px solid #cbd5e0;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.project-title a {
    color: #5a7a9e;
    text-decoration: none;
}

.project-title a:hover {
    color: #5a7a9e;
}

.github-link {
    font-size: 0.85em;
    vertical-align: middle;
    margin-left: 0.3rem;
    opacity: 0.6;
}

.github-link:hover {
    opacity: 1;
}

.project-meta {
    color: #5a7a9e;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.project-description {
    margin-top: 0.5rem;
    line-height: 1.7;
    text-align: justify;
}

.project-description a {
    color: #5a7a9e;
    text-decoration: none;
}

.project-description a:hover {
    color: #4a6a8e;
    text-decoration: underline;
}

.project-tags {
    margin-top: 0.75rem;
    font-size: 0.85rem;
}

.tag {
    display: inline-block;
    background-color: #e2e8f0;
    padding: 0.2rem 0.6rem;
    margin-right: 0.5rem;
    margin-top: 0.25rem;
    border-radius: 3px;
    color: #555;
}

/* Contact section */
.contact-info {
    line-height: 2;
}

.contact-info p {
    margin-bottom: 0.5rem;
    text-align: justify;
}

.contact-info a {
    color: #5a7a9e;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-info strong {
    font-weight: 600;
}

/* Footer */
footer {
    margin-top: 4rem;
    padding-top: 1rem;
    border-top: 1px solid #cbd5e0;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

/* Links */
a {
    color: #0066cc;
}

a:hover {
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    main h1 {
        font-size: 1.5rem;
    }
}
