/* =====================================================
   style.css — Aaron Kurz's personal website
   ===================================================== */

/* ----- Reset & Base ----- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
                 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #1a1a2e;
    background: #ffffff;
}

/* ----- Top Navigation ----- */
.topnav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 100;
}

.topnav .nav-name a {
    font-weight: 700;
    font-size: 1.05rem;
    color: #1a1a2e;
    text-decoration: none;
}

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

.topnav ul li a {
    color: #555;
    text-decoration: none;
    font-size: 0.95rem;
}

.topnav ul li a:hover {
    color: #2471a3;
    text-decoration: underline;
}

/* ----- Page Layout ----- */
.page-wrapper {
    max-width: 980px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 3.5rem;
    align-items: start;
}

/* ----- Sidebar / Profile ----- */
.sidebar {
    position: sticky;
    top: 4.5rem;
}

.profile-card {
    text-align: center;
}

/* Photo: uncomment the <img> tag in index.html to show your actual photo.
   Until then, the initials placeholder below will be shown. */
.profile-initials {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: #d6eaf8;
    color: #2471a3;
    font-size: 2.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    letter-spacing: 2px;
}

.profile-photo {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    display: block;
    border: 2px solid #d6eaf8;
}

.profile-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.profile-title {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.2rem;
}

.profile-affiliation {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.profile-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.profile-links a {
    color: #2471a3;
    text-decoration: none;
    font-size: 0.9rem;
}

.profile-links a:hover {
    text-decoration: underline;
}

/* ----- Main Content ----- */
.main-content {
    min-width: 0;
}

.main-content section {
    margin-bottom: 2.8rem;
}

.main-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
    border-bottom: 2px solid #2471a3;
    padding-bottom: 0.3rem;
    margin-bottom: 1rem;
}

.main-content p {
    margin-bottom: 0.8rem;
    color: #333;
}

/* ----- News Section ----- */
/* To add a news item: copy one <li> in index.html and update date + text */
.news-list {
    list-style: none;
}

.news-list li {
    display: flex;
    gap: 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.news-date {
    flex-shrink: 0;
    font-weight: 600;
    color: #2471a3;
    font-size: 0.88rem;
    width: 72px;
    padding-top: 0.15rem;
}

.news-text {
    font-size: 0.95rem;
    color: #333;
}

.news-text a {
    color: #2471a3;
}

.news-text a:hover {
    text-decoration: underline;
}

/* ----- Publications Section ----- */
/* To add a paper: copy one <li class="pub-item"> block in index.html */
.pub-list {
    list-style: none;
}

.pub-item {
    padding: 0.8rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
    line-height: 1.65;
}

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

.pub-title a {
    color: #1a1a2e;
    text-decoration: none;
}

.pub-title a:hover {
    color: #2471a3;
    text-decoration: underline;
}

.pub-authors,
.pub-year {
    color: #555;
}

.pub-venue {
    color: #666;
}

.pub-links {
    margin-top: 0.2rem;
    font-size: 0.85rem;
}

.pub-links a {
    color: #2471a3;
    margin-right: 0.75rem;
    text-decoration: none;
}

.pub-links a:hover {
    text-decoration: underline;
}

/* ----- General Links ----- */
a {
    color: #2471a3;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ----- Footer ----- */
footer {
    max-width: 980px;
    margin: 2rem auto 1.5rem;
    padding: 0 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: #999;
}

footer hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin-bottom: 0.8rem;
}

footer a {
    color: #999;
}

footer a:hover {
    color: #2471a3;
    text-decoration: underline;
}

/* =====================================================
   CV Section
   ===================================================== */

/* Sub-section headings within CV */
/* To add a new sub-section heading, use <h3 class="cv-subsection"> */
.cv-subsection {
    font-size: 1rem;
    font-weight: 600;
    color: #2471a3;
    margin: 1.4rem 0 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Research interest tags / pills */
/* To add a tag: add a <span class="cv-tag"> in the .cv-tags container */
.cv-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.cv-tag {
    background: #eaf4fb;
    color: #2471a3;
    border: 1px solid #aed6f1;
    border-radius: 20px;
    padding: 0.2rem 0.75rem;
    font-size: 0.87rem;
    font-weight: 500;
    white-space: nowrap;
}

/* CV entry list (education, experience, …) */
.cv-entries {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cv-entry {
    padding: 0.7rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.cv-entry:last-child {
    border-bottom: none;
}

.cv-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
}

.cv-entry-title {
    font-weight: 600;
    font-size: 0.97rem;
    color: #1a1a2e;
}

.cv-entry-date {
    font-size: 0.85rem;
    color: #888;
    flex-shrink: 0;
}

.cv-entry-org {
    font-size: 0.9rem;
    color: #555;
    margin-top: 0.1rem;
}

.cv-entry-org:empty {
    display: none;
}

.cv-entry-desc {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.3rem;
    margin-bottom: 0;
}

/* =====================================================
   Blog listing page (blog.html)
   ===================================================== */

.blog-listing {
    max-width: 700px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
}

.blog-listing h2 {
    font-size: 1.25rem;
    font-weight: 700;
    border-bottom: 2px solid #2471a3;
    padding-bottom: 0.3rem;
    margin-bottom: 1rem;
}

.blog-listing p {
    margin-bottom: 1rem;
    color: #555;
}

/* Blog post list */
/* To add a post: copy a <li> in blog.html and update the date, link, and title */
.blog-post-list {
    list-style: none;
}

.blog-post-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.blog-post-date {
    flex-shrink: 0;
    color: #888;
    font-size: 0.88rem;
    width: 85px;
}

.blog-post-list a {
    color: #1a1a2e;
    text-decoration: none;
}

.blog-post-list a:hover {
    color: #2471a3;
    text-decoration: underline;
}

/* =====================================================
   Individual blog post page
   ===================================================== */

.blog-post-wrapper {
    max-width: 720px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
}

.blog-post-wrapper h1 {
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.post-meta {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.blog-post-wrapper h2,
.blog-post-wrapper h3 {
    margin: 1.5rem 0 0.5rem;
}

.blog-post-wrapper p {
    margin-bottom: 1rem;
    color: #333;
}

.blog-post-wrapper ul,
.blog-post-wrapper ol {
    margin: 0.5rem 0 1rem 1.5rem;
}

.blog-post-wrapper li {
    margin-bottom: 0.3rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #2471a3;
}

/* =====================================================
   Info / Contact page (info.html)
   ===================================================== */

.info-wrapper {
    max-width: 700px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
}

.info-wrapper h2 {
    font-size: 1.25rem;
    font-weight: 700;
    border-bottom: 2px solid #2471a3;
    padding-bottom: 0.3rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.info-wrapper h2:first-child {
    margin-top: 0;
}

.info-wrapper p {
    margin-bottom: 0.8rem;
    color: #333;
}

.info-wrapper ul {
    margin: 0.5rem 0 1rem 1.5rem;
}

.info-wrapper li {
    margin-bottom: 0.3rem;
    color: #333;
}

/* =====================================================
   Responsive layout
   ===================================================== */

@media (max-width: 700px) {
    .page-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 1.5rem;
    }

    .sidebar {
        position: static;
    }

    .profile-card {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .topnav {
        flex-direction: column;
        gap: 0.6rem;
        padding: 0.8rem 1rem;
    }

    .topnav ul {
        gap: 0.8rem 1.2rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .news-list li {
        flex-direction: column;
        gap: 0.15rem;
    }

    .news-date {
        width: auto;
    }
}
