/* Font */
@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    background-color: #f7f7f7;
    color: #1a1a1a;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: -0.011em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Container - two column layout */
.container {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12rem;
    max-width: none;
    padding: 8rem 12rem 8rem 12rem;
}

/* Main content column */
main {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

/* Typography */
h1 {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 2rem;
}

h2 {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 3rem;
}

p {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

a {
    color: #999;
    text-decoration: none;
    transition: color 0.5s ease-out;
}

a:hover {
    color: #1a1a1a;
}

/* Bio section */
.bio p:last-child {
    margin-bottom: 0;
}

/* Projects section */
.projects ul {
    list-style: none;
}

.projects li {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 1.25rem;
}

/* Research section */
.research ul {
    list-style: none;
}

.research li {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 0 2.5rem;
    align-items: baseline;
    margin-bottom: 1.25rem;
}

.research time {
    font-size: 1.125rem;
    color: #1a1a1a;
    flex-shrink: 0;
    min-width: 110px;
}

.research a {
    font-size: 1.125rem;
    line-height: 1.8;
}

/* Writing section */
.writing ul {
    list-style: none;
}

.writing li {
    display: flex;
    gap: 2.5rem;
    align-items: baseline;
    margin-bottom: 1.25rem;
}

.writing time {
    font-size: 1.125rem;
    color: #1a1a1a;
    flex-shrink: 0;
    min-width: 110px;
}

.writing a {
    font-size: 1.125rem;
    line-height: 1.8;
}

/* Contact sidebar */
aside {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 8rem;
    align-self: start;
}

.contact-intro {
    font-size: 1.125rem;
    color: #1a1a1a;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.contact-links {
    list-style: none;
    margin-bottom: 2rem;
}

.contact-links li {
    margin-bottom: 1rem;
}

.contact-links a {
    font-size: 1.125rem;
    color: #999;
    text-decoration: none;
    transition: color 0.5s ease-out;
}

.contact-links a:hover {
    color: #1a1a1a;
}

.last-updated {
    font-size: 1.125rem;
    color: #999;
    line-height: 1.8;
}

/* Project and paper descriptions */
.project-desc,
.paper-desc {
    display: block;
    color: #555;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-top: 0.25rem;
}

.paper-desc {
    grid-column: 2;
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
        gap: 6rem;
        padding: 4rem 2rem;
    }

    aside {
        width: 100%;
        position: static;
    }

    main {
        gap: 6rem;
    }

    h1 {
        font-size: 1.125rem;
    }

    h2 {
        font-size: 1.125rem;
        margin-bottom: 2rem;
    }

    p {
        font-size: 1.125rem;
    }

    .projects li,
    .research a,
    .research time,
    .writing a,
    .writing time,
    .contact-intro,
    .contact-links a,
    .last-updated {
        font-size: 1rem;
    }

    .research li {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .research .paper-desc {
        grid-column: 1;
    }

    .writing li {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .research time,
    .writing time {
        min-width: auto;
    }
}
