@charset "UTF-8";
:root {
  --bg: #faf8f5;
  --bg-2: #f3f0ea;
  --ink: #1c1917;
  --ink-2: #44403c;
  --ink-3: #78716c;
  --ink-4: #a8a29e;
  --rule: #e7e5e4;
  --card: #ffffff;
  --accent: #0d9488;
  --accent-2: #14b8a6;
  --accent-soft: #ccfbf1;
  --highlight: #fef3c7;
}

html.dark {
  --bg: #0c0a09;
  --bg-2: #1c1917;
  --ink: #fafaf9;
  --ink-2: #d6d3d1;
  --ink-3: #a8a29e;
  --ink-4: #78716c;
  --rule: #292524;
  --card: #1c1917;
  --accent: #0d9488;
  --accent-2: #14b8a6;
  --accent-soft: #042f2e;
  --highlight: #422006;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  overflow-x: clip;
}

body {
  font-family: "Crimson Pro", Georgia, serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 19px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern", "liga", "onum";
}

.ui {
  font-family: "Space Grotesk", system-ui, sans-serif;
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: clamp(24px, 4vw, 48px);
  padding-right: clamp(24px, 4vw, 48px);
}

.narrow {
  max-width: 760px;
  margin: 0 auto;
  padding-left: clamp(24px, 4vw, 48px);
  padding-right: clamp(24px, 4vw, 48px);
}

/* Reading progress rail */
.rail {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  z-index: 40;
}

.rail-fill {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0%;
  background: var(--accent);
  transition: height 0.08s linear;
}

/* Nav */
nav.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
  z-index: 30;
}

.topnav .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk";
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
  min-width: 0;
}

.nav-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.brand .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 18%, transparent);
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-family: "Space Grotesk";
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: 0.01em;
  position: relative;
  padding: 6px 0;
}

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

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

.nav-links a:hover::after, .nav-links a.active::after {
  transform: scaleX(1);
}

.kbar-btn {
  font-family: "Space Grotesk";
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--rule);
  color: var(--ink-2);
  background: var(--card);
  cursor: pointer;
}

.kbar-btn kbd {
  font-family: "JetBrains Mono";
  font-size: 11px;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--bg-2);
  border: 1px solid var(--rule);
}

.kbar-btn:hover {
  color: var(--ink);
  border-color: var(--ink-4);
}

.icon-btn {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--rule);
  border-radius: 6px;
  color: var(--ink-2);
  background: var(--card);
  cursor: pointer;
}

.icon-btn:hover {
  color: var(--ink);
  border-color: var(--ink-4);
}

/* HERO — editorial */
.hero {
  padding: 140px 0 80px;
  position: relative;
}

.hero .overline {
  font-family: "Space Grotesk";
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.hero .overline .line {
  flex: 0 0 42px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-family: "Crimson Pro";
  font-weight: 500;
  font-size: clamp(56px, 9vw, 128px);
  line-height: 0.94;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  color: var(--ink);
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.hero .sub {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}

.hero .lead {
  max-width: 56ch;
  font-size: 21px;
  line-height: 1.55;
  color: var(--ink-2);
}

.hero .lead.secondary {
  margin-top: 14px;
  font-size: 18px;
  color: var(--ink-3);
}

.hero .lead strong {
  color: var(--accent);
  font-weight: 600;
}

.hero .lead a {
  border-bottom: 1px solid var(--ink-4);
}

.hero .lead a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.portrait {
  width: 280px;
  aspect-ratio: 1/1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  background: var(--card);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .portrait {
    width: 100%;
    max-width: 320px;
  }
}
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.socials a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  font-family: "Space Grotesk";
  font-size: 12.5px;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid var(--rule);
  color: var(--ink-2);
  background: var(--card);
  transition: all 0.18s ease;
}

.socials a:hover {
  color: var(--ink);
  border-color: var(--ink);
  transform: translateY(-1px);
}

.socials a.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.socials a.primary:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.socials a.ghost-dark {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.socials a.ghost-dark:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.socials a svg {
  width: 14px;
  height: 14px;
}

/* Section header */
.sec {
  padding: 96px 0;
}

.sec.alt {
  background: var(--bg-2);
}

.sec .eyebrow {
  font-family: "Space Grotesk";
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.sec .eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.sec h2 {
  font-family: "Crimson Pro";
  font-weight: 500;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.sec .lede {
  font-size: 18px;
  color: var(--ink-3);
  max-width: 60ch;
  margin-bottom: 56px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
  flex-wrap: wrap;
  gap: 24px;
}

.section-index {
  font-family: "JetBrains Mono";
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.08em;
}

/* News */
.news {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0 32px;
  max-width: 900px;
  margin-top: 32px;
}

.news-item {
  display: contents;
}

.news-item[hidden] {
  display: none;
}

.news-item .date {
  font-family: "Space Grotesk";
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
  white-space: nowrap;
}

.news-item .what {
  padding: 22px 0;
  border-top: 1px solid var(--rule);
  font-size: 18px;
  color: var(--ink);
  line-height: 1.5;
}

.news-item:first-of-type .date,
.news-item:first-of-type .what {
  border-top: 2px solid var(--ink);
}

.news-item .what em,
.news-item .what i {
  font-style: italic;
  color: var(--ink);
}

.news-item .tag {
  display: inline-block;
  font-family: "Space Grotesk";
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 8px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 3px;
  margin-right: 8px;
  vertical-align: 2px;
}

.news-actions {
  max-width: 900px;
  margin-top: 28px;
}

.news-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Space Grotesk";
  font-size: 12.5px;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  border: 1px solid var(--rule);
  cursor: pointer;
  transition: all 0.15s ease;
}

.news-toggle:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.news-toggle svg {
  transition: transform 0.2s ease;
}

.news-toggle.open svg {
  transform: rotate(180deg);
}

/* Research cards */
.cards {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.card {
  grid-column: span 6;
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 32px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.22s ease;
}

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

.card .num {
  font-family: "Space Grotesk";
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  font-weight: 500;
}

.card .num b {
  color: var(--accent);
  font-weight: 600;
}

.card h3 {
  font-family: "Crimson Pro";
  font-weight: 500;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}

.card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 17px;
}

.card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.card .tags span {
  font-family: "JetBrains Mono";
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 3px;
  background: var(--bg-2);
  color: var(--ink-2);
  border: 1px solid var(--rule);
}

.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

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

/* Publications */
.pubs {
  display: flex;
  flex-direction: column;
}

.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}

.filters button {
  font-family: "Space Grotesk";
  font-size: 12px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-3);
  border: 1px solid var(--rule);
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filters button:hover {
  color: var(--ink);
  border-color: var(--ink-4);
}

.filters button.on {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.filters .count {
  font-family: "JetBrains Mono";
  font-size: 10px;
  opacity: 0.7;
}

.pub {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0 28px;
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}

.pub:last-child {
  border-bottom: 1px solid var(--rule);
}

.pub .year {
  font-family: "Space Grotesk";
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  padding-top: 2px;
}

.pub .year .venue {
  display: block;
  font-family: "JetBrains Mono";
  font-size: 10px;
  font-weight: 500;
  color: var(--accent);
  margin-top: 6px;
  letter-spacing: 0.05em;
}

.pub .status-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.pub .badge {
  font-family: "Space Grotesk";
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  font-weight: 600;
}

.pub .badge.accepted {
  background: #dcfce7;
  color: #166534;
}

.pub .badge.preprint {
  background: var(--accent-soft);
  color: var(--accent);
}

html.dark .pub .badge.accepted {
  background: #14532d;
  color: #bbf7d0;
}

.pub h3 {
  font-family: "Crimson Pro";
  font-weight: 500;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.005em;
  margin: 0 0 10px;
  color: var(--ink);
}

.pub .authors {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.5;
  font-family: "Space Grotesk";
}

.pub .authors .me {
  color: var(--ink);
  font-weight: 600;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 100% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
}

.pub .pub-full-venue {
  font-family: "Space Grotesk";
  font-size: 13px;
  font-style: italic;
  color: var(--ink-3);
  margin-top: 10px;
}

.pub .actions {
  display: flex;
  gap: 6px;
  padding-top: 2px;
  flex-wrap: wrap;
}

.pub .actions a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Space Grotesk";
  font-size: 12px;
  font-weight: 500;
  padding: 7px 11px;
  border-radius: 6px;
  border: 1px solid var(--rule);
  color: var(--ink-2);
}

.pub .actions a:hover {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--card);
}

.pub .actions a svg {
  width: 13px;
  height: 13px;
}

/* Subsection inside a .sec (e.g., Teaching Assistant + Student Mentoring) */
.subsec + .subsec {
  margin-top: 56px;
}

.subsec-label {
  font-family: "Space Grotesk";
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
}

.subsec-label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}

/* Teaching */
.teach-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.teach-grid .course {
  grid-column: span 4;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.teach-grid .course .head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.teach-grid .course .identifier {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.teach-grid .course .code {
  font-family: "JetBrains Mono";
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.teach-grid .course .institution,
.mentee .institution {
  font-family: "Space Grotesk";
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}

.teach-grid .course .role {
  font-family: "Space Grotesk";
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 3px 7px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  white-space: nowrap;
}

.teach-grid .course h4 {
  font-family: "Crimson Pro";
  font-weight: 500;
  font-size: 22px;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.005em;
}

.teach-grid .course p {
  font-size: 15px;
  color: var(--ink-3);
  line-height: 1.5;
  margin: 0;
}

.teach-grid .course .terms {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding-top: 14px;
  border-top: 1px dashed var(--rule);
}

.teach-grid .course .terms span {
  font-family: "JetBrains Mono";
  font-size: 10px;
  color: var(--ink-2);
}

.teach-grid .course .terms span + span::before {
  content: "·  ";
  color: var(--ink-4);
}

/* Mentoring */
.mentoring {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 880px;
}

.mentee {
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.22s ease;
}

.mentee:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.mentee .head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.mentee .identifier {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.mentee h4 {
  font-family: "Crimson Pro";
  font-weight: 500;
  font-size: 22px;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.005em;
}

.mentee .level {
  font-family: "Space Grotesk";
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 3px;
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  color: var(--accent);
  white-space: nowrap;
}

.mentee .project {
  font-family: "Space Grotesk";
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  line-height: 1.4;
}

.mentee p {
  font-size: 15px;
  color: var(--ink-3);
  line-height: 1.5;
  margin: 0;
}

.mentee .foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mentee .duration {
  font-family: "JetBrains Mono";
  font-size: 11px;
  color: var(--ink-3);
}

.mentee .outcome {
  font-family: "Space Grotesk";
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 3px;
  background: #dcfce7;
  color: #166534;
}

html.dark .mentee .outcome {
  background: #14532d;
  color: #bbf7d0;
}

/* Contact / footer */
footer.site {
  background: var(--ink);
  color: var(--bg);
  padding: 110px 0 40px;
  position: relative;
  overflow: hidden;
}

html.dark footer.site {
  background: #000;
}

footer .giant {
  font-family: "Crimson Pro";
  font-weight: 500;
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 40px;
}

footer .giant em {
  font-style: italic;
  color: var(--accent);
}

footer .intro {
  max-width: 56ch;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.55;
}

footer .info-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 48px;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 40px;
}

footer .info-grid .block {
  grid-column: span 4;
}

footer .info-grid .block h5 {
  font-family: "Space Grotesk";
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

footer .info-grid .block a,
footer .info-grid .block p {
  font-family: "Space Grotesk";
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  margin: 4px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

footer .info-grid .block a:hover {
  color: var(--accent);
}

footer .info-grid .block a svg,
footer .info-grid .block p svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

footer .colo {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Space Grotesk";
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  flex-wrap: wrap;
  gap: 12px;
}

footer .visitors {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

footer .visitors-label {
  max-width: 42ch;
}

footer .visitors-label h5 {
  font-family: "Space Grotesk";
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
}

footer .visitors-label p {
  font-family: "Space Grotesk";
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

footer .visitors-map {
  width: 200px;
  max-width: 90vw;
  overflow: hidden;
  border-radius: 6px;
  opacity: 0.85;
}

/* Command palette */
.kbar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  z-index: 100;
  padding-top: 14vh;
}

.kbar-overlay.open {
  display: flex;
}

.kbar-panel {
  width: 92vw;
  max-width: 640px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.kbar-panel input {
  width: 100%;
  padding: 18px 22px;
  border: 0;
  outline: 0;
  font-family: "Space Grotesk";
  font-size: 16px;
  background: transparent;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
}

.kbar-list {
  max-height: 52vh;
  overflow: auto;
  padding: 8px;
}

.kbar-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border-radius: 8px;
  font-family: "Space Grotesk";
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
}

.kbar-item:hover, .kbar-item.sel {
  background: var(--bg-2);
}

.kbar-item .badge {
  font-family: "JetBrains Mono";
  font-size: 10px;
  color: var(--ink-3);
  margin-left: auto;
}

.kbar-item .ico {
  color: var(--ink-3);
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
}

/* =========================================================
   Mobile (<= 900px) — layout stacks, vertical rhythm tightens
   ========================================================= */
@media (max-width: 900px) {
  /* Grid → single column */
  .hero .sub {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 24px;
  }
  .card, .teach-grid .course {
    grid-column: span 12;
  }
  .news {
    grid-template-columns: 90px 1fr;
  }
  .pub {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .pub .actions {
    margin-top: 10px;
  }
  footer .info-grid .block {
    grid-column: span 12;
  }
  /* Nav compaction */
  .nav-links {
    display: none;
  }
  .kbar-btn span:not(kbd) {
    display: none;
  }
  .kbar-btn kbd {
    display: none;
  }
  .kbar-btn {
    padding: 6px 8px;
  }
  /* Avatar — centered, right-sized */
  .portrait {
    width: 100%;
    max-width: 240px;
    justify-self: center;
  }
  /* Hero — tighter */
  .hero {
    padding: 96px 0 48px;
  }
  .hero .overline {
    margin-bottom: 18px;
  }
  .hero h1 {
    margin-bottom: 16px;
  }
  .hero .lead {
    font-size: 18px;
  }
  .hero .lead.secondary {
    font-size: 16px;
  }
  .socials {
    margin-top: 18px;
    gap: 6px;
  }
  /* Section vertical rhythm — ~40% tighter than desktop */
  .sec {
    padding: 56px 0;
  }
  .sec .lede {
    margin-bottom: 28px;
    font-size: 16px;
  }
  .section-header {
    margin-bottom: 28px;
  }
  /* News */
  .news {
    margin-top: 22px;
    gap: 0 22px;
  }
  .news-item .date,
  .news-item .what {
    padding: 16px 0;
  }
  .news-item .what {
    font-size: 16px;
  }
  .news-actions {
    margin-top: 18px;
  }
  /* Research cards */
  .cards {
    gap: 16px;
  }
  .card {
    padding: 24px;
    gap: 12px;
  }
  .card h3 {
    font-size: 26px;
  }
  .card p {
    font-size: 16px;
  }
  /* Publications */
  .filters {
    margin-bottom: 24px;
    padding-bottom: 16px;
  }
  .pub {
    padding: 20px 0;
  }
  .pub h3 {
    font-size: 19px;
  }
  /* Teaching */
  .teach-grid {
    gap: 16px;
  }
  .teach-grid .course {
    padding: 22px;
    gap: 10px;
  }
  .teach-grid .course h4 {
    font-size: 20px;
  }
  /* Mentoring */
  .subsec + .subsec {
    margin-top: 40px;
  }
  .subsec-label {
    margin-bottom: 18px;
  }
  .mentoring {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: none;
  }
  .mentee {
    padding: 22px;
    gap: 10px;
  }
  .mentee h4 {
    font-size: 20px;
  }
  /* Footer */
  footer.site {
    padding: 72px 0 28px;
  }
  footer .giant {
    margin: 0 0 20px;
  }
  footer .intro {
    font-size: 17px;
  }
  footer .info-grid {
    padding: 26px 0;
    gap: 24px;
    margin-top: 24px;
  }
  footer .visitors {
    padding: 22px 0;
    gap: 18px;
    flex-direction: column;
    align-items: flex-start;
  }
  footer .colo {
    padding-top: 18px;
  }
}
/* =========================================================
   Small phone (<= 480px) — even more compact
   ========================================================= */
@media (max-width: 480px) {
  /* Nav */
  .topnav .row {
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 12px;
  }
  .brand {
    font-size: 14px;
    gap: 8px;
  }
  .brand .dot {
    width: 7px;
    height: 7px;
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent);
  }
  .icon-btn {
    width: 30px;
    height: 30px;
  }
  .section-index {
    display: none;
  }
  /* Hero */
  .hero {
    padding: 84px 0 36px;
  }
  .hero h1 {
    font-size: clamp(44px, 12vw, 72px);
    margin-bottom: 14px;
  }
  .hero .sub {
    gap: 26px;
    padding-top: 20px;
  }
  /* Avatar smaller */
  .portrait {
    max-width: 200px;
  }
  /* Sections tighter */
  .sec {
    padding: 44px 0;
  }
  .sec h2 {
    font-size: 32px;
  }
  .section-header {
    margin-bottom: 22px;
  }
  /* Cards & teach */
  .card {
    padding: 20px;
  }
  .card h3 {
    font-size: 22px;
  }
  .teach-grid .course {
    padding: 20px;
  }
  .teach-grid .course h4 {
    font-size: 19px;
  }
  .mentee {
    padding: 20px;
  }
  .mentee h4 {
    font-size: 19px;
  }
  /* Pubs */
  .pub {
    padding: 16px 0;
  }
  .pub h3 {
    font-size: 18px;
  }
  /* Footer */
  footer.site {
    padding: 56px 0 24px;
  }
  footer .giant {
    font-size: clamp(44px, 12vw, 64px);
  }
  footer .info-grid {
    gap: 20px;
    padding: 22px 0;
    margin-top: 22px;
  }
}
/* Print */
@media print {
  nav.topnav, .kbar-btn, .kbar-overlay, .rail, .icon-btn {
    display: none !important;
  }
  body {
    background: white;
  }
  footer.site {
    background: white;
    color: black;
  }
  footer .info-grid .block h5 {
    color: black;
  }
  footer .info-grid .block a, footer .info-grid .block p {
    color: black;
  }
}

/*# sourceMappingURL=main.css.map */