:root {
  --bg: #ffffff;
  --surface: #f6f8fb;
  --surface-2: #ffffff;
  --border: #d9e0ea;
  --border-strong: #aebaca;
  --ink: #1b2633;
  --muted: #5f6b7a;
  --faint: #7d8896;
  --navy: #0f3564;
  --navy-soft: #e9eff8;
  --orange: #c86b1d;
  --orange-dark: #9f4f12;
  --orange-soft: #fff1e6;
  --max: 780px;
  --pad: 48px;
  --date-col: 150px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--navy);
  text-decoration: none;
}

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

a:focus-visible {
  outline: 3px solid rgba(184, 95, 22, 0.34);
  outline-offset: 3px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  position: relative;
  display: flex;
  width: min(calc(var(--max) + var(--pad) * 2), 100%);
  height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

.nav-logo {
  flex: 0 0 auto;
  min-width: max-content;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 15px;
}

.nav-toggle {
  display: none;
  width: 34px;
  height: 32px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0;
  background: var(--surface-2);
  color: var(--navy);
}

.nav-toggle:hover {
  border-color: var(--orange);
  color: var(--orange-dark);
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
}

.nav-links {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 1px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  flex: 0 0 auto;
  border-radius: 5px;
  padding: 5px 6px;
  color: var(--navy);
  font-size: 12px;
  white-space: nowrap;
}

.nav-links a:hover {
  background: var(--surface-2);
  color: var(--orange-dark);
}

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

.hero {
  padding: 72px 0 54px;
  border-bottom: 1px solid var(--border);
}

.hero-main {
  min-width: 0;
}

.hero-label,
.section-head span,
.timeline-date,
.update-date,
.publication-year,
.skill-category {
  font-family: var(--mono);
  color: var(--orange-dark);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-label {
  max-width: 720px;
  margin-bottom: 16px;
  font-size: 12px;
  line-height: 1.6;
}

.identity-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 8px;
}

h1 {
  margin-bottom: 0;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(40px, 7vw, 56px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.08;
}

.hero-title {
  margin-bottom: 0;
  color: var(--orange-dark);
  font-size: 17px;
  font-weight: 750;
  line-height: 1.35;
}

.hero-role {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.hero-bio {
  max-width: 690px;
  margin-bottom: 16px;
  color: #484d55;
  line-height: 1.78;
}

.profile-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
}

.profile-logos a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 12px 7px 9px;
  background: var(--surface);
  color: var(--navy);
  font-size: 13px;
  font-weight: 650;
}

.profile-logos a:hover {
  border-color: var(--orange);
  background: var(--orange-soft);
}

.profile-logos img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.chips,
.keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chips {
  margin: 26px 0 20px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--orange);
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--orange-soft);
  color: var(--navy);
  font-size: 13px;
  font-weight: 550;
}

a.chip:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: #ffffff;
}

.icon {
  width: 15px;
  height: 15px;
  margin-right: 7px;
  color: currentColor;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.icon-letter {
  display: inline-grid;
  place-items: center;
  border-radius: 3px;
  background: var(--navy);
  color: #ffffff;
  fill: currentColor;
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  stroke: none;
}

.keywords span {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
  background: var(--navy-soft);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}

.section {
  padding-top: 56px;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}

.split-head {
  justify-content: space-between;
  gap: 20px;
}

h2 {
  margin-bottom: 0;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
}

h3 {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 550;
  line-height: 1.45;
}

.view-link,
.profile-button {
  min-width: max-content;
  color: var(--navy);
  font-size: 13px;
  font-weight: 550;
}

.view-link:hover,
.profile-button:hover {
  color: var(--orange);
}

.profile-button {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--orange);
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--orange-soft);
  color: var(--navy);
}

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

.news-list,
.publication-list,
.timeline-list,
.research-list,
.contact-list,
.skill-list {
  border-top: 1px solid var(--border);
}

.update-item {
  display: grid;
  grid-template-columns: var(--date-col) 1fr;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.update-item h3 {
  display: block;
  margin: 0 0 3px;
}

.update-item p {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.research-list article,
.publication-item,
.timeline-item,
.compact-item,
.contact-list div {
  border-bottom: 1px solid var(--border);
}

.research-list article {
  padding: 15px 0;
}

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

.research-detail summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  cursor: pointer;
  list-style-position: outside;
}

.research-detail summary::marker {
  color: var(--orange-dark);
}

.research-title {
  flex: 1 1 260px;
  min-width: 0;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.45;
}

.toggle-hint {
  flex: 0 0 auto;
  color: var(--orange-dark);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.toggle-hint::before {
  content: "+";
}

.research-detail[open] .toggle-hint::before {
  content: "-";
}

.research-detail p {
  margin-top: 6px;
  line-height: 1.55;
}

.research-slide {
  margin: 12px 0 0;
}

.research-slide img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.research-work-label {
  margin: 12px 0 0;
  color: var(--orange-dark);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.research-publications {
  display: grid;
  gap: 6px;
  margin: 6px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.research-publications a {
  color: var(--navy);
}

.research-publications li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.research-work-main {
  min-width: 0;
}

.research-work-main em {
  font-style: italic;
}

.status-pill {
  --status-progress: 0%;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 1px 7px;
  background:
    linear-gradient(
      to right,
      rgba(22, 61, 108, 0.18) 0 var(--status-progress),
      var(--surface) var(--status-progress) 100%
    );
  color: var(--orange-dark);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-submitted {
  --status-progress: 0%;
}

.status-review {
  --status-progress: 33.333%;
}

.status-revision {
  --status-progress: 66.667%;
}

.status-published {
  --status-progress: 100%;
}

.research-publication-meta {
  display: block;
  color: var(--orange-dark);
  font-size: 12.5px;
}

.research-publication-meta em {
  font-style: italic;
}

.publication-item {
  display: grid;
  grid-template-columns: var(--date-col) 1fr;
  gap: 18px;
  padding: 22px 0;
}

.publication-item.has-image {
  grid-template-columns: var(--date-col) 126px 1fr;
}

.publication-year,
.timeline-date,
.update-date {
  padding-top: 2px;
  color: var(--orange-dark);
  font-size: 12px;
  white-space: nowrap;
}

.publication-title {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 550;
}

.publication-image {
  display: block;
  align-self: stretch;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-2);
}

.publication-thumb {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: contain;
}

.publication-preview {
  display: none;
  position: absolute;
  top: 0;
  left: calc(100% + 14px);
  z-index: 30;
  width: min(420px, 58vw);
  max-height: 420px;
  padding: 10px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface-2);
  box-shadow: 0 18px 44px rgba(27, 38, 51, 0.18);
}

.publication-preview img {
  display: block;
  width: 100%;
  max-height: 396px;
  object-fit: contain;
}

.publication-image:hover,
.publication-image:focus-visible {
  overflow: visible;
}

.publication-image:hover .publication-preview,
.publication-image:focus-visible .publication-preview {
  display: block;
}

.publication-authors,
.publication-meta {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.author-self {
  color: var(--orange-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.publication-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--orange-dark);
  font-size: 13px;
  font-style: italic;
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 7px;
}

.publication-links a,
.publication-paper-link {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 9px;
  background: var(--surface-2);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 12px;
  font-style: normal;
}

.publication-links a:hover,
.publication-paper-link:hover {
  border-color: var(--orange);
  color: var(--orange-dark);
}

.subsection {
  margin-bottom: 26px;
}

.subsection > h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.timeline-item,
.compact-item {
  display: grid;
  grid-template-columns: var(--date-col) 1fr;
  gap: 20px;
  padding: 14px 0;
  align-items: start;
}

.timeline-title,
.compact-item h3 {
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 550;
}

.timeline-place,
.timeline-item p,
.compact-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.timeline-place {
  margin-bottom: 3px;
}

.skill-list {
  display: grid;
}

.skill-item {
  display: grid;
  grid-template-columns: var(--date-col) 1fr;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.skill-category {
  color: var(--orange-dark);
  font-size: 12px;
  white-space: nowrap;
}

.skill-items {
  color: var(--muted);
  font-size: 13px;
}

.contact-section p {
  margin-bottom: 22px;
  color: var(--muted);
}

.contact-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.contact-list div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  padding: 11px 0;
}

.contact-list dt {
  color: var(--orange-dark);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.journal-name {
  font-style: italic;
}

.contact-list dd {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  display: flex;
  width: min(calc(var(--max) + var(--pad) * 2), 100%);
  justify-content: space-between;
  gap: 14px;
  margin: 80px auto 0;
  padding: 26px var(--pad) 42px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 680px) {
  :root {
    --pad: 20px;
    --date-col: 1fr;
  }

  html {
    scroll-padding-top: 62px;
  }

  .site-nav {
    position: sticky;
    transform: translateY(0);
    transition: transform 160ms ease;
  }

  .site-nav.nav-hidden {
    transform: translateY(-100%);
  }

  .nav-inner {
    height: 46px;
    align-items: center;
    flex-direction: row;
    gap: 10px;
    padding-top: 0;
    padding-bottom: 0;
  }

  .nav-logo {
    font-size: 14px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    position: absolute;
    flex: none;
    top: 46px;
    right: var(--pad);
    width: 100%;
    max-width: 220px;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px;
    background: var(--surface-2);
    box-shadow: 0 10px 24px rgba(15, 53, 100, 0.12);
    overflow: visible;
    z-index: 25;
  }

  .site-nav.is-open .nav-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .nav-links a {
    padding: 7px 8px;
    font-size: 12px;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-label {
    max-width: none;
    font-size: 12px;
    line-height: 1.45;
    text-wrap: balance;
  }

  .identity-row {
    gap: 6px 12px;
  }

  .profile-logos {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .profile-logos a {
    width: 100%;
    justify-content: flex-start;
    padding-right: 10px;
    font-size: 13px;
  }

  .profile-logos img {
    width: 30px;
    height: 30px;
  }

  .chips {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .chip {
    justify-content: center;
    min-width: 0;
    padding: 6px 7px;
    font-size: 12px;
    white-space: nowrap;
  }

  .chip:first-child {
    grid-column: 1 / -1;
  }

  .chip .icon {
    flex: 0 0 auto;
    margin-right: 5px;
  }

  .split-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .update-item,
  .publication-item,
  .publication-item.has-image,
  .timeline-item,
  .compact-item,
  .skill-item,
  .contact-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .publication-image {
    align-self: start;
  }

  .publication-thumb {
    height: auto;
    min-height: 0;
  }

  .publication-preview,
  .publication-image:hover .publication-preview,
  .publication-image:focus-visible .publication-preview {
    display: none;
  }

  .research-publications li {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .site-footer {
    flex-direction: column;
  }
}
