:root {
  --background: #faf9f6;
  --text: #232323;
  --muted: #656565;
  --line: #d9d7d1;
  --accent: #38546b;
  --content-width: 1020px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

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

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.skip-link {
  position: fixed;
  z-index: 10;
  top: 1rem;
  left: 1rem;
  padding: 0.5rem 0.75rem;
  color: var(--background);
  background: var(--text);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.site-header, main, footer {
  width: min(calc(100% - 3rem), var(--content-width));
  margin-inline: auto;
}

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}

.site-name {
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
}

nav { display: flex; flex-wrap: wrap; gap: 1.75rem; }
nav a { color: var(--muted); font-size: 0.82rem; text-decoration: none; }

.intro {
  min-height: 430px;
  padding: 6.5rem 0 5.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: clamp(3rem, 8vw, 7rem);
  align-items: center;
}

.role, .section-heading > p {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1, h2, h3, p { overflow-wrap: break-word; }

h1 {
  margin: 0 0 1.4rem;
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 4.8rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.summary {
  max-width: 700px;
  margin: 0;
  color: #3f3f3f;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  line-height: 1.55;
}

.profile-links {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  font-size: 0.86rem;
}

.avatar {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 3px;
}

.section {
  padding: 5rem 0;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  border-top: 1px solid var(--line);
}

.section-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.25;
}

.section-content { min-width: 0; }
.prose { max-width: 720px; }
.prose > p { margin: 0 0 1.4rem; }

.interests {
  margin: 2rem 0 0;
  padding: 1.4rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem 2rem;
  border-top: 1px solid var(--line);
  list-style-position: inside;
  color: var(--muted);
  font-size: 0.9rem;
}

.publication-list { margin: 0; padding: 0; list-style: none; }
.publication-list > li {
  padding: 0 0 2.2rem;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 1.5rem;
}
.publication-list > li + li { padding-top: 2.2rem; border-top: 1px solid var(--line); }
.publication-year {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 0.9rem;
}

.publication-list h3, .software-list h3 {
  margin: 0 0 0.6rem;
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.45;
}

.authors, .venue, .item-links, .technology {
  margin: 0.3rem 0 0;
  font-size: 0.85rem;
  line-height: 1.55;
}
.authors { color: #454545; }
.venue, .technology { color: var(--muted); }
.item-links { display: flex; gap: 1rem; }
.item-links a, .more-link { font-size: 0.8rem; }
.more-link { display: inline-block; margin-top: 0.5rem; }

.software-list article { padding-bottom: 2rem; }
.software-list article + article { padding-top: 2rem; border-top: 1px solid var(--line); }
.software-list h3 a { color: var(--text); }
.software-list article > p:not(.technology) { max-width: 650px; margin: 0; }

footer {
  min-height: 110px;
  padding: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
}
footer p { margin: 0; }

@media (max-width: 720px) {
  .site-header { padding: 1.1rem 0; align-items: flex-start; }
  nav { justify-content: flex-end; gap: 0.5rem 1rem; }
  .intro {
    min-height: 0;
    padding: 4.5rem 0;
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .avatar { grid-row: 1; width: 128px; height: 128px; }
  .section { padding: 3.8rem 0; grid-template-columns: 1fr; gap: 2rem; }
  .interests { grid-template-columns: 1fr; }
  footer { align-items: flex-start; flex-direction: column; }
}

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