:root {
  --paper: #f7f5ef;
  --ink: #17201c;
  --muted: #66706a;
  --line: #d8dbd5;
  --sage: #dce8df;
  --green: #1f5a43;
  --warm: #ed6a3a;
  --serif: "Newsreader", "Noto Serif SC", serif;
  --sans: "DM Sans", "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
}

.site-header {
  min-height: 96px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.wordmark-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--warm);
}

.site-nav {
  display: flex;
  gap: 36px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-nav a,
.text-link,
footer a {
  transition: color 180ms ease;
}

.site-nav a:hover,
.text-link:hover,
footer a:hover {
  color: var(--warm);
}

.language-switch {
  justify-self: end;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: #9aa09c;
  cursor: pointer;
  font-size: 0.78rem;
}

.language-switch .active {
  color: var(--ink);
  font-weight: 600;
}

.language-switch .divider {
  margin: 0 5px;
}

.hero {
  min-height: 670px;
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(400px, 1.45fr);
  gap: clamp(70px, 10vw, 150px);
  align-items: center;
  padding: 90px 5%;
}

.profile-column {
  align-self: center;
}

.portrait-wrap {
  position: relative;
  width: min(100%, 230px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--sage);
  border-radius: 3px 3px 35% 3px / 3px 3px 28% 3px;
}

.portrait-wrap::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid #b8c9bd;
  border-radius: inherit;
  z-index: -1;
}

.portrait-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 18%;
  filter: saturate(0.88) contrast(0.98);
}

.profile-meta {
  margin-top: 30px;
  font-size: 0.88rem;
  color: var(--muted);
}

.profile-meta p {
  margin: 3px 0;
}

.profile-meta .status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 600;
}

.status > span:first-child {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #58a575;
  box-shadow: 0 0 0 4px rgba(88, 165, 117, 0.13);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.intro-column h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(4.6rem, 8.2vw, 7.7rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.86;
}

.period {
  color: var(--warm);
}

.lead {
  max-width: 620px;
  margin: 40px 0 0;
  color: #46504b;
  font-family: var(--serif);
  font-size: clamp(1.22rem, 1.9vw, 1.65rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 42px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  padding: 13px 18px;
  font-size: 0.9rem;
}

.button.primary {
  background: var(--ink);
  color: white;
  border-radius: 2px;
  transition: transform 180ms ease, background 180ms ease;
}

.button.primary:hover {
  background: var(--green);
  transform: translateY(-2px);
}

.text-link {
  display: inline-flex;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.section-heading {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: baseline;
  margin-bottom: 54px;
}

.section-index {
  margin: 0;
  color: var(--warm);
  font-size: 0.75rem;
  font-weight: 600;
}

.section-heading h2,
.contact-section h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.45rem, 4.6vw, 4.15rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-left: 90px;
  border-top: 1px solid var(--line);
}

.publication {
  margin-left: 90px;
  padding: 28px 0;
  border-block: 1px solid var(--line);
}

.publication h3 {
  max-width: 34em;
  margin: 0;
  font: 500 clamp(1.45rem, 2.4vw, 2rem) / 1.2 var(--serif);
}

.publication-authors {
  margin: 14px 0;
  color: var(--muted);
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  color: var(--green);
  font-size: 0.9rem;
}

.publication-links a,
.publication h3 a:hover,
.publication h3 a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.research-card {
  min-height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 30px 34px;
  border-right: 1px solid var(--line);
  transition: background 180ms ease, transform 180ms ease;
}

.research-card:first-child {
  border-left: 1px solid var(--line);
}

.research-card:hover {
  background: var(--sage);
  transform: translateY(-4px);
}

.card-number {
  color: var(--muted);
  font-size: 0.72rem;
}

.research-card h3,
.timeline-content h3 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.2;
}

.research-card p,
.timeline-content > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.timeline {
  margin-left: 90px;
}

.awards-list {
  margin-left: 90px;
  border-top: 1px solid var(--line);
}

.award-item {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 31px 4px;
  border-bottom: 1px solid var(--line);
}

.award-year {
  color: var(--warm);
  font-family: var(--serif);
  font-size: 1.7rem;
}

.award-event {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.award-content h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1.25;
}

.award-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #b8c9bd;
  border-radius: 50%;
  color: var(--green);
  font-size: 0.68rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 40px;
  padding: 38px 0;
  border-top: 1px solid var(--line);
}

.timeline-item:last-child {
  border-bottom: 1px solid var(--line);
}

.timeline-year {
  color: var(--muted);
  font-size: 0.86rem;
}

.degree {
  margin: 0 0 9px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.timeline-content h3 {
  font-size: 1.82rem;
}

.contact-section {
  padding: 125px 9%;
  background: var(--green);
  color: white;
  text-align: center;
}

.contact-section .eyebrow {
  color: #b9d3c2;
}

.contact-section a {
  display: inline-flex;
  gap: 18px;
  margin-top: 40px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  font-size: 1.04rem;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 34px 0 48px;
  color: var(--muted);
  font-size: 0.76rem;
}

footer p {
  margin: 0;
}

footer a {
  margin-left: 4px;
  color: var(--ink);
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 36px, 680px);
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 55px;
    padding: 65px 0 80px;
  }

  .profile-column {
    width: min(78%, 360px);
  }

  .portrait-wrap {
    max-width: 180px;
  }

  .intro-column h1 {
    font-size: clamp(4.1rem, 19vw, 6.4rem);
  }

  .section-heading {
    grid-template-columns: 50px 1fr;
  }

  .publication,
  .research-grid,
  .timeline,
  .awards-list {
    margin-left: 50px;
  }

  .award-item {
    grid-template-columns: 82px 1fr auto;
    gap: 18px;
  }

  .research-grid {
    grid-template-columns: 1fr;
  }

  .research-card {
    min-height: 230px;
    border-left: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-section {
    margin: 0 -18px;
    padding: 90px 24px;
  }

  footer {
    flex-direction: column;
    gap: 7px;
  }
}

@media (max-width: 480px) {
  .page-shell {
    width: calc(100% - 28px);
  }

  .site-header {
    min-height: 78px;
  }

  .hero {
    padding-top: 42px;
  }

  .profile-column {
    width: 88%;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .content-section {
    padding: 80px 0;
  }

  .section-heading {
    display: block;
  }

  .section-index {
    margin-bottom: 12px;
  }

  .publication,
  .research-grid,
  .timeline,
  .awards-list {
    margin-left: 0;
  }

  .contact-section {
    margin-inline: -14px;
  }

  .award-item {
    grid-template-columns: 1fr auto;
  }

  .award-year {
    grid-column: 1 / -1;
    font-size: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
