:root {
  --text: #30353a;
  --muted: #68717a;
  --link: #285f83;
  --rule: #d9dee3;
  --soft: #f5f7f8;
  --white: #ffffff;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; text-underline-offset: 0.18em; }
::selection { background: #dbeaf3; }

.skip-link {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 100;
  padding: 0.65rem 0.9rem;
  background: var(--text);
  color: white;
}
.skip-link:focus { top: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.96);
}

.header-inner {
  width: min(1080px, calc(100% - 2rem));
  min-height: 62px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2rem;
}

.site-name {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
  white-space: nowrap;
}
.site-name:hover, .site-name:focus-visible { text-decoration: none; }

.top-nav { display: flex; gap: 1.8rem; font-size: 0.91rem; }
.top-nav a { color: #4e565e; }

.page {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3.5rem 0 5rem;
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}

.profile { position: sticky; top: 6rem; }

.profile-photo {
  display: block;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  border: 1px solid var(--rule);
}

.profile h1 {
  margin: 1.25rem 0 0.2rem;
  color: #24282c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1.25;
}

.profile-role, .profile-location {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.profile-location { margin-top: 0.7rem; font-size: 0.84rem; }

.profile-links {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
}
.profile-links li { margin: 0.25rem 0; }
.profile-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
}
.profile-icon {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
  color: #4f5b64;
}
.profile-icon svg { display: block; width: 100%; height: 100%; }

.profile-icon .ai {
  font-size: 1rem;
  line-height: 1;
}

.content { min-width: 0; }

.content-section {
  padding: 0 0 3.25rem;
  margin-bottom: 3.25rem;
  border-bottom: 1px solid var(--rule);
}
.content-section:last-child { margin-bottom: 0; }

.content-section h2 {
  margin: 0 0 1.2rem;
  color: #24282c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  line-height: 1.25;
}
.content-section > p { margin: 0 0 1rem; }

.intro .lead {
  margin-top: 0;
  color: #30363c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  line-height: 1.55;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.2rem;
}
.section-heading h2 { margin-bottom: 0; }
.section-heading > a { flex: none; font-size: 0.88rem; }

.focus-list { margin: 0; padding-left: 1.2rem; }
.focus-list li { margin: 0.8rem 0; padding-left: 0.25rem; }

.publication-list { margin: 0; padding-left: 1.55rem; }
.publication { padding: 0 0 1.7rem 0.35rem; }
.publication:last-child { padding-bottom: 0; }
.publication::marker { color: #89939c; font-size: 0.85rem; }
.publication p { margin: 0; }
.publication-meta { color: var(--muted); font-size: 0.78rem; }
.publication h3 {
  margin: 0.2rem 0 0.35rem;
  color: #2e3338;
  font-size: 1rem;
  line-height: 1.45;
}
.publication-authors { color: #59626b; font-size: 0.86rem; line-height: 1.5; }
.publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  padding-top: 0.25rem;
  font-size: 0.82rem;
}

.subheading { margin: 2.4rem 0 0.8rem; color: #30353a; font-size: 1.05rem; }
.resume-list, .simple-list { border-top: 1px solid var(--rule); }

.resume-item {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}
.resume-item p { margin: 0; }
.resume-date { color: var(--muted); font-size: 0.78rem; }
.resume-item h3 { margin: 0; color: #30353a; font-size: 0.98rem; line-height: 1.4; }
.resume-place { color: #545d65; font-size: 0.86rem; }
.resume-detail {
  margin-top: 0.3rem !important;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.simple-row, .activity-row {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.9rem;
}
.simple-row span, .activity-row > span { color: var(--muted); font-size: 0.78rem; }
.simple-row p, .activity-row p { margin: 0; }
.activity-row strong { display: block; color: #30353a; font-size: 0.9rem; }
.activity-row p { color: var(--muted); font-size: 0.84rem; }

.contact { border-bottom: 0; padding-bottom: 0; }
.footer { border-top: 1px solid var(--rule); }
.footer p {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.78rem;
}

@media (max-width: 760px) {
  .page {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-top: 2.5rem;
  }
  .profile {
    position: static;
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    column-gap: 1.25rem;
    align-items: start;
  }
  .profile-photo {
    grid-row: 1 / span 5;
    width: 132px;
    height: 132px;
  }
  .profile h1 { margin-top: 0; }
  .profile-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
  }
}

@media (max-width: 540px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.65rem 0 0.7rem;
  }
  .top-nav {
    width: 100%;
    gap: 1.15rem;
    overflow-x: auto;
    font-size: 0.84rem;
  }
  .profile { grid-template-columns: 104px minmax(0, 1fr); }
  .profile-photo { width: 104px; height: 104px; }
  .profile h1 { font-size: 1.25rem; }
  .content-section { padding-bottom: 2.4rem; margin-bottom: 2.4rem; }
  .section-heading { display: block; }
  .section-heading h2 { margin-bottom: 0.25rem; }
  .resume-item, .simple-row, .activity-row { grid-template-columns: 1fr; gap: 0.2rem; }
}
