:root {
    --navy: #9a3f08;
    --navy-deep: #612500;
    --blue: #d85b0b;
    --sky: #fff0e2;
    --ink: #2d211b;
    --muted: #715f54;
    --line: #ead8ca;
    --paper: #ffffff;
    --wash: #fff8f2;
    --accent: #ffb347;
    --shadow: 0 18px 50px rgba(117, 47, 5, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-deep); }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 999; top: 8px; left: 8px; padding: 10px 14px; background: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.profile-hero { position: relative; overflow: hidden; padding: 72px 0 64px; background: linear-gradient(115deg, #fff0e2 0%, #fff 56%, #ffead8 100%); }
.profile-hero::after { content: ""; position: absolute; inset: auto -8vw -180px auto; width: 500px; height: 500px; border: 90px solid rgba(216,91,11,.08); border-radius: 50%; pointer-events: none; }
.profile-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; align-items: center; }
.portrait-panel { display: flex; flex-direction: column; align-items: stretch; }
.portrait-panel img { display: block; width: 240px; height: 240px; margin-inline: auto; object-fit: cover; object-position: center 19%; border: 8px solid white; border-radius: 50%; box-shadow: var(--shadow); }
.primary-button { display: block; margin-top: 18px; padding: 13px 18px; color: white; background: var(--blue); font-weight: 700; text-align: center; text-decoration: none; }
.primary-button:hover { color: white; background: var(--navy); }
.external-links { display: grid; gap: 8px; padding-top: 18px; }
.external-links a { font-size: .92rem; font-weight: 600; text-decoration: none; }
.profile-details { padding-top: 0; }
.eyebrow, .section-kicker { margin: 0 0 12px; color: var(--blue); font-size: .76rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; color: var(--navy-deep); font-family: "Libre Franklin", Inter, sans-serif; line-height: 1.16; }
h1 { max-width: 760px; margin-bottom: 18px; font-size: clamp(2.5rem, 5.5vw, 4.9rem); letter-spacing: -.045em; }
h2 { margin-bottom: 24px; font-size: clamp(1.8rem, 3vw, 2.7rem); letter-spacing: -.025em; }
h3 { font-size: 1.28rem; }
.role { margin: 0 0 20px; color: #6d4935; font-size: 1.35rem; font-weight: 500; }
.affiliations { margin: 0 0 30px; padding: 0; list-style: none; color: var(--navy); font-weight: 600; }
.affiliations li + li { margin-top: 5px; }
.contact-list { display: grid; gap: 14px; margin: 0; padding-top: 24px; border-top: 1px solid rgba(154,63,8,.22); }
.contact-list div { display: grid; grid-template-columns: 90px 1fr; gap: 18px; }
.contact-list dt { color: var(--muted); font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.contact-list dd { margin: 0; }
.contact-list a { font-weight: 600; }

.profile-nav { position: sticky; z-index: 10; top: 0; background: white; border-bottom: 1px solid var(--line); box-shadow: 0 6px 18px rgba(97,37,0,.06); }
.profile-nav ul { display: flex; gap: 4px; overflow-x: auto; margin: 0; padding: 0; list-style: none; scrollbar-width: thin; }
.profile-nav a { display: flex; gap: 8px; align-items: center; min-height: 66px; padding: 0 20px; color: var(--muted); font-weight: 600; white-space: nowrap; text-decoration: none; border-bottom: 3px solid transparent; }
.profile-nav a:hover, .profile-nav a.active { color: var(--blue); border-color: var(--blue); }
.count { color: #7b8792; }

.content-section { padding: 86px 0; scroll-margin-top: 66px; }
.content-section.shaded { background: var(--wash); }
.content-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 64px; align-items: start; }
.lead { max-width: 760px; margin: 7px 0 0; color: #59483e; font-size: 1.16rem; line-height: 1.85; }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading-row h2 { margin-bottom: 0; }
.result-count { color: var(--muted); font-size: .9rem; font-weight: 600; }
.publication-list { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: publication; }
.publication-card { position: relative; padding: 30px 34px 28px 78px; background: white; border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(117,47,5,.06); }
.publication-card::before { counter-increment: publication; content: counter(publication, decimal-leading-zero); position: absolute; top: 31px; left: 28px; color: var(--blue); font: 700 .8rem/1 Inter, sans-serif; letter-spacing: .05em; }
.publication-card h3 { margin: 11px 0 12px; }
.publication-card p { margin: 0; color: var(--muted); }
.publication-meta { display: flex; gap: 10px; color: var(--blue); font-size: .76rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.publication-meta span + span::before { content: "•"; margin-right: 10px; color: #97a5b0; }
.project-card { max-width: 940px; padding: 38px 42px; background: var(--navy-deep); color: white; box-shadow: var(--shadow); }
.project-card h3 { max-width: 820px; margin: 16px 0 24px; color: white; font-size: clamp(1.35rem, 2.6vw, 2.1rem); text-transform: none; }
.project-card ul { display: grid; gap: 8px; margin: 0; padding-left: 20px; color: #ffead8; }
.project-status { color: #ffc27a; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.site-footer { padding: 44px 0; color: #ffead8; background: var(--navy-deep); }
.footer-row { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.footer-row p { margin: 0; }
.footer-row a { color: white; font-weight: 600; }

@media (max-width: 780px) {
    .container { width: min(100% - 28px, 680px); }
    .profile-hero { padding: 38px 0 44px; }
    .profile-grid { grid-template-columns: 1fr; gap: 24px; }
    .portrait-panel { display: grid; grid-template-columns: 150px 1fr; gap: 12px 18px; align-items: center; }
    .portrait-panel img { grid-row: 1 / span 2; width: 146px; height: 146px; border-width: 6px; }
    .portrait-panel .primary-button { margin-top: 0; }
    .external-links { padding-top: 4px; align-self: start; }
    .profile-details { padding-top: 6px; }
    h1 { font-size: clamp(2.15rem, 12vw, 3.6rem); }
    .role { font-size: 1.12rem; }
    .contact-list div { grid-template-columns: 1fr; gap: 2px; }
    .contact-list dd { overflow-wrap: anywhere; }
    .content-section { padding: 62px 0; }
    .content-grid { grid-template-columns: 1fr; gap: 4px; }
    .publication-card { padding: 26px 24px 24px 60px; }
    .publication-card::before { left: 20px; top: 28px; }
    .project-card { padding: 30px 24px; }
    .footer-row { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 470px) {
    .portrait-panel { grid-template-columns: 112px 1fr; }
    .portrait-panel img { width: 108px; height: 108px; }
    .primary-button { padding: 10px; font-size: .88rem; }
    .external-links a { font-size: .82rem; }
    .section-heading-row { align-items: flex-start; flex-direction: column; }
    .profile-nav a { padding-inline: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
