:root {
  --text: #1f2328;
  --muted: #59636e;
  --link: #0a58ca;
  --border: #d9dee3;
  --bg: #ffffff;
  --code-bg: #f6f8fa;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
.container { max-width: 860px; margin: 0 auto; padding: 40px 16px 64px; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 2rem; line-height: 1.25; margin: 0 0 8px; font-weight: 600; }
h2 { font-size: 1.35rem; margin: 40px 0 12px; font-weight: 600; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }
img { max-width: 100%; height: auto; }

/* landing page */
.header { display: flex; gap: 32px; align-items: flex-start; }
.header .bio { flex: 1; }
.header .photo { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--code-bg); border: 1px solid var(--border); }
.links a { margin-right: 14px; white-space: nowrap; }

.pub { display: flex; gap: 20px; margin: 20px 0; }
.pub .thumb { width: 180px; flex-shrink: 0; }
.pub .thumb img { border: 1px solid var(--border); border-radius: 4px; }
.pub .title { font-weight: 600; }
.pub .meta { color: var(--muted); font-size: 0.95rem; }

/* project page */
.center { text-align: center; }
.title { font-size: 2.1rem; }
.venue { font-size: 1.1rem; color: var(--muted); margin-bottom: 18px; }
.authors { margin: 8px 0 4px; font-size: 1.05rem; }
.authors sup { font-size: 0.7em; }
.affil { color: var(--muted); font-size: 0.95rem; margin-bottom: 20px; }
.buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 18px 0 32px; }
.btn {
  display: inline-block; padding: 8px 18px; border-radius: 999px;
  background: #24292f; color: #fff; font-size: 0.95rem;
}
.btn:hover { background: #3a4048; text-decoration: none; }
.btn.disabled { background: #b8bfc6; cursor: default; pointer-events: none; }
figure { margin: 24px 0; }
figcaption { color: var(--muted); font-size: 0.92rem; margin-top: 8px; }
pre {
  background: var(--code-bg); border: 1px solid var(--border); border-radius: 6px;
  padding: 14px; overflow-x: auto; font-size: 0.85rem; line-height: 1.45;
}
footer { margin-top: 56px; color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--border); padding-top: 16px; }

@media (max-width: 600px) {
  .header { flex-direction: column-reverse; align-items: center; text-align: center; }
  .pub { flex-direction: column; }
  .pub .thumb { width: 100%; }
  .title { font-size: 1.6rem; }
}
