:root {
  --background: #fbfbfa;
  --surface: #ffffff;
  --text: #202327;
  --muted: #626970;
  --border: #dfe3e6;
  --accent: #245b78;
  --accent-dark: #173f55;
  --badge-background: #f3f6f7;
  --preprint-background: #f7f4ed;
  --content-width: 940px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: var(--accent-dark);
}

.container {
  width: min(calc(100% - 40px), var(--content-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
  background: color-mix(in srgb, var(--background) 92%, transparent);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-name {
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
  letter-spacing: -0.015em;
}

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

nav a {
  color: var(--muted);
  font-size: 0.94rem;
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  align-items: center;
  gap: clamp(40px, 8vw, 90px);
  padding-block: clamp(70px, 11vw, 120px) clamp(62px, 9vw, 96px);
}

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

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

h1,
h2,
.year {
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  margin-bottom: 15px;
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.position {
  max-width: 620px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 1.08rem;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.profile-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.profile-links a:hover,
.profile-links a:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.portrait-wrap {
  width: 240px;
  height: 240px;
  margin: 0;
  justify-self: end;
}

.portrait {
  display: block;
  width: 240px;
  height: 240px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
}

.section {
  padding-block: 64px;
  border-top: 1px solid var(--border);
}

.section > h2 {
  margin-bottom: 36px;
  font-size: clamp(1.8rem, 4vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(220px, 0.8fr);
  gap: clamp(36px, 7vw, 78px);
}

.about-grid > p {
  margin-bottom: 0;
  font-size: 1.04rem;
}

.interests {
  padding-left: 24px;
  border-left: 2px solid var(--border);
}

.interests h3 {
  margin-bottom: 12px;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.interests ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.interests li + li {
  margin-top: 6px;
}

.year-group + .year-group {
  margin-top: 54px;
}

.year {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 1.45rem;
  font-weight: 500;
}

.publication-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.publication {
  padding-block: 23px;
  border-top: 1px solid var(--border);
}

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

.publication-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 9px 12px;
}

.badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 25px;
  padding: 2px 8px;
  border: 1px solid #cdd6da;
  border-radius: 999px;
  background: var(--badge-background);
  color: #354d59;
  font-size: 0.73rem;
  font-weight: 750;
  letter-spacing: 0.035em;
  line-height: 1;
  text-transform: uppercase;
}

.badge-preprint {
  border-color: #ddd4bf;
  background: var(--preprint-background);
  color: #665b42;
}

.paper-title {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.17rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
}

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

.authors strong {
  color: var(--text);
  font-weight: 650;
}

.site-footer {
  padding-block: 30px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: inherit;
}

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 30px), var(--content-width));
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 38px;
    padding-block: 58px 66px;
  }

  .portrait-wrap {
    grid-row: 1;
    width: min(58vw, 220px);
  }

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

  .interests {
    padding-left: 0;
    padding-top: 20px;
    border-left: 0;
    border-top: 2px solid var(--border);
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .nav-wrap {
    min-height: 60px;
  }

  nav {
    gap: 14px;
  }

  nav a {
    font-size: 0.86rem;
  }

  .section {
    padding-block: 52px;
  }

  .publication-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 4px;
  }
}

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