:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-muted: #eef2f6;
  --text: #17202b;
  --muted: #596779;
  --accent: #2563a6;
  --accent-strong: #174b85;
  --accent-soft: #e4eff9;
  --accent-secondary: #0f897e;
  --ambient-blue: rgba(37, 99, 166, 0.28);
  --ambient-secondary: rgba(15, 137, 126, 0.24);
  --ambient-violet: rgba(112, 82, 176, 0.18);
  --grid-color: rgba(37, 99, 166, 0.075);
  --border: #d9e0e8;
  --border-strong: #bdc8d4;
  --shadow: 0 16px 40px rgba(26, 43, 62, 0.08);
  --content-width: 960px;
  --page-inset: clamp(1.5rem, 8vw, 7rem);
}

:root[data-theme="dark"],
:root.theme-dark {
  color-scheme: dark;
  --bg: #10151c;
  --surface: #171e27;
  --surface-muted: #202a35;
  --text: #edf2f7;
  --muted: #a7b3c2;
  --accent: #64d8ff;
  --accent-strong: #a5ebff;
  --accent-soft: #143948;
  --accent-secondary: #5eead4;
  --ambient-blue: rgba(38, 190, 255, 0.34);
  --ambient-secondary: rgba(46, 224, 190, 0.25);
  --ambient-violet: rgba(155, 116, 255, 0.27);
  --grid-color: rgba(100, 216, 255, 0.07);
  --border: #2b3745;
  --border-strong: #435265;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

:root[data-theme="light"],
:root.theme-light {
  color-scheme: light;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-muted: #eef2f6;
  --text: #17202b;
  --muted: #596779;
  --accent: #2563a6;
  --accent-strong: #174b85;
  --accent-soft: #e4eff9;
  --accent-secondary: #0f897e;
  --ambient-blue: rgba(37, 99, 166, 0.28);
  --ambient-secondary: rgba(15, 137, 126, 0.24);
  --ambient-violet: rgba(112, 82, 176, 0.18);
  --grid-color: rgba(37, 99, 166, 0.075);
  --border: #d9e0e8;
  --border-strong: #bdc8d4;
  --shadow: 0 16px 40px rgba(26, 43, 62, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before,
body::after {
  position: fixed;
  z-index: -2;
  pointer-events: none;
  content: "";
}

body::before {
  inset: 0;
  background:
    radial-gradient(circle at -8% 12%, var(--ambient-blue) 0 10rem, transparent 28rem),
    radial-gradient(circle at 108% 30%, var(--ambient-secondary) 0 9rem, transparent 27rem),
    radial-gradient(circle at -5% 76%, var(--ambient-violet) 0 8rem, transparent 26rem),
    radial-gradient(circle at 105% 92%, var(--ambient-blue) 0 7rem, transparent 25rem);
  filter: blur(15px) saturate(1.12);
}

:root[data-theme="dark"] body::before,
:root.theme-dark body::before {
  background:
    radial-gradient(circle at -8% 12%, var(--ambient-blue) 0 11rem, transparent 29rem),
    radial-gradient(circle at 108% 30%, var(--ambient-secondary) 0 10rem, transparent 28rem),
    radial-gradient(circle at -5% 76%, var(--ambient-violet) 0 9rem, transparent 27rem),
    radial-gradient(circle at 105% 92%, var(--ambient-blue) 0 8rem, transparent 26rem);
  filter: blur(15px) saturate(1.25);
}

body::after {
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: linear-gradient(90deg, #000 0, transparent 24%, transparent 76%, #000 100%);
  mask-image: linear-gradient(90deg, #000 0, transparent 24%, transparent 76%, #000 100%);
  opacity: 0.7;
}

[hidden] {
  display: none !important;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

::selection {
  color: var(--text);
  background: var(--accent-soft);
}

.shell {
  width: calc(100% - (2 * var(--page-inset)));
  max-width: var(--content-width);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: -999px;
  z-index: 20;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: 0.45rem;
  color: var(--text);
  background: var(--surface);
}

.skip-link:focus {
  left: 0.75rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.theme-toggle::before {
  width: 1rem;
  height: 1rem;
  background: currentColor;
  content: "";
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.7 15.4A9 9 0 0 1 8.6 3.3 9 9 0 1 0 20.7 15.4z'/%3E%3C/svg%3E");
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

:root[data-theme="dark"] .theme-toggle::before,
:root.theme-dark .theme-toggle::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 7a5 5 0 1 0 0 10 5 5 0 0 0 0-10zm0-7h1v4h-2V0zm0 20h1v4h-2v-4zM0 11h4v2H0zm20 0h4v2h-4zM3.5 2.1 6.3 5 5 6.3 2.1 3.5zm14.2 15.6 2.8 2.8-1.4 1.4-2.8-2.8zM20.5 2.1l1.4 1.4-2.8 2.8L17.7 5zM5 17.7l1.3 1.4-2.8 2.8-1.4-1.4z'/%3E%3C/svg%3E");
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--border);
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.hero {
  position: relative;
  display: grid;
  gap: 2rem;
  align-items: start;
  padding-block: clamp(2.75rem, 6vw, 5rem) 2.5rem;
}

.hero-copy {
  max-width: 640px;
}

.hero-copy h1,
.blog-header h1,
.post-header h1 {
  margin: 0.45rem 0 1.25rem;
  font-family: inherit;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  max-width: none;
  color: var(--text);
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  text-shadow: 0 1px 0 color-mix(in srgb, var(--surface) 75%, transparent);
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow a {
  text-decoration: none;
}

.hero-copy p {
  max-width: 68ch;
  margin-block: 0.8rem;
  color: var(--text);
}

.hero-copy p:first-of-type {
  color: var(--text);
  font-size: 1.02rem;
}

.intro-link {
  color: var(--accent-strong);
  font-weight: inherit;
  text-decoration: none;
  text-underline-offset: 0.18em;
  transition:
    color 160ms ease,
    text-decoration-color 160ms ease;
}

.intro-link:hover,
.intro-link:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

.hero-photo {
  margin: 0;
}

.hero-photo img {
  width: 100%;
  border: 2px solid transparent;
  border-radius: 1rem;
  filter: saturate(0.88) contrast(1.03);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease,
    transform 180ms ease;
}

.hero-photo:hover img,
.hero-photo:focus-within img {
  border-color: var(--accent);
  box-shadow: 0 14px 32px color-mix(in srgb, var(--accent) 20%, transparent);
  filter: saturate(1) contrast(1.03);
  transform: translateY(-2px);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.button-link,
.text-link,
.section-nav a,
.news-text a,
.blog-feature h3 a,
.post-card h2 a,
.post-content a,
.publication-note a,
.publication-coverage a {
  color: var(--text);
  text-decoration: none;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.button-link {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  font-size: 0.86rem;
  font-weight: 650;
}

.button-icon {
  width: 0.9rem;
  height: 0.9rem;
  flex: 0 0 auto;
  fill: currentColor;
}

.button-icon--stroke {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.button-link:hover,
.button-link:focus-visible,
.text-link:hover,
.text-link:focus-visible,
.section-nav a:hover,
.section-nav a:focus-visible,
.news-text a:hover,
.news-text a:focus-visible,
.blog-feature h3 a:hover,
.blog-feature h3 a:focus-visible,
.post-card h2 a:hover,
.post-card h2 a:focus-visible,
.post-content a:hover,
.post-content a:focus-visible,
.publication-note a:hover,
.publication-note a:focus-visible,
.publication-coverage a:hover,
.publication-coverage a:focus-visible {
  color: var(--accent-strong);
  text-decoration: underline;
}

.button-link:hover,
.button-link:focus-visible {
  border-color: var(--border-strong);
  background: var(--accent-soft);
  text-decoration: none;
}

.section-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  background: transparent;
}

.section-nav-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1.35rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--border);
  border-radius: 0 0 0.65rem 0.65rem;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--text) 5%, transparent);
}

.section-nav a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-decoration: none;
}

.section-nav .site-name {
  justify-self: start;
  color: var(--text);
  font-size: 0.88rem;
  letter-spacing: -0.01em;
}

.section-nav-links {
  display: flex;
  gap: 1.35rem;
  align-items: center;
  justify-self: center;
}

.section-nav .theme-toggle {
  justify-self: end;
}

.section {
  display: grid;
  grid-template-columns: minmax(140px, 0.32fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--border);
}

#publications {
  grid-template-columns: 1fr;
  gap: 2rem;
}

#news {
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

.section-heading {
  position: relative;
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  margin: 0;
}

.section-heading h2 {
  margin: 0;
  font-family: inherit;
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.section-body.prose p {
  max-width: 68ch;
  margin: 0 0 1rem;
}

.section-body.prose p:first-child {
  color: var(--text);
  font-size: 1rem;
}

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

.news-content {
  position: relative;
  min-width: 0;
}

.news-content::before {
  position: absolute;
  top: calc(1.89rem + 2px);
  bottom: 1.35rem;
  left: calc(0.3rem + 1px);
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(
    to bottom,
    var(--accent) 0,
    color-mix(in srgb, var(--accent) 62%, var(--accent-secondary)) 42%,
    var(--accent-secondary) 72%,
    color-mix(in srgb, var(--accent-secondary) 20%, transparent) 100%
  );
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 24%, transparent);
  content: "";
}

.news-list li {
  display: grid;
  grid-template-columns: 6.8rem 1fr;
  gap: 1rem;
  padding-block: 1.1rem;
  border-top: 1px solid var(--border);
}

.news-timeline li {
  position: relative;
  margin-left: -0.45rem;
  padding: 1.1rem 0.7rem 1.1rem 1.95rem;
  border-top: 0;
  border-radius: 0.5rem;
  transition: background-color 180ms ease;
}

.news-timeline li::before {
  position: absolute;
  top: 1.55rem;
  left: 0.41rem;
  width: 0.68rem;
  height: 0.68rem;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--accent) 11%, transparent),
    0 0 14px color-mix(in srgb, var(--accent) 24%, transparent);
  content: "";
  z-index: 1;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.news-timeline li:first-child::before {
  top: 1.55rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
}

.news-timeline li:hover,
.news-timeline li:focus-within {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--accent-soft) 74%, transparent),
    color-mix(in srgb, var(--surface) 42%, transparent)
  );
}

.news-list:not(.news-timeline) li:first-child {
  padding-top: 0;
  border-top: 0;
}

.news-date {
  width: fit-content;
  padding: 0.12rem 0.42rem;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border));
  border-radius: 999px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent-soft) 48%, transparent);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.45;
  white-space: nowrap;
}

.news-text {
  line-height: 1.55;
}

.timeline-reveal {
  position: relative;
  z-index: 1;
  padding: 0.15rem 0 0.15rem 1.95rem;
}

.timeline-toggle {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    opacity 180ms ease;
  opacity: 0.72;
}

.timeline-toggle:hover,
.timeline-toggle:focus-visible,
.timeline-toggle[aria-expanded="true"] {
  border-color: var(--border-strong);
  color: var(--accent-strong);
  background: var(--accent-soft);
  opacity: 1;
}

.timeline-toggle-icon {
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.12rem) rotate(45deg);
  transition: transform 240ms ease;
}

.timeline-toggle[aria-expanded="true"] .timeline-toggle-icon {
  transform: translateY(0.12rem) rotate(225deg);
}

.news-archive-panel {
  max-height: 4.6rem;
  margin-left: -0.5rem;
  padding-left: 0.5rem;
  overflow: hidden;
  transition:
    max-height 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.news-archive-panel.is-open {
  max-height: 30rem;
  transition:
    max-height 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.news-archive-inner {
  min-height: 8rem;
}

.news-timeline--archive {
  padding-top: 0;
}

.news-timeline--archive li {
  padding-block: 1.1rem;
  transition:
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.news-timeline--archive .news-date,
.news-timeline--archive .news-text {
  opacity: 0.62;
  transition: opacity 320ms ease;
}

.news-timeline--archive li:nth-child(2) .news-date,
.news-timeline--archive li:nth-child(2) .news-text {
  opacity: 0.28;
}

.news-timeline--archive li:first-child {
  padding-top: 1.1rem;
}

.news-timeline--archive li:first-child::before {
  top: 1.55rem;
  background: var(--bg);
}

.news-archive-panel.is-open .news-timeline--archive li {
  transform: translateY(0);
}

.news-archive-panel.is-open .news-timeline--archive .news-date,
.news-archive-panel.is-open .news-timeline--archive .news-text {
  opacity: 1;
}

.news-archive-panel.is-open .news-timeline--archive li:nth-child(2) .news-date,
.news-archive-panel.is-open .news-timeline--archive li:nth-child(2) .news-text {
  transition-delay: 55ms;
}

.news-content:has(
    > .news-timeline:first-child > li:not(:first-child):hover,
    > .news-timeline:first-child > li:not(:first-child):focus-within,
    .news-timeline--archive li:hover,
    .news-timeline--archive li:focus-within
  )
  > .news-timeline:first-child
  > li:first-child::before {
  background: var(--bg);
}

.news-content .news-timeline li:hover::before,
.news-content .news-timeline li:focus-within::before {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  box-shadow:
    0 0 0 5px color-mix(in srgb, var(--accent) 13%, transparent),
    0 0 18px color-mix(in srgb, var(--accent-secondary) 32%, transparent);
}

.blog-feature,
.post-card,
.comments-placeholder {
  border: 1px solid var(--border);
  background: var(--surface);
}

.blog-feature {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
}

.blog-feature h3,
.post-card h2 {
  margin: 0.35rem 0 0.5rem;
}

.blog-feature p:last-child,
.post-card p:last-child {
  margin-bottom: 0;
}

.blog-header {
  position: relative;
  padding-block: clamp(3rem, 7vw, 5rem) 2.5rem;
}

.blog-header .theme-toggle,
.post-header .theme-toggle {
  position: absolute;
  top: 1.25rem;
  right: 0;
}

.blog-header h1,
.post-header h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.blog-header > p:last-child,
.post-header > p:last-child {
  max-width: 65ch;
  color: var(--muted);
}

.post-list {
  display: grid;
  gap: 0.85rem;
  padding-bottom: 5rem;
}

.post-card {
  padding: 1.5rem;
  transition: border-color 160ms ease, transform 160ms ease;
}

.post-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.post-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.post-page {
  width: min(760px, calc(100% - (2 * var(--page-inset))));
  margin-inline: auto;
  padding-bottom: 5rem;
}

.post-header {
  position: relative;
  padding-block: clamp(3rem, 7vw, 5rem) 2.25rem;
  border-bottom: 1px solid var(--border);
}

.post-content {
  padding-top: 2rem;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.75;
}

.post-content h2 {
  margin-top: 2.5rem;
  font-family: inherit;
  font-size: 1.25rem;
  line-height: 1.25;
}

.post-content pre {
  overflow-x: auto;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.45rem;
  background: var(--surface-muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.85rem;
}

.comments {
  padding-top: 2rem;
  margin-top: 3rem;
  border-top: 1px solid var(--border);
}

.giscus {
  margin-top: 1rem;
}

.giscus-frame {
  color-scheme: light dark;
}

.comments-placeholder {
  padding: 1rem;
  color: var(--muted);
}

.site-footer {
  padding-block: 2rem 3rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.publication-list {
  display: grid;
  gap: 0.7rem;
}

.publication {
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.45fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-inline: -0.85rem;
  padding: 1.35rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.publication:first-child {
  margin-top: -0.85rem;
}

.publication:hover,
.publication:focus-within {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.publication-media {
  position: relative;
  align-self: start;
  overflow: hidden;
  background: transparent;
  aspect-ratio: 960 / 539;
  transition:
    filter 180ms ease,
    transform 180ms ease;
}

.publication:hover .publication-media,
.publication:focus-within .publication-media {
  filter: saturate(1.04) contrast(1.02);
  transform: scale(1.01);
}

.publication-media img,
.publication-media video,
.thumb-fallback {
  width: 100%;
  height: 100%;
}

.publication-media img {
  object-fit: contain;
}

.publication-media video {
  display: block;
  object-fit: contain;
  background: transparent;
}

.thumb-fallback {
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.publication-copy h3 {
  margin: 0;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.012em;
}

.publication-authors,
.publication-venue,
.publication-note,
.publication-coverage {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.publication-authors strong {
  color: var(--text);
}

.author-link {
  color: inherit;
  text-decoration: none;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
}

.author-link:hover,
.author-link:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: currentColor;
}

.publication-venue {
  color: var(--text);
  font-style: italic;
}

.publication-note {
  width: fit-content;
  padding: 0.18rem 0.48rem;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  border-radius: 0.3rem;
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-size: 0.78rem;
  font-weight: 700;
  font-style: normal;
  line-height: 1.35;
}

.publication-note a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 55%, transparent);
  text-underline-offset: 0.15em;
}

.link-row--compact {
  gap: 0.45rem;
  margin-top: 1rem;
}

.link-row--compact .text-link {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.58rem;
  border: 1px solid var(--border);
  border-radius: 0.35rem;
  color: var(--accent-strong);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.015em;
  line-height: 1;
  text-transform: none;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.link-row--compact .text-link:hover,
.link-row--compact .text-link:focus-visible {
  border-color: var(--accent);
  color: var(--accent-strong);
  background: var(--accent-soft);
  text-decoration: none;
  transform: translateY(-1px);
}

.link-row--compact .text-link::before {
  display: none;
  width: 0.9rem;
  height: 0.9rem;
  flex: 0 0 auto;
  background: currentColor;
  content: "";
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.resource-link--paper::before,
.resource-link--arxiv::before,
.resource-link--website::before,
.resource-link--code::before,
.resource-link--summary::before,
.resource-link--video::before {
  display: block;
}

.resource-link--paper::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2h9l5 5v15H6z'/%3E%3Cpath d='M14 2v6h6M9 13h6M9 17h6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2h9l5 5v15H6z'/%3E%3Cpath d='M14 2v6h6M9 13h6M9 17h6'/%3E%3C/svg%3E");
}

.resource-link--arxiv::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3.5 5.5h3.1l4 5.2 4.1-5.2h3.2l-5.7 7.2 6.3 7.8h-3.2l-4.7-5.9-4.7 5.9H2.7l6.2-7.8z'/%3E%3Cpath d='M18.3 5.5h2.2v15h-2.2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3.5 5.5h3.1l4 5.2 4.1-5.2h3.2l-5.7 7.2 6.3 7.8h-3.2l-4.7-5.9-4.7 5.9H2.7l6.2-7.8z'/%3E%3Cpath d='M18.3 5.5h2.2v15h-2.2z'/%3E%3C/svg%3E");
}

.resource-link--website::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a15 15 0 0 1 0 18M12 3a15 15 0 0 0 0 18'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a15 15 0 0 1 0 18M12 3a15 15 0 0 0 0 18'/%3E%3C/svg%3E");
}

.resource-link--code::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 .8a11.5 11.5 0 0 0-3.6 22.4c.6.1.8-.3.8-.6v-2.2c-3.3.7-4-1.4-4-1.4-.5-1.4-1.3-1.8-1.3-1.8-1.1-.7.1-.7.1-.7 1.2.1 1.8 1.2 1.8 1.2 1.1 1.8 2.8 1.3 3.5 1 .1-.8.4-1.3.8-1.6-2.6-.3-5.4-1.3-5.4-5.7 0-1.3.5-2.3 1.2-3.1-.1-.3-.5-1.5.1-3.1 0 0 1-.3 3.2 1.2a11 11 0 0 1 5.8 0c2.2-1.5 3.2-1.2 3.2-1.2.6 1.6.2 2.8.1 3.1.8.8 1.2 1.8 1.2 3.1 0 4.4-2.7 5.4-5.4 5.7.4.4.8 1.1.8 2.2v3.3c0 .3.2.7.8.6A11.5 11.5 0 0 0 12 .8z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 .8a11.5 11.5 0 0 0-3.6 22.4c.6.1.8-.3.8-.6v-2.2c-3.3.7-4-1.4-4-1.4-.5-1.4-1.3-1.8-1.3-1.8-1.1-.7.1-.7.1-.7 1.2.1 1.8 1.2 1.8 1.2 1.1 1.8 2.8 1.3 3.5 1 .1-.8.4-1.3.8-1.6-2.6-.3-5.4-1.3-5.4-5.7 0-1.3.5-2.3 1.2-3.1-.1-.3-.5-1.5.1-3.1 0 0 1-.3 3.2 1.2a11 11 0 0 1 5.8 0c2.2-1.5 3.2-1.2 3.2-1.2.6 1.6.2 2.8.1 3.1.8.8 1.2 1.8 1.2 3.1 0 4.4-2.7 5.4-5.4 5.7.4.4.8 1.1.8 2.2v3.3c0 .3.2.7.8.6A11.5 11.5 0 0 0 12 .8z'/%3E%3C/svg%3E");
}

.resource-link--summary::before {
  display: none;
}

.resource-icon {
  width: 0.82rem;
  height: 0.82rem;
  flex: 0 0 auto;
  fill: currentColor;
}

.resource-link--video::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m10 9 5 3-5 3z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m10 9 5 3-5 3z'/%3E%3C/svg%3E");
}

.github-stars {
  display: inline-flex;
  gap: 0.2rem;
  align-items: center;
  padding-left: 0.45rem;
  border-left: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0;
}

.github-stars::before {
  width: 0.82rem;
  height: 0.82rem;
  flex: 0 0 auto;
  background: currentColor;
  content: "";
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 1.8 3.1 6.4 7.1 1-5.1 5 1.2 7-6.3-3.3-6.3 3.3 1.2-7-5.1-5 7.1-1z'/%3E%3C/svg%3E");
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 1.8 3.1 6.4 7.1 1-5.1 5 1.2 7-6.3-3.3-6.3 3.3 1.2-7-5.1-5 7.1-1z'/%3E%3C/svg%3E");
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

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

  .publication-media {
    width: min(100%, 30rem);
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 8rem;
  }

  body::before {
    opacity: 0.78;
  }

  body::after {
    opacity: 0.38;
  }

  :root[data-theme="dark"] body::before,
  :root.theme-dark body::before {
    opacity: 0.82;
  }

  :root[data-theme="dark"] body::after,
  :root.theme-dark body::after {
    opacity: 0.48;
  }

  .section-nav-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.4rem 0.75rem;
    padding: 0.55rem 0.7rem;
  }

  .section-nav .site-name {
    justify-self: start;
  }

  .section-nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    gap: 1rem;
  }

  .section-nav .theme-toggle {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-photo {
    width: min(72vw, 300px);
    margin: 0 0 0 0.75rem;
  }

  .section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .news-list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .news-timeline::before {
    left: 0.28rem;
  }

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

  .blog-feature {
    display: grid;
    align-items: start;
  }

}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  }

  .hero-photo {
    margin-top: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  body::before,
  body::after,
  .skip-link,
  .theme-toggle,
  .section-nav,
  .link-row {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .section {
    display: block;
  }
}
