:root {
  --bg: #fbfbfa;
  --ink: #1d2327;
  --muted: #5d6870;
  --soft: #eef1ef;
  --line: #d9dfdc;
  --accent: #176f67;
  --accent-soft: #e6f2ef;
  --paper: #ffffff;
  --link: #0a62a3;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.58;
}

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

a:hover {
  text-decoration: underline;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(940px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--ink);
  font-weight: 750;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
  font-size: 0.95rem;
  text-transform: lowercase;
}

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

.nav a.active,
.nav a:hover {
  color: var(--ink);
}

.page,
.site-footer {
  width: min(940px, calc(100% - 2rem));
  margin: 0 auto;
}

.page {
  padding: 2.8rem 0 3rem;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 2.2rem;
  align-items: start;
}

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

h1 {
  margin-bottom: 0.25rem;
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0;
}

.page-heading h1 {
  margin-bottom: 0.6rem;
}

h2 {
  margin-bottom: 0.85rem;
  font-size: 1.45rem;
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.2rem;
  font-size: 1rem;
  line-height: 1.3;
}

.subtitle {
  margin-bottom: 1.2rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.body-text {
  max-width: 66ch;
}

.body-text p {
  margin-bottom: 0.9rem;
}

.contact-line {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.contact-label {
  color: var(--ink);
  font-weight: 750;
}

.portrait-card {
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.portrait-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: contain;
}

.content-section {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.content-section.flush {
  margin-top: 1.8rem;
}

.section-title-row,
.with-action,
.item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.2rem;
}

.text-link {
  flex: 0 0 auto;
  margin-top: 0.15rem;
  font-size: 0.9rem;
}

.news-list {
  display: grid;
  gap: 0.35rem;
}

.service-list {
  display: grid;
  gap: 0.35rem;
}

.service-item {
  margin: 0;
}

.news-item {
  margin: 0;
}

.date {
  display: inline-block;
  min-width: 6.8rem;
  color: var(--accent);
  font-weight: 750;
}

.publication-list {
  display: grid;
  gap: 1.2rem;
}

.publication {
  display: grid;
  grid-template-columns: 4.8rem minmax(0, 1fr);
  gap: 1rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--soft);
}

.publication:last-child {
  border-bottom: 0;
}

.compact .publication {
  padding-bottom: 0.95rem;
}

.pub-marker {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 850;
}

.publication h2 {
  margin-bottom: 0.25rem;
  font-size: 1.08rem;
}

.authors,
.venue,
.place,
.meta,
.page-heading p {
  color: var(--muted);
}

.authors,
.venue,
.pub-links,
.place,
.meta {
  margin-bottom: 0.25rem;
}

.me {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

.venue {
  font-style: italic;
}

.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.45rem;
  font-size: 0.9rem;
}

.button-link {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 750;
}

.timeline,
.simple-list,
.skill-list {
  display: grid;
  gap: 1rem;
}

.timeline-item,
.simple-item,
.skill-group {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--soft);
}

.timeline-item:last-child,
.simple-item:last-child,
.skill-group:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.period {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 750;
  text-align: right;
}

.bullets {
  margin: 0.55rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.2rem 0.45rem;
  border-radius: 5px;
  background: var(--accent-soft);
  color: #13534d;
  font-size: 0.82rem;
  font-weight: 700;
}

.small {
  font-size: 0.92rem;
}

.info-table {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 0.65rem 1rem;
  max-width: 760px;
}

.info-label {
  color: var(--muted);
  font-weight: 750;
}

.info-value {
  min-width: 0;
}

.site-footer {
  padding: 1.6rem 0 2.6rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
  }

  .nav {
    justify-content: flex-start;
  }

  .page {
    padding-top: 2rem;
  }

  .intro {
    grid-template-columns: 1fr;
  }

  .info-table {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .info-value {
    margin-bottom: 0.6rem;
  }

  .portrait-card {
    max-width: 310px;
  }

  .section-title-row,
  .with-action,
  .item-header {
    flex-direction: column;
    gap: 0.25rem;
  }

  .period {
    text-align: left;
  }

  .publication {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .date {
    display: block;
    min-width: 0;
  }
}
