:root {
    --bg: #ffffff;
    --surface: #f7f7f5;
    --surface-raised: #f0f0ed;
    --text: #1a1a1a;
    --text-secondary: #555;
    --text-dim: #999;
    --border: rgba(0,0,0,0.08);
    --border-hover: rgba(0,0,0,0.16);

    /* prismatic spectrum */
    --spec-amber: #d4902a;
    --spec-rose: #cd4f65;
    --spec-violet: #7c52e6;
    --gradient-spec: linear-gradient(90deg, var(--spec-amber), var(--spec-rose), var(--spec-violet));

    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --radius: 10px;
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

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

html { background: var(--bg); scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.7;
    font-size: 15px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

.wrap {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 24px;
}

section { margin-bottom: 56px; }

/* spectral divider */
.spec-line {
    height: 2px;
    background: var(--gradient-spec);
    border: none;
    border-radius: 1px;
    opacity: 0.5;
}

/* ═══ Header ═══ */
.hero {
    padding: 72px 0 48px;
    text-align: center;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.hero h1 .prism-word {
    background: var(--gradient-spec);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto 28px;
    line-height: 1.65;
    font-weight: 300;
}

.authors {
    font-size: 0.92rem;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 2;
    font-weight: 400;
}

.authors a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: border-color 0.2s;
}

.authors a:hover { border-bottom-color: var(--spec-amber); }

.affiliations {
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-bottom: 4px;
}

.note {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-style: italic;
    margin-bottom: 20px;
}

.venue-badge {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 18px;
    border-radius: 20px;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.header-links {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.header-links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    background: var(--surface-raised);
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    font-family: var(--font-display);
    transition: border-color 0.2s, background 0.2s;
}

.header-links a:hover {
    border-color: var(--border-hover);
    background: #e8e8e4;
}

.header-links svg { width: 15px; height: 15px; }

/* ═══ Section titles ═══ */
.sec-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text);
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 14px;
}

.sec-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ═══ Full-width figures ═══ */
.fig { text-align: center; }

.fig img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.fig figcaption {
    margin-top: 14px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
    text-align: left;
}

/* ═══ Contributions ═══ */
.contribs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.contrib {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    position: relative;
    overflow: hidden;
}

.contrib::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gradient-spec);
}

.contrib h3 {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.contrib p {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ═══ Abstract ═══ */
.abstract {
    font-size: 0.98rem;
    line-height: 1.85;
    color: var(--text-secondary);
    text-align: justify;
    hyphens: auto;
}

.abstract strong { color: var(--text); font-weight: 500; }

/* ═══ Result cards ═══ */
.rcard {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 20px;
    transition: border-color 0.25s;
}

.rcard:hover { border-color: var(--border-hover); }

.rcard-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.rcard-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
}

.tag {
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 2px 10px;
    border-radius: 10px;
    border: 1px solid var(--border);
    color: var(--text-dim);
}

.rcard-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 16px;
}

.rcard img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.rcard img + img { margin-top: 14px; }

.rcard-cap {
    margin-top: 10px;
    font-size: 0.78rem;
    color: var(--text-dim);
    font-style: italic;
    text-align: center;
}

.rcard-sub {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 20px 0 10px;
}

/* ═══ BibTeX ═══ */
.bib {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.8rem;
    line-height: 1.65;
    color: var(--text-secondary);
    overflow-x: auto;
}

.bib pre { margin: 0; white-space: pre; }

/* ═══ Footer ═══ */
.foot {
    text-align: center;
    padding: 24px 0 52px;
    font-size: 0.78rem;
    color: var(--text-dim);
}

/* ═══ Responsive ═══ */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .contribs { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.6rem; }
    .sec-title { font-size: 1.15rem; }
    .header-links { flex-direction: column; align-items: center; }
}
