:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-muted: #ffffff;
  --text: #20262d;
  --muted: #66707a;
  --accent: #334652;
  --line: #e1e4e8;
  --line-strong: #d2d7dc;
  --shadow: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  line-height: 1.7;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

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

.page-shell {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 44px;
}

.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-strong);
}

h1,
h2,
h3 {
  color: var(--text);
  font-family: "Newsreader", serif;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-nav a {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
}

.site-main {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

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

.section-block:first-child {
  border-top: 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(360px, 420px) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.portrait-column {
  max-width: 420px;
}

.intro-content {
  padding-top: 4px;
}

.name-row {
  display: block;
}

.portrait-frame {
  padding: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.portrait-frame img {
  width: 100%;
  height: auto;
  background: #ffffff;
  object-fit: contain;
}

.role-line,
.section-kicker,
.publication-year,
.item-date,
.compact-list span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.role-line {
  margin-top: 6px;
  letter-spacing: 0.04em;
  text-transform: none;
}

.role-links a {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.section-kicker {
  display: none;
}

h1 {
  font-size: clamp(2.3rem, 4.2vw, 3.3rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.intro-lead {
  margin-top: 10px;
  max-width: 56ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.intro-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.intro-links span {
  color: var(--muted);
}

.section-heading {
  margin-bottom: 16px;
}

.section-heading h2 {
  margin-top: 0;
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  line-height: 1.05;
}

.section-copy {
  margin-top: 6px;
  max-width: 56ch;
  color: var(--muted);
  font-size: 0.97rem;
}

.positions-list,
.event-list,
.compact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.positions-list li,
.event-list li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.positions-list li:first-child,
.event-list li:first-child,
.publication-entry:first-child,
.compact-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.positions-list li.positions-continuation {
  border-top: 0;
  padding-top: 4px;
}

.item-body h3 {
  font-size: 1.12rem;
  line-height: 1.2;
}

.item-body p {
  margin-top: 6px;
  color: var(--muted);
}

.publication-listing {
  display: block;
}

.publication-entry {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.publication-figure {
  padding: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  align-self: start;
}

.publication-figure img {
  width: 100%;
  max-height: 180px;
  background: #ffffff;
  object-fit: contain;
}

.publication-details h3 {
  margin-top: 6px;
  font-size: 1.16rem;
  line-height: 1.25;
}

.publication-meta {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 500;
}

.publication-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 14px;
  margin-top: 6px;
}

.publication-meta-row .publication-meta {
  margin-top: 0;
}

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

.paper-links-inline {
  margin-top: 0;
  justify-content: flex-end;
}

.paper-links a {
  font-weight: 600;
}

.publication-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.subsection {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.subsection-first {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.subsection h3 {
  margin-bottom: 12px;
  font-size: 1.12rem;
}

.compact-list li {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.compact-list a {
  color: var(--text);
  font-weight: 600;
}

.compact-list strong {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.site-footer {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.92rem;
}

a:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(47, 76, 90, 0.28);
  outline-offset: 3px;
}

@media (max-width: 820px) {
  .site-header,
  .intro-grid,
  .positions-list li,
  .event-list li,
  .publication-entry {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: flex-start;
  }

  .portrait-column {
    max-width: 480px;
  }

}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 920px);
    padding-top: 18px;
  }

  .site-nav,
  .link-row,
  .paper-links {
    gap: 10px;
  }

  .compact-list li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  h1 {
    font-size: clamp(2rem, 11vw, 3rem);
  }
}
