:root {
  --bg: #faf8f2;
  --fg: #1d2430;
  --muted: #5b6573;
  --line: #e4ddd0;
  --sky: #1d6f9a;
  --chip: #eef6fb;
  --max: 52rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--fg);
  background: var(--bg);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  line-height: 1.55;
}

h1,
h2,
.brand {
  font-family: Newsreader, Georgia, serif;
  font-weight: 650;
  letter-spacing: -0.02em;
}

a {
  color: var(--sky);
  text-decoration: none;
}

a:hover {
  text-underline-offset: 3px;
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, white);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .inner,
footer .inner,
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
  gap: 1rem;
}

.brand {
  color: var(--fg);
  font-size: 1.05rem;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.nav-desktop {
  display: none;
  gap: 1.25rem;
}

.nav-desktop a,
.nav-mobile a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-desktop a:hover,
.nav-mobile a:hover {
  color: var(--fg);
  text-decoration: none;
}

.menu-btn {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 0.5rem;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1.1rem;
  cursor: pointer;
}

.nav-mobile {
  display: grid;
  padding: 0.35rem 1.25rem 0.9rem;
  border-top: 1px solid var(--line);
}

.nav-mobile[hidden] {
  display: none;
}

.nav-mobile a {
  padding: 0.55rem 0;
}

.hero {
  display: grid;
  gap: 1.5rem;
  padding: 2.5rem 0 1.5rem;
}

.portrait {
  width: 9rem;
  height: 9rem;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 999px;
  border: 1px solid var(--line);
  box-shadow: 0 1px 4px rgb(0 0 0 / 8%);
}

h1 {
  margin: 0;
  font-size: 2.4rem;
}

.role {
  margin: 0.7rem 0 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.92rem;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
}

.links a {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg);
  font-size: 0.9rem;
  font-weight: 500;
}

.links a:hover {
  text-decoration: none;
  border-color: #c7d7e4;
  background: var(--chip);
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

section {
  padding: 2.4rem 0;
}

h2 {
  margin: 0 0 1.2rem;
  font-size: 1.7rem;
}

h3 {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 0;
}

.chips span {
  border: 1px solid #d7e6f0;
  background: var(--chip);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
}

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

.papers li,
.people li {
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}

.papers li:first-child,
.people li:first-child {
  border-top: 0;
  padding-top: 0;
}

.paper-title,
.item-title {
  margin: 0;
  font-weight: 600;
}

.authors,
.meta {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.meta a {
  margin-left: 0.7rem;
  font-weight: 600;
}

.plain li + li {
  margin-top: 1rem;
}

.plain p {
  margin: 0;
}

.item-title span {
  margin-left: 0.45rem;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.92rem;
}

.two-col {
  display: grid;
  gap: 2.2rem;
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

footer .inner {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.6rem 1.25rem 2rem;
}

footer a {
  color: inherit;
}

footer a:hover {
  color: var(--fg);
}

@media (min-width: 640px) {
  .hero {
    grid-template-columns: 10rem 1fr;
    align-items: center;
    padding: 3.2rem 0 1.8rem;
  }

  .portrait {
    width: 10rem;
    height: 10rem;
  }

  h1 {
    font-size: 2.8rem;
  }
}

@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
  }

  .menu-btn,
  .nav-mobile {
    display: none;
  }

  .two-col {
    grid-template-columns: 1fr 1fr;
  }

  footer .inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
