:root {
  --bg: #f3f5ef;
  --paper: #fbfcf8;
  --ink: #101914;
  --ink-soft: #26342c;
  --muted: #647169;
  --line: #d9dfd8;
  --hero: #14231d;
  --accent: #0f765f;
  --accent-dark: #0a5546;
  --amber: #a9632a;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--amber);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(20, 35, 29, 0.12);
  background: rgba(251, 252, 248, 0.94);
  backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 36px, var(--max-width));
  min-height: 64px;
  margin: 0 auto;
  gap: 24px;
}

.brand {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.94rem;
}

.nav-links a {
  color: var(--muted);
  font-weight: 650;
  text-decoration: none;
}

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

.hero {
  background: var(--hero);
  color: #f8fbf4;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  align-items: center;
  width: min(100% - 36px, var(--max-width));
  min-height: 520px;
  margin: 0 auto;
  padding: 62px 0 60px;
  gap: 64px;
}

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

.phd-clock {
  display: inline-grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  column-gap: 10px;
  margin: 0 0 22px;
  padding: 8px 14px;
  border: 1px solid rgba(188, 217, 209, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #bcd9d1;
  font-size: 0.9rem;
  line-height: 1.2;
}

.phd-clock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4fd1a5;
  box-shadow: 0 0 0 0 rgba(79, 209, 165, 0.6);
}

.phd-clock.is-live .phd-clock-dot {
  animation: phd-pulse 2s ease-out infinite;
}

.phd-clock-value {
  min-width: 10.5ch;
  color: #ffffff;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.phd-clock-unit {
  font-weight: 650;
}

@keyframes phd-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(79, 209, 165, 0.6);
  }
  70%,
  100% {
    box-shadow: 0 0 0 8px rgba(79, 209, 165, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .phd-clock.is-live .phd-clock-dot {
    animation: none;
  }
}

h1 {
  margin: 0;
  color: #ffffff;
  font-size: 3.25rem;
  line-height: 1;
  letter-spacing: 0;
}

h1 span {
  display: inline-block;
  margin-left: 12px;
  color: #bcd9d1;
  font-size: 1.75rem;
  font-weight: 650;
  vertical-align: baseline;
}

.intro {
  max-width: 760px;
  margin: 16px 0 0;
  color: #edf5ef;
  font-size: 1.05rem;
  line-height: 1.68;
}

.intro a {
  color: #ffffff;
  text-decoration-color: rgba(255, 255, 255, 0.62);
}

.intro a:hover {
  color: #bcd9d1;
  text-decoration-color: #bcd9d1;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-email {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  color: #bcd0c8;
  font-size: 0.98rem;
}

.hero-email span {
  color: #9fb8b0;
  font-weight: 750;
}

.hero-email a {
  color: #dceae5;
  text-decoration-color: rgba(220, 234, 229, 0.55);
}

.hero-email a:hover {
  color: #ffffff;
  text-decoration-color: #ffffff;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 6px;
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 750;
  text-decoration: none;
}

.button:hover {
  border-color: #ffffff;
  color: #ffffff;
}

.button-solid {
  border-color: #bcd9d1;
  background: #bcd9d1;
  color: var(--hero);
}

.button-solid:hover {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--hero);
}

.hero-photo {
  width: 220px;
  margin: 0;
  justify-self: end;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.section {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  width: min(100% - 36px, var(--max-width));
  margin: 0 auto;
  padding: 58px 0;
  border-top: 1px solid var(--line);
  gap: 54px;
}

.hero + .section {
  border-top: 0;
}

.section-label {
  position: sticky;
  top: 86px;
  align-self: start;
  color: var(--accent-dark);
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0;
}

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

.section-body > :first-child {
  margin-top: 0;
}

.section-body > :last-child {
  margin-bottom: 0;
}

p {
  margin: 0 0 14px;
}

.cv-download {
  color: var(--muted);
  font-size: 0.96rem;
}

.cv-list .cv-focus {
  color: var(--ink-soft);
  font-style: italic;
}

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

.publication-item {
  display: grid;
  grid-template-columns: 144px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}

.publication-image {
  display: block;
  overflow: hidden;
  width: 144px;
  height: 144px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.publication-image img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 8px;
  object-fit: contain;
}

.publication-text {
  min-width: 0;
  padding-top: 0;
}

.publication-text h2 {
  margin: 0 0 4px;
  max-width: none;
  font-size: 1.02rem;
  line-height: 1.42;
}

.publication-text h2 a {
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

.publication-text h2 a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.publication-item a[href*="alphaxiv" i],
.publication-item button[class*="alphaxiv" i],
.publication-item [id*="alphaxiv" i],
.publication-item [class*="alphaxiv" i] {
  display: none !important;
}

.authors,
.authors p {
  max-width: 780px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.55;
}

.authors strong {
  font-weight: 900;
}

.more-authors {
  appearance: none;
  padding: 0;
  border: 0;
  border-bottom: 1px dashed currentColor;
  background: transparent;
  color: var(--accent-dark);
  cursor: pointer;
  font: inherit;
}

.venue {
  margin: 4px 0 0;
  color: var(--accent-dark);
  font-size: 0.92rem;
  font-weight: 800;
}

.cv-section {
  display: block;
}

.cv-section .section-label {
  position: static;
  margin-bottom: 22px;
}

.cv-group + .cv-group {
  margin-top: 36px;
}

.cv-group h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.35;
}

.cv-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.cv-list li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.cv-list time {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
}

.cv-list h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.32;
}

.cv-list p {
  color: var(--muted);
  font-size: 0.94rem;
}

.compact-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.compact-list li {
  padding: 12px 0 12px 16px;
  border-left: 3px solid var(--accent);
  color: var(--ink-soft);
}

.compact-list li:nth-child(2n) {
  border-left-color: var(--amber);
}

.footer-motto {
  position: relative;
  max-width: 760px;
  margin: 0 0 22px;
  padding-left: 22px;
  border-left: 3px solid rgba(15, 118, 95, 0.38);
  color: var(--muted);
}

.footer-motto p {
  margin: 0;
  position: relative;
}

.motto-original {
  color: var(--ink-soft);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.55;
}

.motto-translation {
  margin-top: 4px !important;
  color: var(--muted);
  font-size: 0.94rem;
  font-style: italic;
  line-height: 1.58;
}

.footer-motto cite {
  display: block;
  margin-top: 8px;
  color: #7a867e;
  font-size: 0.86rem;
  font-style: normal;
}

.site-footer {
  width: min(100% - 36px, var(--max-width));
  margin: 0 auto;
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 820px) {
  .hero-content {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 54px 0 46px;
    gap: 34px;
  }

  .hero-photo {
    width: 190px;
    justify-self: start;
  }

  h1 {
    font-size: 2.85rem;
  }

  h1 span {
    display: block;
    margin: 8px 0 0;
    font-size: 1.55rem;
  }

  .intro {
    font-size: 1rem;
  }

  .section {
    grid-template-columns: 1fr;
    padding: 44px 0;
    gap: 18px;
  }

  .section-label {
    position: static;
  }

  .publication-item {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .publication-image {
    width: 120px;
    height: 120px;
    max-width: 120px;
  }
}

@media (max-width: 620px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    min-height: auto;
    padding: 14px 0;
    gap: 10px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 12px 16px;
  }

  h1 {
    font-size: 2.35rem;
  }

  .publication-item {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
  }

  .publication-image {
    width: 92px;
    height: 92px;
    max-width: 92px;
  }

  .cv-list li {
    grid-template-columns: 1fr;
    gap: 10px;
  }

    .phd-clock {
    font-size: 0.84rem;
  }
}
