:root {
  --bg: #f7f7f2;
  --surface: #ffffff;
  --text: #242424;
  --muted: #666666;
  --line: #dfdfdf;
  --accent: #5a6b4d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f6f8f2 0%, #f2f2ec 100%);
  color: var(--text);
  font-family: "Helvetica Neue", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.65;
}

.page {
  max-width: 1040px;
  margin: 36px auto;
  padding: 0 18px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.name {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: 0.02em;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.top-nav a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
}

.top-nav a:hover {
  text-decoration: underline;
}

.content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  margin-top: 22px;
}

.profile-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 16px;
  margin-top: 16px;
}

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

.card h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.news-list,
.pub-list {
  margin: 0;
  padding-left: 18px;
}

.news-list li {
  margin-bottom: 8px;
}

.pub-list li {
  margin-bottom: 14px;
}

.pub-title {
  font-weight: 700;
}

.pub-authors,
.pub-venue,
.pub-meta,
.pub-note,
.pub-links {
  color: #444;
}

.pub-links a {
  color: #4f5d78;
  text-decoration: none;
}

.pub-links a:hover {
  text-decoration: underline;
}

.pub-authors .self-name {
  font-weight: 700;
  text-decoration: underline;
}

.news-list li.slight-indent {
  margin-left: 0.7rem;
}

.news-list span {
  color: var(--accent);
  font-weight: 600;
}

.news-list .advisor {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.94rem;
  display: block;
  margin-left: 4.5em;
  white-space: normal;
}

.news-list .entry-emphasis {
  font-weight: 400;
  color: var(--text);
}

.feature {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  align-items: start;
}

.feature img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

.feature h3 {
  margin: 0 0 8px;
}

.feature h4 {
  margin: 0 0 8px;
}

.feature p {
  margin: 0 0 10px;
}

.feature .button {
  margin-top: 4px;
}

#latest-paper h3 {
  margin: 0 0 10px;
  line-height: 1.35;
}

#latest-paper .feature {
  gap: 12px;
  align-items: stretch;
}

#latest-paper .feature-content {
  display: flex;
  flex-direction: column;
}

#latest-paper .feature h4 {
  margin: 0 0 6px;
}

#latest-paper .feature p {
  margin: 0;
  line-height: 1.55;
}

#latest-paper .feature-actions {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

#latest-paper .feature-actions .button {
  margin-top: 0;
}

.button {
  display: inline-block;
  margin-top: 8px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.9rem;
}

.button:hover {
  opacity: 0.9;
}

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

  .profile-image {
    display: none;
  }

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

  .news-list .advisor {
    margin-left: 1.2em;
  }
}

.name a {
  color: #242424;
  text-decoration: none;
}

.name a:visited,
.name a:hover,
.name a:active {
  color: #242424;
  text-decoration: none;
}
