﻿:root {
  --bg: #ffffff;
  --ink: #1f2933;
  --muted: #5d6978;
  --light: #f5f6f7;
  --line: #d9dee5;
  --link: #174a7c;
  --link-hover: #8a3a24;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1000px, calc(100% - 40px));
  min-height: 62px;
  margin: 0 auto;
}

.brand {
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.brand span {
  margin-left: 0.28em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

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

.page-shell,
.site-footer {
  width: min(1000px, calc(100% - 40px));
  margin: 0 auto;
}

.intro {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding: 64px 0 56px;
  border-bottom: 3px solid var(--ink);
}

.kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 24px;
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 span {
  display: inline-block;
  margin-left: 8px;
  font-weight: 400;
}

h2 {
  margin-bottom: 16px;
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 4px;
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: 0;
}

.intro-text {
  max-width: 650px;
  margin-bottom: 22px;
  font-size: 20px;
  line-height: 1.55;
}

.link-row,
.paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.inactive-link {
  color: var(--ink);
  cursor: text;
  text-decoration: none;
}

.paper-links a {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

#top,
#statement,
#research,
#teaching {
  scroll-margin-top: 86px;
}

.portrait {
  margin: 0;
}

.profile-photo {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

.about-details dl {
  display: grid;
  gap: 18px;
  margin: 0;
}

.about-details dt {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.about-details dd {
  margin: 2px 0 0;
  font-size: 17px;
  line-height: 1.5;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.section {
  padding: 54px 0 56px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.intro + .section {
  border-top: 0;
}

.two-column {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 54px;
}

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

.full-width-title {
  margin-bottom: 52px;
}

.section-body {
  max-width: 700px;
}

.statement-body p {
  margin-bottom: 18px;
}

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

.plain-list {
  margin: 0;
  padding-left: 20px;
}

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

.teaching-group + .teaching-group {
  margin-top: 28px;
}

.teaching-group h3 {
  margin-bottom: 8px;
}

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

.paper:first-of-type {
  padding-top: 28px;
}

.paper-venue,
.authors {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}

.paper-venue {
  margin-bottom: 2px;
  font-weight: 700;
}

.authors {
  margin-bottom: 10px;
  font-style: italic;
}

.paper .abstract {
  max-width: 760px;
  margin-bottom: 12px;
}

.site-footer {
  padding: 26px 0 40px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
}

.error-page {
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
  padding: 120px 0;
}

.error-page h1 {
  max-width: 620px;
  margin-bottom: 14px;
  font-size: 36px;
}

.error-page p {
  max-width: 560px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .intro,
  .two-column {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .intro {
    padding-top: 42px;
  }

  .portrait {
    max-width: 320px;
  }

  h1 {
    font-size: 40px;
  }

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

}
