/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  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;
  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;
  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;
  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;
  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;
  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;
  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;
  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: #fff9fd;
  --surface: #ffffff;
  --surface-soft: #fff0f8;
  --surface-warm: #f7efff;
  --text: #27232a;
  --muted: #6e6070;
  --line: #ead8e6;
  --accent: #c04d96;
  --accent-strong: #8e2f73;
  --accent-soft: #f6ddec;
  --shadow: 0 14px 36px rgba(86, 33, 74, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.62;
}

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 3px;
}

a:focus,
a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

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

p,
h1,
h2,
h3 {
  margin-top: 0;
}

p {
  margin-bottom: 1rem;
}

.page {
  width: min(100% - 40px, 980px);
  margin: 0 auto;
  padding: 24px 0 64px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0 28px;
}

.brand {
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.nav a {
  color: var(--muted);
  font-size: 14px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 56px;
  align-items: center;
  padding: 28px 0 44px;
}

.hero h1 {
  margin-bottom: 12px;
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 700;
  line-height: 1;
}

.lead {
  max-width: 700px;
  color: #342d36;
  font-size: 21px;
  line-height: 1.45;
}

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

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.link-row a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 700;
}

.portrait-link {
  justify-self: center;
}

.portrait {
  width: 230px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.section {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 20px;
}

.section-heading h2,
.also-me h2 {
  margin-bottom: 0;
  font-size: 28px;
  line-height: 1.2;
}

.section-heading.compact {
  margin-bottom: 12px;
}

.focus-grid,
.thread-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mini-card,
.thread-card,
.also-me {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
}

.mini-card {
  background: var(--surface-soft);
}

.mini-card h3,
.thread-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.25;
}

.mini-card p,
.thread-card p,
.also-me p {
  margin-bottom: 0;
  color: var(--muted);
}

.news-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-list li {
  display: grid;
  grid-template-columns: 88px 76px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.news-list li:last-child {
  border-bottom: 0;
}

.news-list time {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.news-list p {
  margin-bottom: 0;
}

.tag,
.venue,
.status {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
}

.thread-card {
  position: relative;
  overflow: hidden;
}

.thread-number {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

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

.publication {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.publication.featured {
  border-color: #e3a8cb;
  background: linear-gradient(180deg, #fff3fa 0%, #ffffff 88%);
}

.publication.quiet {
  background: #fffbfe;
}

.publication-media {
  display: grid;
  min-height: 150px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff7fc;
  overflow: hidden;
}

a.publication-media:hover {
  border-color: #e3a8cb;
}

.publication-media img {
  width: 100%;
  height: 100%;
  max-height: 170px;
  padding: 10px;
  object-fit: contain;
}

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

.publication-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.publication h3 {
  margin-bottom: 6px;
  font-size: 19px;
  line-height: 1.25;
}

.publication h3 a {
  color: var(--text);
}

.authors {
  margin-bottom: 8px;
  color: #443844;
  line-height: 1.45;
}

.publication p {
  color: var(--muted);
  line-height: 1.5;
}

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

.paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 0;
}

.paper-links a {
  font-size: 14px;
  font-weight: 700;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.plain-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.plain-list li + li {
  margin-top: 8px;
}

.also-me {
  background: var(--surface-warm);
}

@media (max-width: 780px) {
  .page {
    width: min(100% - 28px, 680px);
    padding-top: 16px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 12px;
  }

  .portrait-link {
    grid-row: 1;
    justify-self: start;
  }

  .portrait {
    width: 164px;
  }

  .lead {
    font-size: 18px;
  }

  .focus-grid,
  .thread-grid,
  .two-column {
    grid-template-columns: 1fr;
  }

  .news-list li {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 6px 10px;
  }

  .news-list p {
    grid-column: 1 / -1;
  }

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

  .publication-media {
    min-height: 170px;
  }
}

@media (max-width: 460px) {
  body {
    font-size: 15px;
  }

  .page {
    width: min(100% - 24px, 420px);
  }

  .hero h1 {
    font-size: 42px;
  }

  .section {
    padding: 28px 0;
  }

  .section-heading h2,
  .also-me h2 {
    font-size: 24px;
  }

  .publication,
  .mini-card,
  .thread-card,
  .also-me {
    padding: 14px;
  }

  .publication-media {
    min-height: 140px;
  }
}
