:root {
  --bg: #ffffff;
  --text: #1b1f23;
  --muted: #5f6b76;
  --line: #dfe3e8;
  --accent: #0057b8;
  --max: 980px;
}


/* ---------------------------------------------------------
   Base
   --------------------------------------------------------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  line-height: 1.65;
}

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

a:hover {
  text-decoration: underline;
}


/* ---------------------------------------------------------
   Header and navigation
   --------------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.1rem 1.25rem;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;

  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;

  font-size: 0.95rem;
}

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

.nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

.pub {
  text-align: justify;
  hyphens: auto;
}

/* ---------------------------------------------------------
   Home page identity
   --------------------------------------------------------- */

.home-identity {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.home-photo {
  display: block;

  width: 170px;
  height: 170px;

  object-fit: cover;
  object-position: center 35%;

  border: 1px solid var(--line);
  border-radius: 4px;
}

.home-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-intro h1 {
  max-width: none;
  margin: 0.2rem 0 0.45rem;

  font-size: 2.8rem;
  line-height: 1.1;
}

.home-intro .lead {
  max-width: none;
  margin: 0;

  font-size: 1.15rem;
  line-height: 1.5;
}

.home-vision {
  max-width: 820px;
}

.home-vision .kicker {
  margin-bottom: 0.5rem;
}

@media (max-width: 650px) {

  .home-identity {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .home-photo {
    width: 150px;
    height: 150px;
  }

  .home-intro h1 {
    font-size: 2.2rem;
  }

}


/* ---------------------------------------------------------
   Main content
   --------------------------------------------------------- */

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.75rem 1.25rem 4rem;
}


/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */

.hero {
  padding: 1.5rem 0 3rem;
  border-bottom: 1px solid var(--line);
}

.hero-identity {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-logo {
  display: block;
  width: 150px;
  height: auto;
}

.hero-description {
  max-width: 780px;
  margin: 1.75rem 0 0;
}

.kicker {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


/* ---------------------------------------------------------
   Typography
   --------------------------------------------------------- */

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 12ch;
  margin: 0.35rem 0 1rem;

  font-size: clamp(2.2rem, 6vw, 4.5rem);
}

h2 {
  margin-top: 2.75rem;
  font-size: 1.8rem;
}

h3 {
  margin-bottom: 0.45rem;
}

p {
  text-align: justify;
  hyphens: auto;
}

.lead {
  max-width: 760px;

  color: var(--muted);
  font-size: 1.25rem;
}

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


/* ---------------------------------------------------------
   Grids and cards
   --------------------------------------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;

  margin-top: 1.25rem;
}

.card {
  padding-top: 0.9rem;
  border-top: 2px solid var(--text);
}


/* ---------------------------------------------------------
   Lists and publications
   --------------------------------------------------------- */

.list {
  padding-left: 1.1rem;
}

.pub {
  margin-bottom: 1.2rem;
}


/* ---------------------------------------------------------
   People
   --------------------------------------------------------- */

.person {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.2rem;
  align-items: start;

  margin: 1.5rem 0;
}

.avatar {
  width: 110px;
  aspect-ratio: 1;

  background: #eef1f4;
  border: 1px solid var(--line);
}

.portrait {
  display: block;
  object-fit: cover;
}

.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0.5rem;

  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

/* Research page section spacing */

main > section {
  margin-bottom: 4rem;
}

main > section h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

main > section h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

/* Research page */

.research-page > section {
  margin-bottom: 4.5rem;
}

.research-page > section h2 {
  margin-bottom: 1.5rem;
}

.research-page > section h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.research-page .pub {
  margin-bottom: 1.5rem;
}


/* ---------------------------------------------------------
   About page
   --------------------------------------------------------- */

.about-hero {
  padding: 1.5rem 0 2.5rem;
}

.about-identity {
  display: grid;
  grid-template-columns: 175px minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.about-photo {
  display: block;

  width: 175px;
  height: 175px;

  object-fit: cover;
  object-position: center 35%;

  border: 1px solid var(--line);
  border-radius: 4px;
}

.about-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-intro .kicker {
  margin-bottom: 0.25rem;
}

.about-intro h1 {
  max-width: none;
  margin: 0 0 0.45rem;

  font-size: 2.6rem;
  line-height: 1.1;
}

.about-intro .lead {
  max-width: none;
  margin: 0;

  font-size: 1.15rem;
  line-height: 1.5;
}


/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);

  color: var(--muted);
  font-size: 0.92rem;
}

.footer-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.4rem 1.25rem 2.2rem;
}


/* ---------------------------------------------------------
   Responsive layout
   --------------------------------------------------------- */

@media (max-width: 720px) {

  .nav-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-identity {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .hero-logo {
    width: 120px;
  }

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

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


@media (max-width: 650px) {

  .about-identity {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .about-photo {
    width: 160px;
    height: 160px;
  }

  .about-intro h1 {
    font-size: 2.2rem;
  }
}

body {
  overflow-wrap: break-word;
}

@media (max-width: 720px) {

  .nav-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .nav {
    gap: 0.65rem 1rem;
  }

}

@media (max-width: 650px) {

  p,
  .pub {
    text-align: left;
    hyphens: none;
  }

}
