:root {
  --ink: #1f2933;
  --muted: #59636f;
  --quiet: #f1f3f5;
  --paper: #ffffff;
  --wash: #ffffff;
  --accent: #1f4e79;
  --accent-strong: #163a5b;
  --gold: #8a641f;
  --line: #d9dee5;
  --shadow: 0 6px 18px rgba(31, 41, 51, 0.05);
  --radius: 4px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(215, 221, 230, 0.9);
  backdrop-filter: blur(12px);
}

.nav {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0;
}

.brand span {
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.76rem;
  font-weight: 500;
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.nav-links a {
  color: #3f4755;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 6px 4px;
  margin-left: 14px;
  border-radius: 0;
  border-bottom: 2px solid transparent;
}

.nav-links a[aria-current="page"],
.nav-links a:hover {
  color: var(--accent-strong);
  background: transparent;
  border-bottom-color: var(--accent-strong);
  text-decoration: none;
}

main {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 235px;
  align-items: center;
  gap: 42px;
  padding: 42px 0 46px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

h1,
h2,
h3 {
  line-height: 1.18;
  letter-spacing: 0;
  margin: 0;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 3.45rem);
  font-weight: 500;
  max-width: 820px;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  font-weight: 500;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

h3 {
  font-size: 1.02rem;
}

.lead {
  color: #384352;
  font-size: clamp(1rem, 1.25vw, 1.08rem);
  max-width: 720px;
  margin: 18px 0 0;
}

.hero-actions,
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.academic-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
  margin-top: 22px;
  font-size: 0.98rem;
}

.academic-links a,
.text-link {
  font-weight: 650;
  color: var(--accent);
}

.academic-links a:not(:last-child)::after {
  content: "";
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.04);
}

.button.primary {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #fff;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.portrait-card {
  background: var(--paper);
  border: 0;
  border-radius: var(--radius);
  box-shadow: none;
  padding: 0;
}

.portrait-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid var(--line);
}

.quick-info {
  display: grid;
  gap: 9px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.quick-info strong {
  color: var(--ink);
}

.section {
  padding: 42px 0;
  border-top: 1px solid var(--line);
}

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

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 620px;
}

.bio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 36px;
  align-items: start;
}

.prose {
  color: #2b3445;
  font-size: 1rem;
}

.prose p {
  margin: 0 0 18px;
}

.research-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.publication-group + .publication-group {
  margin-top: 44px;
}

.publication-group > h2 {
  margin-bottom: 16px;
}

.research-chip-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

.chip {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 9px 0;
  color: #334155;
  font-weight: 600;
  font-size: 0.95rem;
}

.publication {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 16px 0;
}

.publication p {
  margin: 0;
}

.publication .status {
  display: inline-flex;
  margin-bottom: 5px;
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.page-title {
  padding: 56px 0 34px;
}

.page-title h1 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
}

.page-title p {
  color: var(--muted);
  max-width: 780px;
  font-size: 1.05rem;
}

.gallery-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
}

.gallery-entry {
  display: block;
  color: var(--ink);
  text-decoration: none;
}

.gallery-entry:hover {
  color: var(--ink);
  text-decoration: none;
}

.gallery-entry img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
}

.gallery-entry span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding-top: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.gallery-entry strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 500;
}

.gallery-entry small {
  color: var(--muted);
  font-size: 0.9rem;
}

.gallery-grid {
  columns: 2 420px;
  column-gap: 30px;
}

.gallery-grid figure {
  break-inside: avoid;
  margin: 0 0 30px;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

.gallery-grid figcaption,
.caption {
  padding: 9px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.feature-photo {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(260px, 0.6fr);
  gap: 22px;
  align-items: stretch;
}

.feature-photo img {
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: 2px;
}

.feature-copy {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 0;
}

.materials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.material {
  min-height: 170px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 44px;
  color: var(--muted);
  background: #ffffff;
  font-size: 0.9rem;
}

.site-footer .inner {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-separator {
  color: #9aa3af;
  margin: 0 6px;
}

.visitor-counter {
  display: flex;
  align-items: center;
}

.visitor-counter img {
  display: block;
  max-height: 22px;
  opacity: 0.72;
}

@media (max-width: 820px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px 0;
  }

  .hero,
  .bio-grid,
  .feature-photo {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .materials,
  .research-chip-grid,
  .gallery-index {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .nav,
  main,
  .site-footer .inner {
    width: min(100% - 28px, 1120px);
  }

  .nav-links a {
    padding: 7px 9px;
  }

  .hero-actions,
  .link-row {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
