/* --- Global Styles & Resets --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'EB Garamond', serif;
    font-size: 17px;
    line-height: 1.7;
    background-color: #fcfcfc;
    color: #333;
}

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

h1, h2, h3 {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    color: #000;
    margin-bottom: 0.75em;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.25em;
}

h2 {
    font-size: 1.8rem;
    padding-bottom: 8px;
    border-bottom: 2px solid #eee;
}

h3 {
    font-size: 1.4rem;
    margin-top: 1.5em;
}

p {
    margin-bottom: 1em;
}

a {
    color: #0000a0; /* Dark blue links */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul, ol {
    margin-bottom: 1em;
    padding-left: 20px;
}

li {
    margin-bottom: 0.5em;
}

ul {
    list-style-type: disc;
}

hr {
    border: 0;
    height: 1px;
    background-color: #ddd;
    margin: 2em 0;
}

strong {
    font-weight: 700;
    color: #111;
}

em {
    font-style: italic;
    color: #555;
}

/* --- Navigation Header --- */
nav.main-nav {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    padding: 0.5em 0;
}

nav.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .nav-brand {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #000;
    text-decoration: none;
}

nav .nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1em;
}

nav .nav-links a {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    color: #444;
    padding: 1em 0.5em;
    text-decoration: none;
}

nav .nav-links a:hover {
    color: #0000a0;
}

/* This class highlights the current page */
nav .nav-links a.active {
    color: #0000a0;
    box-shadow: inset 0 -3px 0 0 #0000a0;
}

/* --- Homepage Hero --- */
.hero {
    display: flex;
    gap: 2em;
    align-items: center;
    padding: 2em 0;
}

.hero .hero-text {
    flex: 1;
}

.hero .hero-text p.subtitle {
    font-size: 1.15rem;
    color: #555;
    margin-bottom: 1.5em;
}

.hero .hero-img {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    background-color: #eee;
    border-radius: 50%;
    /* TODO: Add your profile picture */
    /* background-image: url('your-photo.jpg'); */
    background-size: cover;
    background-position: center;
    border: 3px solid #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
}

.contact-links a {
    color: #333;
}

.contact-links span {
    color: #ccc;
}

/* --- Homepage News Section --- */
.news-list {
    list-style: none;
    padding-left: 0;
}

.news-list li {
    display: flex;
    border-bottom: 1px dashed #ddd;
    padding: 1.2em 0;
    gap: 1.5em;
}

.news-list .date {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    color: #555;
    flex-basis: 120px;
    flex-shrink: 0;
    text-align: right;
}

.news-list .news-content {
    flex-grow: 1;
}

/* --- Re-usable Entry Component (Education, Experience) --- */
.entry {
    margin-bottom: 1.75em;
}

.entry-header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 0.25em;
}

.entry-header strong {
    font-size: 1.2rem;
}

.entry-header span {
    font-weight: 700;
    color: #666;
    font-size: 1rem;
    flex-shrink: 0;
    margin-left: 15px;
}

.entry-body ul {
    margin-top: 0.75em;
    list-style-type: circle;
}

/* --- Publications Page --- */
.pub-list {
    list-style: none;
    padding-left: 0;
}

.pub-list li {
    padding-left: 1.4em;
    position: relative;
    margin-bottom: 1.25em;
}

/* Custom bullet */
.pub-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: #555;
}

.pub-links {
    margin-left: 8px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}

p.description {
    font-size: 0.95rem;
    font-style: italic;
    color: #444;
    margin-left: 1.4em;
    margin-top: 0.5em;
    margin-bottom: 0;
    padding-left: 10px;
    border-left: 3px solid #eee;
}

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

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .hero {
        flex-direction: column-reverse; /* Stack photo on top */
        text-align: center;
    }

    .hero .hero-text {
        width: 100%;
    }

    .contact-links {
        justify-content: center;
    }

    .news-list li {
        flex-direction: column;
        gap: 0.5em;
    }

    .news-list .date {
        text-align: left;
    }

    .entry-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .entry-header span {
        margin-left: 0;
        font-size: 0.95rem;
    }

    nav.main-nav .container {
        flex-direction: column;
        gap: 0.5em;
    }
}