/* arkiv86 — The 86 Papers */

:root {
    --text: #1a1a1a;
    --text-secondary: #555;
    --text-muted: #888;
    --rule: #1a1a1a;
    --rule-light: #ddd;
    --link: #1a4d8f;
    --bg: #fff;
    --code-bg: #f5f5f5;
}

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

body {
    font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
    font-size: 1.15em;
    max-width: 48em;
    margin: 0 auto;
    padding: 2em 1.5em;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
}

/* --- F6 Header: wordmark left, paper-id right, rule below --- */
.site-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-bottom: 0.4em;
    border-bottom: 2px solid var(--rule);
    margin-bottom: 2em;
}

.wordmark {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 2.8em;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--text);
    text-decoration: none;
}

.wordmark:hover { color: var(--text); }

.header-id {
    font-family: Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 1.3em;
    color: var(--text);
}

/* --- Index page --- */
.subtitle {
    color: var(--text-secondary);
    font-size: 1.05em;
    font-style: italic;
    margin-bottom: 0.3em;
    line-height: 1.5;
}

.subtitle-en {
    color: var(--text-muted);
    font-size: 0.95em;
    font-style: italic;
    margin-bottom: 2em;
    line-height: 1.5;
}

.paper-list {
    list-style: none;
}

.paper-list li {
    padding: 1.4em 0;
    border-bottom: 1px solid var(--rule-light);
}

.paper-list li:last-child {
    border-bottom: none;
}

.paper-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.4em;
}

.paper-id-group {
    display: flex;
    flex-direction: column;
}

.paper-id {
    font-family: Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 1.15em;
    color: var(--text);
    letter-spacing: 0.02em;
}

.paper-date {
    font-size: 0.8em;
    color: var(--text-muted);
    margin-top: 0.1em;
}

.paper-heading .download-link {
    flex-shrink: 0;
    margin-top: 0.15em;
}

.paper-title {
    font-size: 1.15em;
    line-height: 1.4;
}

.paper-title-en {
    font-size: 1.05em;
    line-height: 1.4;
    color: var(--text-secondary);
    margin-top: 0.1em;
}

.paper-authors {
    font-size: 1em;
    color: var(--text-secondary);
    margin-bottom: 0.2em;
}

/* --- Paper detail page --- */
h1 {
    font-family: Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 1.6em;
    margin-bottom: 0.1em;
}

h2 {
    font-size: 1.35em;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 0.2em;
}

h2 + h2 { margin-top: 0.2em; }

h3 {
    font-size: 1.05em;
    font-weight: 700;
    margin-top: 1.8em;
    margin-bottom: 0.4em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 0.85em;
}

.authors {
    color: var(--text-secondary);
    margin-top: 0.6em;
    font-size: 1em;
}

.date {
    color: var(--text-muted);
    font-size: 0.9em;
    margin-top: 0.2em;
    margin-bottom: 1.5em;
}

.abstract {
    margin-bottom: 1.5em;
    text-align: justify;
}

/* --- Verification block --- */
.verification {
    background: var(--code-bg);
    padding: 1.2em 1.5em;
    margin-top: 1em;
    border-left: 3px solid var(--rule);
}

.verification dt {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-top: 0.8em;
}

.verification dt:first-child { margin-top: 0; }

.verification dd {
    margin-left: 0;
    margin-top: 0.2em;
}

.verification code {
    font-size: 0.82em;
    word-break: break-all;
    color: var(--text);
}

.verification a {
    color: var(--link);
    text-decoration: none;
}

.verification a:hover { text-decoration: underline; }

.paper-links {
    margin-top: 0.4em;
    display: flex;
    align-items: baseline;
    gap: 1.5em;
    flex-wrap: wrap;
}

.paper-hash {
    font-size: 0.75em;
    color: var(--text-muted);
}

.paper-hash code {
    font-size: 1em;
}

.download-link {
    font-family: Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 0.8em;
    color: var(--link);
    text-decoration: none;
}

.download-link:hover { text-decoration: underline; }

.sig-link {
    color: var(--text-muted);
    font-size: 0.9em;
    text-decoration: none;
    margin-left: 0.3em;
}

.sig-link:hover { text-decoration: underline; color: var(--text-secondary); }

.ots-note {
    font-size: 0.85em;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 0.5em;
}

/* --- Footer --- */
.site-footer {
    margin-top: 3em;
    padding-top: 1em;
    border-top: 1px solid var(--rule-light);
    font-size: 0.85em;
    color: var(--text-muted);
}

/* --- Links --- */
a { color: var(--link); }
a:hover { text-decoration: underline; }

/* --- Responsive --- */
@media (max-width: 600px) {
    body { padding: 1em; }
    .wordmark { font-size: 2em; }
    .header-id { font-size: 1em; }
    h1 { font-size: 1.3em; }
    h2 { font-size: 1.15em; }
}
