:root {
  --ink: #2c3e50;
  --text: #3b3b3b;
  --muted: #64748b;
  --link: #3172b4;
  --line: #e6eaf0;
  --soft-blue: #f0f7ff;
  --paper: #ffffff;
  --page: #f8fafc;
  --max-width: 1040px;
  color-scheme: light;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, var(--page) 0, var(--paper) 12%, var(--paper) 88%, var(--page) 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  height: 4px;
  background: var(--ink);
  content: "";
}

a {
  color: var(--link);
  text-decoration-color: rgba(49, 114, 180, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

a:hover {
  color: var(--ink);
  text-decoration-color: var(--ink);
}

a:focus-visible {
  border-radius: 3px;
  outline: 3px solid rgba(49, 114, 180, 0.28);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 20;
  padding: 0.45rem 0.75rem;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  transform: translateY(-180%);
}

.skip-link:focus {
  color: #fff;
  transform: translateY(0);
}

.page-shell {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
}

.intro {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(3rem, 7vw, 5.5rem);
  padding: clamp(5.5rem, 10vw, 8rem) 0 clamp(4.5rem, 8vw, 6.5rem);
  border-bottom: 1px solid var(--line);
}

.portrait-column {
  padding-top: 0.45rem;
}

.portrait-frame {
  position: sticky;
  top: 3rem;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1;
  border: 8px solid #fff;
  border-radius: 8px;
  background: #dbe3e9;
  box-shadow: 0 14px 40px rgba(44, 62, 80, 0.14), 0 2px 7px rgba(44, 62, 80, 0.08);
}

.portrait-frame::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(44, 62, 80, 0.08);
  border-radius: 3px;
  content: "";
  pointer-events: none;
}

.portrait-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
}

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

h1,
h2,
h3 {
  color: var(--ink);
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2.75rem, 6vw, 4.65rem);
  font-weight: 750;
  letter-spacing: -0.052em;
  line-height: 0.98;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
  margin-top: 2rem;
  margin-bottom: 3.4rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid var(--line);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}

.contact-link svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

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

.publication-jump {
  margin-left: auto;
  padding: 0.42rem 0.72rem;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
}

.publication-jump:hover {
  border-color: var(--link);
  background: var(--link);
  color: #fff;
}

.biography h2,
.section-heading h2 {
  margin-bottom: 1.35rem;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.25;
  text-transform: uppercase;
}

.biography h2 {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.biography h2::after {
  flex: 1;
  height: 1px;
  background: var(--line);
  content: "";
}

.biography p {
  margin-bottom: 1.1rem;
}

.biography p:last-child {
  margin-bottom: 0;
}

.seeking-callout {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-top: 2rem;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--ink);
  border-radius: 0 4px 4px 0;
  background: var(--soft-blue);
  color: var(--ink);
}

.seeking-callout svg {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.27rem;
  fill: none;
  stroke: var(--link);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.seeking-callout p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.55;
}

.section {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: clamp(2.5rem, 7vw, 5.5rem);
  padding: clamp(4.5rem, 8vw, 6.5rem) 0;
}

.publications {
  scroll-margin-top: 2rem;
}

.section-heading {
  position: sticky;
  top: 3rem;
  align-self: start;
}

.section-heading h2 {
  margin-bottom: 0;
}

.publication-list {
  border-top: 1px solid var(--line);
}

.publication {
  padding: 2rem 0 2.15rem;
  border-bottom: 1px solid var(--line);
}

.venue-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.venue {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.2rem 0.58rem;
  border: 1px solid #d6e5f3;
  border-radius: 3px;
  background: var(--soft-blue);
  color: var(--ink);
  font-size: 0.69rem;
  font-weight: 750;
  letter-spacing: 0.045em;
  line-height: 1.2;
  text-transform: uppercase;
}

.venue-primary {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.publication h3 {
  max-width: 700px;
  margin-bottom: 0.6rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 720;
  letter-spacing: -0.014em;
  line-height: 1.38;
}

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

.publication h3 a::after {
  display: inline-block;
  margin-left: 0.42em;
  color: var(--link);
  content: "↗";
  font-size: 0.78em;
  font-weight: 600;
  transform: translateY(-0.08em);
  transition: transform 160ms ease;
}

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

.publication h3 a:hover::after {
  transform: translate(0.12em, -0.2em);
}

.authors {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--page);
}

.footer-inner {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
  padding: 2rem 0 2.4rem;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.footer-inner p {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  body {
    background: var(--paper);
    font-size: 16px;
  }

  .page-shell,
  .footer-inner {
    width: min(calc(100% - 34px), var(--max-width));
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 2.3rem;
    padding: 3.8rem 0 4rem;
  }

  .portrait-column {
    padding-top: 0;
  }

  .portrait-frame {
    position: relative;
    top: auto;
    width: 148px;
    aspect-ratio: 1;
    border-width: 5px;
    border-radius: 50%;
  }

  .portrait-frame::after {
    border-radius: 50%;
  }

  .portrait-frame img {
    object-position: 50% 52%;
  }

  h1 {
    font-size: clamp(2.65rem, 14vw, 4rem);
  }

  .contact-links {
    margin-bottom: 2.6rem;
    padding-bottom: 1.8rem;
  }

  .publication-jump {
    margin-left: 0;
  }

  .section {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    padding: 4rem 0;
  }

  .section-heading {
    position: static;
  }

  .section-heading h2 {
    margin-bottom: 0;
  }

  .publication {
    padding: 1.65rem 0 1.8rem;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
