@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #fafbf8;
  --white: #fff;
  --ink: #1f3029;
  --body: #35453d;
  --muted: #53645b;
  --pine: #254c3e;
  --green: #356345;
  --sage: #e6ecdf;
  --line: #cfd8cd;
  --serif: "Instrument Serif", "Songti SC", "Noto Serif CJK SC", Georgia, serif;
  --sans: "DM Sans", "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 5.75rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #a36323; outline-offset: 4px; border-radius: 3px; }
::selection { background: #d7e4cb; color: var(--ink); }
.container { width: min(69rem, calc(100% - 6rem)); margin-inline: auto; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.1rem; height: 1.1rem; flex: none; display: inline-block; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 20; top: .5rem; left: .5rem; padding: .6rem 1rem; background: #fff; }
.site-header { position: sticky; top: 0; z-index: 5; border-top: 3px solid var(--pine); border-bottom: 1px solid var(--line); background: rgba(250,251,248,.97); }
.header-inner { min-height: 4.35rem; display: flex; align-items: center; gap: 1.65rem; }
.identity { display: inline-flex; gap: .7rem; align-items: center; margin-right: auto; white-space: nowrap; font-weight: 650; font-size: 1.03rem; letter-spacing: -.025em; }
.monogram { display: inline-flex; justify-content: center; align-items: center; width: 2.15rem; height: 2.15rem; padding: 0 .13rem .1rem 0; background: var(--pine); color: #fffdf3; border-radius: .32rem; font: 1.55rem/1 var(--serif); letter-spacing: -.17em; }
.monogram span { font-size: .78em; transform: translateY(.12em); }
.navigation { display: flex; align-items: stretch; align-self: stretch; gap: 1.55rem; }
.navigation a { display: flex; align-items: center; position: relative; color: var(--muted); font-size: .91rem; font-weight: 500; }
.navigation a[aria-current], .navigation a:hover { color: var(--pine); }
.navigation a::after { content: ""; position: absolute; right: 0; left: 0; bottom: .8rem; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: left; }
.navigation a[aria-current]::after, .navigation a:hover::after { transform: scaleX(1); }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; gap: .42rem; min-height: 2.4rem; font-size: .87rem; font-weight: 550; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: .27rem; padding: .22rem .55rem; cursor: pointer; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) clamp(13.5rem, 22vw, 17.7rem); align-items: center; gap: clamp(2.2rem, 5vw, 5rem); padding: clamp(2rem, 3.9vw, 3.7rem) 1.25rem clamp(2.3rem, 3.6vw, 3.6rem) 0; border-bottom: 1px solid var(--line); }
h1, h2, .series-item h3, .footer-name { font-family: var(--serif); font-weight: 400; }
h1 { margin: 0 0 .85rem; font-size: clamp(4.5rem, 5.9vw, 5.65rem); line-height: 1.05; letter-spacing: -.045em; }
.bio { max-width: 46rem; color: var(--body); font-size: clamp(1.04rem, 1.15vw, 1.1rem); line-height: 1.6; }
.bio a, .interests a { color: var(--green); font-weight: 550; text-decoration: underline; text-decoration-color: #9fb49b; text-decoration-thickness: 1px; text-underline-offset: .17em; }
.bio a:hover, .interests a:hover { text-decoration-color: var(--green); }
.interests { margin-top: .82rem; color: var(--body); }
.interests p { font-weight: 550; }
.interests ul { margin: .25rem 0 0; padding-left: 1.26rem; }
.interests li { padding-left: .08rem; }
.interests li::marker { color: #6d8867; font-size: .82em; }
.profile-links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.05rem; }
.profile-link { display: inline-flex; align-items: center; justify-content: center; gap: .49rem; padding: .56rem .95rem; min-height: 2.65rem; color: var(--pine); background: #fff; border: 1px solid #bac8b9; border-radius: .35rem; font-size: .92rem; font-weight: 600; line-height: 1.2; }
.profile-link.primary { color: white; background: var(--pine); border-color: var(--pine); }
.profile-link:hover { background: #edf2e8; border-color: #7d9681; }
.profile-link.primary:hover { background: #173b2d; border-color: #173b2d; }
.availability { display: inline-flex; align-items: center; gap: .52rem; margin-top: .9rem; min-height: 1.65rem; font-size: .88rem; font-weight: 550; color: var(--green); }
.availability:hover span:nth-child(2) { text-decoration: underline; text-underline-offset: .2em; }
.open-dot { width: .45rem; height: .45rem; border-radius: 50%; background: #668452; box-shadow: 0 0 0 3px #e5eddf; margin-left: .2rem; }
.portrait-wrap { width: 100%; position: relative; max-width: 17.7rem; justify-self: center; margin: .2rem 0 .7rem; }
.portrait-back { position: absolute; inset: .8rem -.75rem -.8rem .75rem; border-radius: .4rem; background: #dfe7d9; border: 1px solid #c5d1c1; transform: rotate(3deg); }
.portrait { position: relative; aspect-ratio: 0.88; padding: .4rem; overflow: hidden; background: #fff; border: 1px solid #c7cfc4; border-radius: .4rem; box-shadow: 0 5px 12px #253e2e0a; }
.portrait img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 45%; border-radius: .13rem; }

.section { margin-top: clamp(2.7rem, 4.1vw, 4.25rem); }
.section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; column-gap: 1.5rem; row-gap: .45rem; margin-bottom: 1.35rem; }
h2 { font-size: clamp(2.25rem, 3.6vw, 3.23rem); line-height: 1.08; letter-spacing: -.032em; }
.section-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--green); font-size: .9rem; font-weight: 600; }
.section-link:hover span, .resource:hover span, .intern-email:hover span, .site-footer a:hover { text-decoration: underline; text-underline-offset: .21em; }
/* Three releases share one compact, chronological row. */
.series-archive { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.series-item { display: flex; flex-direction: column; padding: 1.1rem 1.25rem 1rem; position: relative; }
.series-item:first-child { padding-left: 0; }
.series-item:last-child { padding-right: 0; }
.series-item + .series-item::before { content: ""; position: absolute; top: 1.15rem; bottom: 1.15rem; left: 0; border-left: 1px solid var(--line); }
.series-meta { display: flex; align-items: center; gap: .7rem; min-height: 1.4rem; }
.series-item time, .history-date { display: block; font-size: .82rem; color: var(--muted); font-weight: 550; font-variant-numeric: tabular-nums; }
.latest { padding: .04rem .4rem; background: #e8efe4; color: var(--green); border-radius: .2rem; font-size: .76rem; font-weight: 600; }
.series-item h3 { margin: .2rem 0 .31rem; font-size: 1.83rem; letter-spacing: -.018em; line-height: 1.18; }
.series-item p { color: var(--muted); font-size: 1rem; line-height: 1.48; margin-bottom: .5rem; }
.series-item a:hover, .paper h3 a:hover { color: var(--green); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .14em; }
.resource-links, .paper-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .15rem .8rem; }
.series-item .resource-links { margin-top: auto; }
.resource { min-height: 1.7rem; display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; font-size: .875rem; color: var(--green); }
.resource .icon { width: 1rem; height: 1rem; }

.paper-filters { display: none; align-items: center; flex-wrap: wrap; gap: .42rem; margin: .2rem 0 1.1rem; }
.enhanced .paper-filters { display: flex; }
.paper-filters button { cursor: pointer; font-size: .88rem; font-weight: 550; padding: .42rem .86rem; border: 1px solid var(--line); color: var(--muted); background: transparent; border-radius: 99px; line-height: 1.35; }
.paper-filters button:hover { border-color: #90a38e; color: var(--green); }
.paper-filters button[aria-pressed="true"] { background: var(--pine); border-color: var(--pine); color: #fff; }
.paper-list { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.paper { display: grid; grid-template-columns: 6.4rem minmax(0, 1fr) auto; gap: 1.2rem; align-items: start; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.paper[hidden] { display: none; }
.publication-meta { display: flex; align-items: flex-start; flex-direction: column; gap: .15rem; padding-top: .12rem; }
.publication-meta span { font-size: .86rem; line-height: 1.5; font-weight: 700; color: var(--pine); }
.publication-meta time { color: var(--muted); font-size: .83rem; }
.paper h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: 1.28rem; line-height: 1.33; letter-spacing: -.017em; }
.authors { margin-top: .34rem; font-size: .93rem; color: var(--muted); }
.authors strong { color: var(--body); font-weight: 650; }
.authors sup { line-height: 0; }
.publication-meta small { color: var(--green); font-size: .78rem; }
.all-authors { margin-top: .22rem; font-size: .86rem; color: var(--muted); }
.all-authors summary { width: fit-content; min-height: 1.55rem; cursor: pointer; color: var(--green); }
.all-authors summary:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.all-authors p { padding: .35rem .65rem; margin-top: .25rem; border-left: 2px solid var(--line); }
.paper-actions { gap: .7rem; padding-top: .1rem; }
.contribution-note { margin-top: .65rem; font-size: .81rem; color: var(--muted); }
.history-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.6rem; }
.history-column { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.history-column h3 { display: flex; align-items: center; gap: .6rem; color: var(--pine); font-weight: 600; font-size: 1.07rem; }
.history-column h3 .icon { width: 1.25rem; height: 1.25rem; }
.history-column ul { padding: 0 0 0 .85rem; margin: 1rem 0 0 .28rem; list-style: none; border-left: 1px solid var(--line); }
.history-column li { position: relative; padding: 0 .15rem 1.2rem .4rem; }
.history-column li:last-child { padding-bottom: 0; }
.history-column li::before { content: ""; position: absolute; top: .48rem; left: -.85rem; width: 6px; height: 6px; border-radius: 50%; background: #839b7e; transform: translateX(-58%); box-shadow: 0 0 0 3px var(--paper); }
.history-column h4 { font-size: 1.06rem; font-weight: 600; margin: .15rem 0 .1rem; }
.history-column p { color: var(--muted); }

.internships { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; margin-top: clamp(3.3rem, 5vw, 5.2rem); padding: clamp(1.5rem, 3.5vw, 2.8rem); border: 1px solid #c7d5c3; border-radius: .6rem; background: #edf2e7; }
.intern-body { position: relative; z-index: 1; width: 76%; max-width: 48rem; }
.intern-body h2 { margin-bottom: 1rem; }
.intern-body p { color: #3e5344; margin-top: .5rem; }
.intern-email { display: inline-flex; align-items: center; gap: .5rem; color: var(--pine); font-weight: 650; margin-top: 1.05rem; overflow-wrap: anywhere; }
.letter-art { position: absolute; right: 5%; top: 50%; width: 7.8rem; height: 7.8rem; transform: translateY(-50%) rotate(-10deg); color: #8da385; user-select: none; }
.stamp { position: absolute; right: 0; width: 6.8rem; height: 6.8rem; border: 2px solid currentColor; border-radius: 50%; display: grid; place-items: center; }
.stamp::before, .stamp::after { content: ""; position: absolute; inset: .32rem; border: 1px dashed currentColor; border-radius: inherit; }
.stamp::after { inset: .65rem; border-style: solid; }
.stamp-initials { font: 3.3rem/1 var(--serif); letter-spacing: -.085em; padding-right: .25rem; }
.post-lines { position: absolute; left: -2.1rem; bottom: .1rem; width: 5rem; height: 2.3rem; transform: rotate(11deg); }
.post-lines i { display: block; width: 100%; height: .58rem; border-top: 1px solid currentColor; border-radius: 50%; }
.site-footer { display: flex; align-items: baseline; gap: 1.15rem; border-top: 1px solid var(--line); margin-top: 3.6rem; padding: 1.55rem 0 2rem; color: var(--muted); font-size: .84rem; }
.footer-name { color: var(--ink); font-size: 1.45rem; line-height: 1.2; }
.site-footer a { margin-left: auto; color: var(--green); font-weight: 600; }

@media (max-width: 950px) {
  .container { width: calc(100% - 4rem); }
  .navigation { gap: 1.05rem; }
  .header-inner { gap: 1.1rem; }
  .hero { gap: 2.5rem; grid-template-columns: minmax(0,1fr) 13.5rem; }
  .portrait-wrap { width: 96%; }
  .paper { grid-template-columns: 5.5rem minmax(0,1fr); gap: .3rem 1rem; }
  .publication-meta { grid-row: span 2; }
  .paper-actions { grid-column: 2; }
  .history-grid { gap: 1.6rem; }
}
@media (min-width: 541px) and (max-width: 800px) {
  .series-item { padding-inline: .8rem; }
  .series-item .resource-links { gap: .1rem .6rem; }
}
@media (max-width: 730px) {
  html { scroll-padding-top: 4.7rem; }
  .container { width: calc(100% - 2.5rem); }
  .header-inner { min-height: 3.75rem; flex-wrap: wrap; gap: .35rem .7rem; }
  .navigation { order: 3; width: 100%; padding: .2rem 0 .35rem; justify-content: space-between; }
  .navigation a { min-height: 2.3rem; font-size: .86rem; }
  .navigation a::after { bottom: .15rem; }
  .enhanced .menu-toggle { display: inline-flex; }
  .enhanced .navigation { display: none; }
  .enhanced .navigation.is-open { display: flex; }
  .hero { grid-template-columns: minmax(0, 1fr) 9rem; align-items: start; gap: 1rem; padding: 2.45rem .3rem 2.45rem 0; }
  .intro { display: contents; }
  .portrait-wrap { grid-column: 2; grid-row: 1; align-self: center; width: 90%; margin: 0 0 .2rem; }
  .portrait { padding: .25rem; }
  .portrait-back { inset: .43rem -.37rem -.45rem .37rem; }
  h1 { grid-column: 1; grid-row: 1; align-self: center; margin: 0; font-size: clamp(3.4rem, 8.5vw, 4.6rem); }
  .bio, .interests, .profile-links, .availability { grid-column: 1 / -1; }
  .bio { font-size: 1rem; margin-top: .35rem; }
  .interests, .profile-links, .availability { margin-top: 0; }
  .availability { justify-self: start; }
  .intern-body { width: 84%; }
  .letter-art { right: -2rem; top: 3.4rem; transform: scale(.6) rotate(-12deg); transform-origin: top; opacity: .52; }
}
@media (max-width: 540px) {
  .container { width: calc(100% - 2.25rem); }
  .hero { grid-template-columns: minmax(0,1fr) 6.9rem; gap: .75rem; padding-block: 2.1rem; }
  .portrait-wrap { width: 92%; }
  .bio { margin-top: .55rem; }
  .profile-links { margin-top: .35rem; gap: .44rem; }
  .profile-link { min-height: 2.65rem; padding: .52rem .58rem; font-size: .88rem; gap: .38rem; }
  .availability { margin-top: .1rem; }
  .section { margin-top: 2.4rem; }
  .section-heading { margin-bottom: .95rem; }
  h2 { font-size: 2.3rem; }
  .section-link { font-size: .83rem; }
  .series-archive { display: block; }
  .series-item, .series-item + .series-item { padding: .9rem 0; }
  .series-item + .series-item { border-top: 1px solid var(--line); }
  .series-item + .series-item::before { display: none; }
  .paper-filters { gap: .35rem; }
  .paper-filters button { padding: .38rem .67rem; }
  .paper { display: block; padding: 1rem 0; }
  .publication-meta { flex-direction: row; align-items: baseline; gap: .6rem; margin-bottom: .32rem; }
  .paper h3 { font-size: 1.22rem; }
  .paper-actions { margin-top: .4rem; }
  .history-grid { grid-template-columns: 1fr; gap: 1.55rem; }
  .intern-body { width: 100%; }
  .letter-art { display: none; }
  .site-footer { flex-wrap: wrap; gap: .35rem .75rem; margin-top: 2.4rem; }
  .updated { order: 3; flex-basis: 100%; }
}
@media (max-width: 360px) {
  .container { width: calc(100% - 1.65rem); }
  .hero { grid-template-columns: minmax(0,1fr) 5.5rem; }
  h1 { font-size: 3rem; }
  .navigation { gap: .3rem; flex-wrap: wrap; }
}
