/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Theme variables ── */
:root {
  --bg:      #ffffff;
  --text:    #111827;
  --muted:   #6b7280;
  --accent:  #2563eb;
  --border:  #e5e7eb;
  --surface: #f3f4f6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:      #0d1117;
    --text:    #e6edf3;
    --muted:   #8b949e;
    --accent:  #58a6ff;
    --border:  #21262d;
    --surface: #161b22;
  }
}

/* ── Base ── */
html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

/* Top accent stripe */
body::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ── */
.site-header {
  padding: 48px 0 28px;
}

.site-header-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.site-header-text {
  flex: 1;
  min-width: 0;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .site-header-inner { flex-direction: column-reverse; align-items: flex-start; }
  .avatar { width: 72px; height: 72px; }
}

.site-name {
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text);
}

.site-role {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-top: 6px;
}

/* Social links */
.social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin-top: 14px;
}

.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.social a:hover {
  color: var(--accent);
  background: var(--surface);
}

.social svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Nav */
.site-nav {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.site-nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
}

.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.site-nav a:hover { color: var(--text); }

.site-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

/* ── Main content ── */
.site-main {
  padding: 10px 0 48px;
}

.site-main p {
  font-size: 0.9375rem;
  margin-bottom: 14px;
  line-height: 1.75;
}

.site-main p:last-child { margin-bottom: 0; }

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

.site-main a:hover { text-decoration: underline; }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 0 32px;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ── Publications ── */
.pub-section {
  margin-top: 36px;
}

.pub-section:first-child { margin-top: 0; }

.pub-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.pub-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.pub-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.pub-title {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
  text-decoration: none;
}

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

.pub-title-plain {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
}

.pub-meta {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.5;
}

.venue {
  color: var(--accent);
  font-weight: 700;
}

.oral {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--accent);
  color: #fff;
  border-radius: 3px;
  padding: 1px 5px;
  margin-left: 5px;
  vertical-align: middle;
}

/* ── Responsive ── */
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .site-header { padding: 32px 0 20px; }
}
