:root {
  --background: #fff;
  --foreground: #252525;
  --muted: #626262;
  --link: #135fb4;
  --rule: #e3e3e3;
}

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

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.48;
}

main {
  width: min(100% - 36px, 840px);
  margin: 0 auto;
  padding: 54px 0 28px;
}

section { margin-bottom: 46px; }
h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 19px;
  color: #181818;
  font-size: clamp(2rem, 5vw, 2.65rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

h1 span {
  margin-left: 0.18em;
  color: #777;
  font-size: 0.55em;
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
}

h2 {
  margin-bottom: 15px;
  color: #222;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.62rem;
  font-weight: 400;
  letter-spacing: -0.012em;
}

h3 {
  margin-bottom: 4px;
  color: #171717;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

p { margin-bottom: 14px; }
a { color: var(--link); text-decoration: none; }

a:hover, a:focus-visible {
  color: #0b4684;
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:focus-visible {
  border-radius: 2px;
  outline: 2px solid #9bc5ef;
  outline-offset: 3px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 172px;
  gap: 40px;
  align-items: start;
  margin-bottom: 44px;
}

.intro-copy p { max-width: 610px; }

.portrait {
  display: block;
  width: 168px;
  height: 168px;
  margin-top: 4px;
  border: 1px solid #dedede;
  border-radius: 50%;
  background: #f4f4f4;
  object-fit: cover;
  object-position: center 24%;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 18px;
  margin-top: 18px;
}

.profile-links a, .paper-links a { white-space: nowrap; }

.section-heading-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 15px;
}

.section-heading-row h2 { margin-bottom: 0; }
.section-heading-row > a { font-size: 0.9rem; white-space: nowrap; }
.news-list { display: grid; gap: 9px; }

.news-item {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 18px;
}

.news-item time {
  color: var(--muted);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.news-item p { margin-bottom: 0; }
.publication-list { display: grid; gap: 10px; }

.publication {
  display: grid;
  grid-template-columns: 158px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin: 0 -12px;
  padding: 12px;
  border-radius: 2px;
}

.publication.featured { background: #fff7cf; }

.paper-visual {
  position: relative;
  display: grid;
  height: 105px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #e7edf5;
  color: #2e4f75;
}

.paper-visual span {
  position: relative;
  z-index: 1;
  padding: 5px 8px;
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.paper-visual i {
  position: absolute;
  display: block;
  width: 72px;
  height: 2px;
  background: currentColor;
  opacity: 0.38;
  transform: rotate(-24deg);
}

.paper-visual i:nth-of-type(1) { top: 24px; left: -12px; }
.paper-visual i:nth-of-type(2) { right: -9px; bottom: 26px; }
.paper-visual i:nth-of-type(3) { width: 110px; right: 20px; bottom: 8px; opacity: 0.15; transform: rotate(18deg); }
.paper-visual.sand { background: #eee8dc; color: #78623e; }
.paper-visual.green { background: #e1eee7; color: #38664e; }
.paper-visual.highlight { background: #e2eef5; color: #285e79; }
.paper-visual.rose { background: #f3e5e5; color: #7f4a4a; }
.paper-visual.violet { background: #e9e5f2; color: #5d4f7a; }

.paper-copy p {
  margin-bottom: 2px;
  font-size: 0.9rem;
  line-height: 1.38;
}

.paper-copy .authors { color: #333; }
.paper-copy .venue { color: var(--muted); font-style: italic; }
.paper-copy .paper-links { display: flex; gap: 13px; margin: 5px 0 4px; }
.paper-copy .paper-summary { color: #4d4d4d; }

footer {
  margin-top: 54px;
  padding-top: 17px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.84rem;
}

footer p { margin-bottom: 0; }

@media (max-width: 640px) {
  main { width: min(100% - 30px, 840px); padding-top: 32px; }
  section { margin-bottom: 38px; }
  .intro { grid-template-columns: minmax(0, 1fr) 112px; gap: 19px; }
  .portrait { width: 108px; height: 108px; }
  .intro-copy { display: contents; }
  .intro-copy h1 { align-self: center; margin: 0; }
  .intro-copy p, .profile-links { grid-column: 1 / -1; }
  .intro-copy p:first-of-type { margin-top: 7px; }
  .profile-links { margin-top: 0; }
  .publication { grid-template-columns: 116px minmax(0, 1fr); gap: 14px; align-items: start; margin-inline: -8px; padding: 9px 8px; }
  .paper-visual { height: 84px; }
}

@media (max-width: 440px) {
  h1 { font-size: 1.78rem; }
  .news-item { grid-template-columns: 74px minmax(0, 1fr); gap: 10px; }
  .publication { grid-template-columns: 1fr; }
  .paper-visual { width: 132px; height: 78px; }
}

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