/* reneweller.com — hand-written, no framework. System fonts only (no third-party requests). */
:root {
  --bg: #f7f6f2;
  --bg-elev: #ffffff;
  --bg-soft: #edebe4;
  --text: #1b1f27;
  --text-soft: #4d5464;
  --muted: #7a8090;
  --line: #dcd9cf;
  --accent: #0e6f8f;
  --accent-ink: #0a5670;
  --accent-soft: #d9ecf2;
  --award: #b7791f;
  --award-soft: #fbefd6;
  --code-bg: #f0eee7;
  --shadow: 0 1px 2px rgba(20, 24, 40, .06), 0 8px 24px -12px rgba(20, 24, 40, .18);
  --radius: 14px;
  --wrap: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1216; --bg-elev: #161a21; --bg-soft: #1c2129; --text: #e7e9ee; --text-soft: #b3b9c6; --muted: #7f879a;
    --line: #2a303b; --accent: #5cc3e0; --accent-ink: #8ad6ec; --accent-soft: #14303a; --award: #e2b45a; --award-soft: #33290f;
    --code-bg: #12161c; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px -14px rgba(0,0,0,.7); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1216; --bg-elev: #161a21; --bg-soft: #1c2129; --text: #e7e9ee; --text-soft: #b3b9c6; --muted: #7f879a;
  --line: #2a303b; --accent: #5cc3e0; --accent-ink: #8ad6ec; --accent-soft: #14303a; --award: #e2b45a; --award-soft: #33290f;
  --code-bg: #12161c; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px -14px rgba(0,0,0,.7); color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-ink); text-decoration: none; text-underline-offset: .15em; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .4em; font-weight: 650; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: .5em 1em; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--text-soft); max-width: 62ch; }

/* header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--text); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 26px; height: 26px; border-radius: 50%; background:
  radial-gradient(circle at 30% 30%, var(--accent) 0 32%, transparent 33%),
  radial-gradient(circle at 70% 35%, var(--accent) 0 22%, transparent 23%),
  radial-gradient(circle at 42% 72%, var(--accent) 0 26%, transparent 27%),
  radial-gradient(circle at 76% 72%, var(--accent) 0 16%, transparent 17%);
  box-shadow: inset 0 0 0 2px var(--accent); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .2rem; align-items: center; }
.site-nav { display: flex; align-items: center; gap: .6rem; }
.site-nav a { display: block; padding: .5rem .8rem; border-radius: 999px; color: var(--text-soft); font-weight: 500; }
.site-nav a:hover { background: var(--bg-soft); text-decoration: none; color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--accent-ink); background: var(--accent-soft); }
.theme-toggle { border: 1px solid var(--line); background: var(--bg-elev); border-radius: 999px; width: 38px; height: 38px; display: inline-grid; place-items: center; cursor: pointer; }
.theme-toggle .ico-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .ico-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .ico-moon { display: block; }
}
.nav-toggle { display: none; border: 1px solid var(--line); background: var(--bg-elev); border-radius: 10px; width: 42px; height: 38px; padding: 8px 10px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; }
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--bg-elev); border-bottom: 1px solid var(--line); padding: .6rem clamp(16px, 4vw, 40px) 1rem; flex-direction: column; align-items: stretch; box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav a { padding: .7rem .8rem; }
  .theme-toggle { align-self: flex-start; }
}

/* hero */
.hero { display: grid; grid-template-columns: 1.25fr .9fr; gap: 2rem; align-items: center; padding: clamp(2rem, 6vw, 5rem) 0 1.5rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; font-weight: 600; color: var(--accent-ink); margin-bottom: .8rem; }
.hero h1 { margin-bottom: .6rem; }
.hero-affil { color: var(--text-soft); }
.hero-affil .who { font-weight: 600; color: var(--text); }
.cta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.btn { display: inline-flex; align-items: center; padding: .6rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-elev); color: var(--text); font-weight: 600; }
.btn:hover { text-decoration: none; border-color: var(--accent); color: var(--accent-ink); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn-ghost { background: transparent; }
.hero-art { position: relative; aspect-ratio: 1; max-width: 420px; margin-inline: auto; width: 100%; }
.packing { width: 100%; height: 100%; display: block; }
.packing circle { fill: var(--accent); fill-opacity: .16; stroke: var(--accent); stroke-opacity: .55; stroke-width: 1.1; vector-effect: non-scaling-stroke; }
.hero-photo { position: absolute; left: 50%; top: 50%; width: 38%; height: 38%; transform: translate(-50%, -50%); border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 6px var(--bg), var(--shadow); }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } .hero-art { max-width: 300px; order: -1; } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 1rem 0 2.5rem; }
.stats div { background: var(--bg-elev); padding: 1rem 1.2rem; display: flex; flex-direction: column; }
.stats .num { font-size: 1.9rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.stats .lbl { color: var(--muted); font-size: .9rem; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* sections */
.section { padding: 1.5rem 0 2.5rem; }
.section-head { margin-bottom: 1.2rem; }
.section-head p { color: var(--text-soft); max-width: 60ch; margin: 0; }
.two-col { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.grid { display: grid; gap: 1rem; }
.areas { grid-template-columns: repeat(3, 1fr); }
.projects { grid-template-columns: repeat(2, 1fr); }
.repos { grid-template-columns: repeat(3, 1fr); }
.classic { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .areas, .repos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .areas, .projects, .repos, .classic { grid-template-columns: 1fr; } }
.card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; color: inherit; }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
a.card:hover { text-decoration: none; border-color: var(--accent); box-shadow: var(--shadow); }
.area-card p { color: var(--text-soft); font-size: .95rem; }
.area-glyph { display: block; width: 34px; height: 34px; border-radius: 10px; margin-bottom: .9rem; background: var(--accent-soft); position: relative; }
.area-glyph::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; border: 2px solid var(--accent); }
.glyph-collision::after { border-radius: 4px; transform: rotate(12deg); }
.glyph-haptics::after { border-radius: 50% 50% 4px 4px; }
.glyph-spheres::after { box-shadow: -6px 4px 0 -3px var(--accent), 6px 4px 0 -3px var(--accent); inset: 7px 11px 11px 11px; }
.glyph-medical::after { border-radius: 3px; inset: 9px 14px; box-shadow: 0 0 0 0 transparent; }
.glyph-medical::before { content: ""; position: absolute; inset: 14px 9px; border-radius: 3px; border: 2px solid var(--accent); }
.glyph-space::after { border-radius: 50%; inset: 11px; }
.glyph-space::before { content: ""; position: absolute; inset: 13px 4px; border-radius: 50%; border: 2px solid var(--accent); transform: rotate(-25deg); }
.glyph-rendering::after { border-radius: 2px; inset: 9px; border-style: dotted; }

/* publications */
.page-head { padding: clamp(1.5rem, 4vw, 3rem) 0 1rem; }
.page-head .lead { margin-bottom: .4rem; }
.pub-tools { padding: .8rem 0 .6rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.search { display: flex; align-items: center; gap: .6rem; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 999px; padding: .5rem .9rem; max-width: 520px; color: var(--muted); }
.search input { flex: 1; border: 0; background: transparent; color: var(--text); font: inherit; outline: none; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.chip { border: 1px solid var(--line); background: var(--bg-elev); color: var(--text-soft); border-radius: 999px; padding: .28rem .8rem; font-size: .88rem; cursor: pointer; }
.chips.small .chip { font-size: .8rem; padding: .2rem .65rem; }
.chip:hover { border-color: var(--accent); color: var(--accent-ink); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.pub-count { color: var(--muted); font-size: .85rem; margin: .5rem 0 0; }
.year-group { display: grid; grid-template-columns: 88px 1fr; gap: 1rem; padding: .6rem 0 .2rem; }
.year { font-size: 1.05rem; font-weight: 700; color: var(--muted); position: sticky; top: 80px; align-self: start; margin: .95rem 0 0; letter-spacing: 0; }
.year-group.is-empty { display: none; }
@media (max-width: 640px) { .year-group { grid-template-columns: 1fr; gap: 0; } .year { position: static; margin-bottom: .4rem; } .pub-tools { position: static; } }
.pub-list { list-style: none; margin: 0; padding: 0; }
.pub { display: grid; grid-template-columns: 132px 1fr; gap: 1.1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.pub:first-child { border-top: 0; }
.pub.is-hidden { display: none; }
.pub-thumb { width: 132px; height: 92px; border-radius: 10px; overflow: hidden; background: var(--bg-soft); border: 1px solid var(--line); }
.pub-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-ph { display: block; width: 100%; height: 100%; background: radial-gradient(circle at 35% 40%, var(--accent-soft) 0 28%, transparent 29%), radial-gradient(circle at 68% 60%, var(--accent-soft) 0 22%, transparent 23%); }
.pub-title { font-size: 1.08rem; margin: 0 0 .25rem; }
.pub-title a { color: var(--text); }
.pub-authors { margin: 0 0 .2rem; color: var(--text-soft); font-size: .95rem; }
.pub-authors strong { font-weight: 650; color: var(--text); }
.pub-venue { margin: 0 0 .45rem; color: var(--text-soft); font-size: .92rem; }
.type { display: inline-block; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); padding: .1rem .5rem; border-radius: 6px; margin-right: .35rem; vertical-align: 1px; }
.badge.award { display: inline-block; font-size: .75rem; font-weight: 600; color: var(--award); background: var(--award-soft); padding: .1rem .55rem; border-radius: 999px; margin-left: .3rem; vertical-align: 1px; }
.pub-links { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; }
.plink { display: inline-block; font-size: .82rem; font-weight: 600; padding: .22rem .65rem; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-elev); color: var(--accent-ink); cursor: pointer; }
.plink:hover { border-color: var(--accent); text-decoration: none; }
.plink.code { border-style: dashed; }
.plink.toggle[aria-expanded="true"] { background: var(--accent-soft); border-color: var(--accent-soft); }
.pub-extra { margin-top: .7rem; padding: .8rem 1rem; background: var(--bg-soft); border-radius: 10px; font-size: .93rem; color: var(--text-soft); }
.pub-extra p:last-child { margin: 0; }
.pub-extra.bib { position: relative; background: var(--code-bg); padding: .6rem .8rem; }
.pub-extra.bib pre { margin: 0; overflow: auto; font-family: var(--mono); font-size: .78rem; line-height: 1.45; color: var(--text); }
.copy { position: absolute; right: .6rem; top: .5rem; font-size: .75rem; border: 1px solid var(--line); background: var(--bg-elev); border-radius: 6px; padding: .15rem .5rem; cursor: pointer; }
.pub:target { background: linear-gradient(90deg, var(--accent-soft), transparent 60%); border-radius: 10px; padding-left: .6rem; margin-left: -.6rem; }
.pub-list.compact .pub { grid-template-columns: 96px 1fr; padding: .8rem 0; }
.pub-list.compact .pub-thumb { width: 96px; height: 68px; }
.pub-list.compact .pub-title { font-size: 1rem; }
.more { font-weight: 600; }
.no-results { color: var(--muted); text-align: center; padding: 2rem 0; }
.linklike { border: 0; background: none; color: var(--accent-ink); text-decoration: underline; cursor: pointer; padding: 0; }
@media (max-width: 640px) { .pub { grid-template-columns: 1fr; gap: .6rem; } .pub-thumb { width: 100%; height: 150px; } .pub-list.compact .pub { grid-template-columns: 1fr; } .pub-list.compact .pub-thumb { width: 100%; height: 120px; } }

/* news + callout */
.news { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.news li { padding: .6rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 52px 1fr; gap: .2rem .8rem; }
.news li:first-child { border-top: 0; padding-top: 0; }
.news-date { color: var(--muted); font-size: .85rem; font-weight: 600; grid-row: span 2; padding-top: .15rem; }
.news a { color: var(--text); font-weight: 550; }
.news-venue { color: var(--muted); font-size: .85rem; }
.callout { background: var(--accent-soft); border-radius: var(--radius); padding: 1.1rem 1.3rem; }
.callout h3, .callout h2 { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }
.callout.wide { max-width: 72ch; }

/* projects */
.project-sub { color: var(--muted); font-size: .9rem; margin-top: -.3rem; }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: .3rem 0 .6rem; }
.tag { font-size: .78rem; background: var(--bg-soft); border-radius: 6px; padding: .12rem .5rem; color: var(--text-soft); }
.tags.big .tag { font-size: .95rem; padding: .3rem .8rem; border-radius: 999px; }
.card.repo, .card.project.has-img { padding: 0; overflow: hidden; display: block; }
.card.repo > h3, .card.repo > p, .card.project.has-img > h3, .card.project.has-img > p { margin-left: 1.3rem; margin-right: 1.3rem; }
.card.repo > h3, .card.project.has-img > h3 { margin-top: 1rem; }
.card.repo > p:last-child, .card.project.has-img > p:last-child { margin-bottom: 1.2rem; }
.repo-thumb { display: block; width: 100%; aspect-ratio: 2 / 1; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.repo-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.repos { grid-template-columns: repeat(3, 1fr); }
.classic { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .areas, .repos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .areas, .projects, .repos, .classic { grid-template-columns: 1fr; } }
.card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; color: inherit; }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
a.card:hover { text-decoration: none; border-color: var(--accent); box-shadow: var(--shadow); }
.area-card p { color: var(--text-soft); font-size: .95rem; }
.area-glyph { display: block; width: 34px; height: 34px; border-radius: 10px; margin-bottom: .9rem; background: var(--accent-soft); position: relative; }
.area-glyph::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; border: 2px solid var(--accent); }
.glyph-collision::after { border-radius: 4px; transform: rotate(12deg); }
.glyph-haptics::after { border-radius: 50% 50% 4px 4px; }
.glyph-spheres::after { box-shadow: -6px 4px 0 -3px var(--accent), 6px 4px 0 -3px var(--accent); inset: 7px 11px 11px 11px; }
.glyph-medical::after { border-radius: 3px; inset: 9px 14px; box-shadow: 0 0 0 0 transparent; }
.glyph-medical::before { content: ""; position: absolute; inset: 14px 9px; border-radius: 3px; border: 2px solid var(--accent); }
.glyph-space::after { border-radius: 50%; inset: 11px; }
.glyph-space::before { content: ""; position: absolute; inset: 13px 4px; border-radius: 50%; border: 2px solid var(--accent); transform: rotate(-25deg); }
.glyph-rendering::after { border-radius: 2px; inset: 9px; border-style: dotted; }

/* publications */
.page-head { padding: clamp(1.5rem, 4vw, 3rem) 0 1rem; }
.page-head .lead { margin-bottom: .4rem; }
.pub-tools { padding: .8rem 0 .6rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.search { display: flex; align-items: center; gap: .6rem; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 999px; padding: .5rem .9rem; max-width: 520px; color: var(--muted); }
.search input { flex: 1; border: 0; background: transparent; color: var(--text); font: inherit; outline: none; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.chip { border: 1px solid var(--line); background: var(--bg-elev); color: var(--text-soft); border-radius: 999px; padding: .28rem .8rem; font-size: .88rem; cursor: pointer; }
.chips.small .chip { font-size: .8rem; padding: .2rem .65rem; }
.chip:hover { border-color: var(--accent); color: var(--accent-ink); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.pub-count { color: var(--muted); font-size: .85rem; margin: .5rem 0 0; }
.year-group { display: grid; grid-template-columns: 88px 1fr; gap: 1rem; padding: .6rem 0 .2rem; }
.year { font-size: 1.05rem; font-weight: 700; color: var(--muted); position: sticky; top: 80px; align-self: start; margin: .95rem 0 0; letter-spacing: 0; }
.year-group.is-empty { display: none; }
@media (max-width: 640px) { .year-group { grid-template-columns: 1fr; gap: 0; } .year { position: static; margin-bottom: .4rem; } .pub-tools { position: static; } }
.pub-list { list-style: none; margin: 0; padding: 0; }
.pub { display: grid; grid-template-columns: 132px 1fr; gap: 1.1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.pub:first-child { border-top: 0; }
.pub.is-hidden { display: none; }
.pub-thumb { width: 132px; height: 92px; border-radius: 10px; overflow: hidden; background: var(--bg-soft); border: 1px solid var(--line); }
.pub-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-ph { display: block; width: 100%; height: 100%; background: radial-gradient(circle at 35% 40%, var(--accent-soft) 0 28%, transparent 29%), radial-gradient(circle at 68% 60%, var(--accent-soft) 0 22%, transparent 23%); }
.pub-title { font-size: 1.08rem; margin: 0 0 .25rem; }
.pub-title a { color: var(--text); }
.pub-authors { margin: 0 0 .2rem; color: var(--text-soft); font-size: .95rem; }
.pub-authors strong { font-weight: 650; color: var(--text); }
.pub-venue { margin: 0 0 .45rem; color: var(--text-soft); font-size: .92rem; }
.type { display: inline-block; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); padding: .1rem .5rem; border-radius: 6px; margin-right: .35rem; vertical-align: 1px; }
.badge.award { display: inline-block; font-size: .75rem; font-weight: 600; color: var(--award); background: var(--award-soft); padding: .1rem .55rem; border-radius: 999px; margin-left: .3rem; vertical-align: 1px; }
.pub-links { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; }
.plink { display: inline-block; font-size: .82rem; font-weight: 600; padding: .22rem .65rem; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-elev); color: var(--accent-ink); cursor: pointer; }
.plink:hover { border-color: var(--accent); text-decoration: none; }
.plink.code { border-style: dashed; }
.plink.toggle[aria-expanded="true"] { background: var(--accent-soft); border-color: var(--accent-soft); }
.pub-extra { margin-top: .7rem; padding: .8rem 1rem; background: var(--bg-soft); border-radius: 10px; font-size: .93rem; color: var(--text-soft); }
.pub-extra p:last-child { margin: 0; }
.pub-extra.bib { position: relative; background: var(--code-bg); padding: .6rem .8rem; }
.pub-extra.bib pre { margin: 0; overflow: auto; font-family: var(--mono); font-size: .78rem; line-height: 1.45; color: var(--text); }
.copy { position: absolute; right: .6rem; top: .5rem; font-size: .75rem; border: 1px solid var(--line); background: var(--bg-elev); border-radius: 6px; padding: .15rem .5rem; cursor: pointer; }
.pub:target { background: linear-gradient(90deg, var(--accent-soft), transparent 60%); border-radius: 10px; padding-left: .6rem; margin-left: -.6rem; }
.pub-list.compact .pub { grid-template-columns: 96px 1fr; padding: .8rem 0; }
.pub-list.compact .pub-thumb { width: 96px; height: 68px; }
.pub-list.compact .pub-title { font-size: 1rem; }
.more { font-weight: 600; }
.no-results { color: var(--muted); text-align: center; padding: 2rem 0; }
.linklike { border: 0; background: none; color: var(--accent-ink); text-decoration: underline; cursor: pointer; padding: 0; }
@media (max-width: 640px) { .pub { grid-template-columns: 1fr; gap: .6rem; } .pub-thumb { width: 100%; height: 150px; } .pub-list.compact .pub { grid-template-columns: 1fr; } .pub-list.compact .pub-thumb { width: 100%; height: 120px; } }

/* news + callout */
.news { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.news li { padding: .6rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 52px 1fr; gap: .2rem .8rem; }
.news li:first-child { border-top: 0; padding-top: 0; }
.news-date { color: var(--muted); font-size: .85rem; font-weight: 600; grid-row: span 2; padding-top: .15rem; }
.news a { color: var(--text); font-weight: 550; }
.news-venue { color: var(--muted); font-size: .85rem; }
.callout { background: var(--accent-soft); border-radius: var(--radius); padding: 1.1rem 1.3rem; }
.callout h3, .callout h2 { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }
.callout.wide { max-width: 72ch; }

/* projects */
.project-sub { color: var(--muted); font-size: .9rem; margin-top: -.3rem; }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: .3rem 0 .6rem; }
.tag { font-size: .78rem; background: var(--bg-soft); border-radius: 6px; padding: .12rem .5rem; color: var(--text-soft); }
.tags.big .tag { font-size: .95rem; padding: .3rem .8rem; border-radius: 999px; }
.card.repo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card.repo > h3, .card.repo > p { margin-left: 1.3rem; margin-right: 1.3rem; }
.card.repo > h3 { margin-top: 1rem; }
.card.repo > p:last-child { margin-bottom: 1.2rem; }
.repo-img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.repos { grid-template-columns: repeat(3, 1fr); }
.repo-meta { color: var(--muted); font-size: .85rem; display: flex; gap: 1rem; }
.classic-card { display: grid; grid-template-columns: 96px 1fr; gap: 1rem; align-items: start; }
.classic-img { width: 96px; height: 96px; object-fit: contain; border-radius: 10px; background: #fff; border: 1px solid var(--line); padding: 4px; }
@media (max-width: 480px) { .classic-card { grid-template-columns: 1fr; } }

/* teaching */
.courses { width: 100%; border-collapse: collapse; margin: 0 0 1rem; font-size: .97rem; }
.courses th, .courses td { text-align: left; padding: .55rem .6rem .55rem 0; border-top: 1px solid var(--line); vertical-align: top; }
.courses th { white-space: nowrap; color: var(--muted); font-weight: 600; width: 7.5rem; }
.kind { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-ink); font-weight: 700; white-space: nowrap; }
.sub { color: var(--muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; margin-top: .4rem; }
details.earlier summary { cursor: pointer; font-weight: 600; color: var(--accent-ink); padding: .4rem 0; }
@media (max-width: 560px) { .courses th { width: auto; } .courses td:nth-child(2) { display: none; } }

/* about */
.about-head { display: grid; grid-template-columns: 1fr 260px; gap: 2rem; align-items: start; }
.portrait { width: 260px; height: 260px; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow); justify-self: end; }
@media (max-width: 760px) { .about-head { grid-template-columns: 1fr; } .portrait { width: 180px; height: 180px; justify-self: start; order: -1; } }
.timeline { display: grid; grid-template-columns: 8rem 1fr; gap: .3rem 1rem; margin: 0 0 2rem; }
.timeline dt { color: var(--muted); font-weight: 600; font-size: .9rem; padding-top: .15rem; }
.timeline dd { margin: 0; padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.timeline.awards { grid-template-columns: 4rem 1fr; }
@media (max-width: 480px) { .timeline { grid-template-columns: 1fr; } .timeline dt { padding-top: .5rem; } }
ul.plain { padding-left: 1.1rem; margin: 0 0 1rem; }
ul.plain li { margin-bottom: .4rem; }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.big-link { font-size: 1.1rem; font-weight: 600; word-break: break-word; }
address { font-style: normal; line-height: 1.55; }
.legal { color: var(--text-soft); font-size: .92rem; max-width: 76ch; border-top: 1px solid var(--line); padding-top: 2rem; }
.legal h2 { font-size: 1.1rem; }

/* footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 3rem; padding: 2rem 0 2.5rem; color: var(--text-soft); font-size: .92rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.5rem; align-items: start; }
.footer-links { display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.footer-meta { color: var(--muted); }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }
