/* Inter Variable Font - Most performant loading strategy */
/* font-display: swap ensures text is visible immediately with fallback, then swaps when font loads */
@font-face {
    font-family: 'Inter';
    src: url('/static/fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype-variations'),
         url('/static/fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap; /* Show fallback immediately, swap when loaded - best for performance */
}

@font-face {
    font-family: 'Inter';
    src: url('/static/fonts/Inter-Italic-VariableFont_opsz,wght.ttf') format('truetype-variations'),
         url('/static/fonts/Inter-Italic-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

html {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    color: #333;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 16px;
    font-weight: 400;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    max-width: 680px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
    font-size: 16px;
    font-weight: 400;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
}

.separator {
    display: block;
    width: 100%;
}

.separator.separator-with-border {
    border-top: 1px solid #333;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Link styles */
a {
    color: #0052a3;
    text-decoration: underline;
    text-underline-offset: 3px;
}

a:hover {
    color: #003d7a;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    html {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }

    .separator.separator-with-border {
        border-top: 1px solid #e0e0e0;
    }

    a {
        color: #4da6ff;
    }

    a:hover {
        color: #80bfff;
    }
}