@font-face {
    font-family: 'Polymath';
    src: url('fonts/Polymath-Regular.woff2') format('woff2'),
         url('fonts/Polymath-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Polymath';
    src: url('fonts/Polymath-Bold.woff2') format('woff2'),
         url('fonts/Polymath-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Polymath';
    src: url('fonts/Polymath-Italic.woff2') format('woff2'),
         url('fonts/Polymath-Italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Polymath';
    src: url('fonts/Polymath-BoldIt.woff2') format('woff2'),
         url('fonts/Polymath-BoldIt.woff') format('woff');
    font-weight: bold;
    font-style: italic;
}

@font-face {
    font-family: 'Polymath';
    src: url('fonts/Polymath-Thin.woff2') format('woff2'),
         url('fonts/Polymath-Thin.woff') format('woff');
    font-weight: 200;       /* Thin */
    font-style: normal;
}

@font-face {
    font-family: 'Polymath';
    src: url('fonts/Polymath-XLight.woff2') format('woff2'),
         url('fonts/Polymath-XLight.woff') format('woff');
    font-weight: 300; /* use 100–300 depending on how Polymath labels XLight */
    font-style: normal;
}

@font-face {
    font-family: 'Polymath';
    src: url('fonts/Polymath-Light.woff2') format('woff2'),
         url('fonts/Polymath-Light.woff') format('woff');
    font-weight: 300; /* adjust if Light is 300 vs 350 */
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Polymath', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 300; /* Light everywhere */
    font-feature-settings: 
        /* These are for the Polymath font */
        "zero" off,
        "ss01" on,
        "ss02" on,
        "ss03" on,
        "ss05" on,
        "ss06" on;
    line-height: 1.7;
    color: #333;
    background-color: #fff;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

header {
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    color: #222;
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
    font-weight: 300;
}

nav {
    margin-top: 1.5rem;
}

nav a {
    color: #555;
    text-decoration: none;
    margin-right: 1.5rem;
    font-size: 0.95rem;
    transition: color 0.2s;
}

nav a:hover {
    color: #000;
}

section {
    margin-bottom: 3rem;
}

h2 {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: #222;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
}

p {
    font-weight: 300;
    margin-bottom: 1rem;
    text-align: justify;
}

.publication {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 2px solid #e0e0e0;
}

.publication-title {
    margin-bottom: 0.3rem;
    font-weight: 300;
}

.publication-authors {
    color: #555;
    margin-bottom: 0.3rem;
}

.publication-venue {
    color: #777;
    font-style: italic;
}

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

a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
    padding-left: 0;
}

ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #999;
}

.contact-info {
    line-height: 2;
}

.hero-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0 2rem;
}


@media (max-width: 600px) {
    body {
        padding: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    nav a {
        display: block;
        margin-bottom: 0.5rem;
    }
}