html {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: larger;
    font-weight: 300;
}

body {
    margin: 0;
    color: #243142;
    background: #fbfcfe;
}

a {
    text-decoration: none;
    color: #1565c0;
}

a:hover {
    color: #217ee7;
}

/* Modify content positioning for scrollable pages */
#content {
    position: relative;
    margin: 100px auto 50px;  /* Top margin to account for nav bar */
    max-width: 1000px;
    padding: 32px;
    line-height: 1.6em;
    z-index: 1;
    text-align: center;
}

.home-content {
    text-align: left !important;
}

.avatar {
    border-radius: 50%;
    width: 190px;
    height: 190px;
    object-fit: cover;
    box-shadow: 0 14px 35px rgba(34, 58, 94, 0.14);
}

.home-hero {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    padding: 32px 0 42px;
}

.home-hero h1,
.publications-page h1 {
    margin: 0 0 12px;
    color: #172033;
    font-size: clamp(2.2rem, 5vw, 3.3rem);
    line-height: 1.08;
}

.home-hero-copy p {
    margin: 10px 0;
}

.home-lead {
    max-width: 680px;
    color: #334155;
    font-size: 1.24em;
    line-height: 1.55;
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin-top: 22px;
    font-size: 0.92em;
    font-weight: 600;
}

.hero-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-links .primary-link {
    padding: 9px 16px;
    border-radius: 7px;
    background: #1565c0;
    color: white;
}

.hero-links .primary-link:hover {
    background: #0f54a3;
    color: white;
}

.eyebrow,
.info-label {
    margin: 0 0 8px !important;
    color: #1565c0;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.achievement-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 4px 0 52px;
    overflow: hidden;
    border: 1px solid #dbe3ed;
    border-radius: 12px;
    background: white;
    box-shadow: 0 8px 24px rgba(34, 58, 94, 0.05);
}

.achievement-strip a {
    display: flex;
    min-width: 0;
    padding: 22px 26px;
    flex-direction: column;
    color: #172033;
}

.achievement-strip a + a {
    border-left: 1px solid #dbe3ed;
}

.achievement-strip a:hover {
    background: #f5f9ff;
    color: #1565c0;
}

.achievement-strip strong {
    font-size: 1.42em;
    font-weight: 600;
    line-height: 1.2;
}

.achievement-strip span {
    margin-top: 5px;
    color: #64748b;
    font-size: 0.82em;
    line-height: 1.35;
}

.research-question {
    margin: 0 0 52px;
    padding: 34px;
    border-left: 4px solid #1565c0;
    border-radius: 0 12px 12px 0;
    background: #eef6ff;
}

.research-question h2 {
    margin: 0 0 10px;
    color: #172033;
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1.3;
}

.research-question p:last-child {
    margin: 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 16px;
}

.section-heading h2 {
    margin: 0;
    color: #172033;
}

.text-link {
    white-space: nowrap;
    font-weight: 600;
}

.highlight-list {
    border-top: 1px solid #dbe3ed;
}

.highlight-list article {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 20px;
    padding: 18px 4px;
    border-bottom: 1px solid #dbe3ed;
}

.highlight-list span {
    color: #64748b;
    font-size: 0.88em;
}

.highlight-list h3 {
    margin: 0;
    font-size: 1.02em;
}

.recent-work .icons {
    margin-top: 32px;
}

.experience-section {
    margin-top: 58px;
}

.experience-list {
    border-top: 1px solid #dbe3ed;
}

.experience-list article {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 22px;
    padding: 20px 4px;
    border-bottom: 1px solid #dbe3ed;
}

.experience-status {
    color: #64748b;
    font-size: 0.8em;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.experience-list h3 {
    margin: 0 0 4px;
    color: #172033;
    font-size: 1.02em;
}

.experience-list p {
    margin: 0;
    color: #526174;
    font-size: 0.92em;
}

.icons {
    list-style-type: none;
    font-size: xx-large;
    padding: 0;
    display: flex;
    justify-content: space-between;
    width: 80%;
    max-width: 320px;
    margin: 1em auto;
}

.icons li {
    display: inline;
    width: 42px;
}

.icons a {
    color: black;
}

.icons a:hover {
    color: #1565c0;
}

/* Add new navigation styles */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    padding: 1em 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
}

.nav-links {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 2em;
}

.nav-links li a {
    color: #333;
    font-weight: 600;
    padding: 0.5em 1em;
}

.nav-links li a:hover {
    color: #1565c0;
}

/* Publication styles */
.publications-page {
    text-align: left !important;
}

.page-intro {
    max-width: 720px;
    margin: 0 auto 32px;
    color: #526174;
    font-size: 1.05em;
}

.publications-page .page-intro {
    margin-left: 0;
}

.contribution-note {
    margin: -18px 0 38px;
    color: #64748b;
    font-size: 0.86em;
}

.publication-year {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 28px;
    margin-bottom: 46px;
}

.publication-year > h2 {
    margin: 4px 0 0;
    color: #1565c0;
    font-size: 1.15em;
}

.publication-list {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
    text-align: left;
}

.publication-item {
    margin-bottom: 14px;
    padding: 22px 24px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    box-shadow: 0 5px 18px rgba(34, 58, 94, 0.04);
}

.publication-content {
    min-width: 0;
}

.featured-publication {
    border-color: #b8d7fb;
    background: #f7fbff;
}

.manuscript {
    background: #fafafa;
}

.publication-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #64748b;
    font-size: 0.82em;
}

.venue-badge,
.status-badge {
    display: inline-flex;
    padding: 2px 9px;
    border-radius: 999px;
    background: #e8f2ff;
    color: #1559a5;
    font-weight: 600;
}

.status-badge {
    background: #f1f3f5;
    color: #596579;
}

.award-badge {
    background: #fff3cd;
    color: #8a5a00;
}

.publication-title {
    font-size: 1.16em;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 8px;
    color: #172033;
}

.publication-authors {
    color: #526174;
    margin: 0 0 10px;
    font-size: 0.9em;
    line-height: 1.5;
}

.publication-authors strong {
    color: #172033;
    font-weight: 700;
}

.publication-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.publication-links a {
    padding: 4px 12px;
    border-radius: 4px;
    background: #e9ecef;
    color: #495057;
    font-size: 0.9em;
    transition: all 0.2s ease;
}

.publication-links a:hover {
    background: #1565c0;
    color: white;
}

/* External link style */
.external-link {
    display: flex;
    align-items: center;
    gap: 5px;
}

.external-link i {
    font-size: 0.8em;
}

/* Paw print styles */
.paw-print {
    position: absolute;
    width: 30px;
    height: 30px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.8;
    animation: appear 0.3s ease-out;
}

.dog-paw {
    background-image: url('assets/dog-paw.png');
}

.cat-paw {
    background-image: url('assets/cat-paw.png');
}

.fade-out {
    animation: disappear 1s forwards;
}

@keyframes appear {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

@keyframes disappear {
    0% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
    }
}

/* Blog styles */
.blog-list {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    text-align: left;
}

.blog-item {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.blog-item--text {
    border-left: 4px solid #1565c0;
}

.blog-item--text .blog-content {
    padding: 8px 4px;
}

.blog-thumbnail {
    flex-shrink: 0;
    width: 300px;
    height: 200px;
    object-fit: contain;
    border-radius: 4px;
}

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

.blog-title {
    font-size: 1.4em;
    font-weight: 600;
    margin: 0 0 10px 0;
}

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

.blog-title a:hover {
    color: #1565c0;
}

.blog-title i {
    margin-left: 6px;
    font-size: 0.65em;
}

.blog-date {
    color: #666;
    margin-bottom: 12px;
    font-style: italic;
}

.blog-excerpt {
    margin-bottom: 12px;
    line-height: 1.6;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-tag {
    background: #e9ecef;
    color: #495057;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85em;
}

/* Blog post styles */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.blog-post-header {
    margin-bottom: 30px;
}

.back-button {
    display: inline-block;
    margin-bottom: 20px;
    color: #666;
    font-size: 0.9em;
}

.back-button:hover {
    color: #1565c0;
}

.blog-post-meta {
    margin: 10px 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.blog-post-date {
    color: #666;
    font-style: italic;
}

.blog-post-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.blog-post-body {
    line-height: 1.8;
}

.blog-post-body h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333;
}

.blog-post-body p {
    margin-bottom: 20px;
}

.blog-post-body pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.blog-post-body code {
    font-family: monospace;
}

.blog-post-body ul, .blog-post-body ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.blog-post-body li {
    margin-bottom: 8px;
}

@media (max-width: 760px) {
    #content {
        margin-top: 88px;
        padding: 22px;
    }

    .nav-links {
        gap: 0;
    }

    .nav-links li a {
        padding: 0.5em 0.65em;
    }

    .home-hero {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 18px;
    }

    .avatar {
        width: 150px;
        height: 150px;
    }

    .achievement-strip {
        grid-template-columns: 1fr;
    }

    .achievement-strip a {
        padding: 18px 20px;
    }

    .achievement-strip a + a {
        border-top: 1px solid #dbe3ed;
        border-left: 0;
    }

    .highlight-list article {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .experience-list article {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .publication-year {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .publication-year > h2 {
        margin-bottom: 0;
    }

    .publication-item {
        padding: 18px;
    }

    .blog-item {
        flex-direction: column;
    }

    .blog-thumbnail {
        width: 100%;
        height: auto;
        max-height: 220px;
    }
}
