:root {
  --max: 960px;
  --pad: 16px;
  --border: #e6e6e6;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: #fff; color: #000; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", sans-serif; line-height: 1.7; }
a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

header.site { position: sticky; top: 0; background: #fff; border-bottom: 1px solid var(--border); z-index: 10; }
.header-inner { max-width: var(--max); margin: 0 auto; padding: 12px var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { font-weight: 600; letter-spacing: 0.2px; }
nav ul { list-style: none; display: flex; gap: 14px; padding: 0; margin: 0; }
nav a { text-decoration: none; border-bottom: 1px solid transparent; padding-bottom: 1px; }
nav a:hover, nav a:focus { border-color: #000; }

main { max-width: var(--max); margin: 0 auto; padding: 24px var(--pad) 56px; }
section { margin: 36px 0; }
h1 { font-size: 1.6rem; margin: 0 0 8px; }
h2 { font-size: 1.2rem; margin: 20px 0 8px; }
.lead { font-size: 1.05rem; }
.muted { color: #333; }

hr.line { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* Cards & grids */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.card { border: 1px solid var(--border); border-radius: 10px; padding: 12px; background: #fff; }

/* Images */
figure { margin: 0; }
/* .img-fit { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #f6f6f6; border: 1px solid var(--border); border-radius: 8px; } */
.img-round { border-radius: 50%; aspect-ratio: 1/1; }
figcaption { font-size: 0.9rem; color: #333; margin-top: 6px; }

/* Publications */
ol.pubs { padding-left: 1.2rem; }
ol.pubs > li { margin: 0 0 18px; }
.pub-meta { font-size: 0.95rem; color: #222; }
.pub-thumb { width: 100%; max-width: 420px; aspect-ratio: 3/2; object-fit: cover; background: #f6f6f6; border: 1px solid var(--border); border-radius: 8px; margin: 8px 0; }

footer.site { border-top: 1px solid var(--border); padding: 16px; text-align: center; font-size: 0.95rem; }

.img-fit {
  display: block;       /* remove inline gaps */
  width: 80%;          /* fill container width */
  height: auto;         /* keep aspect ratio, scale height accordingly */
  max-width: 80%;
  object-fit: contain;  /* ensure whole image is visible (no crop) */
  border-radius: 8px;   /* optional: keep the rounded corners */
}