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

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.18s; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1e293b;
    line-height: 1.7;
    background: #fafafa;
}

a { color: #7c3aed; text-decoration: none; }
a:hover { text-decoration: underline; }

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 54px;
    padding: 0 2.5rem;
    background: rgba(13, 8, 32, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.nav-name { color: #fff; font-size: 1.05rem; font-weight: 600; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1.35rem; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.65); font-size: 0.8rem; font-weight: 500; white-space: nowrap; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-links a.active { color: #c4b5fd; }

.highlight-hero {
    padding: 94px 1.5rem 36px;
    color: #fff;
    text-align: left;
    background: linear-gradient(140deg, #0d0820 0%, #2e1065 45%, #5b21b6 100%);
}

.highlight-hero-inner { max-width: 880px; margin: 0 auto; }
.highlight-hero h1 { max-width: 820px; font-size: 2.3rem; line-height: 1.28; }

.wave-wrap { line-height: 0; background: linear-gradient(140deg, #0d0820 0%, #2e1065 45%, #5b21b6 100%); }
.wave-wrap svg { display: block; }

.page-body { padding: 2.5rem 0 5rem; }
.container { max-width: 780px; margin: 0 auto; padding: 0 2rem; }
.publication-citation {
    margin-bottom: 1.5rem;
    padding: 0 0 1.15rem;
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.68;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #e9e3f8;
    border-radius: 0;
}
.publication-citation a { font-weight: 600; white-space: nowrap; }
.highlight-copy p { margin-bottom: 0.95rem; color: #4b5563; font-size: 0.92rem; line-height: 1.82; }
.highlight-copy p:last-child { margin-bottom: 0; }
.back-link { display: inline-flex; align-items: center; gap: 0.42rem; margin-top: 2.2rem; font-size: 0.82rem; font-weight: 600; }

footer { padding: 2rem; color: #94a3b8; font-size: 0.8rem; text-align: center; border-top: 1px solid #ede9fe; }
footer a { color: #94a3b8; }

@media (min-width: 1024px) {
    .highlight-hero { padding-top: 108px; padding-bottom: 44px; }
    .highlight-hero-inner { max-width: 1180px; }
    .highlight-hero h1 { max-width: 1120px; font-size: 2.7rem; line-height: 1.25; }

    .page-body { padding-top: 3rem; }
    .container { max-width: 1120px; padding-right: 2rem; padding-left: 2rem; }
    .publication-citation { font-size: 0.92rem; line-height: 1.72; }
    .highlight-copy p { font-size: 1.04rem; line-height: 1.85; }
    .back-link { font-size: 0.92rem; }
}

@media (max-width: 768px) {
    nav {
        display: block;
        height: 84px;
        min-height: 0;
        padding: 0.55rem 1rem 0.45rem;
        overflow: hidden;
    }
    .nav-name { display: block; width: max-content; margin: 0 auto 0.35rem; font-size: 0.98rem; line-height: 1.35; }
    .nav-links {
        width: calc(100% + 2rem);
        margin: 0 -1rem;
        padding: 0 1rem 0.15rem;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 1rem;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        -webkit-mask-image: linear-gradient(to right, transparent, #000 14px, #000 calc(100% - 14px), transparent);
        mask-image: linear-gradient(to right, transparent, #000 14px, #000 calc(100% - 14px), transparent);
    }
    .nav-links::-webkit-scrollbar { display: none; }
    .nav-links li { flex: 0 0 auto; }
    .nav-links a { position: relative; padding-bottom: 0.3rem; font-size: 0.74rem; }
    .nav-links a.active::after {
        content: '';
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        height: 2px;
        border-radius: 2px;
        background: #a78bfa;
    }
    .highlight-hero { padding: 108px 1.1rem 32px; }
    .highlight-hero h1 { font-size: 1.75rem; }
    .page-body { padding: 2rem 0 3.5rem; }
    .container { padding: 0 1.1rem; }
}

@media (max-width: 480px) {
    .highlight-hero { padding-right: 0.95rem; padding-left: 0.95rem; }
    .highlight-hero h1 { font-size: 1.58rem; }
    .container { padding: 0 0.95rem; }
    .publication-citation { overflow-wrap: anywhere; }
    .highlight-copy p { font-size: 0.88rem; }
    footer { padding: 1.5rem 1rem; }
}
