:root {
  color-scheme: light;
  --background: #ffffff;
  --background-hover: #edf2ed;
  --text-primary: #292d28;
  --text-secondary: #475044;
  --text-muted: #62665e;
  --accent: #01411c;
  --border: #01411c;
  --selection: #dbe5d4;
  --content-width: 960px;
  --reading-width: 700px;
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --radius: 2px;
  --shadow: none;
  --font-family: "Times New Roman", Times, serif;
  --font-base: 18px;
  --font-small: .9rem;
  --font-body: 1rem;
  --font-intro: 1.1rem;
  --font-name: clamp(1.75rem, 4.9vw, 2.8rem);
  --font-section: calc(var(--font-name) * .7);
  --font-entry: 1.3rem;
  --font-article: clamp(1.1rem, 2.2vw, 1.4rem);
  --font-lead: clamp(1.15rem, 2.5vw, 1.65rem);
  --line-body: 1.65;
  --line-heading: 1.25;
  --line-meta: 1.4;
  --weight-normal: 400;
  --weight-bold: 700;
  --transition: 120ms;
  --rule-width: 2.8px;
  --header-rule-width: 4px;
  --control-border: 2px;
  --focus-width: 3px;
  --target-size: 44px;
}
* { box-sizing: border-box; }
html { font-size: var(--font-base); }
body { margin: 0; background: var(--background); color: var(--text-primary); font-family: var(--font-family); font-size: var(--font-body); line-height: var(--line-body); }
::selection { background: var(--selection); color: var(--accent); }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: var(--space-1); overflow-wrap: anywhere; transition: color var(--transition) ease, background-color var(--transition) ease; }
a:hover { color: var(--text-primary); text-decoration-thickness: 2px; }
a:active { color: var(--text-secondary); }
a:focus-visible { outline: var(--focus-width) solid var(--accent); outline-offset: var(--space-1); border-radius: var(--radius); }
h1, h2, h3, p { margin: 0 0 var(--space-4); }
h1, h2, h3 { line-height: var(--line-heading); }
h1, h2 { color: var(--accent); }
h1 { font-size: var(--font-name); font-weight: var(--weight-normal); }
h2, .page-title { font-size: var(--font-section); font-weight: var(--weight-bold); }
h3 { font-size: var(--font-entry); font-weight: var(--weight-bold); }
p { max-width: var(--reading-width); }
img { display: block; max-width: 100%; height: auto; border-radius: var(--radius); }
.shell { width: min(calc(100% - var(--space-8)), var(--content-width)); margin-inline: auto; }
.site-header { padding-top: var(--space-8); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-6); border-top: var(--header-rule-width) solid var(--border); padding-block: var(--space-2); }
.nav-list, .contact-list { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); list-style: none; padding: 0; margin: 0; }
.nav-list a, .contact-list a { display: inline-flex; align-items: center; min-height: var(--target-size); }
.nav-list a { color: var(--text-primary); text-decoration: none; }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; }
main { padding-block: var(--space-8) var(--space-12); min-height: 65vh; }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-6); border-top: var(--rule-width) solid var(--border); font-size: var(--font-small); }
.skip-link { position: absolute; top: -10rem; left: var(--space-4); padding: var(--space-2) var(--space-4); background: var(--background); z-index: 2; }
.skip-link:focus { top: var(--space-4); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.chinese-name { font-size: inherit; margin-left: var(--space-1); }
.headline { color: var(--text-secondary); margin-bottom: var(--space-8); }
.biography { max-width: var(--reading-width); font-size: var(--font-intro); }
.bio-heading { font-size: inherit; color: var(--text-primary); margin-top: var(--space-6); margin-bottom: var(--space-2); }
.biography p:last-child { margin-bottom: 0; }
.section { border-top: var(--rule-width) solid var(--border); margin-top: var(--space-12); padding-top: var(--space-6); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin-bottom: var(--space-4); }
.section-heading h2 { margin-bottom: 0; }
.section-heading > a { font-size: var(--font-small); }
.publication-intro { margin-bottom: var(--space-6); }
.article-card { display: grid; gap: var(--space-6); padding-block: var(--space-6); }
.article-card h3 { font-size: var(--font-article); margin-bottom: var(--space-2); }
.article-card h3 a { text-decoration: none; }
.article-card h3 a:hover { text-decoration: underline; }
.category, .meta, .contribution { font-size: var(--font-small); line-height: var(--line-meta); color: var(--text-muted); }
.category { margin-bottom: var(--space-1); }
.meta { margin-bottom: var(--space-3); }
.contribution { font-style: italic; }
.article-card p:last-child { margin-bottom: 0; }
.article-card figure { margin: 0; }
.article-card figcaption { margin-top: var(--space-2); font-size: var(--font-small); color: var(--text-muted); }
.secondary-articles { display: block; }
.quiet-note { color: var(--text-muted); }
.resume-link { display: inline-flex; align-items: center; justify-content: center; min-height: var(--target-size); padding: var(--space-2) var(--space-4); border: var(--control-border) solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; }
.resume-link:hover { background: var(--background-hover); }
.resume-link:active { background: var(--selection); }
.skills { margin-top: var(--space-8); }
.work-list { margin-top: var(--space-8); }
.entry { max-width: var(--reading-width); padding-block: var(--space-6); }
.entry h3 { margin-bottom: var(--space-2); }
.role { color: var(--accent); font-style: italic; margin-bottom: var(--space-2); }
.entry-date { color: var(--text-primary); font-size: var(--font-small); margin-bottom: var(--space-4); }
.entry-date small { display: block; font-size: inherit; }
.entry ul { margin: 0; padding-left: var(--space-6); list-style-type: disc; }
.entry li + li { margin-top: var(--space-2); }
.error-page { max-width: var(--reading-width); }
.eyebrow { color: var(--text-muted); font-size: var(--font-small); }
@media (min-width: 768px) {
  .shell { width: min(calc(100% - var(--space-12)), var(--content-width)); }
  main { padding-block: var(--space-12) var(--space-16); }
  .article-card:has(figure) { grid-template-columns: minmax(0, 1fr) minmax(0, .6fr); }
  .entry-date small { display: inline; margin-left: var(--space-3); }
}
@media (prefers-reduced-motion: reduce) {
  a { transition: none; }
}
@media print {
  .site-header, .site-footer, .skip-link { display: none; }
  .shell { width: 100%; }
  main { padding: 0; }
  .article-card, .entry { break-inside: avoid; }
}

/* Supplied 3:1 photographs, shared by Writing and Work experiences. */
main:has(> .page-banner) { padding-top: var(--space-6); }
.page-banner { width: 100%; aspect-ratio: 3 / 1; margin-bottom: var(--space-8); }
.page-banner img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: 0; }
