@font-face {
  font-family: "Ubuntu";
  src: url("../fonts/Ubuntu/Ubuntu-R.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Ubuntu";
  src: url("../fonts/Ubuntu/Ubuntu-M.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Ubuntu";
  src: url("../fonts/Ubuntu/Ubuntu-B.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Ubuntu";
  src: url("../fonts/Ubuntu/Ubuntu-RI.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Computer Modern Sans";
  src: url("../fonts/Sans/cmunss.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Latin Modern Math";
  src: url("../fonts/LatinModernMath/latinmodern-math.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Lato Local";
  src: url("../fonts/Lato/Lato-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Lato Local";
  src: url("../fonts/Lato/Lato-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #202020;
  --muted: #6c6b69;
  --line: #ebe9e6;
  --accent: #c62828;
  --heading: #d00000;
  --sans: "Ubuntu", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 500 14px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
.site-shell { --portrait-width: 140px; max-width: 1010px; margin: 0 auto; padding: 0 28px; }

.brand { margin: 0; color: var(--heading); white-space: nowrap; font: 700 32px/1 var(--sans); letter-spacing: -.035em; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--portrait-width);
  align-items: start;
  gap: 32px;
  padding: 14px 0 8px;
}
.hero-copy { order: 1; min-width: 0; }
.hero-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.hero-intro { max-width: 660px; margin-bottom: 0; color: var(--ink); font: 400 17px/1.38 "Computer Modern Sans", Arial, sans-serif; letter-spacing: -.015em; }
.social-links { display: flex; flex-wrap: nowrap; gap: 2px; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; color: var(--accent); border-radius: 50%; }
.social-links a:hover { color: #981b1b; background: #fff0f0; }
.social-links svg { display: block; width: 23px; height: 23px; }
.portrait-wrap { order: 2; width: 100%; }
.portrait { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }

.content-section { scroll-margin-top: 20px; padding: 14px 0 18px; }
.hero + .content-section { padding-top: 6px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 10px; }
h2 { margin-bottom: 0; color: var(--heading); font: 700 clamp(25px, 3vw, 29px)/1.2 var(--sans); letter-spacing: -.035em; }
.featured-list { display: grid; gap: 0; }
.featured-paper {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 10px 0;
}
.featured-paper + .featured-paper { border-top: 1px solid var(--line); }
.paper-art { display: flex; align-items: center; justify-content: center; height: 122px; overflow: hidden; }
.paper-art img { width: 100%; max-height: 106px; object-fit: contain; }
.paper-content { min-width: 0; }
h3 { margin-bottom: 4px; color: var(--heading); font-size: 16px; font-weight: 700; line-height: 1.38; letter-spacing: -.022em; }
.featured-paper h3, .publication h3 { color: #000; font-family: var(--sans); }
.paper-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 2px; }
.paper-heading h3 { order: 1; flex: 1 1 auto; min-width: 0; margin-bottom: 0; }
.paper-heading .paper-links { order: 2; flex: 0 0 auto; flex-wrap: nowrap; gap: 10px; margin-top: 0; white-space: nowrap; }
.paper-authors, .paper-venue { margin-bottom: 0; font: 400 15px/1.52 "Lato Local", Lato, Arial, sans-serif; }
.paper-authors { color: #444; }
.paper-venue { color: var(--muted); }
.paper-summary { margin: 8px 0 0; color: #000; font: 400 15px/1.55 "Computer Modern Sans", Arial, sans-serif; }
.featured-paper .paper-authors, .featured-paper .paper-venue { font-size: 14px; }
.featured-paper .paper-authors, .featured-paper .paper-venue { line-height: 1.38; }
.featured-paper .paper-summary { margin-top: 4px; font-size: 15px; line-height: 1.35; }
.math { font-family: "Latin Modern Math", "Cambria Math", serif; font-size: 1em; }
.paper-links { display: flex; flex-wrap: wrap; gap: 5px 16px; margin-top: 8px; }
.paper-links a { color: var(--accent); font: 700 13px/1.5 var(--sans); }
.paper-links a:hover { opacity: .7; }

.publication { display: flex; justify-content: space-between; align-items: start; gap: 24px; padding: 7px 0; }
.publication + .publication { border-top: 1px solid var(--line); }
.publication h3 { margin-bottom: 2px; font-size: 16px; }
.publication .paper-authors, .publication .paper-venue { font-size: 14px; line-height: 1.38; }
.publication .paper-links { flex: 0 0 auto; margin-top: 2px; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.project { display: flex; flex-direction: column; padding: 0 0 12px; border-bottom: 1px solid var(--line); }
.project h3 { margin-bottom: 2px; font-family: var(--sans); font-size: 16px; font-weight: 700; white-space: nowrap; }
.project h3 a { color: var(--accent); }
.project h3 a:hover { color: #981b1b; }
.project p { margin: 0; color: var(--muted); font-size: 13px; }

@media (max-width: 1000px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project:last-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .site-shell { --portrait-width: 120px; padding: 0 22px; }
  .hero { gap: 20px; }
  .featured-paper { grid-template-columns: 145px minmax(0, 1fr); gap: 18px; }
  .paper-art { height: 110px; }
  .paper-art img { max-height: 94px; }
}
@media (max-width: 560px) {
  .site-shell { --portrait-width: 64px; }
  .hero { display: block; padding: 16px 0 8px; }
  .portrait-wrap { float: right; width: var(--portrait-width); margin: 0 0 8px 14px; }
  .hero-intro { font-size: 16px; }
  .hero-heading { gap: 10px; }
  .social-links a { width: 27px; height: 27px; }
  .social-links svg { width: 21px; height: 21px; }
  .content-section { padding: 14px 0 20px; }
  .section-heading { align-items: start; flex-direction: column; gap: 3px; margin-bottom: 8px; }
  .featured-paper { grid-template-columns: 106px minmax(0, 1fr); gap: 4px 12px; align-items: start; padding: 10px 0; }
  .paper-art { grid-column: 1; grid-row: 1 / span 3; height: 88px; }
  .paper-art img { max-height: 76px; }
  .featured-paper .paper-content { display: contents; }
  .featured-paper .paper-heading { display: block; grid-column: 2; grid-row: 1; }
  .featured-paper h3 { font-size: 15px; }
  .paper-heading .paper-links { float: right; gap: 6px; margin-left: 8px; }
  .paper-heading .paper-links a { font-size: 12px; }
  .featured-paper .paper-authors { grid-column: 2; grid-row: 2; }
  .featured-paper .paper-venue { grid-column: 2; grid-row: 3; }
  .featured-paper .paper-summary { grid-column: 1 / -1; }
  .featured-paper .paper-summary { margin-top: 0; }
  .publication { display: block; }
  .publication .paper-links { margin-top: 5px; }
  .project-grid { grid-template-columns: 1fr; gap: 14px; }
  .project:last-child { grid-column: auto; }
}
@media (max-width: 360px) {
  .site-shell { --portrait-width: 56px; padding: 0 16px; }
  .brand { font-size: 30px; }
  .hero-intro { font-size: 15px; }
  .portrait-wrap { margin-left: 10px; }
  h2 { font-size: 24px; }
  .project h3 { font-size: 15px; }
  .featured-paper { grid-template-columns: 90px minmax(0, 1fr); gap: 4px 10px; }
  .paper-art { height: 76px; }
  .paper-art img { max-height: 70px; }
  .featured-paper h3 { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
