:root {
  --ink: #1e2429;
  --muted: #687077;
  --line: #e1e4e6;
  --soft: #f7f8f8;
  --accent: #315f75;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.nav-shell,
.page-shell,
.footer-shell {
  width: min(calc(100% - 44px), var(--max));
  margin: 0 auto;
}

.nav-shell {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.02em;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 28px;
}

nav a {
  color: #495159;
  font-size: .93rem;
  text-decoration: none;
}

nav a:hover,
.profile-links a:hover,
.text-button:hover {
  color: var(--accent);
}

.profile-section {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 78px;
  padding: 72px 0 96px;
  align-items: start;
}

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

.photo-frame {
  width: 100%;
  margin-bottom: 24px;
}

.photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  background: #eef1f2;
  border: 1px solid #e4e7e8;
}

.photo-placeholder span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.6rem;
  color: #81909a;
}

.identity-small h1 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.identity-small p {
  margin: 3px 0;
  color: #505960;
  font-size: .96rem;
  line-height: 1.5;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.profile-links a {
  color: #4c555c;
  font-size: .9rem;
  text-underline-offset: 3px;
}

.main-column {
  min-width: 0;
}

.content-section {
  padding: 6px 0 64px;
  margin-bottom: 58px;
  border-bottom: 1px solid var(--line);
}

.content-section:last-child { margin-bottom: 0; }

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: #20262b;
}

h2 {
  margin: 0 0 22px;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.03em;
}

h3 {
  margin: 0 0 7px;
  font-size: 1.23rem;
  line-height: 1.35;
}

p { margin: 0 0 18px; }

.intro {
  color: #30383e;
  font-size: 1.16rem;
  line-height: 1.72;
}

.interest-block {
  margin-top: 36px;
  padding: 22px 24px;
  background: var(--soft);
  border-left: 3px solid #c9d4d9;
}

.interest-block h3 {
  font-size: 1.05rem;
}

.interest-block p {
  margin-bottom: 0;
  color: #566068;
  font-size: .95rem;
}

.section-heading { margin-bottom: 34px; }

.research-item,
.teaching-item {
  padding: 26px 0 30px;
  border-top: 1px solid var(--line);
}

.research-item:first-of-type,
.teaching-item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.research-item p:last-child,
.teaching-item p:last-child {
  margin-bottom: 0;
}

.meta {
  margin: 0 0 11px;
  color: var(--muted);
  font-size: .87rem;
}

.cv-section {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 0;
  margin-bottom: 0;
}

.cv-section p:last-child { margin-bottom: 0; }

.text-button {
  white-space: nowrap;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

footer {
  border-top: 1px solid var(--line);
  background: #fafafa;
}

.footer-shell {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #737b81;
  font-size: .82rem;
}

@media (max-width: 820px) {
  .profile-section {
    grid-template-columns: 1fr;
    gap: 46px;
    padding-top: 46px;
  }

  .profile-column {
    position: static;
    display: grid;
    grid-template-columns: 170px 1fr;
    column-gap: 28px;
    align-items: start;
  }

  .photo-frame { grid-row: span 2; margin-bottom: 0; }
  .profile-links { align-self: end; }
}

@media (max-width: 620px) {
  .nav-shell,
  .page-shell,
  .footer-shell {
    width: min(calc(100% - 28px), var(--max));
  }

  nav { gap: 14px; }
  nav a { font-size: .85rem; }
  nav a:nth-child(3) { display: none; }

  .profile-column {
    grid-template-columns: 120px 1fr;
    column-gap: 20px;
  }

  .identity-small h1 { font-size: 1.65rem; }
  .identity-small p { font-size: .88rem; }

  .content-section {
    padding-bottom: 48px;
    margin-bottom: 44px;
  }

  .cv-section,
  .footer-shell {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-shell {
    padding: 22px 0;
    justify-content: center;
  }
}
