:root {
  --bg: #f7f8fa;
  --paper: #ffffff;
  --ink: #1d2630;
  --muted: #5f6b78;
  --line: #dfe5eb;
  --accent: #1f6fba;
  --accent-soft: #edf5fc;
  --gold: #856214;
  --gold-soft: #fff7df;
  --max-width: 960px;
}

* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
}

.nav a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.nav a:hover,
.nav a:focus {
  color: var(--accent);
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 28px;
  min-width: 0;
}

.intro {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 34px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.intro-copy,
.publication-main,
.timeline-item > div,
.project,
.project-heading,
.section {
  min-width: 0;
}

.portrait-wrap {
  width: 220px;
  aspect-ratio: 1;
}

.portrait {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
  overflow-wrap: break-word;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(2.2rem, 7vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 1.55rem;
  line-height: 1.25;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 6px;
  font-size: 1.08rem;
  line-height: 1.35;
}

h4 {
  margin-bottom: 5px;
  font-size: 1rem;
  line-height: 1.4;
}

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

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

.headline {
  max-width: 620px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 1.08rem;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-links a,
.contact-links a,
.role {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}

.quick-links a,
.contact-links a {
  color: var(--accent);
  border: 1px solid #b9d6ef;
  background: var(--accent-soft);
}

.section {
  padding: 38px 0 0;
}

.section > p {
  max-width: 780px;
}

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

.news-list li {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 18px;
  background: var(--gold-soft);
  border: 1px solid #f0db9b;
  border-radius: 8px;
}

.date {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.news-list .date {
  color: var(--gold);
}

.publication-group {
  display: grid;
  gap: 12px;
}

.publication-group + .publication-group {
  margin-top: 26px;
}

.publication {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 18px;
  align-items: start;
  padding: 17px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.publication p,
.project p,
.timeline-item p {
  margin-bottom: 0;
}

.venue {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 700;
}

.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.pub-links a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  color: #34516c;
  background: #f6f9fb;
  border: 1px solid #d7e2eb;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.role {
  color: #34516c;
  background: #eef3f7;
  border: 1px solid #d4e0ea;
  white-space: nowrap;
}

.timeline-list,
.project-list {
  display: grid;
  gap: 12px;
}

.timeline-item,
.project {
  padding: 17px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.timeline-item,
.project-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.note {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 700;
}

.section-lead {
  color: var(--muted);
  font-weight: 700;
}

.project-title {
  color: var(--ink);
  font-weight: 700;
}

.project-details {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.project-details summary {
  color: var(--accent);
  cursor: pointer;
  font-weight: 700;
}

.cycle-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.contact {
  padding-bottom: 26px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 26px 24px 40px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer p {
  margin-bottom: 0;
}

@media (max-width: 720px) {
  .site-header {
    position: static;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 12px;
    padding: 12px 18px;
  }

  .nav a {
    font-size: 0.88rem;
  }

  .page {
    width: 100%;
    max-width: 100%;
    padding: 28px 18px 22px;
  }

  .intro {
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 22px;
  }

  .portrait-wrap {
    width: min(220px, 72vw);
  }

  h1 {
    font-size: 2rem;
  }

  .headline {
    font-size: 1rem;
  }

  .publication,
  .news-list li,
  .timeline-item,
  .project-heading {
    grid-template-columns: 1fr;
  }

  .publication,
  .timeline-item,
  .project-heading,
  .footer {
    display: grid;
  }

  .role {
    width: fit-content;
  }

  .footer {
    padding: 22px 18px 34px;
  }
}
