:root {
  --ink: #191b1c;
  --text: #34383a;
  --muted: #697074;
  --line: #d9dcdd;
  --line-dark: #b9bec0;
  --paper: #fbfbfa;
  --surface: #ffffff;
  --tint: #f3f5f5;
  --accent: #275d77;
  --accent-dark: #1d465b;
  --accent-soft: #edf3f6;
  --honor: #8a4939;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --page-width: min(1120px, calc(100vw - 48px));
  --header-height: 70px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
select {
  font: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.page-width,
.header-inner,
.footer-inner {
  width: var(--page-width);
  margin-inline: auto;
}

.page-anchor {
  position: absolute;
  top: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 8px 12px;
  color: white;
  background: var(--accent-dark);
  transform: translateY(-150%);
}

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

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgba(251, 251, 250, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-name {
  flex: 0 0 auto;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
}

.main-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 25px;
  color: #4b5053;
  font-size: 13px;
  font-weight: 500;
}

.main-navigation a {
  padding: 7px 0;
  border-bottom: 1px solid transparent;
}

.main-navigation a:hover {
  color: var(--accent-dark);
  border-bottom-color: var(--accent);
}

.main-navigation .cv-link {
  padding: 7px 13px;
  color: white;
  background: var(--accent-dark);
  border: 1px solid var(--accent-dark);
}

.main-navigation .cv-link:hover {
  color: white;
  background: var(--accent);
  border-bottom-color: var(--accent);
}

.menu-button {
  display: none;
  padding: 7px 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  cursor: pointer;
  font-size: 13px;
}

.profile-intro {
  padding: 88px 0 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  align-items: start;
  gap: clamp(60px, 9vw, 120px);
  padding-bottom: 72px;
}

.overline,
.section-label,
.profile-facts span,
.item-index,
.project-meta,
.venue,
.publication-year {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.095em;
  text-transform: uppercase;
}

.overline {
  margin-bottom: 17px;
  color: var(--accent);
}

.profile-copy h1 {
  margin-bottom: 8px;
  font-size: clamp(48px, 5.2vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.degree-line {
  margin: 0 0 28px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.055em;
}

.profile-copy h1 .degree {
  margin-left: 8px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.25em;
  font-weight: 600;
  letter-spacing: 0.06em;
  vertical-align: middle;
}

.profile-summary {
  max-width: 760px;
  margin-bottom: 22px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(22px, 2.25vw, 29px);
  line-height: 1.42;
}

.profile-detail {
  max-width: 710px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 24px;
}

.profile-actions a,
.project-links a,
.entry-links a,
.inline-link {
  color: var(--accent-dark);
  border-bottom: 1px solid rgba(39, 93, 119, 0.45);
  font-size: 13px;
  font-weight: 600;
}

.profile-actions a:hover,
.project-links a:hover,
.entry-links a:hover,
.inline-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.profile-card {
  margin: 0;
}

.profile-card > img {
  width: 100%;
  height: 335px;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--line-dark);
  filter: saturate(0.82) contrast(1.02);
}

.profile-card-details {
  padding-top: 17px;
  font-size: 12px;
  line-height: 1.55;
}

.profile-card-details p {
  margin-bottom: 11px;
  color: var(--muted);
}

.profile-card-details strong {
  color: var(--ink);
}

.profile-card-details a {
  color: var(--accent-dark);
  border-bottom: 1px solid rgba(39, 93, 119, 0.45);
}

.profile-facts {
  display: grid;
  grid-template-columns: 0.9fr 1.25fr 1.85fr;
  border-top: 1px solid var(--line);
}

.profile-facts div {
  min-height: 96px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 20px 28px;
  border-right: 1px solid var(--line);
}

.profile-facts div:first-child {
  padding-left: 0;
}

.profile-facts div:last-child {
  padding-right: 0;
  border-right: 0;
}

.profile-facts span {
  margin-bottom: 5px;
}

.profile-facts strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.section {
  padding: 94px 0;
}

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

.section-header {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 30px;
  margin-bottom: 52px;
}

.section-label {
  margin: 9px 0 0;
  color: var(--accent);
}

.section-header h2 {
  margin-bottom: 14px;
  font-size: clamp(38px, 4vw, 54px);
  line-height: 1.12;
}

.section-header > div > p {
  max-width: 730px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

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

.research-list article {
  min-height: 315px;
  padding: 26px 28px 22px;
  border-right: 1px solid var(--line);
}

.research-list article:first-child {
  padding-left: 0;
}

.research-list article:last-child {
  padding-right: 0;
  border-right: 0;
}

.item-index {
  margin-bottom: 56px;
}

.research-list h3 {
  margin-bottom: 15px;
  font-size: 25px;
  line-height: 1.25;
}

.research-list article > p:not(.item-index):not(.keywords) {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
}

.keywords {
  margin: 0;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 600;
}

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

/* .project-row {
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr);
  gap: 42px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
} */

.project-row {
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr);
  align-items: center;
  gap: 42px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

/* .project-image {
  display: grid;
  place-items: center;
  height: 175px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
} */

.project-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  height: 190px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}

/* .project-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
} */

.project-row .project-image > img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.project-content {
  align-self: center;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin-bottom: 12px;
}

.project-meta span + span::before {
  margin-right: 18px;
  color: var(--line-dark);
  content: "/";
}

.project-meta .distinction,
.venue span {
  color: var(--honor);
}

.project-content h3 {
  margin-bottom: 10px;
  font-size: 31px;
}

.project-content > p {
  max-width: 720px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
}

.project-links,
.entry-links,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.publication-heading {
  margin-bottom: 36px;
}

.publication-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-dark);
}

.publication-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.publication-filters button {
  padding: 6px 11px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 11px;
}

.publication-filters button:hover,
.publication-filters button.is-active {
  color: white;
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.publication-controls > p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.publication-entry {
  display: grid;
  grid-template-columns: 75px minmax(0, 1fr) 100px;
  gap: 25px;
  padding: 27px 0;
  border-bottom: 1px solid var(--line);
}

.publication-entry[hidden] {
  display: none;
}

.publication-year {
  margin: 2px 0 0;
}

.venue {
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 10px;
}

.publication-entry h3 {
  margin-bottom: 7px;
  font-size: 20px;
  line-height: 1.32;
}

.authors {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.authors strong {
  color: var(--ink);
  font-weight: 600;
}

.entry-links {
  align-self: center;
  justify-content: flex-end;
  gap: 9px 14px;
}

.entry-links a {
  font-size: 11px;
}

.advisor-line {
  margin-bottom: 36px;
  padding: 18px 0;
  border-block: 1px solid var(--line);
}

.advisor-line p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.advisor-line a {
  color: var(--accent-dark);
  border-bottom: 1px solid rgba(39, 93, 119, 0.4);
}

.people-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 56px;
}

.people-list article {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 96px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.people-list img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  filter: saturate(0.72);
}

.people-list h3 {
  margin-bottom: 3px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.people-list p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 70px;
  border-top: 1px solid var(--line-dark);
}

.service-grid > div {
  padding-top: 25px;
}

.service-grid h3 {
  margin-bottom: 18px;
  font-size: 25px;
}

.service-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-grid li {
  padding: 11px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.service-grid strong {
  color: var(--ink);
  font-weight: 600;
}

.contact-section {
  padding: 70px 0;
  color: #d8dddf;
  background: #202426;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
}

.contact-section .section-label {
  margin: 0 0 14px;
  color: #96b8c8;
}

.contact-section h2 {
  max-width: 620px;
  margin: 0;
  color: white;
  font-size: clamp(34px, 4vw, 49px);
  line-height: 1.15;
}

.contact-grid > div:last-child {
  align-self: end;
}

.contact-grid > div:last-child > p {
  margin-bottom: 22px;
  color: #b6bdc0;
  font-size: 14px;
}

.contact-links a,
.contact-links button {
  padding: 8px 14px;
  color: white;
  background: transparent;
  border: 1px solid #788185;
  cursor: pointer;
  font-size: 12px;
}

.contact-links a:hover,
.contact-links button:hover {
  background: #343a3d;
  border-color: white;
}

.site-footer {
  padding: 36px 0;
  color: #9ba2a5;
  background: #171a1b;
  border-top: 1px solid #3d4244;
}

.footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 35px;
}

.footer-inner p {
  margin: 3px 0;
  font-size: 11px;
}

.footer-inner .footer-name {
  color: white;
  font-family: var(--serif);
  font-size: 17px;
}

.footer-right {
  text-align: right;
}

.footer-right a {
  color: white;
  font-size: 11px;
  border-bottom: 1px solid #62696c;
}

@media (max-width: 980px) {
  :root {
    --page-width: min(100% - 40px, 860px);
  }

  .main-navigation {
    gap: 15px;
    font-size: 11px;
  }

  .profile-grid {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 60px;
  }

  .profile-card > img {
    height: 290px;
  }

  .profile-facts {
    grid-template-columns: 1fr 1fr;
  }

  .profile-facts div:nth-child(2) {
    border-right: 0;
  }

  .profile-facts div:last-child {
    grid-column: span 2;
    padding-left: 0;
    border-top: 1px solid var(--line);
  }

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

  .research-list article,
  .research-list article:first-child,
  .research-list article:last-child {
    min-height: 0;
    padding: 25px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .item-index {
    margin-bottom: 18px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 64px;
  }

  .menu-button {
    display: block;
  }

  .main-navigation {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 12px 20px 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .main-navigation.is-open {
    display: flex;
  }

  .main-navigation a {
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
  }

  .main-navigation .cv-link {
    margin-top: 10px;
    padding: 9px 12px;
    text-align: center;
  }

  .profile-intro {
    padding-top: 62px;
  }

  .profile-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .profile-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 20px;
  }

  .profile-card > img {
    height: 225px;
  }

  .profile-card-details {
    align-self: end;
  }

  .section {
    padding: 72px 0;
  }

  .section-header {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .section-label {
    margin-top: 0;
  }

  .project-row {
    grid-template-columns: 195px minmax(0, 1fr);
    gap: 25px;
  }

  .project-image {
    height: 140px;
  }

  .publication-entry {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 18px;
  }

  .entry-links {
    grid-column: 2;
    justify-content: flex-start;
  }

  .people-list,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-grid {
    gap: 36px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }
}

@media (max-width: 540px) {
  :root {
    --page-width: calc(100% - 28px);
  }

  .site-name {
    font-size: 16px;
  }

  .profile-intro {
    padding-top: 48px;
  }

  .profile-grid {
    padding-bottom: 52px;
  }

  .profile-copy h1 {
  font-size: clamp(29px, 8vw, 38px);
  white-space: nowrap;
}

.degree-line {
  margin-bottom: 24px;
  font-size: 12px;
}

  .profile-summary {
    font-size: 21px;
  }

  .profile-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
  }

  .profile-card {
    grid-template-columns: 125px minmax(0, 1fr);
  }

  .profile-card > img {
    height: 160px;
  }

  .profile-card-details {
    padding: 0;
    font-size: 10px;
  }

  .profile-facts {
    grid-template-columns: 1fr;
  }

  .profile-facts div,
  .profile-facts div:first-child,
  .profile-facts div:last-child {
    min-height: 78px;
    grid-column: auto;
    padding: 15px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 38px;
  }

  .section-header h2 {
    font-size: 39px;
  }

  .project-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-image {
    width: 100%;
    height: 220px;
  }

  .publication-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .publication-entry {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .entry-links {
    grid-column: 1;
    margin-top: 5px;
  }

  .publication-year {
    margin-bottom: 2px;
  }

  .people-list article {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .people-list img {
    width: 52px;
    height: 52px;
  }

  .contact-section {
    padding: 56px 0;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-right {
    text-align: left;
  }
}

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

