/* ============================================================
   Academic Website — Shared Styles
   ============================================================ */

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

html {
    font-size: 15px;
}

body {
    font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 400;
    line-height: 1.65;
    color: #333;
    background-color: #faf8f5;
}

/* ---- Layout ---- */

.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 56px 28px 80px;
}

/* ---- Header ---- */

.site-header {
    margin-bottom: 44px;
}

.site-name {
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
    color: #1a1a1a;
}

.site-name a {
    color: inherit;
    text-decoration: none;
    border: none;
}

.site-role {
    font-size: 0.875rem;
    color: #777;
    font-weight: 400;
    margin-bottom: 20px;
}

/* ---- Navigation ---- */

.site-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.site-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: #555;
    text-decoration: none;
    letter-spacing: 0.03em;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
    transition: color 0.15s, border-color 0.15s;
}

.site-nav a:hover,
.site-nav a.active {
    color: #1a1a1a;
    border-bottom-color: #1a1a1a;
}

/* ---- Intro (photo + bio + contact) ---- */

.intro {
    display: flex;
    gap: 36px;
    align-items: flex-start;
    margin-bottom: 48px;
}

.profile-photo {
    width: 160px;
    height: 200px;
    object-fit: cover;
    object-position: center top;
    border-radius: 4px;
    flex-shrink: 0;
}

.intro-text {
    flex: 1;
    min-width: 0;
}

.intro-text .bio {
    margin-bottom: 14px;
}

.intro-text .contact {
    margin-bottom: 0;
}

/* ---- Bio ---- */

.bio {
    margin-bottom: 24px;
    font-size: 0.9375rem;
}

.bio p + p {
    margin-top: 12px;
}

/* ---- Contact ---- */

.contact {
    margin-bottom: 48px;
    font-size: 0.875rem;
    color: #666;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
}

.contact a {
    color: #555;
    text-decoration: none;
    border-bottom: 1px dotted #bbb;
    transition: color 0.15s, border-color 0.15s;
}

.contact a:hover {
    color: #1a1a1a;
    border-bottom-color: #555;
}

.contact-sep {
    margin: 0 8px;
    color: #ccc;
}

/* ---- Section Headings ---- */

.section-heading {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #aaa;
    margin-top: 36px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e4e0d9;
}

/* ---- Papers ---- */

.paper-list {
    list-style: none;
}

.paper-item {
    margin-bottom: 18px;
}

.paper-title {
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 3px;
    line-height: 1.4;
}

.paper-title a {
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 1px solid #d0ccc5;
    transition: border-color 0.15s;
}

.paper-title a:hover {
    border-bottom-color: #555;
}

.paper-meta {
    font-size: 0.825rem;
    color: #888;
    line-height: 1.5;
}

.paper-meta em {
    font-style: italic;
    color: #777;
}

.paper-abstract {
    font-size: 0.825rem;
    color: #888;
    line-height: 1.6;
    margin-top: 0.4rem;
}

.paper-link {
    color: #777;
    text-decoration: none;
    border-bottom: 1px dotted #bbb;
    margin-left: 4px;
    transition: color 0.15s;
}

.paper-link:hover {
    color: #1a1a1a;
    border-bottom-color: #555;
}

/* ---- Blog Page ---- */

.page-heading {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #aaa;
    margin-bottom: 36px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e4e0d9;
}

.blog-post {
    margin-bottom: 44px;
    padding-bottom: 44px;
    border-bottom: 1px solid #e4e0d9;
}

.blog-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.post-date {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #bbb;
    margin-bottom: 7px;
}

.post-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 14px;
    line-height: 1.35;
}

.post-title a {
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s;
}

.post-title a:hover {
    border-bottom-color: #555;
}

.post-content {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #333;
}

.post-content p {
    margin-bottom: 14px;
}

.post-content p:last-child {
    margin-bottom: 0;
}

.post-content a {
    color: #333;
    border-bottom: 1px solid #bbb;
    text-decoration: none;
    transition: border-color 0.15s;
}

.post-content a:hover {
    border-bottom-color: #333;
}

.post-content em   { font-style: italic; }
.post-content strong { font-weight: 600; }

.post-content code {
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: 0.875em;
    background: #f0ede8;
    padding: 1px 5px;
    border-radius: 3px;
}

.no-posts {
    color: #aaa;
    font-size: 0.875rem;
}

/* ---- Footer ---- */

.site-footer {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #e4e0d9;
    font-size: 0.8rem;
    color: #ccc;
}

/* ---- Responsive ---- */

@media (max-width: 600px) {
    html { font-size: 14px; }

    .container {
        padding: 36px 20px 60px;
    }

    .site-name {
        font-size: 1.35rem;
    }

    .intro {
        flex-direction: column;
        gap: 24px;
    }

    .profile-photo {
        width: 130px;
        height: 160px;
    }
}
