:root {
  --top-bg: #fdfcfa;
  --bottom-bg: #f9f4f2;
  --surface: #f6f1ee;
  --badge-bg: #f1eeea;
  --surface-strong: #ffffff;
  --ink: #121516;
  --muted: #686f70;
  --muted-strong: #444b4c;
  --line: rgba(42, 36, 32, 0.15);
  --line-soft: rgba(42, 36, 32, 0.085);
  --accent: #166a6f;
  --accent-soft: rgba(22, 106, 111, 0.1);
  --max: 1160px;
  --gutter: clamp(24px, 6vw, 88px);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --top-bg: #171514;
  --bottom-bg: #211d1b;
  --surface: #292421;
  --badge-bg: #342f2b;
  --surface-strong: #1c1917;
  --ink: #f6f1ec;
  --muted: #b9afa7;
  --muted-strong: #d3cac3;
  --line: rgba(246, 241, 236, 0.17);
  --line-soft: rgba(246, 241, 236, 0.095);
  --accent: #8fc9c4;
  --accent-soft: rgba(143, 201, 196, 0.14);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bottom-bg);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

i.icon {
  display: inline-block;
}

iconify-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  color: currentColor;
}

.icon,
.lucide {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 30;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 4px;
  color: var(--surface-strong);
  background: var(--ink);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 56px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--top-bg) 92%, transparent);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  gap: clamp(22px, 4vw, 54px);
  align-items: center;
  justify-content: center;
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  padding: 0 52px;
  color: var(--muted-strong);
  font-size: 0.95rem;
}

.nav a {
  position: relative;
  white-space: nowrap;
  transition: color 160ms ease;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: -18px;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: center;
  background: var(--accent);
  content: "";
  transition: transform 180ms ease;
}

.nav a:hover {
  color: var(--accent);
}

.nav a[aria-current="page"] {
  color: var(--accent);
}

.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.theme-toggle {
  position: absolute;
  right: max(20px, calc((100vw - var(--max)) / 2));
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.theme-toggle:hover {
  background: var(--accent-soft);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.hero-band {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 75% 18%, rgba(22, 106, 111, 0.045), transparent 30rem),
    var(--top-bg);
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr) minmax(220px, 0.55fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  min-height: 360px;
  margin: 0 auto;
  padding: clamp(46px, 6vw, 78px) 0 clamp(44px, 5.8vw, 70px);
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(4.1rem, 7vw, 5.9rem);
  line-height: 0.96;
}

.role,
.affiliation {
  color: var(--ink);
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.55;
}

.bio {
  max-width: 610px;
  margin-top: 25px;
  color: var(--muted-strong);
  font-size: 0.99rem;
  line-height: 1.72;
}

.profile-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  margin-top: 31px;
  color: var(--muted-strong);
}

.profile-links a {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 26px;
  padding: 0 17px;
  border-right: 1px solid var(--line);
  font-size: 0.94rem;
  transition: color 160ms ease;
}

.profile-links a:first-child {
  padding-left: 0;
}

.profile-links a:last-child {
  border-right: 0;
}

.profile-links a:hover {
  color: var(--accent);
}

.profile-links svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.8;
}

.profile-links iconify-icon {
  width: 17px;
  height: 17px;
}

.research-areas {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.research-areas > p {
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.area-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-color: var(--line-soft);
}

.area-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 66px;
  padding: 12px 18px 12px 0;
  color: var(--muted-strong);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.28;
}

.area-card:nth-child(2n) {
  padding-left: 22px;
  border-left: 1px solid var(--line-soft);
}

.area-card:nth-child(-n + 4) {
  border-bottom: 1px solid var(--line-soft);
}

.area-card svg {
  width: 27px;
  height: 27px;
  color: var(--accent);
  stroke-width: 1.55;
}

.area-card:hover {
  color: var(--accent);
}

.portrait {
  justify-self: end;
  width: min(100%, 280px);
  overflow: hidden;
  border-radius: 7px;
  background: var(--surface);
}

.portrait img {
  width: 100%;
  aspect-ratio: 0.92;
  object-fit: cover;
  object-position: center top;
}

.content-band {
  background: var(--bottom-bg);
}

.content-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.38fr);
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin: 0 auto;
}

.publication-column {
  padding: 28px clamp(28px, 4vw, 48px) 52px 0;
}

.news-column {
  padding: 30px 0 52px clamp(30px, 4vw, 48px);
  border-left: 1px solid var(--line);
}

.section-title-row {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 21px;
}

h2 {
  font-size: clamp(1.72rem, 2.6vw, 2.22rem);
  line-height: 1.15;
}

.section-title-row a,
.news-more {
  color: var(--accent);
  font-size: 0.92rem;
}

.section-title-row a::after,
.news-more::after {
  content: "  \2192";
}

.publication {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 14px 0 16px;
  border-bottom: 1px solid var(--line-soft);
}

.venue-badge {
  display: grid;
  min-height: 58px;
  place-items: center;
  align-content: center;
  border-radius: 6px;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--line) 38%, transparent);
  background: var(--badge-bg);
}

.venue-badge strong {
  display: block;
  font-size: 0.91rem;
  line-height: 1.2;
}

.venue-badge span {
  color: var(--muted-strong);
  font-size: 0.82rem;
}

.paper-body {
  min-width: 0;
}

.paper-body h3 {
  color: var(--ink);
  font-size: clamp(0.98rem, 1.35vw, 1.08rem);
  font-weight: 620;
  line-height: 1.35;
}

.authors {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.42;
}

.authors strong {
  color: var(--accent);
  font-weight: 700;
}

.paper-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
  margin-top: 9px;
  color: var(--muted-strong);
  font-size: 0.89rem;
}

.paper-meta a {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 20px;
  color: var(--muted-strong);
  font-weight: 400;
  transition: color 160ms ease;
}

.paper-meta a:hover {
  color: var(--accent);
}

.paper-meta svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.85;
}

.paper-meta iconify-icon {
  width: 15px;
  height: 15px;
}

.paper-meta > * + * {
  margin-left: 15px;
  padding-left: 15px;
  border-left: 1px solid var(--line);
}

.paper-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.paper-topics button {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 9px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.76rem;
  line-height: 1;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.paper-topics button:hover {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
  color: var(--accent);
}

.paper-topics button.is-active {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  color: var(--accent);
  background: var(--accent-soft);
}

.side-section + .side-section {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.news-column h2 {
  margin-bottom: 20px;
}

.news-list {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0 0 0 18px;
  list-style: none;
}

.news-list::before {
  position: absolute;
  top: 7px;
  bottom: 8px;
  left: 3px;
  width: 1px;
  background: var(--line);
  content: "";
}

.news-list li {
  position: relative;
  padding: 0 0 16px 15px;
  border-bottom: 1px solid var(--line-soft);
}

.news-list li + li {
  padding-top: 15px;
}

.news-list li::before {
  position: absolute;
  top: 7px;
  left: -18px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.news-list li + li::before {
  top: 22px;
}

.news-list time {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 0.86rem;
}

.news-list p {
  color: var(--ink);
  font-size: 0.91rem;
  line-height: 1.43;
}

.news-list p a {
  color: var(--accent);
  transition: color 160ms ease;
}

.news-list p a:hover {
  color: var(--ink);
}

.news-more {
  display: inline-block;
  margin-top: 24px;
}

.home-blog-list,
.home-talk-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-blog-list li,
.home-talk-list li {
  padding: 0 0 16px;
  border-bottom: 1px solid var(--line-soft);
}

.home-blog-list li + li,
.home-talk-list li + li {
  padding-top: 15px;
}

.home-blog-list time,
.home-talk-list time {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 0.84rem;
}

.home-blog-list h3,
.home-talk-list h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 620;
  line-height: 1.32;
}

.home-blog-list h3 a {
  transition: color 160ms ease;
}

.home-blog-list h3 a:hover {
  color: var(--accent);
}

.home-blog-list p,
.home-talk-list p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted-strong);
  font-size: 0.9rem;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.empty-inline {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bottom-bg);
}

.site-footer p {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin: 0 auto;
  padding: 22px 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.page-hero {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 72% 12%, rgba(22, 106, 111, 0.04), transparent 28rem),
    var(--top-bg);
}

.page-shell {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin: 0 auto;
}

.page-shell.narrow {
  width: min(820px, calc(100% - var(--gutter) * 2));
}

.page-hero .page-shell {
  padding: clamp(54px, 7vw, 92px) 0 clamp(42px, 5vw, 68px);
}

.page-hero h1 {
  margin-bottom: 15px;
  font-size: clamp(3.8rem, 7vw, 6.2rem);
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted-strong);
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.7;
}

.page-topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
  margin-top: 18px;
}

.page-topic-list button {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 10px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--muted-strong);
  background: color-mix(in srgb, var(--top-bg) 82%, var(--bottom-bg));
  cursor: pointer;
  font-size: 0.82rem;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.page-topic-list button:hover {
  border-color: color-mix(in srgb, var(--accent) 36%, var(--line));
  color: var(--accent);
}

.page-topic-list button.is-active {
  border-color: color-mix(in srgb, var(--accent) 44%, var(--line));
  color: var(--accent);
  background: var(--accent-soft);
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-band {
  min-height: 50vh;
  background: var(--bottom-bg);
}

.page-band .page-shell {
  padding: 34px 0 68px;
}

.publication-toolbar {
  position: sticky;
  top: 56px;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bottom-bg) 94%, transparent);
  backdrop-filter: blur(16px);
}

.search-field {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: var(--top-bg);
}

.search-field svg {
  width: 17px;
  height: 17px;
}

.search-field input,
.year-tabs button {
  width: 100%;
  border: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 0.91rem;
  outline: 0;
}

.result-count {
  justify-self: end;
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.year-tabs {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.year-tabs button {
  width: auto;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--muted-strong);
  background: var(--top-bg);
  cursor: pointer;
  font-size: 0.86rem;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.year-tabs button:hover {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  color: var(--accent);
}

.year-tabs button.is-active {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  color: var(--accent);
  background: var(--accent-soft);
}

.publication-results {
  padding-top: 16px;
}

.year-group + .year-group {
  margin-top: 34px;
}

.year-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.year-heading h2 {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 2.6vw, 2.3rem);
  font-weight: 500;
}

.year-heading span {
  color: var(--muted);
  font-size: 0.9rem;
}

.publication-list .publication:last-child {
  border-bottom-color: var(--line);
}

.empty-state {
  padding: 42px 0;
  color: var(--muted);
  font-size: 1rem;
}

.news-list-full {
  padding-left: 24px;
}

.news-list-full::before {
  top: 12px;
  bottom: 12px;
}

.news-list-full li {
  padding-bottom: 22px;
}

.news-list-full li + li {
  padding-top: 22px;
}

.news-list-full li::before {
  top: 10px;
  left: -25px;
  width: 8px;
  height: 8px;
}

.news-list-full li + li::before {
  top: 32px;
}

.news-list-full p {
  max-width: 690px;
  font-size: 1rem;
  line-height: 1.62;
}

.news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.news-tags span,
.interest-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--muted-strong);
  background: var(--top-bg);
  font-size: 0.8rem;
}

.cv-hero {
  display: flex;
  gap: 22px;
  align-items: end;
  justify-content: space-between;
}

.download-cv {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted-strong);
  background: var(--top-bg);
  font-size: 0.92rem;
  transition:
    color 160ms ease,
    border-color 160ms ease;
  white-space: nowrap;
}

.download-cv:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  color: var(--accent);
}

.download-cv svg {
  width: 17px;
  height: 17px;
}

.cv-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 72px);
}

.cv-side {
  align-self: start;
  position: sticky;
  top: 86px;
  padding-right: 26px;
  border-right: 1px solid var(--line);
}

.cv-side h2 {
  margin-bottom: 10px;
}

.cv-side p {
  color: var(--muted-strong);
  font-size: 0.94rem;
  line-height: 1.55;
}

.cv-side-links {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.cv-side-links a {
  color: var(--muted-strong);
  font-size: 0.9rem;
  transition: color 160ms ease;
}

.cv-side-links a:hover {
  color: var(--accent);
}

.cv-section {
  padding: 0 0 28px;
  border-bottom: 1px solid var(--line-soft);
}

.cv-section + .cv-section {
  padding-top: 28px;
}

.cv-section h2 {
  margin-bottom: 17px;
  font-size: clamp(1.45rem, 2vw, 1.85rem);
}

.cv-entry {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 24px;
  padding: 14px 0;
}

.cv-entry > span {
  color: var(--accent);
  font-size: 0.88rem;
}

.cv-entry h3 {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 620;
}

.cv-entry p,
.cv-text {
  color: var(--muted-strong);
  font-size: 0.94rem;
  line-height: 1.58;
}

.cv-entry.compact {
  align-items: baseline;
  padding: 8px 0;
}

.interest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.talks-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(24px, 5vw, 70px);
  align-items: end;
}

.talks-search {
  margin-bottom: 6px;
}

.talks-layout {
  display: grid;
  grid-template-columns: minmax(180px, 0.24fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 72px);
}

.talks-filters {
  align-self: start;
  position: sticky;
  top: 86px;
  padding-right: 24px;
  border-right: 1px solid var(--line);
}

.talks-filters p {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.talk-type-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.talk-type-list button {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 0 11px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--muted-strong);
  background: var(--top-bg);
  cursor: pointer;
  font-size: 0.84rem;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.talk-type-list button:hover,
.talk-type-list button.is-active {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  color: var(--accent);
  background: var(--accent-soft);
}

.talks-count {
  margin-bottom: 12px;
  text-align: right;
}

.talk-year-group + .talk-year-group {
  margin-top: 34px;
}

.talk-card {
  display: grid;
  grid-template-columns: minmax(130px, 0.23fr) minmax(0, 1fr);
  gap: 24px;
  padding: 20px 0 22px;
  border-bottom: 1px solid var(--line-soft);
}

.talk-date time {
  display: block;
  color: var(--accent);
  font-size: 0.9rem;
}

.talk-date span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-top: 9px;
  padding: 0 9px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--muted-strong);
  background: var(--top-bg);
  font-size: 0.78rem;
}

.talk-body h3 {
  color: var(--ink);
  font-size: clamp(1.08rem, 1.55vw, 1.34rem);
  font-weight: 620;
  line-height: 1.3;
}

.talk-event {
  margin-top: 7px;
  color: var(--accent);
  font-size: 0.93rem;
  line-height: 1.42;
}

.talk-description {
  max-width: 720px;
  margin-top: 9px;
  color: var(--muted-strong);
  font-size: 0.95rem;
  line-height: 1.58;
}

.talk-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.talk-links a {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 26px;
  color: var(--muted-strong);
  font-size: 0.88rem;
  transition: color 160ms ease;
}

.talk-links a:hover {
  color: var(--accent);
}

.talk-links svg {
  width: 15px;
  height: 15px;
}

.blog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(24px, 5vw, 70px);
  align-items: end;
}

.blog-search {
  margin-bottom: 6px;
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(180px, 0.24fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 72px);
}

.blog-filters {
  align-self: start;
  position: sticky;
  top: 86px;
  padding-right: 24px;
  border-right: 1px solid var(--line);
}

.blog-filters p,
.post-toc p {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-topic-list button {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 0 11px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--muted-strong);
  background: var(--top-bg);
  cursor: pointer;
  font-size: 0.84rem;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.blog-topic-list button:hover,
.blog-topic-list button.is-active {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  color: var(--accent);
  background: var(--accent-soft);
}

.blog-results {
  min-width: 0;
}

.blog-list {
  display: grid;
  gap: 0;
  margin-top: 22px;
}

.blog-card {
  border-bottom: 1px solid var(--line-soft);
}

.blog-card a {
  display: block;
  padding: 20px 0;
}

.blog-card time {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 0.86rem;
}

.blog-card h2 {
  margin-bottom: 8px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.12rem, 1.55vw, 1.38rem);
  line-height: 1.28;
}

.blog-card p {
  max-width: 720px;
  color: var(--muted-strong);
  font-size: 0.96rem;
  line-height: 1.62;
}

.blog-card-tags,
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.blog-card-tags span,
.post-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 10px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--muted-strong);
  background: var(--top-bg);
  font-size: 0.79rem;
}

.blog-card-featured {
  margin-bottom: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.blog-card-featured a {
  padding: clamp(24px, 4vw, 36px) 0;
}

.blog-card-featured h2 {
  font-size: clamp(1.48rem, 2.4vw, 2.05rem);
  line-height: 1.16;
}

.blog-card a:hover h2 {
  color: var(--accent);
}

.post-page {
  background: var(--bottom-bg);
}

.post-hero {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 72% 12%, rgba(22, 106, 111, 0.04), transparent 28rem),
    var(--top-bg);
}

.post-hero .page-shell {
  padding: clamp(44px, 7vw, 78px) 0 clamp(36px, 5vw, 58px);
}

.post-back {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--accent);
  font-size: 0.92rem;
}

.post-back::before {
  content: "\2190  ";
}

.post-hero h1 {
  max-width: 860px;
  margin-bottom: 16px;
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 1;
}

.post-description {
  max-width: 720px;
  color: var(--muted-strong);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.68;
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(170px, 0.26fr) minmax(0, 760px);
  gap: clamp(32px, 6vw, 70px);
  align-items: start;
  padding: 42px 0 76px;
}

.post-toc {
  position: sticky;
  top: 86px;
  padding-right: 22px;
  border-right: 1px solid var(--line);
}

.post-toc nav {
  display: grid;
  gap: 8px;
}

.post-toc a {
  color: var(--muted-strong);
  font-size: 0.88rem;
  line-height: 1.35;
  transition: color 160ms ease;
}

.post-toc a:hover {
  color: var(--accent);
}

.post-toc .toc-h3 {
  padding-left: 14px;
  color: var(--muted);
  font-size: 0.84rem;
}

.post-body {
  min-width: 0;
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.82;
}

.post-body > * + * {
  margin-top: 1.08em;
}

.post-body h1,
.post-body h2,
.post-body h3 {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.18;
  scroll-margin-top: 86px;
}

.post-body h1 {
  font-size: 2.25rem;
}

.post-body h2 {
  margin-top: 1.9em;
  padding-top: 0.2em;
  font-size: clamp(1.75rem, 3vw, 2.3rem);
}

.post-body h3 {
  margin-top: 1.55em;
  font-size: clamp(1.28rem, 2vw, 1.58rem);
}

.post-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.post-body ul,
.post-body ol {
  padding-left: 1.35em;
}

.post-body li + li {
  margin-top: 0.4em;
}

.post-body blockquote {
  margin: 1.6em 0;
  padding: 2px 0 2px 20px;
  border-left: 3px solid var(--accent);
  color: var(--muted-strong);
}

.post-body img {
  max-width: 100%;
  height: auto;
  margin: 1.8em auto;
  border-radius: 7px;
  border: 1px solid var(--line-soft);
}

.post-body pre {
  overflow-x: auto;
  margin: 1.6em 0;
  padding: 17px 18px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: var(--surface-strong);
  font-size: 0.9rem;
  line-height: 1.65;
}

.post-body code {
  border-radius: 4px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
}

.post-body :not(pre) > code {
  padding: 0.13em 0.32em;
  color: var(--accent);
  background: var(--accent-soft);
}

.post-body table {
  display: block;
  overflow-x: auto;
  width: 100%;
  border-collapse: collapse;
}

.post-body th,
.post-body td {
  padding: 9px 11px;
  border: 1px solid var(--line-soft);
}

.post-body th {
  background: var(--surface);
}

.post-body .katex-display {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.2em 0;
}

@media (max-width: 980px) {
  .hero-shell {
    grid-template-columns: minmax(0, 1fr) 220px;
  }

  .research-areas {
    grid-column: 1 / -1;
    order: 3;
  }

  .area-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-shell {
    grid-template-columns: 1fr;
  }

  .publication-column {
    padding-right: 0;
  }

  .news-column {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .publication-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .cv-layout {
    grid-template-columns: 1fr;
  }

  .cv-side {
    position: static;
    padding-right: 0;
    padding-bottom: 24px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .blog-layout,
  .talks-layout,
  .post-layout {
    grid-template-columns: 1fr;
  }

  .blog-filters,
  .talks-filters,
  .post-toc {
    position: static;
    padding-right: 0;
    padding-bottom: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .post-layout {
    padding-top: 28px;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 22px;
  }

  .site-header {
    justify-content: flex-start;
    overflow: hidden;
    padding: 0 10px 0 var(--gutter);
  }

  .nav {
    flex: 1;
    justify-content: flex-start;
    width: auto;
    min-width: 0;
    gap: 18px;
    overflow-x: auto;
    padding: 0 12px 0 0;
  }

  .theme-toggle {
    position: static;
    flex: 0 0 34px;
    background: transparent;
  }

  .hero-shell {
    grid-template-columns: 1fr;
    padding-top: 34px;
  }

  h1 {
    font-size: clamp(3.45rem, 17vw, 4.6rem);
  }

  .portrait {
    justify-self: start;
    width: min(72vw, 250px);
  }

  .research-areas {
    order: 0;
  }

  .area-grid {
    grid-template-columns: 1fr 1fr;
  }

  .profile-links a {
    width: 50%;
    margin-bottom: 12px;
    padding-left: 0;
  }

  .profile-links {
    flex-wrap: wrap;
  }

  .profile-links a:nth-child(2n) {
    border-right: 0;
  }

  .publication {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
  }

  .venue-badge {
    min-height: 50px;
  }

  .venue-badge strong {
    font-size: 0.78rem;
  }

  .page-hero h1 {
    font-size: clamp(3.1rem, 15vw, 4.4rem);
  }

  .publication-toolbar {
    position: static;
    grid-template-columns: 1fr;
  }

  .result-count {
    justify-self: start;
  }

  .cv-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .cv-entry {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .blog-hero {
    grid-template-columns: 1fr;
  }

  .talks-hero {
    grid-template-columns: 1fr;
  }

  .blog-search,
  .talks-search {
    margin-bottom: 0;
  }

  .talk-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .talks-count {
    text-align: left;
  }

  .post-hero h1 {
    font-size: clamp(2.5rem, 13vw, 3.7rem);
  }
}

@media (max-width: 460px) {
  .area-grid,
  .publication {
    grid-template-columns: 1fr;
  }

  .area-card,
  .area-card:nth-child(2n) {
    padding-right: 0;
    padding-left: 0;
    border-left: 0;
  }

  .area-card:nth-child(-n + 5) {
    border-bottom: 1px solid var(--line-soft);
  }

  .venue-badge {
    width: 72px;
  }

  .section-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}
