:root {
  --serif-head: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --ink: #202020;
  --muted: #6f6f6f;
  --line: #e5e5e5;
  --paper: #fbfdfd;
  --panel: #ffffff;
  --accent: #317d88;
  --accent-soft: #edf7f5;
  --mark: #556b72;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.72;
}

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

a:hover {
  color: var(--mark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
}

.site-header {
  background: #eef6f7;
}

.nav-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 42px 28px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0;
}

.nav {
  display: flex;
  gap: 24px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

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

.page {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 28px 72px;
  display: grid;
  grid-template-columns: minmax(210px, 255px) minmax(0, 1fr);
  gap: 62px;
}

.sidebar {
  font-size: 13px;
  line-height: 1.5;
}

.portrait {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 0;
  display: block;
  margin-bottom: 24px;
  background: var(--accent-soft);
  box-shadow: none;
}

.sidebar h1 {
  font-family: var(--serif-head);
  font-size: 18px;
  line-height: 1.25;
  margin: 0 0 12px;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-transform: none;
}

.title {
  color: var(--muted);
  margin: 0 0 22px;
}

.contact,
.quick-links {
  border-top: 1px solid var(--line);
  padding-top: 13px;
  margin-top: 13px;
}

.quick-links {
  display: grid;
  gap: 8px;
}

.content {
  min-width: 0;
}

.eyebrow {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 14px;
}

.content .page-heading {
  font-family: var(--serif-head);
  color: var(--ink);
  font-size: 30px;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.35;
  text-transform: none;
  margin-bottom: 28px;
  text-align: center;
}

h2 {
  font-size: 27px;
  line-height: 1.35;
  font-weight: 300;
  margin: 0 0 22px;
}

h3 {
  font-size: 20px;
  letter-spacing: 0;
  text-transform: none;
  margin: 36px 0 10px;
  padding-bottom: 0;
  border-bottom: 0;
  font-weight: 300;
}

h4 {
  font-size: 17px;
  margin: 24px 0 6px;
  font-weight: 500;
}

p {
  margin: 0 0 16px;
}

.home-intro {
  margin-top: 0;
}

.lead {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
}

.note {
  color: var(--muted);
  font-size: 15px;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 34px 0 36px;
}

.meta {
  background: #fafafa;
  border: 0;
  padding: 18px;
}

.meta strong {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 5px;
  font-weight: 500;
}

.list {
  display: grid;
  gap: 16px;
}

.item {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

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

.item-title {
  font-weight: 500;
}

.venue {
  font-style: italic;
}

.venue strong {
  font-weight: 600;
}

.research-list {
  gap: 15px;
}

.research-list .item {
  border-bottom: 0;
  padding-bottom: 4px;
  line-height: 1.45;
}

.research-list .item-title,
.paper-title {
  font-weight: 400;
}

.paper-authors,
.paper-meta {
  font-size: 13px;
  margin-top: 1px;
}

.paper-authors {
  color: var(--ink);
}

ul {
  margin: 0 0 18px 22px;
  padding: 0;
}

li {
  margin-bottom: 8px;
}

.cv-page li {
  font-size: 13px;
  margin-bottom: 3px;
}

.cv-page ul {
  margin-bottom: 14px;
}

.cv-page .note {
  font-size: 13px;
}

.cv-small {
  font-size: 13px;
}

.teaching-block {
  margin-bottom: 20px;
}

.teaching-block h4 {
  margin: 16px 0 6px;
}

.teaching-label {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 4px;
}

.compact li {
  margin-bottom: 4px;
}

.book-feature {
  display: flow-root;
  margin-bottom: 34px;
}

.book-page {
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Times New Roman", serif;
  line-break: strict;
}

.book-page p:not(.book-subtitle) {
  text-align: justify;
  text-justify: inter-ideograph;
}

.book-cover {
  width: 180px;
  float: right;
  display: block;
  margin: 0 0 20px 34px;
  border: 1px solid var(--line);
}

.book-kicker {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.book-title {
  font-family: "Yu Gothic", YuGothic, Meiryo, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 24px;
  line-height: 1.35;
  font-weight: 600;
  margin: 0 0 6px;
}

.book-page h3 {
  font-family: "Yu Gothic", YuGothic, Meiryo, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 600;
}

.book-subtitle {
  color: var(--muted);
  margin-bottom: 18px;
}

.book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
  margin-bottom: 30px;
}

.book-actions a {
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

.footer {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 28px 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 760px) {
  .nav-wrap {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-top: 30px;
  }

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

  .page {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 32px;
  }

  .portrait {
    max-width: 100%;
  }

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

  .book-feature {
    display: block;
  }

  .book-cover {
    float: none;
    width: 100%;
    max-width: 220px;
    margin: 0 0 22px;
  }

  h2 {
    font-size: 24px;
  }

  .lead {
    font-size: 15px;
  }
}
