:root {
  --ink: #14252a;
  --muted: #5f6f73;
  --paper: #fbfaf6;
  --paper-deep: #f2efe7;
  --white: #ffffff;
  --teal: #1d6870;
  --teal-dark: #173b43;
  --accent: #b85f42;
  --line: #dbe1df;
  --shadow: 0 24px 55px rgba(23, 59, 67, 0.12);
  --radius: 18px;
  --shell: 1120px;
}

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

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 8% 14%, rgba(29, 104, 112, 0.055), transparent 28rem),
    radial-gradient(circle at 92% 72%, rgba(184, 95, 66, 0.04), transparent 30rem);
  background-attachment: fixed;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 {
  color: var(--teal-dark);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.13;
  text-wrap: balance;
}

h1 { font-size: clamp(3rem, 7vw, 5.6rem); letter-spacing: -0.045em; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -0.028em; }
h3 { font-size: clamp(1.28rem, 2.5vw, 1.65rem); letter-spacing: -0.01em; }

.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.shell--narrow { width: min(calc(100% - 40px), 850px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--teal-dark);
  border-radius: 8px;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  background: rgba(251, 250, 246, 0.94);
  border-bottom: 1px solid rgba(23, 59, 67, 0.1);
  backdrop-filter: blur(14px);
}

.nav-shell { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--teal-dark); text-decoration: none; font-weight: 750; letter-spacing: -0.02em; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; color: var(--white); background: var(--teal-dark); border-radius: 50%; font-family: Georgia, serif; font-size: 0.9rem; }
.site-nav { display: flex; align-items: center; gap: 7px; }
.site-nav a { position: relative; padding: 8px 12px; color: var(--muted); border-radius: 8px; text-decoration: none; font-size: 0.93rem; font-weight: 650; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a.is-active { color: var(--teal-dark); background: rgba(29, 104, 112, 0.08); }
.site-nav a.is-active::after { position: absolute; right: 12px; bottom: 4px; left: 12px; height: 2px; content: ""; background: var(--accent); border-radius: 2px; }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 10px; background: transparent; border: 0; border-radius: 8px; cursor: pointer; }
.nav-toggle span:not(.sr-only) { display: block; width: 22px; height: 2px; margin: 4px auto; background: var(--teal-dark); transition: transform 180ms ease, opacity 180ms ease; }

.home-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(76px, 10vw, 132px) 0 98px; background: linear-gradient(135deg, rgba(29, 104, 112, 0.055), transparent 48%), linear-gradient(315deg, rgba(184, 95, 66, 0.035), transparent 42%); }
.home-hero::before { position: absolute; z-index: -2; top: -150px; right: -90px; width: 540px; height: 540px; content: ""; background: radial-gradient(circle, rgba(29, 104, 112, 0.15), transparent 68%); }
.home-hero::after { position: absolute; z-index: -1; top: 0; right: 0; width: min(58vw, 760px); height: 100%; content: ""; pointer-events: none; opacity: 0.72; background-image: linear-gradient(30deg, transparent 49.4%, rgba(29, 104, 112, 0.07) 50%, transparent 50.6%), linear-gradient(150deg, transparent 49.4%, rgba(29, 104, 112, 0.07) 50%, transparent 50.6%); background-size: 72px 72px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); mask-image: linear-gradient(90deg, transparent, #000 45%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.72fr); gap: clamp(55px, 9vw, 120px); align-items: center; }
.eyebrow, .section-label, .profile-kicker, .publication-date { color: var(--teal); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; }
.hero-copy h1 { max-width: 760px; margin-bottom: 16px; }
.hero-copy h1 span { color: var(--teal); }
.hero-role { margin-bottom: 28px; color: var(--accent); font-size: 1.13rem; font-weight: 750; letter-spacing: 0.015em; }
.hero-intro { max-width: 700px; color: #405358; font-size: 1.06rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 36px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 10px 21px; color: var(--white); background: var(--teal-dark); border: 1px solid var(--teal-dark); border-radius: 10px; text-decoration: none; font-weight: 750; box-shadow: 0 9px 22px rgba(23, 59, 67, 0.16); transition: transform 180ms ease, box-shadow 180ms ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); box-shadow: 0 13px 28px rgba(23, 59, 67, 0.21); }
.text-link { color: var(--teal); text-underline-offset: 5px; font-weight: 750; }
.text-link span { display: inline-block; transition: transform 180ms ease; }
.text-link:hover span { transform: translateX(4px); }

.profile-card { padding: 18px; background: var(--white); border: 1px solid rgba(23, 59, 67, 0.12); border-radius: 26px; box-shadow: var(--shadow); transform: rotate(1.2deg); }
.portrait-wrap { overflow: hidden; aspect-ratio: 4 / 4.5; background: var(--paper-deep); border-radius: 16px; }
.portrait { width: 100%; height: 100%; object-fit: cover; object-position: 28% 50%; }
.portrait-placeholder { position: relative; display: grid; width: 100%; height: 100%; place-items: center; color: var(--white); background: linear-gradient(145deg, var(--teal-dark), var(--teal)); }
.portrait-placeholder::before, .portrait-placeholder::after { position: absolute; content: ""; border: 1px solid rgba(255, 255, 255, 0.17); border-radius: 50%; }
.portrait-placeholder::before { width: 78%; aspect-ratio: 1; }
.portrait-placeholder::after { width: 48%; aspect-ratio: 1; }
.portrait-placeholder span { position: relative; z-index: 1; font-family: Georgia, serif; font-size: clamp(3rem, 8vw, 5rem); letter-spacing: -0.07em; }
.profile-details { padding: 22px 9px 5px; }
.profile-kicker { margin-bottom: 5px; }
.profile-main { margin-bottom: 17px; color: var(--teal-dark); font-size: 0.93rem; font-weight: 700; line-height: 1.45; }
.profile-main:last-child { margin-bottom: 0; }

.interest-section { padding: 88px 0; color: var(--white); background: var(--teal-dark); }
.section-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 8vw, 110px); align-items: center; }
.interest-section .section-label { color: #9bc8c9; }
.interest-section h2 { max-width: 480px; margin-bottom: 0; color: var(--white); }
.tag-list { display: flex; flex-wrap: wrap; gap: 12px; }
.tag-list span { padding: 11px 16px; color: #eff7f6; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; font-size: 0.92rem; font-weight: 650; }

.recent-section { padding: 98px 0 116px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 38px; }
.section-heading h2 { margin-bottom: 0; }
.publication-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.publication-card { height: 100%; padding: clamp(24px, 4vw, 35px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 35px rgba(23, 59, 67, 0.06); transition: transform 180ms ease, box-shadow 180ms ease; }
.publication-card:hover { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(23, 59, 67, 0.1); }
.publication-card h3 { margin-bottom: 17px; }
.publication-authors { color: #405358; font-size: 0.95rem; }
.publication-meta { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-top: 23px; padding-top: 18px; border-top: 1px solid var(--line); }
.publication-meta cite { color: var(--muted); font-size: 0.88rem; line-height: 1.45; }
.publication-meta a { flex: 0 0 auto; color: var(--teal); font-size: 0.88rem; font-weight: 800; text-underline-offset: 4px; }

.page-hero { padding: clamp(78px, 10vw, 126px) 0 clamp(55px, 7vw, 78px); background: radial-gradient(circle at 86% 20%, rgba(29, 104, 112, 0.09), transparent 24rem), repeating-linear-gradient(120deg, transparent 0 58px, rgba(29, 104, 112, 0.025) 58px 59px), linear-gradient(180deg, #f2f5f2, var(--paper)); border-bottom: 1px solid rgba(23, 59, 67, 0.08); }
.page-hero h1 { margin-bottom: 20px; }
.page-intro { max-width: 720px; margin-bottom: 0; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.27rem); }
.page-body { min-height: 50vh; padding-top: 66px; padding-bottom: 110px; }
.prose { color: #3e5055; }
.prose h2 { margin-top: 2.2em; margin-bottom: 0.75em; font-size: clamp(1.6rem, 3vw, 2.15rem); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { max-width: 750px; }
.prose a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.prose strong { color: var(--teal-dark); }
.prose code { padding: 0.12em 0.32em; background: var(--paper-deep); border-radius: 5px; font-size: 0.9em; }

.life-gallery { display: grid; grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr); gap: 18px; align-items: center; max-width: 850px; margin-top: 64px; }
.life-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 35px rgba(23, 59, 67, 0.08); }
.life-gallery img:first-child { aspect-ratio: 4 / 5; object-position: 50% 35%; }

.research-hero { padding-bottom: 64px; }
.research-list { padding-top: 46px; padding-bottom: 110px; }
.list-heading { margin-bottom: 34px; font-size: clamp(1.65rem, 3vw, 2.2rem); }
.publication-list { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; counter-reset: publications; }
.publication-list > li { position: relative; counter-increment: publications; }
.publication-list > li::before { position: absolute; z-index: 2; top: 24px; left: -16px; display: grid; width: 34px; height: 34px; place-items: center; color: var(--white); background: var(--accent); border: 4px solid var(--paper); border-radius: 50%; content: counter(publications, decimal-leading-zero); font-size: 0.67rem; font-weight: 850; }
.publication-list .publication-card { padding-left: clamp(32px, 6vw, 54px); }
.research-projects { margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--line); }

.site-footer { padding: 52px 0; color: #d8e6e5; background: #102c32; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 38px; align-items: end; }
.footer-grid p { margin-bottom: 5px; font-size: 0.84rem; }
.footer-name { color: var(--white); font-family: Georgia, serif; font-size: 1.25rem !important; }
.footer-institution { max-width: 360px; color: #b8cccd; }
.footer-contact { text-align: left; }
.footer-copy { color: #9db4b6; text-align: right; }

:focus-visible { outline: 3px solid rgba(184, 95, 66, 0.55); outline-offset: 4px; }

@media (max-width: 760px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .nav-shell { min-height: 68px; }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: calc(100% + 1px); right: 14px; left: 14px; display: none; padding: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
  .site-nav.is-open { display: grid; }
  .site-nav a { padding: 11px 13px; }
  .nav-toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-of-type(3) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-of-type(4) { transform: translateY(-6px) rotate(-45deg); }
  .brand-name { font-size: 0.94rem; }
  .home-hero { padding-top: 60px; padding-bottom: 72px; }
  .home-hero::after { width: 100%; opacity: 0.48; -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%); }
  .hero-grid, .section-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 54px; }
  .profile-card { width: min(100%, 390px); margin-inline: auto; transform: none; }
  .interest-section { padding: 70px 0; }
  .recent-section { padding-top: 72px; padding-bottom: 84px; }
  .section-heading { align-items: start; }
  .publication-grid { grid-template-columns: 1fr; }
  .life-gallery { grid-template-columns: 1fr; }
  .life-gallery img:first-child { width: min(100%, 520px); margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; align-items: start; }
  .footer-copy { text-align: left; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero-actions, .section-heading { align-items: flex-start; flex-direction: column; }
  .page-hero { padding-top: 65px; }
  .publication-meta { align-items: flex-start; flex-direction: column; }
  .publication-list > li::before { left: -8px; }
  .publication-list .publication-card { padding-left: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
