:root {
    --page: #f5f5f4;
    --surface: #ffffff;
    --ink: #252525;
    --muted: #6a6a67;
    --accent: #9b6b42;
    --accent-strong: #754a29;
    --accent-soft: #f6efe7;
    --panel: #f7f7f5;
    --line: #deded9;
    --frame: transparent;
    --shadow: none;
    --serif: Georgia, "Times New Roman", serif;
    --sans: Inter, "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { min-width: 320px; }

body {
    min-height: 100vh;
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.62;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent-strong);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover { color: var(--ink); }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 3px; }
[hidden] { display: none !important; }

.site-shell {
    width: min(1320px, calc(100% - 48px));
    min-height: calc(100vh - 48px);
    margin: 24px auto;
    overflow: clip;
    border: 1px solid var(--frame);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    backdrop-filter: blur(12px);
}

.nav-inner {
    width: min(1160px, calc(100% - 56px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 34px;
}

.brand {
    flex: 0 0 auto;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-links {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    white-space: nowrap;
    scrollbar-width: thin;
}

.nav-link {
    flex: 0 0 auto;
    padding: 8px 11px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
}

.nav-link:hover {
    border-color: var(--line);
    color: var(--accent-strong);
}

.nav-link[aria-current="page"] {
    border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
    background: var(--accent-soft);
    color: var(--ink);
    font-weight: 650;
}

.profile-layout {
    width: min(1160px, calc(100% - 72px));
    margin: 0 auto;
    padding: 58px 0 78px;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 76px;
    align-items: start;
}

.profile-column {
    position: sticky;
    top: 104px;
    align-self: start;
}

.portrait {
    width: 214px;
    aspect-ratio: 1;
    margin: 0 auto 25px;
    border: 5px solid var(--surface);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(34, 34, 34, 0.12);
}

.profile-name {
    margin-bottom: 5px;
    font-family: var(--serif);
    font-size: clamp(1.9rem, 3vw, 2.1rem);
    line-height: 1.12;
    text-align: center;
}

.profile-role {
    margin-bottom: 2px;
    color: var(--accent-strong);
    font-weight: 650;
    text-align: center;
}

.profile-school {
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 0.91rem;
    line-height: 1.5;
    text-align: center;
}

.profile-links {
    display: flex;
    justify-content: center;
    gap: 17px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.profile-links a {
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 650;
    text-decoration: none;
}

.profile-links a:hover { color: var(--accent-strong); text-decoration: underline; }

.profile-panels { display: grid; gap: 13px; }

.profile-panel {
    padding: 17px 18px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--panel);
}

.profile-panel h2 {
    margin-bottom: 9px;
    font-family: var(--sans);
    font-size: 0.94rem;
    font-weight: 750;
}

.profile-panel p {
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 0.87rem;
    line-height: 1.5;
}

.profile-panel p:last-child { margin-bottom: 0; }
.focus-name { color: var(--accent-strong) !important; font-weight: 650; }
.compact-list { display: grid; gap: 4px; color: var(--muted); font-size: 0.86rem; line-height: 1.45; }

.main-column {
    min-width: 0;
    min-height: 630px;
}

.page-panel { animation: panel-in 180ms ease-out; }

@keyframes panel-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
    margin-bottom: 8px;
    color: var(--accent-strong);
    font-size: 0.76rem;
    font-weight: 750;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.page-title {
    margin-bottom: 25px;
    font-family: var(--serif);
    font-size: clamp(1.85rem, 4vw, 2.45rem);
    line-height: 1.16;
}

.page-title::after {
    content: "";
    display: block;
    width: 70px;
    height: 2px;
    margin-top: 11px;
    background: var(--accent);
}

.lead {
    max-width: 760px;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 1.06rem;
}

.subheading {
    margin: 36px 0 17px;
    font-family: var(--serif);
    font-size: 1.4rem;
    line-height: 1.25;
}

.subheading:first-child { margin-top: 0; }

.home-intro {
    max-width: 770px;
    margin-bottom: 31px;
    color: var(--muted);
    font-size: 1.05rem;
}

.home-intro strong { color: var(--ink); }

.quick-grid,
.research-list,
.publication-list,
.award-list,
.education-list {
    display: grid;
    gap: 14px;
}

.quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.award-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.quick-card,
.research-card,
.publication-card,
.award-card,
.contact-card {
    padding: 19px 21px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.quick-card:first-child,
.research-card.featured { border-left: 4px solid var(--accent); }

.quick-label,
.card-domain,
.award-year {
    display: block;
    margin-bottom: 5px;
    color: var(--accent-strong);
    font-size: 0.74rem;
    font-weight: 750;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.quick-card h3,
.research-card h3,
.publication-card h3,
.award-card h3 {
    margin-bottom: 5px;
    font-size: 1.04rem;
    line-height: 1.35;
}

.quick-card p,
.research-card p,
.publication-card p,
.award-card p {
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 0.91rem;
}

.quick-card p:last-child,
.research-card p:last-child,
.publication-card p:last-child,
.award-card p:last-child { margin-bottom: 0; }

.card-status {
    color: var(--accent-strong) !important;
    font-size: 0.87rem !important;
    font-weight: 650;
}

.contribution { color: var(--ink) !important; }

.updates { border-top: 1px solid var(--line); }

.update-item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 18px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.update-item time {
    color: var(--accent-strong);
    font-size: 0.83rem;
    font-weight: 750;
}

.update-item p { margin-bottom: 0; color: var(--muted); font-size: 0.91rem; }

.education-item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.education-item:first-child { padding-top: 0; }

.institution-logo {
    width: 64px;
    height: 64px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface);
    object-fit: contain;
}

.education-item h3 { margin-bottom: 2px; font-size: 1.06rem; }
.degree { margin-bottom: 1px; color: var(--muted); }
.date-line { margin-bottom: 0; color: var(--accent-strong); font-size: 0.88rem; font-weight: 650; }

.timeline {
    margin-left: 7px;
    border-left: 2px solid color-mix(in srgb, var(--accent) 60%, var(--line));
}

.experience-item {
    position: relative;
    padding: 0 0 32px 29px;
}

.experience-item:last-child { padding-bottom: 0; }

.experience-item::before {
    content: "";
    position: absolute;
    top: 7px;
    left: -7px;
    width: 12px;
    height: 12px;
    border: 3px solid var(--surface);
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.experience-item h3 { margin-bottom: 2px; font-size: 1.07rem; line-height: 1.35; }
.experience-role { margin-bottom: 1px; color: var(--muted); }
.experience-date { margin-bottom: 7px; color: var(--accent-strong); font-size: 0.87rem; font-weight: 650; }
.experience-detail { max-width: 760px; margin-bottom: 0; color: var(--muted); font-size: 0.92rem; }

.contact-card p { margin-bottom: 14px; color: var(--muted); }
.contact-links { display: flex; flex-wrap: wrap; gap: 20px; }
.contact-links a { font-weight: 650; }

.footer {
    padding: 20px 28px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.78rem;
    text-align: center;
}

@media (max-width: 980px) {
    .nav-inner { width: calc(100% - 36px); gap: 22px; }
    .nav-links { justify-content: flex-start; }
    .profile-layout { width: calc(100% - 48px); grid-template-columns: 245px minmax(0, 1fr); gap: 46px; }
    .portrait { width: 182px; }
    .quick-grid, .award-list { grid-template-columns: 1fr; }
}

@media (max-width: 740px) {
    .site-shell { width: 100%; min-height: 100vh; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
    .nav-inner { width: 100%; min-height: 62px; padding: 0 15px; }
    .brand { display: none; }
    .nav-link { padding: 7px 10px; }
    .profile-layout { width: min(100% - 32px, 680px); padding: 36px 0 58px; grid-template-columns: 1fr; gap: 50px; }
    .profile-column { position: static; }
    .portrait { width: 160px; }
    .profile-panels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .main-column { min-height: 0; }
}

@media (max-width: 520px) {
    .profile-panels { grid-template-columns: 1fr; }
    .education-item { grid-template-columns: 52px minmax(0, 1fr); gap: 14px; }
    .institution-logo { width: 52px; height: 52px; }
    .update-item { grid-template-columns: 1fr; gap: 3px; }
}

@media (prefers-reduced-motion: reduce) {
    .page-panel { animation: none; }
}
