:root {
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --text: #1a1d23;
  --text-muted: #5b6270;
  --accent: #2f5fb3;
  --border: #e4e6ea;
  --max-width: 760px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --bg-alt: #1b1e24;
    --text: #eceef1;
    --text-muted: #a4aab5;
    --accent: #7aa2e8;
    --border: #2a2d34;
  }
}

* { box-sizing: border-box; }

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

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

.notice-banner {
  background: #c0392b;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
  padding: 12px 0;
}

.notice-banner a {
  color: #ffffff;
  text-decoration: underline;
}

.notice-banner a:hover {
  text-decoration: none;
}

.site-header {
  padding: 56px 0 28px;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
}

.portrait {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

@media (max-width: 560px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

.site-header h1 {
  margin: 0 0 4px;
  font-size: 2rem;
  font-weight: 700;
}

.nickname {
  font-weight: 400;
  color: var(--text-muted);
}

.title {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text);
}

.affiliation {
  margin: 2px 0 18px;
  color: var(--text-muted);
}

.contact-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
}

.site-nav {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.site-nav .wrap {
  display: flex;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 0.92rem;
}

.site-nav a {
  color: var(--text-muted);
  font-weight: 600;
}
.site-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

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

.section:last-of-type {
  border-bottom: none;
}

.section h2 {
  margin: 0 0 18px;
  font-size: 1.4rem;
}

.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 18px 0 0;
}

.tag-list li {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.pub-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-alt);
}

.pub-teaser {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
  display: block;
}

.pub-teaser-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  background: linear-gradient(135deg, var(--bg-alt), var(--border));
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.pub-body {
  padding: 16px 18px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pub-body h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
}

.pub-authors {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.pub-venue {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pub-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 0;
  margin: 6px 0 0;
  font-size: 0.85rem;
  font-weight: 600;
}

.pub-link-disabled {
  color: var(--text-muted);
  font-weight: 600;
  opacity: 0.6;
}

@media (max-width: 620px) {
  .pub-card {
    grid-template-columns: 1fr;
  }
  .pub-teaser {
    aspect-ratio: 16 / 9;
  }
  .pub-body {
    padding: 4px 16px 16px;
  }
}

.venue {
  color: var(--text-muted);
}

.year {
  color: var(--text-muted);
}

.note {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 12px;
}

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

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

.site-footer {
  padding: 32px 0 56px;
}

.site-footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}
