body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; 
    /*font-family: 'Inter', sans-serif;*/
    font-size: 1.02rem;
    line-height: 1.65;

    margin: 50px auto;
    max-width: 1140px;
    padding: 0 24px;

    color: #2f2f2f;
    background-color: #f8f9fb;
    background:
    radial-gradient(
    circle at top right,
    #fbf7f7,
    #f5f7fa
);
    /* comment this out when finished */
    /*outline: 1px solid red; */
}

/* ---------- Typography ---------- */

h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 8px;
}

h2 {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 10px;
    margin-bottom: 24px;

    position: relative;
    display: inline-block;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 10px;
    margin-bottom: 24px;

    position: relative;
    display: inline-block;
}
.section-title::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    margin-top: 8px;
    background-color: #222;
    border-radius: 2px;
}

.subtitle {
    color: #666;
    font-size: 1.05rem;
    margin-top: 0;
}

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

nav {
    margin: 50px 0 70px 0;
}

nav a {
    margin-right: 24px;
    text-decoration: none;
    color: #4a6785;
    font-weight: 500;
    transition: color 0.2s ease;
}

nav a:hover {
    color: #2f2f2f;
    text-decoration: underline;
}

.cv-button {
    margin-left: 10px;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #222;
    font-weight: 500;

    transition: all 0.2s ease;
}

.cv-button:hover {
    border-color: #aaa;
    color: #000;
}

/* ---------- Homepage About Section ---------- */

.about-section {
    display: flex;
    gap: 50px;
    align-items: center;
    margin-top: 60px;
}

.about-text {
    flex: 2;
}

.profile-image {
    flex: 1;
}

.profile-image img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #ececec
}

.inline-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: #9aa7b3;
    text-underline-offset: 3px;
    transition: color 0.2s ease,
                text-decoration-color 0.2s ease;
}

.inline-link:hover {
    color: #4a6785;
    text-decoration-color: #4a6785;
}

.social-icons {
    margin-top: 22px;
    display: flex;
    gap: 22px;
}

.social-icons a {
    color: #5b6b7a;
    font-size: 2rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.social-icons a:hover {
    color: #2f2f2f;
    transform: translateY(-2px);
}



/* ---------- Project Sections ---------- */

.project {
    margin-top: 60px;
    margin-bottom: 100px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.project-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.project-text {
    flex: 2;
}

.project-image {
    flex: 1;
}

.project-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid #e5e5e5;
}

.project h2 {
    line-height: 1.3;
    margin-bottom: 25px;
}

.paper-link {
    margin-top: 8px;
    font-size: 0.95rem;
    color: #666;
}

.paper-link a {
    color: #444;
    text-decoration: none;
}

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

.tools {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 14px;

    border: 1px solid #e3e6e8;
    border-radius: 8px;

    color: #444;
    background-color: #f1f3f5;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ---------- Additional Project ---------- */

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 36px;
    margin-top: 40px;
}

.archive-card {
    background: #ffffff;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid #ececec;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.2s ease,
                box-shadow 0.2s ease;
}

.archive-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: translateY(-3px);
    border-radius: 10px;
    border: 1px solid #ececec;
}

.archive-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.07);
}

.archive-card h3 {
    margin-top: 16px;
    margin-bottom: 8px;
    font-size: 1.05rem;
    line-height: 1.35;
}

.archive-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

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

footer {
    margin-top: 100px;
    padding-top: 20px;
    font-size: 0.9rem;
    color: #666;
    border-top: 1px solid #f0f0f0;
}

footer h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: #222;
}

footer p {
    margin-bottom: 10px;
}

footer a {
    color: #444;
    text-decoration: none;
}

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

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

@media (max-width: 768px) {
    body {
        margin: 40px auto;
    }
    .project-content {
        flex-direction: column;
    }
    .about-section {
        flex-direction: column-reverse;
        align-items: flex-start;
    }
    .profile-image img {
        width: 180px;
        height: 180px;
    }
}