/* Yash Kumar Atri — shared site styles */

:root {
  color-scheme: light;
  --bg: #f4f2ed;
  --bg-band: #ebe8e0;
  --surface: #ffffff;
  --surface-2: #efece5;
  --border: #e0dcd2;
  --border-strong: #cfc9bc;
  --text: #1b1e23;
  --text-2: #464d58;
  --text-3: #7a808b;
  --accent: #0f5e57;
  --accent-hover: #0a453f;
  --accent-soft: #e2efec;
  --on-accent: #ffffff;
  --shadow: 0 1px 2px rgba(30, 28, 24, 0.04), 0 4px 16px rgba(30, 28, 24, 0.04);
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1320px;
  --gutter: 32px;
  --header-h: 60px;
}

html.dark {
  color-scheme: dark;
  --bg: #0f1316;
  --bg-band: #13181c;
  --surface: #161b1f;
  --surface-2: #1c2227;
  --border: #283037;
  --border-strong: #36404a;
  --text: #e8ebee;
  --text-2: #b0b8c1;
  --text-3: #7e8791;
  --accent: #63c9bb;
  --accent-hover: #8edbd0;
  --accent-soft: #15302d;
  --on-accent: #06201d;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; width: 100%; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 2px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--text); margin: 0; line-height: 1.25; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent-soft); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 300; background: var(--surface); padding: 8px 12px; border-radius: 4px; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ── Header ─────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.bar { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--text); margin-right: auto; white-space: nowrap; }
.brand:hover { color: var(--text); text-decoration: none; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: 14.5px; font-weight: 500; color: var(--text-2);
  padding: 6px 10px; border-radius: 6px; white-space: nowrap;
}
.nav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.bar-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 8px; background: var(--surface);
  color: var(--text-2); cursor: pointer; font-size: 14px;
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }
.menu-btn { display: none; }

/* ── Buttons, chips ─────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 16px; border-radius: 8px; font-size: 14.5px; font-weight: 500;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
}
.btn:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.tag { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent); }
.text-btn { background: none; border: 0; padding: 8px 0 0; font: inherit; font-size: 14.5px; font-weight: 500; color: var(--accent); cursor: pointer; }
.text-btn:hover { color: var(--accent-hover); text-decoration: underline; }

/* ── Home ───────────────────────────────────────────── */
.home { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 80px; padding-top: 48px; padding-bottom: 24px; align-items: start; }
.profile { position: sticky; top: calc(var(--header-h) + 32px); }
.portrait { width: 100%; max-width: 290px; aspect-ratio: 4 / 5; height: auto; object-fit: cover; object-position: center top; border-radius: 10px; background: var(--surface-2); box-shadow: var(--shadow); }
.profile-id { margin-top: 20px; }
.profile h1 { font-size: 30px; letter-spacing: -0.01em; }
.role { color: var(--text-2); font-size: 15px; line-height: 1.55; margin: 8px 0 0; }
.profile-actions { display: flex; gap: 8px; margin-top: 18px; }
.profile-actions .btn { flex: 1; }
.profile-links { margin-top: 18px; display: flex; flex-direction: column; gap: 2px; }
.profile-links a { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14.5px; color: var(--text-2); }
.profile-links a:hover { color: var(--accent); text-decoration: none; }
.profile-links i { width: 18px; text-align: center; color: var(--text-3); font-size: 15px; }
.profile-links a:hover i { color: var(--accent); }

.bio p { font-family: var(--serif); font-size: 19px; line-height: 1.7; color: var(--text); max-width: 74ch; }
.interests { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.interests span { font-size: 13px; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 3px 11px; }

.block { padding-top: 44px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 10px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.block-head h2 { font-size: 24px; }
.block-head a { font-size: 14.5px; font-weight: 500; white-space: nowrap; }
.block-head a i { font-size: 11px; margin-left: 2px; }

.thrust-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.thrust-card {
  display: flex; flex-direction: column; gap: 6px; padding: 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; color: var(--text-2);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.thrust-card:hover { text-decoration: none; border-color: var(--accent); color: var(--text-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.thrust-title { font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--text); line-height: 1.3; }
.thrust-text { font-size: 14.5px; line-height: 1.55; }

/* News */
.news li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 7px 0; font-size: 15.5px; color: var(--text-2); }
.news time { font-variant-numeric: tabular-nums; color: var(--text-3); font-size: 14.5px; white-space: nowrap; }
.news em { color: var(--text); }
.news li:nth-child(n+7) { display: none; }
.news.expanded li:nth-child(n+7) { display: grid; }

/* ── Inner pages ────────────────────────────────────── */
.page-head { padding: 56px 0 36px; max-width: 860px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.page-head h1 { font-size: 42px; letter-spacing: -0.015em; }
.lede { font-family: var(--serif); font-size: 19.5px; line-height: 1.65; color: var(--text-2); margin: 16px 0 0; }

/* Research page */
.jump { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.jump a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font-family: var(--serif); font-size: 17px; font-weight: 600; line-height: 1.3; }
.jump a:hover { text-decoration: none; border-color: var(--accent); }
.r-section { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; padding: 40px 0; border-top: 1px solid var(--border); }
.r-intro h2 { font-size: 27px; margin: 6px 0 14px; }
.r-intro p { font-family: var(--serif); font-size: 17.5px; line-height: 1.7; color: var(--text-2); }
.r-papers h3 { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-3); margin: 6px 0 8px; }
.paper-list li { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 15.5px; line-height: 1.45; }
.paper-list li:last-child { border-bottom: 0; }
.paper-list a { color: var(--text); font-weight: 500; }
.paper-list a:hover { color: var(--accent); }
.paper-list .v { display: block; font-family: var(--serif); font-style: italic; font-size: 14.5px; color: var(--text-3); margin-top: 3px; }

/* Publications */
.with-aside { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 72px; align-items: start; }
.pub-aside { position: sticky; top: calc(var(--header-h) + 28px); }
.aside-label { font-size: 12px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.filters { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.filters button {
  font: inherit; font-size: 14.5px; font-weight: 500; padding: 5px 12px; border-radius: 6px; cursor: pointer;
  border: 1px solid transparent; background: transparent; color: var(--text-2); text-align: left; width: 100%;
}
.filters button:hover { color: var(--text); background: var(--surface-2); }
.filters button[aria-pressed="true"] { color: var(--accent); background: var(--accent-soft); }
.aside-years { margin-top: 26px; }
.year-links { display: flex; flex-direction: column; gap: 2px; }
.year-links a { font-size: 14.5px; color: var(--text-2); padding: 3px 12px; }
.year-links a:hover { color: var(--accent); text-decoration: none; }
.aside-note { margin-top: 24px; font-size: 13px; color: var(--text-3); padding-left: 12px; }
.pub-count { font-size: 14px; color: var(--text-3); margin: 0 0 4px; }

.pub-group { font-family: var(--serif); font-size: 25px; font-weight: 600; color: var(--text); margin: 8px 0 0; padding-bottom: 10px; border-bottom: 2px solid var(--text); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.pub-group span { font-family: var(--sans); font-size: 13.5px; font-weight: 500; color: var(--text-3); }
.pub-group#phd { margin-top: 56px; }
.section-links { display: flex; flex-direction: column; gap: 4px; margin-bottom: 26px; }
.section-links a { display: flex; flex-direction: column; padding: 7px 12px; border-radius: 6px; font-size: 14.5px; font-weight: 500; color: var(--text); line-height: 1.35; }
.section-links a:hover { background: var(--surface-2); text-decoration: none; color: var(--accent); }
.section-links span { font-size: 12.5px; font-weight: 400; color: var(--text-3); }
.paper-list li.ongoing { color: var(--text-2); font-size: 15px; }
.ongoing-tag { display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); border: 1px dashed var(--border-strong); border-radius: 4px; padding: 0 6px; margin-right: 4px; vertical-align: 1px; }
.pub-year { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--text-3); margin: 26px 0 4px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.pub { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.pub-list .pub:last-child { border-bottom: 0; }
.venue {
  align-self: start; text-align: center; font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; line-height: 1.4;
  color: var(--accent); background: var(--accent-soft); border-radius: 5px; padding: 4px 4px; margin-top: 2px;
}
.pub-title { font-weight: 600; font-size: 16px; line-height: 1.4; color: var(--text); }
.pub-title a { color: var(--text); }
.pub-title a:hover { color: var(--accent); }
.pub-authors { font-size: 15px; color: var(--text-2); margin-top: 4px; }
.pub-authors .me { color: var(--text); font-weight: 600; }
.pub-venue { font-family: var(--serif); font-style: italic; font-size: 15.5px; color: var(--text-2); margin-top: 2px; }
.pub-links { font-size: 14px; font-weight: 500; margin-top: 6px; display: flex; gap: 16px; align-items: baseline; }
.pub[hidden], .pub-year[hidden] { display: none; }
.bib-btn, .copy-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; }
.bib-btn:hover, .copy-btn:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 2px; }
.bib { position: relative; margin-top: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; }
.bib[hidden] { display: none; }
.bib pre { margin: 0; padding: 38px 16px 14px; overflow-x: auto; font: 12.5px/1.6 var(--mono); color: var(--text-2); }
.bib .copy-btn { position: absolute; top: 8px; right: 10px; font-size: 12.5px; background: var(--surface); border: 1px solid var(--border); border-radius: 5px; padding: 2px 9px; }

/* Lists used on talks / teaching / CV */
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 64px; }
.cols > div { margin-bottom: 32px; }
.cols h3 { font-size: 21px; padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.entries li { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 15.5px; color: var(--text-2); }
.entries li:last-child { border-bottom: 0; }
.entries .row { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.entries .what { color: var(--text); font-weight: 500; }
.entries .when { color: var(--text-3); font-size: 14.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.entries .sub { font-size: 14.5px; color: var(--text-2); margin-top: 2px; }
.list-section { max-width: 880px; margin-bottom: 40px; }
.section-title { font-size: 22px; padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.talks li { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 18px; padding: 14px 0; }
.talks .when { padding-top: 1px; }
.talks .what { font-family: var(--serif); font-size: 17px; font-weight: 600; line-height: 1.4; }
.talks .sub { margin-top: 3px; }

/* Home research lede and card footers */
.block-lede { font-family: var(--serif); font-size: 17.5px; line-height: 1.65; color: var(--text-2); margin: -4px 0 18px; max-width: 70ch; }
.thrust-work { margin-top: auto; padding-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--accent); letter-spacing: 0.01em; }

/* Research page: claim, figure, next steps, agenda */
.claim-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; margin-bottom: 36px; }
.claim { margin: 0; padding: 22px 26px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 10px 10px 0; box-shadow: var(--shadow); }
.claim p { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.45; color: var(--text); }
.claim-text p { font-family: var(--serif); font-size: 17px; line-height: 1.7; color: var(--text-2); }
.figure { margin: 0 0 36px; padding: 18px; background: #ffffff; border: 1px solid var(--border); border-radius: 12px; }
.figure-scroll { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.figure-scroll img { width: 100%; height: auto; min-width: 720px; }
.figure figcaption { margin-top: 12px; font-size: 14px; line-height: 1.55; color: #4a4f57; }
.figure figcaption strong { color: #1b1e23; }
.figure-hint { display: none; }
.jump { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.next-title { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-3); margin: 22px 0 8px; }
.next-list li { position: relative; padding: 8px 0 8px 20px; font-size: 15.5px; line-height: 1.55; color: var(--text-2); }
.next-list li::before { content: ''; position: absolute; left: 2px; top: 16px; width: 8px; height: 8px; border-radius: 50%; border: 2px dashed var(--accent); }
.next-list strong { color: var(--text); font-weight: 600; }
.r-intro p strong { color: var(--text); font-weight: 600; }
.alias { display: inline-block; font-family: var(--sans); font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--accent); background: var(--accent-soft); border-radius: 4px; padding: 1px 7px; margin-right: 4px; vertical-align: 1px; }
.agenda { padding: 44px 0 40px; border-top: 1px solid var(--border); }
.agenda h2 { font-size: 27px; margin: 6px 0 12px; }
.agenda-lede { font-family: var(--serif); font-size: 19px; line-height: 1.6; color: var(--text); max-width: 760px; margin-bottom: 24px; }
.agenda-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.agenda-card { padding: 20px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.agenda-when { font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.agenda-card h3 { font-size: 18.5px; margin: 6px 0 10px; }
.agenda-card li { position: relative; padding: 6px 0 6px 16px; font-size: 14.5px; line-height: 1.55; color: var(--text-2); }
.agenda-card li::before { content: ''; position: absolute; left: 0; top: 14px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Teaching page */
.list-section.wide { max-width: none; }
.approach { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 16px; }
.approach h3 { font-size: 18px; margin: 0 0 6px; }
.approach p { font-size: 15px; line-height: 1.6; color: var(--text-2); margin: 0; }
.list-section .cols { margin-top: 18px; }
.note-text { font-size: 15.5px; line-height: 1.7; color: var(--text-2); max-width: 78ch; margin-top: 14px; }

/* Impact note on a publication */
.pub-note-line { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13.5px; font-weight: 500; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 2px 10px; }
.pub-note-line i { font-size: 12px; }
.cv-download { margin: -8px 0 36px; }

/* ── Footer ─────────────────────────────────────────── */
.site-footer { margin-top: 72px; background: var(--bg-band); border-top: 1px solid var(--border); padding: 36px 0 30px; font-size: 14px; color: var(--text-2); }
.foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 40px; align-items: start; }
.foot-id { display: flex; flex-direction: column; gap: 2px; }
.foot-name { font-family: var(--serif); font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.foot-links { display: flex; gap: 6px; }
.foot-links a { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); }
.foot-links a:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }
.foot-links span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.foot-meta { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-3); }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 1200px) {
  :root { --gutter: 28px; }
  .home { grid-template-columns: 230px minmax(0, 1fr); gap: 44px; }
  .with-aside { grid-template-columns: 180px minmax(0, 1fr); gap: 40px; }
  .r-section { gap: 40px; }
}

@media (max-width: 920px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px var(--gutter) 16px;
    background: var(--bg); border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    display: none;
  }
  .topbar.menu-open .nav { display: flex; }
  .nav a { font-size: 16px; padding: 10px 12px; }

  .home { grid-template-columns: 1fr; gap: 8px; padding-top: 32px; }
  .profile {
    position: static;
    display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 4px 22px; align-items: center;
  }
  .portrait { grid-row: span 2; max-width: 128px; border-radius: 8px; }
  .profile-id { margin-top: 0; align-self: end; }
  .profile h1 { font-size: 28px; }
  .profile-actions { margin-top: 10px; align-self: start; }
  .profile-actions .btn { flex: 0 0 auto; }
  .profile-links { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 4px 18px; margin-top: 16px; }
  .bio { margin-top: 20px; }

  .with-aside { grid-template-columns: 1fr; gap: 8px; }
  .pub-aside { position: static; }
  .filters { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .filters button { width: auto; border-color: var(--border); background: var(--surface); border-radius: 999px; padding: 5px 14px; font-size: 14px; }
  .filters button[aria-pressed="true"] { border-color: var(--accent); }
  .aside-years { display: none; }
  .section-links { flex-direction: row; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
  .section-links a { border: 1px solid var(--border); background: var(--surface); }
  .pub-group { font-size: 22px; }
  .pub-group#phd { margin-top: 40px; }
  .aside-note { margin: 12px 0 4px; padding-left: 0; }

  .r-section { grid-template-columns: 1fr; gap: 16px; padding: 32px 0; }
  .claim-row { grid-template-columns: 1fr; gap: 20px; }
  .agenda-grid { grid-template-columns: 1fr; }
  .jump { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .thrust-cards, .jump { grid-template-columns: 1fr; }
  .approach { grid-template-columns: 1fr; gap: 18px; }
  .figure { padding: 12px; }
  .figure-hint { display: inline; }
  .claim p { font-size: 19px; }
  .thrust-card { padding: 16px 18px; }
}

@media (max-width: 600px) {
  :root { --gutter: 18px; --header-h: 56px; }
  body { font-size: 15.5px; }
  .brand { font-size: 18px; }
  .profile { grid-template-columns: 96px minmax(0, 1fr); gap: 2px 16px; }
  .portrait { max-width: 96px; }
  .profile h1 { font-size: 23px; }
  .role { font-size: 14px; margin-top: 4px; }
  .profile-actions .btn { padding: 6px 12px; font-size: 14px; }
  .bio p { font-size: 17.5px; }
  .block { padding-top: 36px; }
  .block-head h2 { font-size: 21px; }
  .page-head { padding: 36px 0 24px; }
  .page-head h1 { font-size: 32px; }
  .lede { font-size: 17.5px; }
  .news li { grid-template-columns: 1fr; gap: 0; padding: 8px 0; }
  .pub { grid-template-columns: 1fr; gap: 8px; padding: 14px 0; }
  .venue { justify-self: start; padding: 2px 9px; }
  .pub-title { font-size: 15.5px; }
  .entries .row { flex-direction: column; gap: 0; }
  .talks li { grid-template-columns: 1fr; gap: 0; }
  .foot { grid-template-columns: 1fr; }
  .site-footer { margin-top: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .thrust-card { transition: none; }
  .thrust-card:hover { transform: none; }
}

@media print {
  .topbar, .skip, .filters, .text-btn, .bib-btn, .bib, .aside-years, .profile-actions, .foot-links, .cv-download { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { color: #000; }
  .home, .with-aside { grid-template-columns: 1fr; }
  .profile { position: static; }
  .news li:nth-child(n+7) { display: grid; }
  .pub[hidden], .pub-year[hidden] { display: grid !important; }
  .site-footer { background: none; }
}
