/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'SF Pro Display', 'SF Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #111;
    background-color: #fff;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: -0.005em;
}

html {
    scroll-behavior: smooth;
}

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

/* Header */
header {
    margin-bottom: 25px;
}

header h1 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 15px;
    color: #333;
    letter-spacing: -0.01em;
}

nav {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

nav a {
    color: #333;
    text-decoration: none;
    margin-right: 20px;
    font-weight: 400;
    letter-spacing: -0.005em;
}

nav a:hover {
    text-decoration: underline;
}

/* Main Content */
main {
    margin-bottom: 40px;
}

section {
    margin-bottom: 30px;
}

h1 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: #333;
    letter-spacing: -0.01em;
}

h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 25px 0 12px;
    color: #111;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 20px 0 10px;
    color: #222;
    letter-spacing: -0.008em;
}

p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #111;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Projects */
.project {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.project:last-child {
    border-bottom: none;
}

.project h3 {
    margin-bottom: 10px;
}

.project p {
    margin-bottom: 8px;
}

/* Footer */
footer {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

footer h2 {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 15px;
}

footer ul {
    list-style: none;
    margin-bottom: 15px;
}

footer li {
    margin-bottom: 3px;
    color: #555;
}

footer p {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Blog Posts */
.blog-post {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

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

.blog-post h3 {
    margin-bottom: 5px;
}

.blog-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-style: italic;
}

.blog-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-style: italic;
}

/* Individual Blog Post Pages */
.blog-nav {
    margin-bottom: 30px;
}

.blog-nav a {
    color: #0066cc;
    text-decoration: none;
    font-size: 0.9rem;
}

.blog-nav a:hover {
    text-decoration: underline;
}

.blog-post-full {
    max-width: 100%;
}

.blog-post-full h1 {
    margin-bottom: 10px;
}

.blog-content {
    margin-top: 20px;
}

.blog-content p {
    margin-bottom: 18px;
}

.blog-content ul {
    margin-bottom: 18px;
    padding-left: 25px;
    list-style-type: disc;
    font-family: inherit;
    color: #111;
    font-size: inherit;
}

.blog-content li {
    margin-bottom: 8px;
    display: list-item;
    font-family: inherit;
    font-size: inherit;
    color: #111;
    line-height: 1.6;
    font-weight: inherit;
}

.blog-content li::marker {
    font-size: 1.2em;
}

.bibliography {
    margin-top: 35px;
}

.bibliography h2 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #111;
}

.bibliography-entry {
    margin-bottom: 18px;
    line-height: 1.7;
    color: #222;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.bibliography-index {
    font-weight: 600;
    color: #111;
    min-width: 40px;
}

.bibliography-text {
    flex: 1;
}

.image-with-caption {
    text-align: center;
    margin: 24px 0;
}

.image-caption {
    margin-top: 6px;
    margin-bottom: 18px;
    font-style: italic;
    color: #777;
    text-align: center;
}

.center-environment {
    text-align: center;
    margin: 24px 0;
}

.center-environment img {
    display: inline-block;
    margin: 0 10px;
    vertical-align: top;
}

.center-environment .image-with-caption {
    display: inline-block;
    margin: 0 10px;
    vertical-align: top;
}

.math-display {
    text-align: center;
    margin: 20px 0;
    overflow-x: auto;
}

.algorithm-block {
    background: #fff;
    border: 1px solid #999;
    border-top: 2px solid #333;
    border-bottom: 2px solid #333;
    padding: 16px 20px;
    margin: 22px 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.algorithm-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.algorithm-metadata {
    margin-bottom: 4px;
    font-family: 'Times New Roman', 'Cormorant Garamond', Georgia, serif;
    font-size: 1rem;
}

.algorithm-label {
    font-weight: 700;
}

.algorithm-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Times New Roman', 'Cormorant Garamond', Georgia, serif;
    font-size: 1rem;
}

.algorithm-table td {
    padding: 2px 6px;
    vertical-align: top;
}

.algorithm-num {
    width: 2.2em;
    font-weight: 700;
}

.algorithm-body {
    width: 65%;
}

.algorithm-comment-cell {
    width: 35%;
}

.algorithm-comment {
    font-style: italic;
    color: #333;
}

.algorithm-keyword {
    font-style: italic;
}

/* Blog post title links */
.blog-post h3 a {
    color: #333;
    text-decoration: none;
}

.blog-post h3 a:hover {
    color: #0066cc;
    text-decoration: underline;
}

/* Contact Buttons */
.contact-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.btn {
    padding: 12px;
    border-radius: 50%;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid;
    width: 45px;
    height: 45px;
}

.btn-email {
    background-color: #0066cc;
    color: white;
    border-color: #0066cc;
    font-size: 1.6rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    text-align: center;
    padding-top: 10px;
}

.btn-email:hover {
    background-color: #0052a3;
    border-color: #0052a3;
    text-decoration: none;
}

.btn-linkedin {
    background-color: #0066cc;
    color: white;
    border-color: #0066cc;
}

.btn-linkedin:hover {
    background-color: #0052a3;
    border-color: #0052a3;
    text-decoration: none;
}

/* Company names - less intense bold */
.company-name {
    font-weight: 750;
}

/* Job dates in titles */
h3 em {
    font-weight: 300;
    font-size: 0.85em;
    float: right;
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        padding: 20px 15px;
    }
    
    header h1 {
        font-size: 1.6rem;
    }
    
    nav a {
        margin-right: 15px;
        display: inline-block;
        margin-bottom: 5px;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .btn {
        width: 45px;
        height: 45px;
    }
} 
