:root {
  color-scheme: light;
  --bg: #fbfaf7;
  --text: #202124;
  --muted: #676b70;
  --border: #dedbd3;
  --accent: #165f7a;
  --accent-dark: #0f465b;
  --surface: #ffffff;
  --max-width: 760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 17px;
  line-height: 1.72;
}

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

a:hover {
  color: var(--accent-dark);
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 14px 28px;
}

.site-title {
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}

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

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

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.lang-button {
  min-width: 48px;
  border: 0;
  border-radius: 999px;
  padding: 5px 9px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.lang-button.is-active {
  background: var(--accent);
  color: #ffffff;
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 68px 28px 52px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 48px;
  align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2 {
  color: var(--text);
  line-height: 1.2;
}

h1 {
  margin: 0 0 12px;
  font-size: 42px;
  font-weight: 700;
}

h2 {
  margin: 0 0 14px;
  font-size: 23px;
}

p {
  margin: 0 0 16px;
}

.lead {
  color: #33363a;
  font-size: 20px;
  line-height: 1.55;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-top: 22px;
}

.text-link {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 600;
}

.profile-figure {
  margin: 6px 0 0;
}

.profile-photo {
  display: block;
  width: 190px;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--border);
  object-fit: cover;
  object-position: 32% 44%;
}

.section {
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}

.section[id] {
  scroll-margin-top: 88px;
}

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

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}

.keyword-list li {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--surface);
  color: #393c40;
}

.publication-list {
  margin: 12px 0 0;
  padding-left: 22px;
}

.contact-list,
.cv-summary {
  margin: 0;
}

.contact-list div,
.cv-summary div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 20px;
  padding: 8px 0;
}

.contact-list dt,
.cv-summary dt {
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}

.contact-list dd,
.cv-summary dd {
  margin: 0;
}

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 28px 40px;
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 13px 20px;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .page {
    padding: 44px 20px 36px;
  }

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

  h1 {
    font-size: 34px;
  }

  .lead {
    font-size: 18px;
  }

  .profile-photo {
    width: min(220px, 100%);
  }

  .contact-list div,
  .cv-summary div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .section[id] {
    scroll-margin-top: 130px;
  }
}
