:root {
  --bg: #fdfdfc;
  --fg: #1c1c1e;
  --muted: #6b6b70;
  --rule: #e6e6e3;
  --accent: #0f5e73;
  --badge-bg: #fbf1d4;
  --badge-fg: #7a5a00;
}
@media (prefers-color-scheme: dark) {
  :root { --bg:#121214; --fg:#ececee; --muted:#9a9aa2; --rule:#2a2a2e; --accent:#6cc4d9; --badge-bg:#3a3014; --badge-fg:#f0cf72; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 17px/1.65 "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* top bar */
.bar { border-bottom: 1px solid var(--rule); position: sticky; top: 0; background: var(--bg); z-index: 5; }
.bar .wrap { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; padding-bottom: 14px; gap: 16px; flex-wrap: wrap; }
.name { font-family: "Source Serif 4", Georgia, serif; font-size: 1.25rem; font-weight: 600; color: var(--fg); }
.name:hover { text-decoration: none; }
nav { display: flex; gap: 20px; font-size: .92rem; flex-wrap: wrap; }
nav a { color: var(--muted); }
nav a:hover { color: var(--accent); text-decoration: none; }

/* hero */
.hero { display: flex; gap: 32px; align-items: center; padding: 56px 0 24px; }
.hero img { width: 176px; height: 176px; object-fit: cover; border-radius: 50%; flex-shrink: 0; }
.hero h1 { font-family: "Source Serif 4", Georgia, serif; font-weight: 600; font-size: 2.4rem; line-height: 1.15; margin: 0 0 6px; letter-spacing: -.01em; }
.role { color: var(--muted); margin: 0 0 14px; }
.links { display: flex; gap: 16px; flex-wrap: wrap; font-size: .92rem; }

section { padding: 36px 0 8px; }
h2 { font-family: "Source Serif 4", Georgia, serif; font-size: 1.5rem; font-weight: 600; margin: 0 0 18px; letter-spacing: -.005em; }
h2 small { font: 500 .72rem "Inter"; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-left: 10px; }
p { margin: 0 0 14px; }

/* list entries */
.year { font-size: .78rem; font-weight: 600; letter-spacing: .08em; color: var(--muted); margin: 28px 0 8px; padding-top: 8px; border-top: 1px solid var(--rule); }
.year:first-of-type { margin-top: 0; }
.item { margin: 0 0 18px; }
.item .t { font-weight: 600; line-height: 1.4; display: block; color: var(--fg); }
a.t:hover { color: var(--accent); text-decoration: none; }
.item .a { color: var(--muted); font-size: .93rem; display: block; margin-top: 2px; }
.item .a b { color: var(--fg); font-weight: 600; }
.item .v { font-size: .93rem; display: block; font-style: italic; }
.badge { display: inline-block; font-size: .7rem; font-weight: 600; letter-spacing: .04em; padding: 2px 8px; border-radius: 99px; background: var(--badge-bg); color: var(--badge-fg); vertical-align: 2px; margin-left: 6px; font-style: normal; }
.tags { margin-top: 4px; font-size: .85rem; display: flex; gap: 12px; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; display: block; }
.gallery figure { margin: 0; }
.gallery figcaption { font-size: .78rem; color: var(--muted); margin-top: 4px; line-height: 1.35; }

footer { border-top: 1px solid var(--rule); margin-top: 56px; padding: 22px 0 40px; color: var(--muted); font-size: .85rem; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { flex-direction: column; align-items: flex-start; padding-top: 36px; }
  .hero h1 { font-size: 2rem; }
  .gallery { grid-template-columns: 1fr; }
}

.cite{display:flex;gap:10px;margin:0 0 14px;font-size:.95rem;line-height:1.55}
.cite .num{color:var(--muted);flex-shrink:0;width:1em;text-align:center}
.cite .a{color:var(--muted)}
.cite .a b{color:var(--fg)}
.cite .t{font-weight:600;color:var(--fg)}
.cite .t:hover{color:var(--accent);text-decoration:none}
.cite .v{color:var(--muted)}
.cite .doi{word-break:break-all}
.gallery img.square{aspect-ratio:1/1}
