:root {
  color-scheme: light;
  --bg: #f7f9fb;
  --paper: #ffffff;
  --ink: #172026;
  --muted: #64707d;
  --line: #d8e1ea;
  --accent: #b2444c;
  --accent-soft: #dceeea;
  --link: #1f6f8b;
}

* {
  box-sizing: border-box;
}

html {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

.page {
  width: min(900px, calc(100% - 36px));
  margin: 0 auto;
  padding: 64px 0 88px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

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

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 7vw, 78px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: 0;
}

.role {
  margin-top: 12px;
  color: var(--muted);
  font-size: 18px;
}

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

h2 {
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.profile {
  display: grid;
  grid-template-columns: 136px 1fr;
  gap: 28px;
  align-items: start;
}

.profile-photo {
  width: 136px;
  height: auto;
  display: block;
  border: 1px solid #cfd9e3;
  background: var(--accent-soft);
}

.bio h2,
.links h2 {
  margin-bottom: 16px;
}

.bio p {
  max-width: 66ch;
  color: #302d29;
  font-size: 17px;
  line-height: 1.72;
}

.link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.link-grid a,
.link-grid span,
.paper-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 250, 0.72);
  color: var(--link);
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
}

.link-grid span {
  color: var(--muted);
}

.publications {
  border-bottom: 0;
}

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

.section-heading p {
  color: var(--muted);
  font-size: 14px;
}

.publication {
  display: grid;
  grid-template-columns: 250px 1fr;
  align-items: start;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.paper-thumb {
  display: block;
  align-self: start;
  transform: translateY(4px);
  width: 250px;
  overflow: hidden;
  border: 1px solid #cfd9e3;
  background: var(--paper);
}

.paper-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

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

.paper-body h3 {
  max-width: 680px;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: 0;
  font-weight: 650;
}

.authors {
  margin-top: 8px;
  color: #3f3a35;
  font-size: 15px;
  line-height: 1.55;
}

.venue {
  margin-top: 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 650;
}

.paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.paper-links a {
  min-height: 30px;
  padding: 6px 10px;
}

@media (max-width: 700px) {
  .page {
    width: min(100% - 28px, 900px);
    padding-top: 42px;
  }

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

  .profile-photo {
    width: 128px;
  }

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

  .paper-thumb {
    width: min(100%, 280px);
  }
}
