:root {
  color-scheme: dark;
  --background: #090d12;
  --surface: #111820;
  --surface-strong: #17212b;
  --border: #2a3945;
  --border-light: #3b4d5b;
  --text: #f3f6f8;
  --secondary: #b7c2ca;
  --muted: #9baab6;
  --mint: #6ee7a8;
  --cyan: #6dd7f2;
  --dark: #06110d;
  --max-width: 1080px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 10% -8%, rgba(110, 231, 168, 0.08), transparent 32rem),
    var(--background);
  font-size: 16px;
  line-height: 1.65;
}

a { color: inherit; }
button { font: inherit; }
h1, h2, h3, h4, h5, p { margin-top: 0; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--dark);
  background: var(--cyan);
  border-radius: 6px;
  font-weight: 700;
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(9, 13, 18, 0.94);
  border-bottom: 1px solid rgba(42, 57, 69, 0.86);
  backdrop-filter: blur(14px);
}

.header-inner,
main,
footer {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
  min-height: 72px;
}

.identity {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--dark);
  background: var(--mint);
  border-radius: 8px;
  font-weight: 800;
}

nav {
  display: flex;
  gap: 24px;
  justify-self: end;
  white-space: nowrap;
}

nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

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

.introduction {
  max-width: 850px;
  padding: 88px 0 98px;
  scroll-margin-top: 88px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--mint);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(52px, 7vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.appointment {
  margin-bottom: 26px;
  color: var(--cyan);
  font-size: 17px;
  font-weight: 650;
}

.introduction-copy {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--secondary);
  font-size: 18px;
  line-height: 1.7;
}

.profile-links {
  display: flex;
  max-width: 760px;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.profile-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  color: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.profile-links a:hover {
  color: var(--text);
  border-color: var(--border-light);
}

.profile-links svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: var(--mint);
}

.page-section {
  position: relative;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 52px;
  padding: 72px 0;
  scroll-margin-top: 72px;
}

.page-section::before {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: rgba(109, 215, 242, 0.72);
  content: "";
}

.section-header h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.section-header .eyebrow { margin-bottom: 7px; }
.section-body { min-width: 0; }

.research-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) 1.15fr;
  gap: 48px;
}

.lead {
  margin-bottom: 0;
  color: var(--text);
  font-size: 20px;
  line-height: 1.55;
  letter-spacing: -0.015em;
}

.research-list article {
  padding: 0 0 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.research-list article:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.research-list h3 {
  margin-bottom: 4px;
  font-size: 16px;
}

.research-list p {
  margin: 0;
  color: var(--secondary);
  font-size: 15px;
}

.publication-venue {
  margin-bottom: 6px;
  color: var(--mint);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
}

.publication-year-group h5 a {
  text-decoration-thickness: 1px;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}

.publication-year-group h5 a:hover {
  color: var(--cyan);
  text-decoration-color: currentColor;
}

.authors {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.authors strong {
  color: var(--secondary);
  font-weight: 750;
}

.details-button {
  min-height: 44px;
  padding: 8px 0;
  margin-top: 5px;
  color: var(--cyan);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.details-button:hover { color: var(--text); }

.all-publications { padding-top: 20px; }

.all-publications > .publication-year-group:first-child {
  padding-top: 0;
  border-top: 0;
}

.publication-year-group {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 28px;
  padding: 30px 0;
  border-top: 1px solid var(--border);
}

.publication-year-group > h4 {
  margin: 3px 0 0;
  color: var(--mint);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
}

.publication-year-group ol {
  display: grid;
  gap: 24px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.publication-year-group li { min-width: 0; }

.publication-year-group h5 {
  margin-bottom: 5px;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.timeline {
  padding: 0;
  margin: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 36px 126px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.timeline li:first-child { padding-top: 0; border-top: 0; }

.organization-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--cyan);
  border: 1px solid rgba(109, 215, 242, 0.28);
  border-radius: 7px;
  font-size: 9px;
  font-weight: 800;
}

.period {
  padding-top: 5px;
  margin: 0;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.timeline h3 {
  margin-bottom: 2px;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.timeline .institution {
  margin-bottom: 7px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 650;
}

.timeline article > p:last-child {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--secondary);
  font-size: 14px;
}

.paper-dialog {
  width: min(calc(100% - 32px), 640px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6);
}

.paper-dialog::backdrop {
  background: rgba(3, 7, 10, 0.8);
  backdrop-filter: blur(6px);
}

.dialog-inner {
  position: relative;
  padding: 36px;
}

.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  color: var(--secondary);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.dialog-close svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.paper-dialog h2 {
  max-width: 510px;
  margin: 0 48px 14px 0;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.dialog-meta {
  padding-bottom: 20px;
  margin-bottom: 20px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.dialog-summary {
  color: var(--secondary);
  font-size: 16px;
}

.read-paper {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin-top: 8px;
  color: var(--dark);
  background: var(--mint);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  padding: 32px 0 46px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}

footer p { margin: 0; }
footer p:last-child { text-align: right; }
.identity.small .mark { width: 29px; height: 29px; border-radius: 7px; }
.mono { font-family: "SFMono-Regular", Consolas, monospace; }

@media (max-width: 880px) {
  .page-section {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 36px;
  }

  .research-layout { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 680px) {
  .header-inner,
  main,
  footer { width: min(calc(100% - 32px), var(--max-width)); }

  .introduction {
    padding: 62px 0 72px;
    scroll-margin-top: 88px;
  }

  h1 { font-size: clamp(44px, 14vw, 60px); }
  .appointment { font-size: 16px; }
  .introduction-copy { font-size: 16px; }

  .page-section {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 54px 0;
  }

  .section-header { max-width: 360px; }
  .publication-year-group {
    grid-template-columns: 1fr;
    gap: 17px;
    padding: 26px 0;
  }

  .publication-year-group ol { gap: 26px; }

  .timeline li {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
  }

  .organization-mark { display: none; }
  .period { padding-top: 3px; }

  .dialog-inner { padding: 30px 22px; }
  .paper-dialog h2 { font-size: 24px; }

  footer { grid-template-columns: 1fr; }
  footer p:last-child { text-align: left; }
}

@media (max-width: 560px) {
  .header-inner {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 8px;
  }

  nav {
    width: 100%;
    justify-self: start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  nav::-webkit-scrollbar { display: none; }
  .introduction, .page-section { scroll-margin-top: 112px; }
}

@media (max-width: 420px) {
  .identity > span:last-child { font-size: 13px; }
  nav { gap: 20px; }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .timeline article { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
