/* ------------------------------------------------------------------
   Haebeom Jung — personal site
   ------------------------------------------------------------------ */

:root {
  --bg: #f3f4f6;
  --card: #ffffff;
  --card-hover: #ffffff;
  --fg: #16181d;
  --fg-muted: #5b6069;
  --fg-faint: #9095a0;
  --line: #e5e7eb;
  --line-strong: #d6d9df;
  --accent: #2563eb;
  --accent-ink: #1d4ed8;
  --accent-soft: #e8efff;
  --chip: #f1f3f6;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 10px 30px -10px rgba(16, 24, 40, 0.18);
  --radius: 18px;
  --radius-sm: 10px;
  --max: 800px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0f13;
    --card: #15181e;
    --card-hover: #191d24;
    --fg: #ecedef;
    --fg-muted: #a1a6b0;
    --fg-faint: #6b7079;
    --line: #23272f;
    --line-strong: #2e333c;
    --accent: #7aa7ff;
    --accent-ink: #9dbcff;
    --accent-soft: #172341;
    --chip: #1d2128;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 14px 34px -12px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d0f13;
  --card: #15181e;
  --card-hover: #191d24;
  --fg: #ecedef;
  --fg-muted: #a1a6b0;
  --fg-faint: #6b7079;
  --line: #23272f;
  --line-strong: #2e333c;
  --accent: #7aa7ff;
  --accent-ink: #9dbcff;
  --accent-soft: #172341;
  --chip: #1d2128;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 14px 34px -12px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 3px;
}
a:hover {
  text-decoration: underline;
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
p {
  margin: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
img,
video {
  display: block;
  max-width: 100%;
}
button {
  font: inherit;
  color: inherit;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--accent);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
}
.skip:focus {
  left: 8px;
  z-index: 100;
}

/* ---------- card primitive ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- floating nav ---------- */
.site-header {
  position: sticky;
  top: 12px;
  z-index: 50;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  width: max-content;
  max-width: calc(100% - 32px);
  margin: 0 auto;
  padding: 6px 8px 6px 16px;
  height: 46px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 78%, transparent);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.brand {
  white-space: nowrap;
  font-weight: 650;
  font-size: 14.5px;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.brand:hover {
  text-decoration: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  color: var(--fg-muted);
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--fg);
  background: var(--chip);
  text-decoration: none;
}
.theme-toggle {
  margin-left: -6px;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--fg-muted);
  cursor: pointer;
}
.theme-toggle:hover {
  color: var(--fg);
  background: var(--chip);
}
.theme-toggle .icon-moon {
  display: none;
}
:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}
:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun {
    display: none;
  }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon {
    display: block;
  }
}

/* ---------- layout ---------- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 20px 64px;
  display: grid;
  gap: 12px;
}
.section {
  margin-top: 20px;
}
.section-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 0 6px 10px;
}
.section-head h2 {
  font-size: 17px;
  font-weight: 650;
}
.section-note {
  margin-left: auto;
  font-size: 13px;
  color: var(--fg-faint);
}

.more-link {
  margin-left: auto;
  font-size: 13.5px;
  font-weight: 550;
  color: var(--fg-muted);
  white-space: nowrap;
}
.more-link:hover {
  color: var(--accent);
  text-decoration: none;
}
.nav-links a[aria-current="page"] {
  color: var(--fg);
  background: var(--chip);
}
.container-narrow .section {
  margin-top: 8px;
}
.page-head {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 12px 6px 20px;
}
.page-head h1 {
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -0.025em;
}
.page-lede {
  font-size: 15px;
  color: var(--fg-muted);
}
.page-lede a {
  color: var(--fg);
  font-weight: 500;
  border-bottom: 1px solid var(--line-strong);
}
.page-lede a:hover {
  text-decoration: none;
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------- hero ---------- */
.hero {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 75%);
  opacity: 0.9;
  pointer-events: none;
}
.hero-text {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
}
.portrait {
  position: relative;
  flex: 0 0 auto;
  width: 180px;
  height: auto;
  align-self: stretch;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
}
.name {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.role {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 650;
  color: var(--fg);
}
.affil {
  margin-top: 1px;
  font-size: 14px;
  line-height: 1.45;
}
.affil a {
  color: var(--accent);
}
.email {
  margin-top: 2px;
  font-size: 13px;
  color: var(--fg-muted);
}
.email a {
  color: var(--fg-muted);
}
.email a:hover {
  color: var(--accent);
}
.affiliations {
  margin-top: 12px;
}
.affiliations h2 {
  font-size: 13px;
  font-weight: 650;
  color: var(--fg);
}
.affiliations ul {
  margin-top: 2px;
  display: grid;
  gap: 2px;
  justify-items: center;
}
.affiliations li {
  font-size: 13.5px;
}
.affiliations li::before {
  content: "•";
  color: var(--fg);
  margin-right: 8px;
}
.topics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}
.topics li {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--accent-ink);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
}
.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}
.links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--fg);
  font-size: 12px;
  font-weight: 550;
  background: var(--card);
  transition:
    border-color 0.15s,
    background 0.15s,
    transform 0.15s;
}
.links a:hover {
  text-decoration: none;
  border-color: var(--fg-faint);
  background: var(--chip);
  transform: translateY(-1px);
}
.links svg {
  width: 13px;
  height: 13px;
  color: var(--fg-muted);
}

/* ---------- prose ---------- */
.prose {
  padding: 18px 24px;
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: var(--fg-muted);
}
.prose strong {
  font-weight: 600;
  color: var(--fg);
}
.prose a {
  color: var(--fg);
  font-weight: 500;
  border-bottom: 1px solid var(--line-strong);
}
.prose a:hover {
  text-decoration: none;
  color: var(--accent);
  border-color: var(--accent);
}

.bio-more {
  display: grid;
  gap: 12px;
}
.bio-more[hidden] {
  display: none;
}
.bio-toggle {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--fg-muted);
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
}
.bio-toggle:hover {
  color: var(--fg);
  background: var(--chip);
  border-color: var(--fg-faint);
}
.bio-toggle svg {
  transition: transform 0.2s;
}
.bio-toggle .when-open {
  display: none;
}
.bio-toggle[aria-expanded="true"] .when-open {
  display: inline;
}
.bio-toggle[aria-expanded="true"] .when-closed {
  display: none;
}
.bio-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* ---------- news ---------- */
.news {
  padding: 4px 22px;
}
.news li {
  position: relative;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  padding: 10px 0;
}
.news li + li {
  border-top: 1px solid var(--line);
}
.news time {
  color: var(--fg-faint);
  font-size: 12.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}
.news p {
  font-size: 14px;
  color: var(--fg-muted);
}
.news p strong {
  color: var(--fg);
  font-weight: 600;
}
.news p a {
  color: var(--fg);
  font-weight: 500;
  border-bottom: 1px solid var(--line-strong);
}
.news p a:hover {
  text-decoration: none;
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------- publications ---------- */
.pubs {
  display: grid;
  gap: 10px;
}
.pub {
  display: grid;
  grid-template-columns: 224px 1fr;
  gap: 18px;
  align-items: start;
  padding: 14px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.pub:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-strong);
  background: var(--card-hover);
}
.pub-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: var(--chip);
}
.pub-media img,
.pub-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pub-media video {
  opacity: 0;
  transition: opacity 0.2s;
}
.pub-media.playing video {
  opacity: 1;
}
.pub-media.tap-to-play::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23fff'/%3E%3C/svg%3E")
      center / 16px no-repeat,
    rgba(0, 0, 0, 0.55);
  pointer-events: none;
  transition: opacity 0.2s;
}
.pub-media.tap-to-play.playing::after {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 5h4v14H7zm6 0h4v14h-4z' fill='%23fff'/%3E%3C/svg%3E")
      center / 16px no-repeat,
    rgba(0, 0, 0, 0.55);
  opacity: 0.6;
}
.pub-body {
  padding: 2px 4px 2px 0;
  min-width: 0;
}
.pub-venue {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 12.5px;
  color: var(--fg-faint);
  margin-bottom: 6px;
}
.venue-tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 650;
  font-size: 12px;
  letter-spacing: 0.01em;
}
.pub-title {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.015em;
}
.pub-title a {
  color: var(--fg);
}
.pub-title a:hover {
  color: var(--accent);
  text-decoration: none;
}
.pub-authors {
  margin-top: 3px;
  font-size: 13px;
  color: var(--fg-muted);
}
.me {
  color: var(--fg);
  font-weight: 600;
}
.pub-links {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pub-links a,
.pub-links button {
  font-size: 12px;
  font-weight: 550;
  padding: 4px 9px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--fg-muted);
  cursor: pointer;
  line-height: 1.4;
}
.pub-links a:hover,
.pub-links button:hover {
  color: var(--fg);
  background: var(--chip);
  border-color: var(--fg-faint);
  text-decoration: none;
}
.pub-links .pl {
  border-color: transparent;
}
.pub-links .project {
  color: var(--accent-ink);
  background: var(--accent-soft);
}
.pub-links .arxiv {
  color: #9a4a3c;
  background: #f6eeec;
}
.pub-links .code {
  color: #3d6e52;
  background: #edf3ef;
}
.pub-links .pl:hover {
  border-color: currentColor;
  background: inherit;
}
:root[data-theme="dark"] .pub-links .arxiv {
  color: #d9a29a;
  background: #2b2220;
}
:root[data-theme="dark"] .pub-links .code {
  color: #9fc9b0;
  background: #1c2823;
}
:root[data-theme="dark"] @media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pub-links .arxiv {
    color: #d9a29a;
    background: #2b2220;
  }
  :root:not([data-theme="light"]) .pub-links .code {
    color: #9fc9b0;
    background: #1c2823;
  }
  :root: not([data-theme= "light"]);
}
.pub-links button[aria-expanded="true"] {
  color: var(--accent-ink);
  border-color: transparent;
  background: var(--accent-soft);
}
.bib {
  margin: 12px 0 0;
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--fg-muted);
  background: var(--chip);
  border-radius: 10px;
  overflow-x: auto;
  white-space: pre;
}

/* ---------- home vitae timeline ---------- */
.tl-card {
  padding: 10px 26px 18px;
}
.tl {
  display: grid;
}
.tl-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 12px 0;
}
.tl-item + .tl-item {
  border-top: 1px solid var(--line);
}
.tl-item[hidden] {
  display: none;
}
.tl-toggle {
  margin-top: 8px;
}
.tl-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  padding: 5px;
}
.tl-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.tl-body {
  min-width: 0;
}
.tl-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.tl-place {
  font-size: 14.5px;
  font-weight: 650;
}
.tl-time {
  font-size: 13px;
  color: var(--fg-faint);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tl-title {
  margin-top: 2px;
  font-size: 14px;
  color: var(--fg);
}
.tl-sub {
  margin-top: 1px;
  font-size: 13.5px;
  color: var(--fg-muted);
}
.tl-sub a {
  color: var(--fg-muted);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
}
.tl-sub a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

/* ---------- honors ---------- */
.honors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.honors li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
}
.honors time {
  align-self: start;
  font-size: 12px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--accent-ink);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 999px;
  margin-top: 1px;
}
.honor-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.honor-meta {
  margin-top: 3px;
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
}
.honor-links {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.honor-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.honor-link::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.honor-link.news {
  color: var(--accent-ink);
  background: var(--accent-soft);
}
.honor-link.video {
  color: #9a4a3c;
  background: #f6eeec;
}
:root[data-theme="dark"] .honor-link.video {
  color: #d9a29a;
  background: #2b2220;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .honor-link.video {
    color: #d9a29a;
    background: #2b2220;
  }
}
.honor-link:hover {
  text-decoration: none;
  border-color: currentColor;
}

/* ---------- experience ---------- */
.group-title {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-faint);
  padding: 0 6px;
  margin: 26px 0 12px;
}
.group-title:first-of-type {
  margin-top: 0;
}
.exp-list {
  display: grid;
  gap: 12px;
}
.exp {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 20px 22px;
}
.exp-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  padding: 6px;
}
.exp-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.exp-logo.flush,
.tl-logo.flush {
  padding: 0;
  border-color: transparent;
}
.exp-logo.flush img,
.tl-logo.flush img {
  object-fit: cover;
}
.exp-body {
  min-width: 0;
}
.exp-title {
  font-size: 15px;
  font-weight: 650;
}
.exp-org {
  margin-top: 2px;
  font-size: 14px;
  color: var(--fg-muted);
}
.exp-org a {
  color: var(--fg);
  font-weight: 500;
}
.exp-dates {
  margin-top: 2px;
  font-size: 13.5px;
  color: var(--fg-faint);
  font-variant-numeric: tabular-nums;
}
.exp-note {
  margin-top: 8px;
  font-size: 14px;
  color: var(--fg-muted);
}
.exp-toggle {
  margin-top: 12px;
}
.exp-details {
  margin-top: 12px;
  display: grid;
  gap: 6px;
  padding-left: 18px;
  list-style: disc;
  font-size: 14.5px;
  color: var(--fg-muted);
}
.exp-details[hidden] {
  display: none;
}

/* ---------- vitae ---------- */
.cv-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 26px;
  padding: 0 6px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow);
}
.btn-primary:hover {
  text-decoration: none;
  filter: brightness(1.08);
}
.cv-updated {
  font-size: 13px;
  color: var(--fg-faint);
}
.cv-note {
  font-size: 13.5px;
  color: var(--fg-faint);
  padding: 0 6px;
  margin: -6px 0 10px;
}
.cv-list {
  padding: 6px 24px;
}
.cv-list > li {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 18px;
  padding: 14px 0;
}
.cv-list > li + li {
  border-top: 1px solid var(--line);
}
.cv-list > li.cv-sublabel {
  display: block;
  padding: 16px 0 4px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-faint);
  border-top: 0;
}
.cv-items {
  margin-top: 6px;
  padding-left: 18px;
  list-style: disc;
  display: grid;
  gap: 4px;
  font-size: 13.5px;
  color: var(--fg-muted);
}
.cv-items a,
.cv-extra a,
.cv-title a {
  color: var(--fg);
  font-weight: 500;
  border-bottom: 1px solid var(--line-strong);
}
.cv-items a:hover,
.cv-extra a:hover,
.cv-title a:hover {
  text-decoration: none;
  color: var(--accent);
  border-color: var(--accent);
}
.cv-when {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fg-faint);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}
.cv-title {
  font-size: 15px;
  font-weight: 600;
}
.cv-sub {
  margin-top: 2px;
  font-size: 14px;
  color: var(--fg-muted);
}
.cv-sub a {
  color: var(--fg);
  font-weight: 500;
  border-bottom: 1px solid var(--line-strong);
}
.cv-sub a:hover {
  text-decoration: none;
  color: var(--accent);
  border-color: var(--accent);
}
.cv-extra {
  margin-top: 2px;
  font-size: 13.5px;
  color: var(--fg-faint);
}

/* ---------- footer ---------- */
.site-footer {
  padding: 8px 16px 40px;
  text-align: center;
  font-size: 13px;
  color: var(--fg-faint);
}
.site-footer a {
  color: var(--fg-faint);
}

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .container {
    padding: 28px 14px 56px;
    gap: 12px;
  }
  .hero {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 22px;
    padding: 26px 22px;
  }
  .hero::before {
    inset: -30% auto auto -20%;
    width: 320px;
    height: 320px;
  }
  .portrait {
    display: none;
  }
  .name {
    font-size: 28px;
  }
  .role,
  .affil {
    font-size: 16px;
  }
  .prose {
    padding: 22px 22px;
  }
  .section-head {
    flex-wrap: wrap;
  }
  .news {
    padding: 6px 20px;
  }
  .news li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .pub {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
  }
  .pub-body {
    padding: 0 4px 4px;
  }
  .honors {
    grid-template-columns: 1fr;
  }
  .tl-card {
    padding: 18px 18px 14px;
  }
  .tl-item {
    grid-template-columns: 40px 1fr;
    gap: 12px;
  }
  .tl-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    padding: 4px;
  }
  .exp {
    grid-template-columns: 44px 1fr;
    gap: 14px;
    padding: 16px;
  }
  .exp-logo {
    width: 44px;
    height: 44px;
    font-size: 13px;
    border-radius: 11px;
    padding: 4px;
  }
  .cv-list {
    padding: 4px 18px;
  }
  .cv-list > li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
@media (max-width: 640px) {
  .nav {
    gap: 8px;
    padding-left: 14px;
    max-width: calc(100% - 24px);
  }
  .nav-links {
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }
  .nav-links a {
    font-size: 13px;
    padding: 6px 8px;
  }
  .theme-toggle {
    flex: 0 0 auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .pub,
  .pub-media video,
  .links a {
    transition: none;
  }
}
