:root {
  --bg: #fdfdfc;
  --fg: #1d1d1f;
  --muted: #5f6368;
  --line: #e4e4e0;
  --accent: #b3261e;
  --card: #f4f3f0;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151516;
    --fg: #e8e8e6;
    --muted: #a0a0a4;
    --line: #2e2e31;
    --accent: #ff7b6e;
    --card: #1f1f21;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.wrap { max-width: 48rem; margin: 0 auto; padding: 0 1rem; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
h1, h2, h3 { line-height: 1.25; }
h1 { font-size: 2rem; margin: 2rem 0 1rem; }
h2 { font-size: 1.35rem; margin-top: 2.5rem; padding-bottom: .3rem; border-bottom: 1px solid var(--line); }
h3 { font-size: 1.1rem; margin: 1.75rem 0 .5rem; }
img { max-width: 100%; height: auto; }

/* header / footer */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.5rem; padding-top: 1rem; padding-bottom: 1rem; }
.site-title { font-weight: 700; font-size: 1.15rem; color: var(--fg); text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a[aria-current] { color: var(--accent); }
.site-footer { margin-top: 4rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; padding: 1.5rem 0; }

/* home hero */
.hero { display: grid; grid-template-columns: 11rem 1fr; gap: 2rem; align-items: start; margin-top: 2.5rem; }
.hero img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
.hero h1 { margin-top: 0; margin-bottom: .25rem; }
.role { color: var(--muted); margin: 0 0 1rem; }
@media (max-width: 600px) {
  .hero { grid-template-columns: 1fr; gap: 1rem; }
  .hero img { width: 9rem; }
}

/* lists */
.pubs { padding-left: 1.25rem; }
.pubs li { margin-bottom: .9rem; }
.meta, .authors, .venue { color: var(--muted); font-size: .92rem; }
.authors strong { color: var(--fg); }
.dated { list-style: none; padding: 0; }
.dated li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.dated .when { color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .dated li { grid-template-columns: 1fr; gap: 0; }
}
.note { background: var(--card); padding: .75rem 1rem; border-radius: 6px; font-size: .95rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1rem; }
.gallery img { border-radius: 6px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* tables */
table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: .92rem; display: block; overflow-x: auto; }
th, td { padding: .4rem .6rem; border-bottom: 1px solid var(--line); text-align: left; }
th { border-bottom-width: 2px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
