:root {
  color-scheme: light;
  --ink: #1f2522;
  --muted: #5f6864;
  --line: #d9e3dd;
  --paper: #fbfcfa;
  --white: #ffffff;
  --green: #547d46;
  --green-dark: #315c36;
  --ruby: #9b2743;
  --gold: #c88a2f;
  --mint: #edf5ef;
  --rose: #f8eef1;
  --shadow: 0 20px 50px rgba(31, 37, 34, 0.08);
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(20px, 5vw, 64px);
  background: rgba(251, 252, 250, 0.93);
  border-bottom: 1px solid rgba(217, 227, 221, 0.82);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a {
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
  border-color: var(--ruby);
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: clamp(34px, 5vw, 64px);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px) clamp(20px, 5vw, 36px)
    clamp(72px, 9vw, 112px);
  align-items: start;
}

.profile-sidebar,
.content-main {
  min-width: 0;
}

.profile-card {
  padding: 4px 0;
}

.profile-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 26px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--ruby);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 3vw, 3rem);
  line-height: 0.95;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.03rem;
  line-height: 1.3;
  letter-spacing: 0;
}

.profile-info {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
}

.profile-info div {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.profile-info dt {
  margin-bottom: 3px;
  color: var(--ruby);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.profile-info dd {
  margin: 0;
  color: var(--ink);
  font-weight: 750;
  line-height: 1.45;
}

.profile-links {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.profile-link {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.profile-link:hover,
.profile-link:focus-visible {
  color: var(--green-dark);
}

.link-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--green-dark);
}

.link-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.visit-counter {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.visit-counter img {
  display: block;
  width: auto;
  height: 20px;
}

.section {
  padding: clamp(24px, 4vw, 44px) 0 clamp(64px, 8vw, 96px);
}

.research-section {
  padding-bottom: clamp(34px, 5vw, 56px);
}

.section-soft {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.section-inner {
  min-width: 0;
  max-width: var(--max);
  margin: 0 auto;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.research-panel {
  max-width: 840px;
  padding: 2px 0 0;
}

.research-panel p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.03rem, 1.35vw, 1.12rem);
  line-height: 1.72;
}

.research-panel a {
  color: var(--green-dark);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.underlined-term {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.publication-group {
  margin-top: 38px;
}

.publication-group h3 {
  margin-bottom: 14px;
  color: var(--green-dark);
  font-size: 1.12rem;
}

.publication {
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.publication + .publication {
  margin-top: 12px;
}

.pub-title {
  margin-bottom: 6px;
  color: var(--ink);
  font-weight: 850;
  line-height: 1.35;
}

.pub-meta {
  margin-bottom: 0;
  color: var(--muted);
}

.pub-meta span {
  color: var(--ruby);
  font-weight: 750;
}

.info-section {
  padding-top: 0;
}

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

.info-item {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.info-year {
  margin-bottom: 0;
  color: var(--ruby);
  font-weight: 850;
}

.info-item h3 {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.info-item p {
  margin-bottom: 4px;
}

.muted {
  color: var(--muted);
}

:focus-visible {
  outline: 3px solid rgba(200, 138, 47, 0.72);
  outline-offset: 3px;
}

@media (min-width: 901px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  .page-layout {
    height: calc(100vh - 72px);
    overflow: hidden;
    padding-bottom: clamp(28px, 4vw, 48px);
  }

  .profile-sidebar {
    height: 100%;
  }

  .profile-card {
    height: 100%;
  }

  .content-main {
    height: 100%;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-gutter: stable;
  }
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .page-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 12px 18px;
  }

  .page-layout {
    padding-inline: 18px;
  }

  h1 {
    font-size: clamp(2.65rem, 13vw, 3.45rem);
  }

  .profile-card {
    padding: 18px;
  }

  .publication {
    padding: 18px;
  }

  .info-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
