*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --bg: #ffffff;
    --bg2: #f7f7f5;
    --ink: #111110;
    --ink2: #555551;
    --ink3: #999994;
    --blue: #2563eb;
    --blue-hover: #1d4ed8;
    --blue-bg: #eff6ff;
    --blue-border: #bfdbfe;
    --border: #e8e8e4;
    --sans: "Inter", system-ui, sans-serif;
    --serif: "Lora", Georgia, serif;
}
html { 
    scroll-behavior: smooth; 
    font-size: 15px; 
}
body { 
    font-family: var(--sans); 
    background: var(--bg); 
    color: var(--ink); 
    line-height: 1.6; 
    -webkit-font-smoothing: antialiased; 
}
.page { 
    max-width: 780px; 
    margin: 0 auto; 
    padding: 0 2rem; 
}
nav { position: sticky; top: 0; z-index: 100; background: var(--bg); padding: 1.6rem 0; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); margin-bottom: 3.5rem; }
.nav-name { font-size: 0.88rem; font-weight: 500; color: var(--ink); text-decoration: none; letter-spacing: 0.01em; }
.nav-links { display: flex; gap: 1.6rem; list-style: none; }
.nav-links a {
    font-size: 0.82rem; color: var(--ink3); text-decoration: none;
    transition: color 0.15s;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}
.nav-links a:hover { color: var(--blue); border-bottom-color: var(--blue-border); }
.nav-links a.active { color: var(--blue); border-bottom-color: var(--blue); }
.hero { display: grid; grid-template-columns: 1fr auto; gap: 2.5rem; align-items: start; padding-bottom: 3rem; border-bottom: 1px solid var(--border); margin-bottom: 3rem; }
h1 { font-family: var(--serif); font-size: 2.1rem; font-weight: 400; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 1rem; }
.hero-bio { font-size: 0.95rem; color: var(--ink2); line-height: 1.75; max-width: 520px; margin-bottom: 1.5rem; }
.hero-links { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.link-pill { font-size: 0.78rem; font-weight: 500; color: var(--ink2); text-decoration: none; border: 1px solid var(--border); padding: 5px 12px; border-radius: 999px; transition: border-color 0.15s, color 0.15s; display: flex; align-items: center; gap: 5px; }
.link-pill:hover { border-color: var(--blue); color: var(--blue); }
.link-pill svg { width: 13px; height: 13px; opacity: 0.6; }
.avatar-wrap {
    width: 140px;
    height: 170px;
    border-radius: 6px;
    background: var(--blue-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--blue-border);
    overflow: hidden;
}
.avatar-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-initials { font-family: var(--serif); font-size: 2rem; font-weight: 400; color: var(--blue); font-style: italic; }
section { margin-bottom: 3rem; }
.section-label {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 1.25rem;
    display: inline-block;
}
.sub-label { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink3); margin-bottom: 1rem; margin-top: 1.5rem; display: block; }
.interests { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.tag { font-size: 0.78rem; color: var(--blue); background: var(--blue-bg); border: 1px solid var(--blue-border); padding: 3px 10px; border-radius: 4px; font-weight: 400; }
.item-list { display: flex; flex-direction: column; }
.item { padding: 1.1rem 0; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 1rem; }
.item:first-child { border-top: 1px solid var(--border); }
.item-title { font-size: 0.92rem; font-weight: 500; color: var(--ink); margin-bottom: 0.2rem; text-decoration: none; }
a.item-title:hover { color: var(--blue); }
.item-sub { font-size: 0.82rem; color: var(--ink3); line-height: 1.5; }
.item-badge { font-size: 0.7rem; font-weight: 500; padding: 2px 8px; border-radius: 3px; white-space: nowrap; flex-shrink: 0; }
.badge-paper { background: var(--blue-bg); color: var(--blue); border: 1px solid var(--blue-border); }
.badge-wip { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.news-date { font-size: 0.78rem; color: var(--blue); white-space: nowrap; font-variant-numeric: tabular-nums; }
.news-list { display: flex; flex-direction: column; gap: 0; }
.news-row { display: grid; grid-template-columns: 90px 1fr; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--border); align-items: baseline; }
.news-row:first-child { border-top: 1px solid var(--border); }
.news-row-date { font-size: 0.78rem; color: var(--blue); font-variant-numeric: tabular-nums; white-space: nowrap; flex-shrink: 0; }
.news-row-text { font-size: 0.88rem; color: var(--ink2); line-height: 1.55; }
footer { border-top: 1px solid var(--border); padding: 1.5rem 0 3rem; font-size: 0.75rem; color: var(--ink3); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
footer a { color: var(--blue); text-decoration: none; }
footer a:hover { text-decoration: underline; }
@media (max-width: 600px) {
  .hero { grid-template-columns: 1fr; flex-direction: column-reverse; display: flex; }
  .avatar-wrap { width: 200px; height: 240px; margin-bottom: 1.25rem; }
}