@charset "UTF-8";

:root {
    --bg: #fbf7f0;
    --text: #000000;
    --text-muted: #595959;
    --accent: #a60000;
    --accent-light: #d60000;
    --accent-visited: #7c318f;
    --border: #9f9690;
    --max-width: 700px;
}

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

html {
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--serif-fonts);
    line-height: 1.6;
    min-height: 100vh;
    padding: 3rem 1.5rem;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a:visited {
    color: var(--accent-visited);
}

p {
    margin-bottom: 0.4rem;
}

h1 {
    color: var(--accent);
    font-size: 2.5rem;
    font-variant: small-caps;
    font-weight: bold;
    letter-spacing: -0.01em;
    margin-bottom: 0.3rem;
}

h2 {
    color: var(--text);
    font-size: 1.4rem;
    font-variant: small-caps;
    font-weight: 600;
    margin: 1.8rem 0 0.8rem 0;
}

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1rem 0;
}

.contact {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.page {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* papers */

.paper {
    margin-bottom: 1.4rem;
}

.paper br {
    display: none;
}

.paper > a {
    font-weight: 600;
}

.paper .title {
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 4px;
}

.paper .title a {
    color: var(--text);
    text-decoration: none;
}

.paper .title a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.paper .meta {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-top: 0.25rem;
}

.paper .meta + br + .meta {
    margin-top: 0.12rem;
}

.paper .meta a {
    color: var(--accent);
}

.paper .meta a:visited {
    color: var(--accent-visited);
}

.paper .meta .authors {
    font-style: normal;
}

.paper .meta .journal {
    font-style: italic;
}

.paper .meta .journal a {
    font-style: italic;
}

.paper .abstract {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-top: 0.4rem;
}

footer {
    background: var(--bg);
    color: var(--text);
    text-align: center;
    padding: 28px 20px;
    font-size: 0.8em;
    border-top: 1px solid var(--border);
    margin-top: 20px;
}

/* Responsive */

@media (max-width: 600px) {
    html {
        font-size: 17px;
    }

    body {
        padding: 1.5rem 1rem;
    }

    h1 {
        font-size: 1.8rem;
    }
}
