/* ==========================================================================
   Optimal Archetype CSS for Angelo Zangari (AGI Research Portfolio)
   Optimized for: Speed, Scannability, and Academic Density
   ========================================================================== */

:root {
    /* Gruvbox Light Theme Variables */
    --bg-color: #fbf1c7;
    --text-color: #282828;
    --text-muted: #7c6f64;
    --link-color: #076678;
    --link-hover: #458588;
    --border-color: #ebdbb2;
}

@media (prefers-color-scheme: dark) {
    :root {
        /* Gruvbox Dark Theme Variables for night-owl scientists */
        --bg-color: #1d2021;
        --text-color: #fbf1c7;
        --text-muted: #a89984;
        --link-color: #458588;
        --link-hover: #83a598;
        --border-color: #3c3836;
    }
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    /* System Serifs emulate the elegance of LaTeX layout engines without loading times */
    font-family: Georgia, Cambria, "Times New Roman", Times, serif;
    line-height: 1.5;
    max-width: 680px;
    margin: 60px auto;
    padding: 0 24px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

header {
    margin-bottom: 48px;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 6px 0;
}

h2 {
    /* Sans-serif system font for structural headings creates an elite editorial contrast */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 6px;
    margin: 40px 0 20px 0;
}

p {
    margin: 0 0 16px 0;
    font-size: 1.05rem;
}

ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

li {
    margin-bottom: 24px;
    font-size: 1rem;
}

/* Make paper titles stand out heavily for quick scrolling */
li strong {
    color: var(--text-color);
    display: block;
    margin-bottom: 4px;
    font-size: 1.1rem;
}

/* Explicit styling for author lists and venues */
.authors {
    color: var(--text-color);
    font-size: 0.95rem;
}

.venue {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.95rem;
}

.meta-links {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.85rem;
    margin-top: 4px;
}

a {
    color: var(--link-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s ease, color 0.15s ease;
}

a:hover {
    color: var(--link-hover);
    border-bottom-color: var(--link-hover);
}

footer {
    margin-top: 80px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.85rem;
    color: var(--text-muted);
}
