:root {
    --primary-color: #4a4a4a;
    --link-color: #6B46C1;
    --background-color: #fefdf5;
    --hover-color: #fffdfd;
}

body {
    font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.65;
    color: var(--primary-color);
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--background-color);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.monogram {
    font-size: 1.5rem;
    font-weight: bold;
}

.monogram a {
    text-decoration: none;
    color: var(--primary-color);
}

nav a {
    margin-left: 1.5rem;
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.2s;
}

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

.intro {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.profile-img {
    width: 100%;
    border-radius: 8px;
}

.bio h1 {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 2.5rem;
}

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

a:visited {
    color: var(--primary-color);
}

a:hover {
    text-decoration: none;
}

@media (max-width: 768px) {
    .intro {
        grid-template-columns: 1fr;
    }

    .profile-img {
        max-width: 250px;
    }
}

.footer {
    max-width: 800px;
    margin: 4rem auto 2rem;
    padding: 0 0.5rem;
}

.contact-item {
    display: flex;
    align-items: baseline;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.contact-item:last-of-type {
    border-bottom: none;
}

.contact-label {
    font-size: 1rem;
    color: #666;
    min-width: 100px;
    flex-shrink: 0;
}

.contact-value {
    font-size: 1rem;
    color: #4a4a4a;
    flex-grow: 1;
    text-align: right;
}

.contact-value a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.2s;
}

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

.news {
    margin-bottom: 3rem;
}

.news h2 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.news-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-item {
    display: flex;
    align-items: baseline;
    padding: 0.75rem 0;
    position: relative;
}

.news-date {
    font-size: 0.9rem;
    color: #666;
    flex-shrink: 0;
    position: relative;
    background-color: var(--background-color);
    padding-right: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.news-content {
    font-size: 1rem;
    color: #333;
    margin-left: auto;
    text-align: left;
    position: relative;
    background-color: var(--background-color);
    padding-left: 8px;
    flex-grow: 1;
    line-height: 1.4;
}

.last-updated {
    text-align: center;
    font-size: .75rem;
    color: #77777777;
    padding: 1rem 0;
    background-color: var(--background-color);
    border-top: 1px solid #eee;
    margin-top: 2rem;
}

.news-controls {
    margin-top: 1.5rem;
    text-align: center;
}

.news-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    padding: 0;
    font-size: 0.9rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s;
}

.news-btn:hover {
    text-decoration: none;
}

/* Notes page styling */
.notes-section {
    margin-top: 2rem;
}

.notes-section h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.notes-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.notes-item:last-child {
    border-bottom: none;
}

.notes-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1rem;
}

.notes-item a:hover {
    text-decoration: underline;
}

/* Misc page styling */
.misc-section {
    margin-bottom: 3rem;
}

.misc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-left: 2rem;
}

.misc-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.misc-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: #4a4a4a;
}

/* Research page styling */
.current-work-section {
    margin-bottom: 3rem;
}

.current-work-section h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.research-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.research-list {
    margin-left: 2rem;
}

.research-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.research-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: #4a4a4a;
}

/* Papers page styling */
.papers-section {
    margin-top: 2rem;
}

.papers-section h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.paper-item {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.paper-item:last-child {
    border-bottom: none;
}

.paper-year {
    font-size: 0.9rem;
    color: #666;
    min-width: 60px;
    flex-shrink: 0;
}

.paper-content {
    flex-grow: 1;
}

.paper-title {
    font-weight: normal;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.paper-meta {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.paper-meta a {
    color: var(--primary-color);
    text-decoration: none;
}

.paper-meta a:hover {
    text-decoration: underline;
}

.contribution-note {
    font-style: italic;
    color: #999;
}

.contribution-note::before {
    content: '(';
}

.contribution-note::after {
    content: ')';
}
