* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* ensures padding and borders are absorbed inside the specificed width rather than added on top of it */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "SF Mono", "Cascadia Code", "JetBrains Mono", Consolas, "Liberation Mono", Menlo, monospace;

    background: white;
    color: #222;

    line-height: 1.6;
}

main {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 24px;
}

header {
    text-align: center;
    padding: 80px 20px;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

header p {
    color: #666;
}

.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 40px 0;

    max-width: 900px;
    margin: 0 auto;
}

.hero-text {
    flex: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 12px;
}

.hero-photo img {
    width: 220px;
    height: 220px;

    border-radius: 50%;
    object-fit: cover;

    border: 3px solid #ddd;
}

.subtitle {
    color: #666;
    margin-bottom: 20px;
}

section {
    margin: 60px 0;
}

main section:first-child {
    margin-top: 20px;
}

section h2 {
    margin-bottom: 20px;
    font-size: 2rem;
}

section p {
    color: #444;
}

.social-links {
    margin-top: 20px;

    display: flex;
    justify-content: center;
    gap: 24px;

    font-size: 1.5rem;
}

.social-links a {
    color: #444;
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: #0055cc;
}

.cv-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 2.2rem;
    height: 2.2rem;

    border: 2px solid #444;
    border-radius: 50%;

    font-size: 0.8rem;
    font-weight: 600;
    color: #444;
    text-decoration: none; 

    transition: all 0.2s ease;
}

.cv-link:hover {
    color: white;
    background: #444;
}

hr {
    border: none;
    width: 60%;
    margin: 2rem auto;
    border-top: 1px solid #ddd;
}

.navbar {
    display: flex;
    justify-content: center;
    gap: 36px;

    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;

    padding: 16px 0;

    margin-bottom: 0;
}

.navbar a {
    color: #444;
    text-decoration: none;
    font-weight: 500;
}

.navbar a:hover {
    color: #0055cc;
}

.publication {
    margin-bottom: 2rem;
}

.pub-authors {
    margin-bottom: 0.3rem;
    color: #444;
}

.pub-title {
    margin-bottom: 0.3rem;
    font-size: 1.05rem;
}

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

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

.pub-venue {
    color: #666;
}

.timeline {
    position: relative;
    margin-top: 2rem;
    padding-left: 2rem;
}

/* Vertical line */
.timeline::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #d9d9d9;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 2rem;
}

/* Circle */
.timeline-item::before {
    content: "";
    position: absolute;

    left: -1px;
    top: 8px;

    width: 14px;
    height: 14px;

    background: white;
    border: 3px solid #444;
    border-radius: 50%;
}

.timeline-date {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.role {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.2rem;
}

.location {
    color: #666;
    font-size: 0.95rem;
}