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

:root {
    --bg: #0e0e10;
    --bg-card: #18181b;
    --fg: #e4e4e7;
    --fg-dim: #a1a1aa;
    --accent: #818cf8;
    --accent2: #6366f1;
    --border: #27272a;
    --radius: 8px;
    --mono: 'JetBrains Mono', ui-monospace, monospace;
    --sans: 'Inter', system-ui, -apple-system, sans-serif;
    --max-w: 780px
}

[data-theme=light] {
    --bg: #fafafa;
    --bg-card: #ffffff;
    --fg: #18181b;
    --fg-dim: #52525b;
    --accent: #6366f1;
    --accent2: #4f46e5;
    --border: #e4e4e7
}

html {
    font-size: 16px;
    scroll-behavior: smooth
}

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--fg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color .15s
}

a:hover {
    color: var(--accent2);
    text-decoration: underline
}

code,
pre {
    font-family: var(--mono);
    font-size: .9rem
}

pre {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    overflow-x: auto;
    margin: 1.5rem 0
}

code {
    background: var(--bg-card);
    padding: .15em .35em;
    border-radius: 4px
}

pre code {
    background: 0 0;
    padding: 0
}

h1,
h2,
h3,
h4 {
    font-family: var(--mono);
    font-weight: 600;
    line-height: 1.3;
    margin: 2rem 0 .75rem
}

h1 {
    font-size: 1.75rem
}

h2 {
    font-size: 1.35rem
}

h3 {
    font-size: 1.15rem
}

p {
    margin-bottom: 1rem
}

ul,
ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem
}

li {
    margin-bottom: .35rem
}

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

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius)
}

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh
}

.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem
}

.nav {
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 100;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px)
}

.nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between
}

.nav-brand {
    font-family: var(--mono);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--fg)
}

.nav-brand:hover {
    color: var(--accent);
    text-decoration: none
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center
}

.nav-links a {
    font-family: var(--mono);
    font-size: .85rem;
    color: var(--fg-dim);
    transition: color .15s
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
    text-decoration: none
}

.nav-hamburger {
    display: none;
    background: 0 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    padding: .5rem .45rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 36px;
    height: 36px;
    transition: border-color .15s
}

.nav-hamburger:hover {
    border-color: var(--accent)
}

.nav-hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--fg-dim);
    border-radius: 1px;
    transition: transform .25s ease, opacity .2s ease, background .15s
}

.nav-hamburger:hover span {
    background: var(--accent)
}

.nav-hamburger.open span:nth-child(1) {
    transform: translateY(6px)rotate(45deg)
}

.nav-hamburger.open span:nth-child(2) {
    opacity: 0
}

.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-6px)rotate(-45deg)
}

@media(max-width:700px) {
    .nav-hamburger {
        display: flex
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: .75rem 1.5rem 1rem
    }

    .nav-links.open {
        display: flex
    }

    .nav-links a {
        width: 100%;
        padding: .55rem 0;
        border-bottom: 1px solid var(--border);
        font-size: .9rem
    }

    .nav-links a:last-of-type {
        border-bottom: none
    }

    .nav-links .theme-toggle {
        margin-top: .5rem
    }

    .nav .container {
        position: relative
    }
}

.theme-toggle {
    background: 0 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--fg-dim);
    cursor: pointer;
    padding: .35rem .55rem;
    font-size: .9rem;
    transition: color .15s, border-color .15s;
    display: flex;
    align-items: center
}

.theme-toggle:hover {
    color: var(--accent);
    border-color: var(--accent)
}

main {
    flex: 1;
    padding: 2.5rem 0
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
    font-size: .8rem;
    color: var(--fg-dim)
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem
}

.social-links {
    display: flex;
    gap: .75rem;
    align-items: center
}

.social-links a {
    color: var(--fg-dim);
    transition: color .15s
}

.social-links a:hover {
    color: var(--accent)
}

.social-links svg {
    width: 18px;
    height: 18px;
    fill: currentColor
}

.hero {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 3rem
}

.hero-photo-wrap {
    position: relative;
    width: 200px;
    height: 260px
}

.hero-photo {
    position: relative;
    width: 200px;
    height: 260px;
    border-radius: var(--radius);
    object-fit: cover;
    transition: transform .3s
}

.hero-photo-wrap:hover .hero-photo {
    transform: scale(1.03)
}

.hero-greeting {
    font-family: var(--mono);
    font-size: .85rem;
    color: var(--accent);
    margin-bottom: .15rem;
    letter-spacing: .03em
}

.hero-text h1 {
    margin-top: 0;
    margin-bottom: .35rem;
    font-size: 2rem
}

.hero-role {
    font-family: var(--mono);
    font-size: .95rem;
    color: var(--fg-dim);
    margin-bottom: .15rem
}

.hero-affiliation {
    font-size: .88rem;
    color: var(--fg-dim);
    margin-bottom: .75rem
}

.hero-social {
    margin-top: .25rem
}

.hero-social .social-links a {
    color: var(--fg-dim);
    transition: color .15s, transform .15s
}

.hero-social .social-links a:hover {
    color: var(--accent);
    transform: translateY(-2px)
}

.hero-social .social-links svg {
    width: 20px;
    height: 20px
}

@media(max-width:600px) {
    .hero {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center
    }

    .hero-photo-wrap {
        width: 140px;
        height: 185px
    }

    .hero-photo {
        width: 140px;
        height: 185px
    }
}

.news-list {
    list-style: none;
    padding: 0
}

.news-list li {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: .75rem;
    padding: .6rem 0;
    border-bottom: 1px solid var(--border);
    font-size: .9rem
}

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

.news-date {
    font-family: var(--mono);
    color: var(--fg-dim);
    font-size: .8rem
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem
}

.project-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .2s, transform .2s;
    text-decoration: none;
    color: inherit
}

.project-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px)
}

.project-card-thumb {
    flex: 0 0 160px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--border)
}

.project-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.project-card-body {
    flex: 1;
    padding: 1.25rem;
    min-width: 0
}

.project-card h3 {
    margin: 0 0 .4rem;
    font-size: 1.05rem;
    color: var(--fg)
}

.project-card .meta {
    font-size: .8rem;
    color: var(--fg-dim);
    margin-bottom: .5rem;
    font-family: var(--mono)
}

.project-card .tldr {
    font-size: .88rem;
    color: var(--fg-dim);
    margin-bottom: .5rem
}

.project-card .excerpt {
    font-size: .88rem;
    color: var(--fg-dim)
}

@media(max-width:600px) {
    .project-card {
        flex-direction: column
    }

    .project-card-thumb {
        flex: none;
        height: 140px;
        width: 100%
    }
}

.tag {
    display: inline-block;
    font-size: .7rem;
    font-family: var(--mono);
    background: var(--border);
    color: var(--fg-dim);
    padding: .1rem .45rem;
    border-radius: 4px;
    margin-right: .3rem;
    margin-top: .4rem
}

.post-list {
    list-style: none;
    padding: 0
}

.post-list li {
    padding: .75rem 0;
    border-bottom: 1px solid var(--border)
}

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

.post-list .post-date {
    font-family: var(--mono);
    color: var(--fg-dim);
    font-size: .8rem
}

.post-list .post-title {
    font-family: var(--mono);
    font-size: 1rem;
    font-weight: 600
}

.article-header {
    margin-bottom: 2rem
}

.article-header h1 {
    margin-bottom: .25rem
}

.article-header .meta {
    font-size: .85rem;
    color: var(--fg-dim);
    font-family: var(--mono)
}

.article-content {
    line-height: 1.8
}

.article-content h2 {
    margin-top: 2.5rem
}

.cv-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between
}

.cv-title-left {
    display: flex;
    align-items: baseline;
    gap: .5rem
}

.cv-pdf-btn {
    display: inline-flex;
    color: var(--accent);
    transition: opacity .2s;
    translate: 0 .08em
}

.cv-pdf-btn:hover {
    opacity: .7
}

.cv-pdf-btn svg {
    width: 1.5em;
    height: 1.5em
}

.cv-title-social .social-links {
    justify-content: flex-end
}

.article-header>.text-dim {
    margin: 0;
    line-height: 1.5
}

.cv-section {
    margin-bottom: 2.5rem
}

.cv-section h2 {
    font-family: var(--mono);
    border-bottom: 1px solid var(--border);
    padding-bottom: .5rem;
    margin-bottom: 1rem;
    color: var(--accent)
}

.cv-entry {
    margin-bottom: 1.5rem
}

.cv-entry--indent {
    margin-left: 1.5rem;
    padding-left: 1rem;
    border-left: 2px solid var(--border)
}

.cv-entry h3 {
    font-size: 1rem;
    margin-bottom: .15rem;
    font-weight: 600
}

.cv-entry .cv-meta {
    font-size: .85rem;
    color: var(--fg-dim);
    font-family: var(--mono);
    margin-bottom: .35rem
}

.cv-entry ul {
    margin-top: .35rem;
    font-size: .9rem;
    color: var(--fg-dim)
}

.cv-entry ul li {
    margin-bottom: .2rem
}

.cv-lang-grid {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap
}

.cv-lang-grid span {
    font-family: var(--mono);
    font-size: .9rem
}

.bio {
    text-align: justify
}

.pub-year-section {
    margin-bottom: 2.5rem
}

.pub-year {
    font-family: var(--mono);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--fg-dim);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: .4rem
}

.pub-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: border-color .2s
}

.pub-card:hover {
    border-color: var(--accent)
}

.pub-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 .3rem;
    line-height: 1.4
}

.pub-meta {
    font-size: .85rem;
    color: var(--fg-dim);
    font-family: var(--mono);
    margin-bottom: .6rem;
    line-height: 1.5
}

.pub-meta strong {
    color: var(--fg)
}

.pub-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: .6rem
}

.pub-badge {
    display: inline-flex;
    align-items: center;
    font-family: var(--mono);
    font-size: .7rem;
    font-weight: 500;
    padding: .2rem .5rem;
    border-radius: 4px;
    border: 1px solid var(--border);
    color: var(--fg-dim);
    text-decoration: none;
    transition: border-color .2s, color .2s, background .2s
}

.pub-badge:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none
}

.pub-badge--paper {
    border-color: var(--accent);
    color: var(--accent)
}

.pub-badge--paper:hover {
    background: var(--accent);
    color: #fff
}

.pub-badge--arxiv {
    border-color: #b31b1b;
    color: #b31b1b
}

.pub-badge--arxiv:hover {
    background: #b31b1b;
    color: #fff;
    border-color: #b31b1b
}

.pub-badge--project:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent)
}

.pub-expand {
    margin-top: .5rem
}

.pub-expand summary {
    font-family: var(--mono);
    font-size: .8rem;
    color: var(--fg-dim);
    cursor: pointer;
    user-select: none;
    transition: color .15s
}

.pub-expand summary:hover {
    color: var(--accent)
}

.pub-expand summary::marker {
    color: var(--accent)
}

.pub-abstract {
    font-size: .88rem;
    color: var(--fg-dim);
    line-height: 1.6;
    margin-top: .5rem;
    padding: .75rem;
    background: var(--bg);
    border-radius: var(--radius);
    text-align: justify
}

.pub-bibtex-wrap {
    position: relative;
    margin-top: .5rem
}

.pub-bibtex {
    font-size: .78rem;
    margin: 0;
    background: var(--bg);
    border: 1px solid var(--border)
}

.pub-copy-btn {
    position: absolute;
    top: .5rem;
    right: .5rem;
    font-family: var(--mono);
    font-size: .7rem;
    background: var(--border);
    color: var(--fg-dim);
    border: none;
    border-radius: 4px;
    padding: .25rem .5rem;
    cursor: pointer;
    transition: background .15s, color .15s
}

.pub-copy-btn:hover {
    background: var(--accent);
    color: #fff
}

.project-header {
    margin-bottom: 2rem
}

.project-header h1 {
    margin-top: 0;
    margin-bottom: .5rem
}

.project-subtitle {
    font-family: var(--mono);
    font-size: .9rem;
    color: var(--fg-dim);
    margin-bottom: .75rem
}

.project-authors {
    font-size: .95rem;
    color: var(--fg-dim);
    margin-bottom: .25rem
}

.project-affiliation {
    font-size: .82rem;
    color: var(--fg-dim);
    font-style: italic;
    margin-bottom: 1rem
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin: 1.5rem 0 2rem
}

.project-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-family: var(--mono);
    font-size: .82rem;
    font-weight: 500;
    padding: .5rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    color: var(--fg);
    background: var(--bg-card);
    text-decoration: none;
    transition: border-color .2s, background .2s, transform .15s
}

.project-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
    transform: translateY(-1px)
}

.project-btn--primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff
}

.project-btn--primary:hover {
    background: var(--accent2);
    border-color: var(--accent2);
    color: #fff
}

.project-btn--arxiv {
    border-color: #b31b1b;
    color: #b31b1b
}

.project-btn--arxiv:hover {
    background: #b31b1b;
    color: #fff;
    border-color: #b31b1b
}

.project-body {
    line-height: 1.8
}

.project-body h2 {
    font-size: 1.25rem;
    margin: 2.5rem 0 .75rem;
    padding-bottom: .4rem;
    border-bottom: 1px solid var(--border)
}

.project-body h3 {
    font-size: 1.05rem;
    margin: 1.5rem 0 .5rem
}

.project-body figure {
    margin: 2rem 0;
    text-align: center
}

.project-body figure img,
.project-body figure video {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius)
}

.project-body figcaption {
    font-size: .85rem;
    color: var(--fg-dim);
    margin-top: .6rem;
    font-style: italic
}

.project-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: .9rem
}

.project-body th,
.project-body td {
    padding: .6rem .8rem;
    border: 1px solid var(--border);
    text-align: left
}

.project-body th {
    background: var(--bg-card);
    font-family: var(--mono);
    font-weight: 600;
    font-size: .82rem
}

.project-body .num {
    text-align: center
}

.project-body .best {
    font-weight: 600;
    color: var(--accent)
}

.callout {
    border-left: 3px solid var(--accent);
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: var(--fg-dim);
    font-size: .92rem
}

.project-citation {
    margin-top: 2.5rem
}

.project-citation h2 {
    font-size: 1.25rem;
    margin: 2.5rem 0 .75rem;
    padding-bottom: .4rem;
    border-bottom: 1px solid var(--border)
}

@media(max-width:600px) {
    .project-actions {
        flex-direction: column
    }

    .project-btn {
        justify-content: center
    }
}

.teaching-semester {
    font-family: var(--mono);
    font-size: 1rem;
    font-weight: 600;
    color: var(--fg-dim);
    margin: 1.5rem 0 .6rem
}

.teaching-entry {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: baseline;
    gap: .4rem .6rem;
    padding: .45rem 0;
    border-bottom: 1px solid var(--border)
}

.teaching-entry:last-child {
    border-bottom: none
}

.teaching-title {
    font-size: .92rem;
    font-weight: 500;
    min-width: 0
}

.teaching-semesters {
    display: flex;
    gap: .35rem;
    flex-shrink: 0;
    justify-self: end
}

.semester-tag {
    font-family: var(--mono);
    font-size: .75rem;
    color: var(--accent);
    opacity: .85;
    white-space: nowrap
}

.teaching-cosup {
    font-family: var(--mono);
    font-size: .78rem;
    color: var(--fg-dim);
    opacity: .7;
    white-space: nowrap;
    justify-self: end
}

.teaching-student {
    font-weight: 400;
    color: var(--fg-dim)
}

.teaching-meta {
    font-family: var(--mono);
    font-size: .8rem;
    color: var(--fg-dim);
    display: flex;
    align-items: center;
    gap: .35rem;
    flex-wrap: wrap
}

.type-badge {
    display: inline-block;
    font-family: var(--mono);
    font-size: .7rem;
    padding: .1rem .45rem;
    border-radius: 4px;
    background: var(--border);
    color: var(--fg-dim);
    min-width: 135px;
    text-align: center
}

.type-badge--master {
    background: var(--accent);
    color: #fff
}

.type-badge--bachelor {
    background: var(--border);
    color: var(--fg)
}

.type-badge--semester {
    background: var(--border);
    color: var(--fg-dim)
}

.teaching-legend {
    font-family: var(--mono);
    font-size: .78rem;
    color: var(--fg-dim);
    opacity: .7;
    font-weight: 400
}

.model-entry {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border)
}

.model-entry:last-child {
    border-bottom: none
}

.model-entry h3 {
    font-size: 1.05rem;
    margin: 0 0 .3rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap
}

.model-date {
    font-family: var(--mono);
    font-size: .82rem;
    font-weight: 400;
    color: var(--fg-dim)
}

.model-badge {
    display: inline-block;
    font-family: var(--mono);
    font-size: .65rem;
    font-weight: 600;
    padding: .15rem .45rem;
    border-radius: 4px;
    text-transform: uppercase
}

.model-badge--seminal {
    background: var(--accent);
    color: #fff
}

.model-meta {
    margin: .25rem 0;
    font-size: .92rem;
    line-height: 1.5
}

.model-tldr {
    font-size: .88rem;
    color: var(--fg-dim);
    line-height: 1.6;
    margin: .25rem 0 .5rem
}

.model-links {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin: .5rem 0
}

.model-link-btn {
    display: inline-flex;
    align-items: center;
    font-family: var(--mono);
    font-size: .78rem;
    font-weight: 500;
    padding: .3rem .7rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    color: var(--fg);
    background: var(--bg-card);
    text-decoration: none;
    transition: border-color .2s, background .2s
}

.model-link-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none
}

.rn-overview {
    margin-bottom: 2rem
}

.rn-subtopic {
    margin-bottom: 2.5rem
}

.rn-subtopic-heading {
    font-family: var(--mono);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--fg-dim);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: .4rem
}

.rn-subtopic-desc {
    font-size: .9rem;
    color: var(--fg-dim);
    margin-bottom: 1rem;
    line-height: 1.6
}

.rn-tldr {
    font-size: .88rem;
    color: var(--fg-dim);
    line-height: 1.6;
    margin-bottom: .6rem
}

.rn-card--seminal {
    border-left: 3px solid #eab308
}

[data-theme=light] .rn-card--seminal {
    border-left-color: #ca8a04
}

.rn-abbrev {
    font-weight: 700;
    color: var(--accent);
    font-family: var(--mono);
    font-size: .95em
}

.pub-badge--toggle {
    cursor: pointer;
    background: 0 0
}

.pub-badge--toggle.active {
    border-color: var(--accent);
    color: var(--accent)
}

.pub-panel--abstract,
.pub-panel--bibtex {
    display: none;
    margin-top: .6rem
}

.pub-panel--abstract.open,
.pub-panel--bibtex.open {
    display: block
}

.pub-badge--blog {
    border-color: #10b981;
    color: #10b981
}

.pub-badge--blog:hover {
    background: #10b981;
    color: #fff;
    border-color: #10b981
}

.pub-badge--model-card {
    border-color: #f59e0b;
    color: #f59e0b
}

.pub-badge--model-card:hover {
    background: #f59e0b;
    color: #fff;
    border-color: #f59e0b
}

.pub-badge--pdf {
    border-color: #ef4444;
    color: #ef4444
}

.pub-badge--pdf:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444
}

.pub-badge--hf {
    border-color: #ff9d00;
    color: #ff9d00
}

.pub-badge--hf:hover {
    background: #ff9d00;
    color: #fff;
    border-color: #ff9d00
}

.article-content details {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin: 1rem 0;
    transition: border-color .2s
}

.article-content details:hover {
    border-color: var(--accent)
}

.article-content details[open] {
    border-color: var(--accent)
}

.article-content details summary {
    font-family: var(--mono);
    font-size: .85rem;
    font-weight: 600;
    color: var(--accent);
    cursor: pointer;
    user-select: none;
    padding: .65rem 1rem;
    list-style: none;
    display: flex;
    align-items: center;
    gap: .5rem
}

.article-content details summary::-webkit-details-marker {
    display: none
}

.article-content details summary::before {
    content: '▸';
    font-size: .75rem;
    transition: transform .15s
}

.article-content details[open] summary::before {
    transform: rotate(90deg)
}

.article-content details>*:not(summary) {
    padding: 0 1rem
}

.article-content details>pre,
.article-content details>.highlight {
    margin: .5rem 1rem 1rem;
    border: none
}

.teaser {
    font-family: var(--mono);
    font-style: italic;
    font-size: .85rem;
    color: var(--accent);
    margin: -.5rem 0 1rem
}

.nl-subscribe {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 2rem;
    text-align: center
}

.nl-subscribe form {
    display: flex;
    gap: .5rem;
    justify-content: center;
    max-width: 400px;
    margin: 0 auto
}

.nl-subscribe input[type=email] {
    flex: 1;
    font-family: var(--mono);
    font-size: .85rem;
    padding: .5rem .75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--fg)
}

.nl-subscribe input[type=email]:focus {
    outline: none;
    border-color: var(--accent)
}

.nl-subscribe button {
    font-family: var(--mono);
    font-size: .82rem;
    font-weight: 600;
    padding: .5rem 1rem;
    border-radius: var(--radius);
    border: none;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    transition: background .2s
}

.nl-subscribe button:hover {
    background: var(--accent2)
}

.nl-subscribe-note {
    font-family: var(--mono);
    font-size: .75rem;
    color: var(--fg-dim);
    margin-top: .5rem
}

.nl-latest {
    margin-bottom: 2rem
}

.nl-latest-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: border-color .2s, transform .2s
}

.nl-latest-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    text-decoration: none
}

.nl-latest-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .5rem
}

.nl-latest-date {
    font-family: var(--mono);
    font-size: .8rem;
    color: var(--fg-dim)
}

.nl-latest-title {
    font-size: 1.15rem;
    margin: 0 0 .3rem;
    color: var(--fg)
}

.nl-latest-subtitle {
    font-size: .9rem;
    color: var(--fg-dim);
    margin: 0 0 .5rem;
    line-height: 1.5
}

.nl-latest-stats {
    font-family: var(--mono);
    font-size: .75rem;
    color: var(--fg-dim)
}

.nl-subtitle {
    font-size: .95rem;
    color: var(--fg-dim);
    line-height: 1.6;
    margin-top: .5rem
}

.nl-section {
    margin-bottom: 2rem
}

.nl-section-heading {
    font-family: var(--mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--fg-dim);
    margin-bottom: 1rem;
    padding-left: .75rem;
    border-left: 3px solid var(--accent)
}

.nl-item {
    position: relative
}

.nl-item--highlight {
    border-left: 3px solid var(--accent)
}

.nl-significance {
    display: inline-block;
    font-family: var(--mono);
    font-size: .65rem;
    font-weight: 600;
    padding: .15rem .45rem;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: .4rem
}

.nl-significance--breakthrough {
    background: var(--accent);
    color: #fff
}

.nl-summary {
    font-size: .9rem;
    color: var(--fg-dim);
    line-height: 1.6;
    margin-bottom: .5rem
}

.nl-context {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin: .5rem 0;
    transition: border-color .2s
}

.nl-context:hover {
    border-color: var(--accent)
}

.nl-context[open] {
    border-color: var(--accent)
}

.nl-context summary {
    font-family: var(--mono);
    font-size: .8rem;
    font-weight: 600;
    color: var(--accent);
    cursor: pointer;
    user-select: none;
    padding: .5rem .75rem;
    list-style: none;
    display: flex;
    align-items: center;
    gap: .4rem
}

.nl-context summary::-webkit-details-marker {
    display: none
}

.nl-context summary::before {
    content: '▸';
    font-size: .7rem;
    transition: transform .15s
}

.nl-context[open] summary::before {
    transform: rotate(90deg)
}

.nl-context-body {
    padding: 0 .75rem .75rem;
    font-size: .88rem;
    color: var(--fg-dim);
    line-height: 1.6
}

.nl-item-footer {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
    margin-top: .5rem
}

.nl-paradigm-chips,
.nl-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem
}

.nl-paradigms-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border)
}

.nl-paradigms-title {
    font-family: var(--mono);
    font-size: .9rem;
    color: var(--fg-dim);
    margin-bottom: .5rem
}

.nl-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0;
    padding: .75rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    font-family: var(--mono);
    font-size: .8rem
}

.nl-nav-link {
    color: var(--fg-dim);
    text-decoration: none;
    transition: color .15s
}

.nl-nav-link:hover {
    color: var(--accent);
    text-decoration: none
}

.nl-nav-archive {
    color: var(--accent)
}

.nl-badge {
    display: inline-block;
    font-family: var(--mono);
    font-size: .65rem;
    font-weight: 600;
    padding: .15rem .45rem;
    border-radius: 4px;
    text-transform: uppercase
}

.nl-badge--latest {
    background: var(--accent);
    color: #fff
}

@media(max-width:600px) {
    .nl-subscribe form {
        flex-direction: column
    }

    .nl-nav {
        font-size: .7rem;
        gap: .5rem
    }
}

.text-dim {
    color: var(--fg-dim)
}

.mt-1 {
    margin-top: .5rem
}

.mt-2 {
    margin-top: 1rem
}

.mb-2 {
    margin-bottom: 1rem
}