@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-variable.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-variable.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-variable.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-variable.woff2") format("woff2");
}

:root {
  --accent: #1c4ed8;
  --ink: #111114;
  --ink-secondary: #3a3a3f;
  --ink-muted: #7a7a80;
  --border-strong: #111114;
  --border-soft: #e4e4e7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: "IBM Plex Sans", sans-serif;
}

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

a:hover {
  color: var(--accent);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* Nav */

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 80px;
  border-bottom: 1px solid var(--border-strong);
}

.site-nav__name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.site-nav__links {
  display: flex;
  gap: 48px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

.site-nav__links a[aria-current="page"] {
  color: var(--accent);
}

.site-nav__toggle {
  display: none;
}

.site-nav__toggle summary {
  list-style: none;
  background: none;
  border: none;
  color: var(--ink);
  padding: 0;
  cursor: pointer;
}

.site-nav__toggle summary::-webkit-details-marker {
  display: none;
}

.site-nav__toggle summary::marker {
  content: "";
}

/* Footer */

.site-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  padding: 32px 80px 48px;
  border-top: 1px solid var(--border-strong);
}

.site-footer__link {
  display: flex;
  align-items: center;
}

.site-footer__link:hover {
  opacity: 0.7;
}

.site-footer__icon {
  height: 20px;
  width: auto;
  display: block;
}

.site-footer__legal {
  font-size: 13px;
  color: var(--ink-muted);
}

.site-footer__legal:hover {
  color: var(--accent);
}

.site-footer__copyright {
  margin-left: auto;
  color: var(--ink-muted);
  font-size: 14px;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Hero */

.hero {
  display: flex;
  align-items: center;
  gap: 72px;
  padding: 88px 96px 72px;
  max-width: 1280px;
  margin: 0 auto;
  box-sizing: border-box;
}

.hero__text {
  flex: 1 1 auto;
  max-width: 640px;
}

.hero__eyebrow {
  margin: 0 0 20px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.hero__name {
  margin: 0 0 28px;
  font-size: 64px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero__bio {
  margin: 0 0 24px;
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-secondary);
}

.hero__bio .accent-underline {
  border-bottom: 2px solid var(--accent);
}

.hero__research {
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-secondary);
}

.hero__figure {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.portrait {
  position: relative;
  width: 240px;
}

.portrait__bg {
  position: absolute;
  z-index: 0;
  top: -64px;
  right: -112.5px;
  width: 225px;
  height: auto;
  opacity: 0.9;
  pointer-events: none;
}

.portrait__img {
  position: relative;
  z-index: 1;
  display: block;
  width: 240px;
  aspect-ratio: 220 / 260;
  object-fit: cover;
}

.affiliations {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.affiliations__label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
}

.affiliations__row {
  display: flex;
  align-items: center;
  gap: 28px;
}

.affiliations__row img {
  height: 40px;
  width: auto;
}

.affiliations__slash {
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
}

/* Selected papers / papers list */

.selected-papers {
  padding: 0 96px 64px;
  max-width: 1280px;
  margin: 0 auto;
}

.selected-papers__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid var(--border-strong);
  padding-top: 16px;
  margin-bottom: 8px;
}

.selected-papers__head h2 {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.selected-papers__head a {
  font-size: 13px;
  text-decoration: underline;
  color: var(--accent);
}

.paper-rows {
  display: flex;
  flex-direction: column;
}

.paper-row {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-soft);
}

.paper-row__title {
  font-size: 18px;
}

.paper-row__meta {
  font-size: 13px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  margin-left: 24px;
}

.page-head {
  padding: 64px 96px 0;
  max-width: 1280px;
  margin: 0 auto;
}

.page-head h1 {
  margin: 0 0 16px;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.legal-page {
  padding: 0 96px 64px;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
}

.legal-page h2 {
  font-size: 20px;
  margin: 32px 0 8px;
}

.legal-page p {
  margin: 0 0 16px;
  color: var(--ink-secondary);
}

.papers-legend {
  margin: 0 0 32px;
  font-size: 13px;
  color: var(--ink-muted);
}

.papers-legend__star {
  color: #ffc700;
}

.paper-row__star {
  font-size: 1.3em;
  color: #ffc700;
}

.papers-by-year {
  padding: 0 96px 64px;
  max-width: 1280px;
  margin: 0 auto;
}

.papers-year-group {
  margin-bottom: 40px;
}

.papers-year-group__year {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  border-top: 1px solid var(--border-strong);
  padding-top: 16px;
}

/* Mobile */

@media (max-width: 700px) {
  .site-nav {
    padding: 20px 20px;
  }

  .site-nav__name {
    font-size: 14px;
  }

  .site-nav__toggle {
    display: block;
  }

  .site-nav__links {
    display: none;
    flex-direction: column;
    gap: 20px;
    position: absolute;
    top: 61px;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-strong);
    z-index: 10;
  }

  .site-nav {
    position: relative;
  }

  .site-nav__toggle[open] + .site-nav__links {
    display: flex;
  }

  .hero {
    flex-direction: column;
    padding: 36px 24px 0;
    gap: 0;
  }

  .hero__text {
    max-width: none;
  }

  .hero__eyebrow {
    font-size: 12px;
    margin-bottom: 14px;
  }

  .hero__name {
    font-size: 40px;
    line-height: 1.08;
    margin-bottom: 18px;
  }

  .hero__bio {
    font-size: 17px;
    margin-bottom: 16px;
  }

  .hero__research {
    font-size: 15px;
    line-height: 1.6;
  }

  .hero__figure {
    gap: 20px;
    margin-top: 20px;
    padding-bottom: 32px;
  }

  .portrait {
    width: 180px;
    margin: 56px auto 0;
  }

  .portrait__bg {
    top: -46px;
    right: -82.5px;
    width: 165px;
  }

  .portrait__img {
    width: 180px;
  }

  .affiliations {
    gap: 12px;
  }

  .affiliations__label {
    font-size: 11px;
  }

  .affiliations__row {
    gap: 20px;
  }

  .affiliations__row img {
    height: 28px;
  }

  .affiliations__slash {
    font-size: 30px;
  }

  .selected-papers,
  .papers-by-year,
  .page-head,
  .legal-page {
    padding-left: 24px;
    padding-right: 24px;
  }

  .paper-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 16px 0;
  }

  .paper-row__title {
    font-size: 16px;
  }

  .paper-row__meta {
    margin-left: 0;
  }

  .site-footer {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 24px 24px 36px;
  }
}
