:root {
  --bg: #f4f1ea;
  --paper: #fffcf7;
  --ink: #1c1917;
  --muted: #57534e;
  --accent: #0f766e;
  --accent-ink: #115e59;
  --line: #e4ddd2;
  --shadow: 0 18px 50px rgba(28, 25, 23, 0.08);
  --serif: "Iwanami Mincho", "Source Han Serif SC", "Songti SC", "Noto Serif SC", Georgia, serif;
  --sans: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #efe7d6 0%, transparent 55%),
    var(--bg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}

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

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

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.brand {
  color: inherit;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-weight: 500;
  font-size: 13px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}

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

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.lang {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--paper);
}

.lang a {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  color: var(--muted);
}

.lang a[aria-current="page"] {
  background: var(--ink);
  color: #fff;
}

.layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.layout > * {
  min-width: 0;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.profile {
  padding: 16px;
  position: sticky;
  top: 18px;
}

.profile img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 55% 82%;
  border-radius: 16px;
  background: #d6d3cd;
}

.profile h1 {
  margin: 16px 4px 0;
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.2;
}

.role {
  margin: 6px 4px 14px;
  color: var(--muted);
  font-size: 14px;
}

.meta {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.meta li {
  margin: 0 4px 8px;
  color: var(--muted);
}

.meta a {
  text-decoration: none;
}

.main {
  padding: 28px 32px 36px;
}

.main h2 {
  margin: 1.6em 0 0.55em;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.main h2:first-child {
  margin-top: 0;
}

.main p,
.main li {
  color: #292524;
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline > li {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.timeline > li:first-child {
  border-top: 0;
  padding-top: 0;
}

.when {
  color: var(--muted);
  font-size: 14px;
}

.job-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
}

.job-head strong {
  font-weight: 650;
}

.job-head span {
  color: var(--muted);
  font-size: 14px;
}

.bullets {
  margin: 8px 0 0;
  padding-left: 1.15em;
}

.bullets li {
  display: list-item;
  margin: 0 0 0.55em;
  padding: 0;
  border: 0;
}

.pubs {
  margin: 0;
  padding-left: 1.2em;
}

.pubs li {
  margin: 0 0 1em;
  overflow-wrap: anywhere;
}

.pubs .venue {
  font-style: italic;
}

.links {
  white-space: normal;
}

.skills {
  margin: 0;
}

footer {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .profile {
    position: static;
  }

  .profile img {
    max-height: 420px;
  }

  .timeline > li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .main {
    padding: 22px 20px 28px;
  }
}
