:root {
  --bg: #ffffff;
  --text: #202124;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f7f7f8;
  --accent: #1f5f99;
  --max-width: 920px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #000000;
  color: #ffffff;
  border-bottom: 1px solid #000000;
}

.nav-wrap {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: inherit;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

nav {
  display: flex;
  gap: 24px;
}

nav a {
  color: inherit;
  font-size: 14px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 170px;
  gap: 56px;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 72px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 16px 0 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 7vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 500;
}

.hero-subtitle {
  margin: 18px 0 14px;
  color: #4b5563;
  font-size: 18px;
}

.hero-email {
  margin: 0 0 14px;
  font-size: 14px;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  font-size: 14px;
}

.link-row span { color: #c1c5cc; }

.portrait { width: 170px; }

.portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.section {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 42px;
  padding-top: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--line);
}

.section-label {
  padding-top: 3px;
  color: #111827;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-content { min-width: 0; }

.prose p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.75;
}

.section-note {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
}

/* Work Experience */
.experience-item {
  padding: 0;
}

.experience-item + .experience-item {
  margin-top: 28px;
}

.experience-topline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
}

.experience-company {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.4;
  font-weight: 600;
}

.experience-date {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.experience-role {
  margin: 4px 0 0;
  color: #555d68;
  font-size: 13px;
  font-weight: 500;
}

.experience-description {
  margin: 8px 0 0;
  color: #6b7280;
  font-size: 14px;
}

.publication-list {
  display: grid;
  gap: 0;
}

.publication {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 25px 0 27px;
  border-top: 1px solid var(--line);
}

.publication:first-child {
  border-top: 0;
  padding-top: 4px;
}

.pub-thumbnail {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  padding: 6px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.pub-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pub-thumbnail:hover {
  border-color: var(--accent);
}

.pub-thumbnail:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.pub-body { min-width: 0; }

.pub-topline {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
}

.pub-title {
  margin: 0;
  max-width: 680px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.45;
  font-weight: 600;
}

.pub-year {
  flex: 0 0 auto;
  padding-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.pub-authors,
.pub-venue {
  margin: 6px 0 0;
  color: #555d68;
  font-size: 14px;
}

.pub-authors strong {
  color: #1f2937;
  font-weight: 700;
}

.pub-venue {
  color: #6b7280;
  font-style: italic;
}

.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  font-size: 13px;
}

.pub-links a::before { content: "["; }
.pub-links a::after { content: "]"; }

/* Academic Service */
.service-role {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.4;
  font-weight: 600;
}

.service-venues {
  margin: 8px 0 0;
  color: #555d68;
  font-size: 14px;
}

.footer {
  min-height: 120px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  color: #9ca3af;
  font-size: 12px;
}

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .site-header { position: static; }

  .nav-wrap { min-height: 58px; }

  nav {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 56px;
    padding-bottom: 48px;
  }

  .portrait {
    width: 132px;
    order: -1;
  }

  h1 { font-size: 46px; }

  .hero-subtitle { font-size: 16px; }

  .section {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .prose p { font-size: 17px; }

  .experience-topline {
    align-items: flex-start;
  }

  .experience-date {
    padding-top: 4px;
  }

  .footer {
    min-height: 100px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 560px) {
  .publication {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
  }

  .pub-thumbnail { padding: 4px; }

  .pub-topline { display: block; }

  .pub-title { font-size: 17px; }

  .pub-year {
    display: block;
    margin-top: 5px;
    padding-top: 0;
  }
}
