/* ═══════════════════════════════════════════════════════════════
   Minimalist AI Researcher — Single Page, No Scroll
   Inspired by academic personal pages (Karpathy, Lilian Weng)
   ═══════════════════════════════════════════════════════════════ */

:root {
    --bg:           #0c0c0c;
    --bg-subtle:    #111111;
    --text:         #d4d4d4;
    --text-dim:     #777777;
    --text-bright:  #eeeeee;
    --accent:       #8b9cf7;
    --accent-dim:   #5a6acf;
    --border:       #1e1e1e;
    --mono:         'IBM Plex Mono', 'SF Mono', 'Fira Code', monospace;
    --sans:         'IBM Plex Sans', -apple-system, system-ui, sans-serif;
}

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

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    color: var(--text-bright);
}

strong {
    color: var(--text-bright);
    font-weight: 600;
}

/* ── Page Layout — Two Columns ──────────────────────────────── */
.page {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 40px 24px;
    height: calc(100vh - 36px);
}

/* ── Left Column ─────────────────────────────────────────────── */
.col-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.identity h1 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-bright);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.tagline {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 4px;
    letter-spacing: 0.5px;
}

.bio {
    margin-top: 24px;
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.7;
}

.interests {
    margin-top: 28px;
}

.interests h2 {
    font-family: var(--mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-dim);
    margin-bottom: 10px;
}

.interests ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.interests li {
    font-size: 0.85rem;
    color: var(--text);
    padding-left: 16px;
    position: relative;
}

.interests li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-dim);
    font-family: var(--mono);
    font-size: 0.75rem;
}

/* ── Links Row ───────────────────────────────────────────────── */
.links {
    margin-top: 28px;
    font-family: var(--mono);
    font-size: 0.8rem;
}

.links a {
    color: var(--accent);
    padding: 2px 0;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}

.links a:hover {
    border-bottom-color: var(--accent);
}

.sep {
    color: var(--text-dim);
    margin: 0 8px;
}

/* ── Right Column ────────────────────────────────────────────── */
.col-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    scrollbar-width: none;
}

.col-right::-webkit-scrollbar {
    display: none;
}

.col-right h2 {
    font-family: var(--mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-dim);
    margin-bottom: 20px;
}

/* ── Project Cards ───────────────────────────────────────────── */
.project {
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.25s ease;
    margin-bottom: 6px;
}

.project:hover {
    background: var(--bg-subtle);
    border-color: var(--border);
}

.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.project-header a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-bright);
}

.project-header a:hover {
    color: var(--accent);
}

.project-title-plain {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-bright);
}

.project-meta {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    padding: 2px 8px;
    background: rgba(139, 156, 247, 0.06);
    border: 1px solid var(--border);
    border-radius: 4px;
    white-space: nowrap;
}

.project-wip {
    color: var(--text-dim);
    background: none;
    border-color: var(--border);
    font-style: italic;
}

.project p {
    font-size: 0.83rem;
    color: var(--text-dim);
    line-height: 1.55;
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 40px;
    text-align: center;
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--text-dim);
    background: var(--bg);
    border-top: 1px solid var(--border);
    letter-spacing: 0.3px;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 860px) {
    html, body {
        overflow: auto;
        height: auto;
    }

    .page {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 32px 24px 60px;
        height: auto;
    }

    .col-left {
        justify-content: flex-start;
    }

    .col-right {
        overflow: visible;
    }

    .footer {
        position: static;
    }
}

@media (max-width: 480px) {
    .page {
        padding: 24px 16px 60px;
    }

    .identity h1 {
        font-size: 1.3rem;
    }
}
