/* ── Reset & Base ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #ffffff;
    --bg-header: #0a0b0f;
    --text-body: #202026;
    --text-body-light: #6b6b77;
    --text-muted: #59657f;
    --text-white: #fffeff;
    --accent-blue: #5f96c0;
    --content-width: 790px;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--bg);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1;
    color: var(--text-body);
}

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

/* ── Header Background ── */
.header-bg {
    position: absolute;
    top: 0;
    right: 0;
    height: 78px;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.header-bg img {
    display: block;
    height: 78px;
    width: auto;
}

/* ── Header ── */
.header {
    position: relative;
    height: 78px;
    background: var(--bg-header);
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.header-logo {
    height: 79px;
    width: auto;
    z-index: 2;
}

/* ── Paper Content ── */
.paper-content {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 10px 24px 60px;
    background: var(--text-white);
}

/* ── Breadcrumb ── */
.breadcrumb {
    font-family: 'JetBrains Mono', monospace;
    font-size: 15px;
    color: var(--text-body);
    margin-bottom: 50px;
}

.breadcrumb-muted {
    color: var(--text-muted);
}

/* ── Title ── */
.paper-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-body);
    margin-bottom: 10px;
}

.paper-subtitle {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--text-body);
    margin-bottom: 40px;
}

/* ── Authors ── */
.authors {
    margin-bottom: 50px;
}

.author-names {
    font-size: 15px;
    font-weight: 400;
    margin-bottom: 20px;
}

.author-meta {
    display: grid;
    grid-template-columns: 140px 140px 140px;

    /* one entry per column, all the same width = the rhythm */
}

.meta-col {
    display: flex;
    flex-direction: column;
    gap: px;
}

.meta-label {
    font-size: 15px;
    font-weight: 300;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    color: var(--text-body-light);
    padding-bottom: 10px;
}

.meta-value {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
}

/* ── Figure (works both standalone and inside .body) ── */
.figure {
    margin: 2em 0;
}

.figure img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 16px;
    cursor: zoom-in;
}

.figure img:hover {
    opacity: 0.9;
}

.figure figcaption {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-body);
    padding-left: 30px;
}

.figure figcaption strong {
    display: block;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 8px;
}

.figure figcaption a {
    color: var(--accent-blue);
}

/* Intro paragraph before first heading — slightly larger */
.body .body-intro {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 1.5em;
}

/* ── Body ── */
.body {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-body);
}

.body h2 {
    font-size: 20px;
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 0.8em;
    color: var(--text-body);
}

.body h2:first-child {
    margin-top: 0;
}

.body p {
    margin-bottom: 1.2em;
}

.body strong {
    font-weight: 700;
}

.body a {
    color: var(--accent-blue);
    font-weight: 700;
}

.body blockquote {
    border-left: 4px solid rgba(32, 33, 34, 0.30);
    padding-left: 24px;
    margin: 1.5em 0;
}

.body blockquote p {
    color: var(--text-body);
}
