/* jeffkk23.work — layout & rhythm modelled on xczou.top, rewritten standalone (no Nicepage). */
:root { --ink: #373a3c; --muted: #717578; --blue: #447b9d; --line: #e2e4e4; --paper: #f5f5f3;
  --sans: "Open Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  --slab: "Roboto Slab", "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --serif: Georgia, "Songti SC", "STSong", "Noto Serif SC", "Times New Roman", serif; }
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; color: var(--ink); background: #fff; font-family: var(--sans); font-size: 16px; line-height: 1.8; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { color: inherit; line-height: 1.3; font-weight: 500; }
h1, h2 { font-family: var(--slab); }
main h1 { margin: 0 0 22px; font-size: clamp(2.2rem, 4vw, 3rem); letter-spacing: -.02em; }
main h2 { margin: 0; font-size: 1.65rem; letter-spacing: -.01em; }
main h3 { margin: 0 0 12px; font-size: 1.1rem; }
main p { margin: 0 0 20px; }
a { color: var(--blue); text-decoration: none; overflow-wrap: anywhere; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
.page-width { width: min(1140px, calc(100% - 80px)); margin-inline: auto; }
.section-space { padding-block: 34px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 22px; }
.section-heading > a, .section-note { font-size: .85rem; }
.section-note, .muted { color: var(--muted); }
.eyebrow { margin-bottom: 20px; font-size: .71rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.paper-links { display: flex; flex-wrap: wrap; gap: 12px 22px; margin: 14px 0 0 !important; font-size: .86rem; }
.archive { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 20px; }
.archive > summary, .project-details > summary { color: var(--blue); font-size: .9rem; cursor: pointer; width: fit-content; max-width: 100%; }
.archive[open] > summary { margin-bottom: 22px; }
.closing-note { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-block: 28px 50px; border-top: 1px solid var(--line); font-size: .9rem; }
.closing-note p { margin: 0 !important; max-width: 680px; }

/* header / nav */
.site-header { position: sticky; top: 0; z-index: 20; background: #e5e5e5; }
.site-header .bar { width: min(1140px, calc(100% - 80px)); margin-inline: auto; min-height: 64px; display: flex; align-items: center; justify-content: flex-end; }
.site-nav { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; }
.site-nav a { display: block; padding: 12px 10px; color: #1f2223; font-size: 1rem; font-weight: 600; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--blue); text-decoration: none; }
.site-nav a[aria-current="page"] { color: #478ac9; border-bottom-color: #478ac9; }
.site-nav a.lang-switch { margin: 8px 0 8px 6px; padding: 3px 12px; border: 1px solid #9a9fa2; border-radius: 999px; font-size: .82rem; font-weight: 600; letter-spacing: .04em; line-height: 1.6; }
.site-nav a.lang-switch:hover { border-color: var(--blue); }
html[lang="en"] { --sans: "Open Sans", "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif; --slab: "Roboto Slab", Rockwell, Georgia, "Songti SC", serif; --serif: Georgia, "Times New Roman", serif; }
.menu-btn { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: #1f2223; }
.menu-btn svg { width: 22px; height: 22px; display: block; fill: currentColor; }
@media (max-width: 767px) {
  .site-header .bar { width: calc(100% - 40px); min-height: 56px; }
  .menu-btn { display: block; }
  .site-nav { position: fixed; inset: 0 0 0 auto; width: min(78vw, 300px); flex-direction: column; justify-content: center; align-items: center; gap: 8px; background: rgba(0,0,0,.95); transform: translateX(100%); transition: transform .25s ease; z-index: 2; }
  .site-nav a { color: #fff; font-size: 1.15rem; }
  .site-nav a.lang-switch { margin: 18px 0 0; border-color: #888; color: #fff; }
  .site-nav a[aria-current="page"] { color: #9cc3e6; border-bottom-color: transparent; }
  body.nav-open .site-nav { transform: none; }
  .nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 1; opacity: 0; pointer-events: none; transition: opacity .25s; }
  body.nav-open .nav-overlay { opacity: 1; pointer-events: auto; }
  .nav-close { position: absolute; top: 14px; right: 16px; background: none; border: 0; color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }
}
@media (min-width: 768px) { .nav-close, .nav-overlay { display: none; } }

/* footer */
.site-footer { background: #404040; color: #fff; text-align: center; min-height: 90px; display: flex; align-items: center; justify-content: center; font-size: .875rem; padding: 28px 20px; }

/* ---------- home ---------- */
.profile-intro { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); margin-top: 24px; }
.profile-story { background: #4b4d4e; color: #f5f5f3; padding: 34px 40px; }
.profile-story h1 span { display: block; margin-top: 12px; color: #d9dcdd; font-family: var(--sans); font-size: 1.1rem; letter-spacing: .2em; }
.profile-story p { font-size: .94rem; line-height: 1.85; margin-bottom: 15px; }
.profile-story .profile-role { color: #d9dcdd; font-size: .85rem; line-height: 1.65; margin-bottom: 20px; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 18px; row-gap: 2px; }
.profile-role > span { white-space: nowrap; }
.profile-story a { color: #c3dcea; }
.profile-story .profile-note { margin-bottom: 0; }
.profile-details { min-width: 0; padding: 30px 32px 24px; background: #f1f2f1; }
.portrait { width: 154px; height: 154px; object-fit: cover; border-radius: 50%; margin: 0 auto 20px; }
.profile-details h2 { text-align: center; font-family: var(--sans); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; }
.education-list { width: min(100%, 300px); margin: 16px auto 0; }
.education-list > div { padding: 10px 0; border-top: 1px solid #dcdfdf; }
.education-list dt { color: var(--muted); font-size: .72rem; margin-bottom: 3px; }
.education-list dd { margin: 0; font-size: .81rem; line-height: 1.65; }
.education-list strong { display: block; font-weight: 600; }
.education-list dd span, .education-list small { display: block; }
.education-list small { color: var(--muted); font-size: .72rem; }
.profile-location { color: var(--muted); font-size: .75rem; text-align: center; margin: 16px 0 0 !important; }
.contact-strip { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px 24px; padding-block: 19px; border-bottom: 1px solid var(--line); font-size: .82rem; }
.profile-links { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.contact-strip a { color: #53636d; }
.interest-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; }
.interest-columns h3 { font-size: 1rem; font-weight: 600; line-height: 1.5; }
.interest-columns p { font-size: .9rem; color: #666c70; margin: 0; }
.news-band { background: var(--paper); }
.dated-list { list-style: none; padding: 0; margin: 0; }
.dated-list li { display: grid; grid-template-columns: 140px minmax(0,1fr); gap: 20px; padding: 10px 0; }
.dated-list time { color: var(--muted); font-size: .8rem; padding-top: 3px; }
.dated-list p { margin: 0; font-size: .92rem; }
.dated-list li + li { border-top: 1px solid #e5e6e4; }
.news-window { max-height: 29rem; overflow-y: auto; padding-right: 18px; scrollbar-width: thin; scrollbar-color: transparent transparent; }
.news-window:hover, .news-window:focus-visible { scrollbar-color: #bfc6ca transparent; }
.news-window:focus-visible { outline: 2px solid #7898ab; outline-offset: 8px; }
.news-window::-webkit-scrollbar { width: 5px; }
.news-window::-webkit-scrollbar-thumb { border-radius: 6px; background: transparent; }
.news-window:hover::-webkit-scrollbar-thumb { background: #bfc6ca; }
.news-window .dated-list li:first-child { padding-top: 0; }
.experience-list article { display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 28px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.experience-list article:first-child { padding-top: 0; }
.experience-list article:last-child { border-bottom: none; padding-bottom: 0; }
.experience-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.experience-logo { display: block; width: 150px; max-width: 100%; height: 44px; object-fit: contain; object-position: left center; }
.wordmark { height: 44px; display: flex; align-items: center; gap: 8px; font-family: var(--slab); font-size: 1.12rem; font-weight: 600; color: #4b4d4e; letter-spacing: .01em; white-space: nowrap; }
.wordmark img { width: 26px; height: 26px; }
.wordmark small { font-family: var(--sans); font-size: .7rem; font-weight: 500; color: var(--muted); letter-spacing: .06em; }
.experience-date { color: var(--muted); font-size: .8rem; padding-top: 3px; margin: 0 !important; }
.experience-list h3 { font-weight: 600; font-size: 1rem; }
.experience-list h3 span { display: inline-block; color: var(--muted); font-size: .78rem; font-weight: 400; margin-left: 12px; }
.experience-list article > div:not(.experience-meta) > p { margin: 0; font-size: .92rem; }
.publication-band { background: #f7f7f6; }
.section-intro { font-size: .88rem; margin-bottom: 24px; }
.publication-list { margin: 0; padding: 0; list-style: none; }
.publication-list li { padding: 20px 0; border-top: 1px solid #dddfdf; }
.publication-list li:first-child { padding-top: 0; border-top: none; }
.publication-venue { color: var(--blue); font-size: .76rem; font-weight: 600; letter-spacing: .025em; margin-bottom: 9px !important; }
.publication-list h3 { font-family: var(--serif); font-size: 1.24rem; line-height: 1.5; max-width: 970px; margin-bottom: 9px; font-weight: 500; }
.authors { font-size: .8rem; color: #727679; margin: 0 !important; }
.authors strong { color: #3f4548; font-weight: 600; }
.collaboration-list { margin: 0; padding-left: 20px; }
.collaboration-list li { font-size: .9rem; padding: 12px 0; }
.collaboration-list strong { font-weight: 600; }
.collaboration-list em { color: #61686c; font-style: normal; }
.press-list { border-top: 1px solid var(--line); }
.press-item { border-bottom: 1px solid var(--line); }
.press-item > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px 24px; align-items: baseline; padding: 16px 30px 16px 0; position: relative; }
.press-item > summary::-webkit-details-marker { display: none; }
.press-item > summary::after { content: "+"; position: absolute; right: 4px; top: 13px; color: var(--blue); font-size: 1.15rem; line-height: 1.6; }
.press-item[open] > summary::after { content: "−"; }
.press-item > summary:hover .press-title { color: var(--blue); }
.press-title { font-family: var(--serif); font-size: 1.02rem; line-height: 1.55; color: var(--ink); }
.press-src { color: var(--muted); font-size: .76rem; white-space: nowrap; }
.press-body { padding: 0 0 20px; max-width: 860px; animation: press-in .2s ease; }
.press-body p { font-size: .9rem; margin-bottom: 12px !important; }
.press-body ul { margin: 0 0 14px; padding-left: 20px; font-size: .86rem; color: #555b5f; }
.press-body li { padding: 3px 0; }
.press-go { font-size: .86rem; font-weight: 600; }
.press-note { margin: 14px 0 0 !important; font-size: .74rem; color: var(--muted); }
.press-item:target > summary .press-title, .press-item.flash > summary .press-title { color: var(--blue); }
@keyframes press-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 767px) { .press-item > summary { grid-template-columns: minmax(0,1fr); } }
.recognition { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 52px; }
.recognition h2 { margin-bottom: 20px !important; }
.award-list { padding: 0; margin: 0; list-style: none; }
.award-list li { display: grid; grid-template-columns: 66px minmax(0,1fr); gap: 14px; margin-bottom: 14px; font-size: .85rem; }
.award-list li > span { color: var(--muted); font-size: .75rem; padding-top: 2px; }
.award-list p { margin: 0 !important; }
.service-note h3 { font-size: .85rem; font-weight: 600; margin-bottom: 8px; }
.service-note p, .service-note > a { font-size: .85rem; }
.service-note p { margin-bottom: 22px; color: #666c70; }

/* ---------- projects ---------- */
.research-hero { background: linear-gradient(120deg, #3a3c3d 0%, #4b4d4e 55%, #5d6366 100%); color: #fff; }
.research-hero > div { padding-block: 52px 46px; }
.research-hero h1 { margin-bottom: 0; }
.photo-credit { text-align: right; font-size: .72rem; color: var(--muted); padding-top: 12px; margin: 0 auto !important; }
.research-body { max-width: 1000px; }
.research-lead { font-family: var(--serif); font-size: 1.3rem; line-height: 1.75; max-width: 890px; margin: 34px 0 24px !important; }
.research-jump { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: .82rem; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.research-group { padding-top: 40px; }
.research-group > .eyebrow { color: var(--muted); margin-bottom: 12px; }
.research-group > h2 { margin-bottom: 16px; }
.project { padding: 26px 0; border-bottom: 1px solid var(--line); }
.project:last-child { border-bottom: none; }
.project-heading { margin-bottom: 15px; }
.project h3 { font-family: var(--serif); font-size: 1.38rem; line-height: 1.4; font-weight: 500; }
.project-meta { color: var(--blue); font-size: .76rem; margin: 0 !important; }
.project p { font-size: .94rem; }
.project > p:last-child { margin-bottom: 0; }
.project-figure { min-width: 0; margin: 28px 0 0; }
.project-figure img { width: 100%; object-fit: contain; border: 1px solid var(--line); }
.project-figure a { display: block; }
.project-figure figcaption { color: var(--muted); font-size: .74rem; line-height: 1.6; margin-top: 12px; }
.overview-figure { width: min(100%,760px); margin: 28px auto 0; }
.group-intro { margin-top: 6px !important; color: #707579; font-size: .93rem; }
.earlier-work { padding-bottom: 30px; }

/* ---------- beyond ---------- */
.beyond-page { max-width: 1060px; }
.beyond-heading { padding: 42px 0 30px; border-bottom: 1px solid var(--line); }
.beyond-heading h1 { margin-bottom: 16px; }
.beyond-heading > p { max-width: 740px; margin: 0; color: #727679; font-size: .96rem; }
.beyond-project { display: grid; grid-template-columns: minmax(160px, .7fr) minmax(0, 2.3fr); gap: 48px; padding: 38px 0; border-bottom: 1px solid var(--line); }
.project-label h2 { font-size: 1.5rem; margin-bottom: 9px; }
.project-label p { color: var(--muted); font-size: .78rem; line-height: 1.7; margin: 0; }
.beyond-story h3 { font-family: var(--serif); font-size: 1.35rem; margin-bottom: 18px; font-weight: 500; }
.beyond-story > p { font-size: .93rem; margin-bottom: 18px; }
.reported-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; padding: 20px 0; margin: 24px 0 13px; border-block: 1px solid var(--line); }
.result-number { display: block; font-family: var(--serif); font-size: 1.95rem; line-height: 1.3; margin-bottom: 9px; }
.reported-results p { font-size: .78rem; color: #666c70; line-height: 1.7; margin: 0; max-width: 260px; }
.personal-section { padding-block: 36px; }
.personal-intro { max-width: 760px; font-size: .94rem; margin-bottom: 28px; }
.hobby-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.hobby-grid div { background: #fff; padding: 22px 20px; }
.hobby-grid b { display: block; font-family: var(--slab); font-weight: 500; font-size: 1.1rem; margin-bottom: 4px; }
.hobby-grid span { color: var(--muted); font-size: .78rem; line-height: 1.6; display: block; }

@media (max-width: 1023px) {
  .profile-story { padding: 36px 30px; }
  .profile-details { padding: 36px 24px; }
  .recognition { gap: 40px; }
  .interest-columns { gap: 24px; }
  .experience-list article { grid-template-columns: 145px minmax(0,1fr); }
  .experience-list h3 span { display: block; margin: 8px 0 0; }
  .beyond-project { grid-template-columns: 150px minmax(0,1fr); gap: 28px; }
  .hobby-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .page-width { width: calc(100% - 40px); }
  main h2 { font-size: 1.45rem; }
  .closing-note { flex-direction: column; padding-bottom: 36px; }
  .profile-intro { grid-template-columns: minmax(0,1fr); margin-top: 20px; }
  .profile-story { padding: 34px 26px; }
  .profile-story .profile-role { flex-direction: column; }
  .profile-details { padding: 32px 26px; }
  .portrait { width: 160px; height: 160px; }
  .education-list { width: 100%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 22px; }
  .interest-columns, .recognition { grid-template-columns: minmax(0,1fr); gap: 30px; }
  .dated-list li { grid-template-columns: 90px minmax(0,1fr); gap: 12px; }
  .news-window { padding-right: 10px; }
  .experience-list article { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .experience-meta { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 10px 18px; }
  .experience-logo { width: 130px; height: 38px; }
  .publication-list h3 { font-size: 1.14rem; }
  .research-lead { font-size: 1.15rem; margin-top: 30px !important; }
  .project h3 { font-size: 1.25rem; }
  .beyond-heading { padding-block: 30px 24px; }
  .beyond-project { grid-template-columns: minmax(0,1fr); gap: 18px; padding-block: 28px; }
  .result-number { font-size: 1.6rem; }
}
@media (max-width: 420px) {
  .profile-story { padding-inline: 23px; }
  .education-list { grid-template-columns: minmax(0,1fr); }
  .dated-list li { grid-template-columns: minmax(0,1fr); gap: 5px; }
  .hobby-grid { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .site-nav { transition: none; } }
