/* Fonts are hosted with the site (assets/fonts/) so they load everywhere, including mainland China.
   Archivo and IBM Plex Mono are both under the SIL Open Font License. */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 900; font-stretch: 62% 125%; font-display: swap; src: url("fonts/archivo-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 900; font-stretch: 62% 125%; font-display: swap; src: url("fonts/archivo-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/plex-mono-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/plex-mono-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Site styles. One 12-column grid everywhere: section label in the left rail, content on the right.
   Colour is ink on paper; red is reserved for the hero slash, the current nav item, hover and award notes. */
:root {
    --paper: #FBFBF9;
    --ink: #14151A;
    --mute: #636770;
    --hair: #D9DAD6;
    --red: #D92D17;
    --clip: #F0EEE7;   /* newsprint behind figure clippings */
    --sans: "Archivo", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    --mono: "IBM Plex Mono", Consolas, "Courier New", monospace;
    --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
[v-cloak] { display: none; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--sans); }
img { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.mono { font: 400 13px/1.4 var(--mono); letter-spacing: .01em; }

/* ---------- top bar ---------- */
.top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 24px; flex-wrap: wrap; padding: 18px 0; border-bottom: 3px solid var(--ink); font-weight: 600; font-size: 14px; }
.top nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.top a { text-decoration: none; }
.top a.on { color: var(--red); }

/* ---------- homepage hero ---------- */
.hero { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding: 40px 0 0; border-bottom: 3px solid var(--ink); }
.hero-l { grid-column: 1 / 8; display: flex; flex-direction: column; justify-content: space-between; gap: 36px; padding-bottom: 36px; }
.name { display: flex; align-items: stretch; gap: 22px; }
.name h1 { margin: 0; font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(60px, 10vw, 132px); line-height: .84; letter-spacing: -.015em; }
.name .ln { display: block; overflow: hidden; padding-top: .03em; }
.name .ln > span { display: inline-block; animation: rise .9s var(--ease) both; }
.name .ln:nth-child(2) > span { animation-delay: .12s; }
.cn { writing-mode: vertical-rl; font-weight: 900; font-size: clamp(26px, 3.6vw, 44px); line-height: 1; letter-spacing: .14em; border-left: 3px solid var(--ink); padding-left: 14px; white-space: nowrap; animation: fade .7s .45s both; }
.meta { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 640px; margin: 0; }
.meta dt, .label { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--mute); margin: 0 0 8px; }
.meta dd { margin: 0; font-weight: 600; }
.links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-weight: 700; margin-top: 10px; }
.hero-r { grid-column: 8 / 13; min-height: 280px; display: grid; grid-template-columns: minmax(0, 1fr) 50%; gap: 20px; align-items: start; }
.hero-r::after { content: ""; align-self: stretch; background: var(--red); clip-path: polygon(48% 0, 100% 0, 100% 100%, 0 100%); }
.hero-r img { width: 100%; max-width: 210px; aspect-ratio: 1; object-fit: cover; display: block; justify-self: start; margin: .8vw 0 36px; filter: grayscale(1) contrast(1.12); }

@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: none; } }

/* ---------- inner page title ---------- */
.page-head { display: flex; justify-content: space-between; align-items: stretch; gap: 24px; border-bottom: 3px solid var(--ink); }
.page-id { padding: 36px 0 28px; min-width: 0; }
.page-id h1 { margin: 0; font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(44px, 7vw, 84px); line-height: .9; letter-spacing: -.01em; overflow: hidden; }
.page-id h1 span { display: inline-block; animation: rise .8s var(--ease) both; }
.page-id p { margin: 14px 0 0; color: var(--mute); max-width: 64ch; }
.page-head::after { content: ""; flex: 0 0 clamp(150px, 22%, 280px); background: var(--red); clip-path: polygon(48% 0, 100% 0, 100% 100%, 0 100%); }

/* ---------- sections ---------- */
.sec { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding: 44px 0; border-bottom: 1px solid var(--ink); }
.sec:last-of-type { border-bottom: 0; }
.sec > header { grid-column: 1 / 4; }
.sec > .body { grid-column: 4 / 13; min-width: 0; }
.sec h2 { margin: 0 0 10px; font-weight: 800; font-stretch: 75%; font-size: 30px; line-height: 1; text-transform: uppercase; text-wrap: balance; }
.sec h2.num { font-size: 44px; font-stretch: 62%; font-weight: 900; }
/* red wedge marker before section titles, echoing the banner wedge */
.sec h2::before, .call h2::before { content: ""; display: inline-block; width: .72em; height: 1.06em; margin-right: .38em; vertical-align: -.16em; background: var(--red); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.more { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.aside { font: 400 13px/1.5 var(--mono); color: var(--mute); margin: 14px 0 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; }

.lead p { margin: 0 0 1em; max-width: 64ch; font-size: 19px; line-height: 1.5; }

.areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 24px; margin-top: 28px; }
.areas div { border-top: 3px solid var(--ink); padding: 12px 0 22px; }
.areas b { display: block; font-size: 18px; font-stretch: 85%; font-weight: 800; }
.areas span { color: var(--mute); font-size: 15px; }

.prose { max-width: 68ch; }
.prose p { margin: 0 0 1em; }
.prose ul { margin: 0 0 1em; padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.prose h3 { margin: 1.6em 0 .5em; font-size: 18px; font-weight: 800; font-stretch: 85%; }
.prose h3:first-child { margin-top: 0; }

/* ---------- rows: key column + content ---------- */
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; padding: 13px 0; border-top: 1px solid var(--hair); }
.rows > li:first-child { border-top: 0; padding-top: 0; }
.rows .k { font: 500 13px/1.7 var(--mono); color: var(--mute); font-variant-numeric: tabular-nums; }
.rows.plain > li { grid-template-columns: minmax(0, 1fr); }
.note { color: var(--red); font-weight: 600; font-size: 14px; }
.cols { columns: 2; column-gap: 24px; list-style: none; margin: 0; padding: 0; }
.cols li { break-inside: avoid; padding: 7px 0; border-top: 1px solid var(--hair); }
.cols b { font-weight: 700; }
.cols span { color: var(--mute); }

/* ---------- publications ---------- */
.cap { font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--mute); margin: 0 0 14px; }
.chart { display: flex; align-items: flex-end; gap: 8px; height: 150px; }
.chart button { all: unset; box-sizing: border-box; cursor: pointer; flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.chart button:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.chart .n, .chart .y { font: 500 12px/1 var(--mono); color: var(--mute); font-variant-numeric: tabular-nums; }
.chart .n { margin-bottom: 5px; }
.chart .y { margin-top: 8px; }
.chart .bar { width: 100%; background: var(--hair); display: flex; align-items: flex-end; transform-origin: bottom; animation: grow .7s var(--ease) both; }
.chart .fill { width: 100%; background: var(--ink); opacity: .22; transition: height .3s var(--ease), opacity .2s, background .2s; }
.chart button:hover .fill { opacity: .55; }
.chart button.on .fill { background: var(--red); opacity: 1; }
.chart button.on .n, .chart button.on .y { color: var(--red); }

.filt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 22px; padding-top: 12px; border-top: 3px solid var(--ink); }
.chip, .dd-btn, .filt input[type=search] { font: 600 14px/1.2 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--ink); border-radius: 0; padding: 7px 12px; margin: 0; }
.chip { cursor: pointer; }
.chip:hover { color: var(--red); border-color: var(--red); }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.dd { position: relative; }
.dd-btn { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; max-width: 100%; }
.dd-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-btn i { flex: none; width: 7px; height: 7px; margin: -4px 2px 0 0; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .2s var(--ease), margin .2s var(--ease); }
.dd.open .dd-btn i { transform: rotate(225deg); margin-top: 4px; }
.dd-btn:hover { color: var(--red); border-color: var(--red); }
.dd-btn.set { background: var(--ink); color: var(--paper); border-color: var(--ink); font-weight: 600; }
.dd-menu { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; min-width: 100%; width: max-content; max-width: min(380px, calc(100vw - 32px)); max-height: 340px; overflow-y: auto; list-style: none; margin: 0; padding: 4px 0; background: var(--paper); border: 1px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); animation: fade .15s both; }
.dd-menu button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 24px; width: 100%; padding: 8px 12px; font-size: 14px; line-height: 1.3; }
.dd-menu button:hover, .dd-menu button:focus-visible { background: var(--ink); color: var(--paper); }
.dd-menu .on { font-weight: 700; }
.dd-menu .on span:first-child::before { content: "\25A0\00A0"; color: var(--red); }
.dd-menu .n { font: 500 12px/1 var(--mono); opacity: .6; font-variant-numeric: tabular-nums; }
.filt input[type=search] { flex: 1 1 200px; min-width: 0; font-weight: 400; }
.count { margin-left: auto; font: 500 12px/1 var(--mono); color: var(--mute); text-transform: uppercase; letter-spacing: .06em; }
.empty { color: var(--mute); }

.rows.pubs > li { grid-template-columns: 96px minmax(0, 1fr) 132px; }
.rows.pubs > li.year-start { border-top-color: var(--ink); }
.pub .k { font: 800 26px/1 var(--sans); font-stretch: 70%; color: var(--ink); }
.pub h3 { margin: 0 0 6px; font-size: 20px; line-height: 1.25; font-weight: 700; text-wrap: balance; }
.pub h3 a { text-decoration: none; }
.pub .au { font-size: 14px; color: var(--mute); margin: 0 0 6px; }
.pub .au b { color: var(--ink); }
.pub .ve { margin: 0; font-size: 15px; }
.pub .ve .full { color: var(--mute); }
.pub .note { margin: 4px 0 0; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.badges img { height: 20px; display: block; }
.tools { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font: 500 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.tools button { all: unset; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.tools button:hover { color: var(--red); }
.tools button:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
/* Figure clippings: torn newsprint held by a pushpin. multiply drops the figure's white background. */
.thumb { all: unset; box-sizing: border-box; cursor: pointer; align-self: start; position: relative; width: 132px; margin-top: 4px; transform: rotate(-2.5deg); transform-origin: 50% 6px; filter: drop-shadow(1px 2px 0 rgba(20, 21, 26, .16)); transition: transform .25s var(--ease); }
.thumb::after { content: ""; position: absolute; left: 50%; top: 1px; width: 11px; height: 11px; margin-left: -5px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FF8A78 0 18%, var(--red) 45%, #8E1B0C 100%); box-shadow: 1px 2px 2px rgba(20, 21, 26, .35); }
.thumb span { display: block; height: 96px; padding: 12px 8px 9px; background: var(--clip); clip-path: polygon(0 5%, 7% 0, 52% 3%, 96% 0, 100% 9%, 98% 58%, 100% 94%, 91% 100%, 44% 97%, 5% 100%, 0 90%, 2% 40%); }
.pub:nth-child(3n+2) .thumb { transform: rotate(1.8deg); }
.pub:nth-child(3n+2) .thumb span { clip-path: polygon(3% 0, 46% 4%, 100% 0, 97% 34%, 100% 100%, 62% 96%, 8% 100%, 0 93%, 3% 51%, 0 8%); }
.pub:nth-child(3n) .thumb { transform: rotate(-.8deg); }
.pub:nth-child(3n) .thumb span { clip-path: polygon(0 0, 38% 5%, 93% 2%, 100% 12%, 97% 100%, 55% 95%, 12% 100%, 2% 88%, 4% 45%); }
.thumb:hover, .pub .thumb:hover { transform: rotate(0) scale(1.06); }
.thumb img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.fig { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; padding: 14px 0 4px; border-top: 1px solid var(--hair); animation: fade .25s both; }
.fig a { flex: 1 1 240px; min-width: 0; }
.fig img { display: block; max-height: 340px; margin: 0 auto; object-fit: contain; mix-blend-mode: multiply; }
.list-enter-active { transition: opacity .3s, transform .3s var(--ease); }
.list-enter { opacity: 0; transform: translateY(6px); }

/* ---------- talks ---------- */
.talk b { display: block; line-height: 1.3; }
.talk p { margin: 4px 0 0; font-size: 14px; color: var(--mute); }
.talk-row h3 { margin: 0 0 6px; font-size: 20px; line-height: 1.25; font-weight: 700; text-wrap: balance; }
.talk-row .ev { margin: 3px 0 0; font-size: 15px; }
.talk-row .ev .mono { color: var(--mute); margin-right: 10px; }

/* ---------- get involved band + footer ---------- */
.call { background: var(--ink); color: var(--paper); }
.call .wrap { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding-top: 44px; padding-bottom: 44px; }
.call h2 { grid-column: 1 / 4; margin: 0; font-weight: 800; font-stretch: 75%; font-size: 30px; line-height: 1; text-transform: uppercase; }
.call .body { grid-column: 4 / 13; }
.call p { margin: 0 0 .8em; max-width: 64ch; font-size: 18px; }
.call p:last-child { margin: 0; }
.call a:hover { color: #FF8A78; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding: 24px 0 48px; color: var(--mute); border-top: 3px solid var(--ink); }
.call + .wrap .foot { border-top: 0; }
.foot img { height: 56px; width: auto; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 820px) {
    .wrap { padding: 0 16px; }
    .hero { padding-top: 28px; }
    .hero-l, .hero-r, .sec > header, .sec > .body, .call h2, .call .body { grid-column: 1 / -1; }
    .hero-l { padding-bottom: 8px; gap: 24px; }
    .hero-r { min-height: 0; grid-template-columns: minmax(0, 1fr) 40%; }
    .hero-r img { max-width: 150px; margin: 0 0 24px; }
    .page-head::after { flex-basis: 88px; }
    .sec { padding: 32px 0; gap: 14px; }
    .meta, .areas, .two { grid-template-columns: 1fr; }
    .cols { columns: 1; }
    .rows > li { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
    .rows.pubs > li { grid-template-columns: 52px minmax(0, 1fr); }
    .pub .k { font-size: 20px; }
    .pub h3, .talk-row h3 { font-size: 18px; }
    .pub .ve .full, .thumb { display: none; }
    .lead p { font-size: 17px; }
    .chart { gap: 4px; height: 120px; }
    .chart .n, .chart .y { font-size: 10px; }
    .count { margin-left: 0; flex-basis: 100%; }
    .dd { flex: 1 1 100%; }
    .dd-btn { width: 100%; justify-content: space-between; box-sizing: border-box; }
}

@media print {
    .top nav, .chart, .cap, .filt, .thumb, .foot img { display: none; }
    .sec { break-inside: auto; padding: 20px 0; }
}

/* ---------- small variants ---------- */
.sec.wide > .body { grid-column: 1 / -1; }
.rows.k-wide > li { grid-template-columns: 150px minmax(0, 1fr); }
.sub { color: var(--mute); font-size: 14px; }
@media (max-width: 820px) { .rows.k-wide > li { grid-template-columns: 84px minmax(0, 1fr); } }
