/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAUi-qNiXg7eU0.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAXC-qNiXg7Q.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://fonts.gstatic.com/s/lato/v15/S6u_w4BMUTPHjxsI5wq_FQftx9897sxZ.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://fonts.gstatic.com/s/lato/v15/S6u_w4BMUTPHjxsI5wq_Gwftx9897g.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjxAwXiWtFCfQ7A.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjx4wXiWtFCc.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwaPGQ3q5d0N7w.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwiPGQ3q5d0.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #fbfcfe;
  --text: #1f2933;
  --muted: #596675;
  --link: #2563a6;
  --link-hover: #8c1515;
  --accent: #8c1515;
  --line: #dbe3ec;
  --line-strong: #c7d2de;
  --shadow: 0 14px 36px rgba(31, 41, 51, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #ffffff 0, var(--bg) 20rem);
  color: var(--text);
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

a {
  color: var(--link);
  text-decoration: none;
  text-underline-offset: 0.18em;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

a:focus-visible {
  outline: 2px solid rgba(140, 21, 21, 0.45);
  outline-offset: 3px;
}

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

p {
  margin: 0;
}

strong {
  font-weight: 700;
}

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  width: 100%;
  max-width: 940px;
  margin: 64px auto 32px;
  padding: 0 24px;
}

.profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 48px;
  align-items: center;
  padding: 32px 0 44px;
  border-bottom: 1px solid var(--line);
}

.profile-copy {
  max-width: 680px;
  min-width: 0;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.name {
  margin: 0 0 26px;
  color: #111827;
  font-size: 54px;
  font-weight: 700;
  line-height: 1.03;
}

.name::after {
  content: "";
  display: block;
  width: 58px;
  height: 3px;
  margin-top: 16px;
  border-radius: 999px;
  background: var(--accent);
}

.intro-text {
  max-width: 650px;
  margin-top: 14px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.55;
}

.contact-line {
  margin-top: 22px;
  color: var(--muted);
}

.contact-line strong {
  color: var(--text);
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.social-icons a {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--link);
  font-size: 23px;
}

.social-icons a:hover {
  border-color: rgba(140, 21, 21, 0.38);
  background: rgba(140, 21, 21, 0.08);
  color: var(--link-hover);
  transform: translateY(-1px);
}

.profile-photo {
  justify-self: end;
  width: 230px;
  margin: 0;
  transform: translateX(-24px);
}

.profile-photo a {
  display: block;
  border-radius: 50%;
}

.profile-photo img {
  width: 230px;
  aspect-ratio: 1;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  object-fit: cover;
  object-position: 53% center;
  box-shadow: var(--shadow);
}

.section-block {
  padding-top: 42px;
}

.section-heading {
  display: flex;
  gap: 16px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 14px;
}

.section-heading h2 {
  position: relative;
  margin: 0;
  padding-left: 14px;
  color: #111827;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.section-heading h2::before {
  content: "";
  position: absolute;
  top: 0.13em;
  bottom: 0.13em;
  left: 0;
  width: 4px;
  border-radius: 999px;
  background: var(--accent);
}

.section-link {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.section-link:hover {
  color: var(--link-hover);
}

.publication-list {
  display: grid;
  gap: 18px;
}

.publication-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(31, 41, 51, 0.03);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.publication-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 12px 28px rgba(31, 41, 51, 0.08);
  transform: translateY(-2px);
}

.publication-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(219, 227, 236, 0.75);
  border-radius: 6px;
  background: var(--surface-soft);
}

.publication-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.publication-card:hover .publication-media img {
  transform: scale(1.025);
}

.publication-media.publication-media-contain {
  aspect-ratio: 2221 / 985;
}

.publication-media-contain img {
  padding: 0;
  object-fit: contain;
}

.publication-card:hover .publication-media-contain img {
  transform: none;
}

.publication-content {
  min-width: 0;
}

.papertitle {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.32;
}

.papertitle a {
  color: #111827;
}

.papertitle a:hover {
  color: var(--link-hover);
}

.authors,
.venue,
.paper-links,
.paper-summary {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.48;
}

.authors strong {
  color: var(--text);
}

.venue,
.paper-links,
.paper-summary {
  margin-top: 6px;
}

.paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  font-weight: 700;
}

.paper-links span {
  color: #9aa6b2;
  font-weight: 400;
}

.paper-summary {
  color: #465360;
}

.paper-summary strong {
  color: var(--text);
}

.site-footer {
  padding: 34px 0 20px;
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

@media (max-width: 760px) {
  .page-shell {
    margin-top: 30px;
    padding: 0 16px;
  }

  .profile-hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 34px;
  }

  .profile-photo {
    justify-self: start;
    width: 178px;
    transform: none;
  }

  .profile-photo img {
    width: 178px;
  }

  .intro-text {
    font-size: 18px;
  }

  .name {
    font-size: 42px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .publication-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 14px;
  }

  .publication-media {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 440px) {
  body {
    font-size: 16px;
  }

  .page-shell {
    padding: 0 12px;
  }

  .name {
    font-size: 36px;
  }

  .social-icons a {
    width: 40px;
    height: 40px;
    font-size: 21px;
  }

  .section-heading h2 {
    font-size: 25px;
  }

  .papertitle {
    font-size: 19px;
  }
}
