/* Yicheng Zhuang - personal site.
   Plain hand-written CSS, no framework. Colours and sizes live in :root. */

:root {
  --text: #333;
  --soft: #555;
  --muted: #888;
  --link: #2a6496;
  --key: #a3262a;          /* highlighted phrases on the home page */
  --bar: #f8f8f8;          /* navigation bar */
  --line: #e7e7e7;
  --placeholder: #eceff2;
  --width: 1140px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 18px/1.65 Lato, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.wrap { max-width: var(--width); margin: 0 auto; padding: 0 24px; }

/* ---------- navigation bar ---------- */
header { background: var(--bar); border-bottom: 1px solid var(--line); }
.bar {
  max-width: var(--width); margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center; min-height: 58px;
  flex-wrap: wrap; gap: 4px 24px;
}
.site-name { color: var(--text); font-size: 22px; }
.site-name:hover { text-decoration: none; }
.nav a { color: #777; margin-left: 24px; font-size: 17px; }
.nav a:first-child { margin-left: 0; }
.nav a:hover, .nav a.current { color: var(--text); text-decoration: none; }

/* ---------- placeholders (remove once real images are in) ---------- */
.placeholder {
  background: var(--placeholder); color: #7b8794;
  display: grid; place-items: center; text-align: center;
  padding: 12px; font-size: 14px;
}

/* ---------- home ---------- */
.profile { display: flex; gap: 22px; align-items: center; padding-top: 34px; }
.profile .photo { flex: 0 0 120px; width: 120px; height: 140px; object-fit: cover; }
h1 { font-size: 38px; font-weight: 400; margin: 0; line-height: 1.2; }
.subtitle { color: #777; margin: 2px 0 4px; font-size: 19px; }
.links { margin: 0; font-size: 17px; }

.intro {
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px;
  align-items: center; padding-top: 30px;
}
.intro .overview { width: 100%; min-height: 360px; object-fit: contain; }
.intro p { font-size: 22px; font-weight: 300; line-height: 1.6; color: var(--soft); margin: 0 0 14px; }
.intro .key { color: var(--key); font-weight: 400; }

h2 { font-size: 30px; font-weight: 400; margin: 44px 0 12px; line-height: 1.25; }
.news { list-style: none; padding: 0; margin: 0; }
.news li { margin: 0 0 8px; }
.news .date { font-weight: 700; margin-right: 6px; }
.more { font-size: 16px; }

/* ---------- inner pages ---------- */
.page-title { font-size: 40px; font-weight: 400; margin: 34px 0 8px; }
.lead { font-size: 20px; font-weight: 300; color: var(--soft); max-width: 900px; }
.umbrella { font-size: 27px; font-weight: 300; color: var(--key); margin: 0 0 2px; }

/* ---------- research: one copy of each project, shown three ways ----------
   No JavaScript. The view controls are links to empty anchors at the top of <body>
   (position: fixed, so following one does not scroll the page):
     no hash, #at-stanford   by institution, Stanford tab (the default view)
     #stanford-exp / #stanford-theory   Stanford tab, experiment or theory only
     #at-pku / #at-harvard   by institution, the other two tabs
     #by-theme               timeline: the two themes side by side
     #theme-list             one column, the themes one after the other, all open
   In the timeline and institution views each project folds behind a "Show details" checkbox,
   and the checkbox #expand-all ("Expand all") opens every project, in every tab.
   body:has(... :target) picks the view: the institution view is "no .theme-anchor targeted", so
   it is also what a bare research.html shows; the timeline is ".tl-anchor targeted". These tests
   use classes, not ids, so they weigh the same and later rules win (an id would outweigh them). The list and institution views turn the
   theme columns into display: contents, and CSS `order` places each block: --t by theme,
   --i by institution (set inline on each block in research.html). */
.view-anchor { position: fixed; top: 0; left: 0; width: 0; height: 0; overflow: hidden; }

.view-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 24px; margin-top: 26px;
}
.view-switch {
  display: inline-flex; padding: 3px;
  background: #f0f0f0; border-radius: 999px; font-size: 15px; line-height: 1.4;
}
.view-switch a { padding: 6px 18px; border-radius: 999px; color: #777; }
.view-switch a:hover { color: var(--text); text-decoration: none; }
.view-switch .vs-inst,
body:has(.theme-anchor:target) .view-switch .vs-theme {                   /* the active half */
  background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .16);
}
body:has(.theme-anchor:target) .view-switch .vs-inst { background: none; box-shadow: none; color: #777; }

/* layout of the theme view (timeline or list), and "Expand all" */
.layout-switch { display: flex; align-items: center; font-size: 15px; }
.layout-switch a { padding: 4px 2px; margin-left: 18px; color: #999; border-bottom: 2px solid transparent; }
.layout-switch a:hover { color: var(--text); text-decoration: none; }
.layout-switch .ls-timeline,
body:has(#theme-list:target) .layout-switch .ls-list { color: var(--text); border-bottom-color: var(--key); }
body:has(#theme-list:target) .layout-switch .ls-timeline { color: #999; border-bottom-color: transparent; }
.expand-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.expand-label { margin-left: 22px; padding: 4px 0 4px 18px; border-left: 1px solid #ddd; color: #999; cursor: pointer; }
.expand-label:hover { color: var(--text); }
.expand-label::after { content: "Expand all"; }
body:has(#expand-all:checked) .expand-label::after { content: "Collapse all"; }
body:has(#expand-all:focus-visible) .expand-label { outline: 2px solid var(--link); outline-offset: 2px; }
body:has(#theme-list:target) .expand-label, body:has(#theme-list:target) .expand-toggle { display: none; }            /* the list is always open */
body:not(:has(.theme-anchor:target)) .layout-switch .ls-timeline, body:not(:has(.theme-anchor:target)) .layout-switch .ls-list { display: none; }
body:not(:has(.theme-anchor:target)) .expand-label { margin-left: 0; padding-left: 0; border-left: 0; }

/* school tabs, shown only in the institution view */
.school-tabs {
  display: none; grid-template-columns: repeat(3, 1fr); margin-top: 26px; border-bottom: 1px solid #e0e0e0;
}
body:not(:has(.theme-anchor:target)) .school-tabs { display: grid; margin-top: 4px; }
.tabs-hint { display: none; margin: 24px 0 0; font-size: 14px; line-height: 20px; color: #999; }   /* whole-pixel height */
body:not(:has(.theme-anchor:target)) .tabs-hint { display: block; }
.school-tabs a {
  display: block; padding: 6px 4px 12px; margin-bottom: -1px;
  color: var(--tab-color); border-bottom: 3px solid var(--tab-line);
  --tab-color: #999; --tab-yrs: #b4b4b4; --tab-line: transparent;
}
.school-tabs a:hover { text-decoration: none; --tab-color: var(--soft); }
body:has(#at-pku:target) .school-tabs a[href="#at-pku"],
body:has(#at-harvard:target) .school-tabs a[href="#at-harvard"],
body:not(:has(.theme-anchor:target, #at-pku:target, #at-harvard:target)) .school-tabs a[href="#at-stanford"] {      /* the open tab */
  --tab-color: var(--text); --tab-yrs: var(--key); --tab-line: var(--key);
}
.school-tabs .name { display: block; font-size: 19px; line-height: 1.3; }
.school-tabs .yrs { display: block; font-size: 14px; margin-top: 2px; color: var(--tab-yrs); }

/* parts that only some views show */
.by-inst, .project .tag, .project .when, .project .more-toggle, .project .more-label { display: none; }

/* group headers (list and institution views): themes, and the city and role of the open school */
.group {
  margin-top: 18px; padding-top: 26px; border-top: 2px solid #d6d6d6;
  /* cover the first project's top rule, so no line sits right under the lead */
  position: relative; z-index: 1; background: #fff; margin-bottom: -1px;
}
.group > .overline {                       /* small label above each group title */
  margin: 0 0 4px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--key);
}
.group > h2 { font-size: 32px; margin: 0 0 6px; }
.group-lead { font-size: 19px; font-weight: 300; color: var(--soft); max-width: 900px; margin: 0 0 4px; }

/* ---- timeline: two theme columns, a coloured line and a dot per project ---- */
.track-col.t1 { --tc: #a3262a; --tc-line: rgba(163, 38, 42, .30); --tc-glow: rgba(163, 38, 42, .12); }
.track-col.t2 { --tc: #2a6496; --tc-line: rgba(42, 100, 150, .30); --tc-glow: rgba(42, 100, 150, .12); }
body:has(.tl-anchor:target) .views {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 96px; align-items: start;
  position: relative; margin-top: 30px; padding-top: 30px; border-top: 2px solid #d6d6d6;
}
body:has(.tl-anchor:target) .views::after {                       /* faint divider between the columns */
  content: ""; position: absolute; top: 30px; bottom: 0; left: 50%; width: 1px;
  background: linear-gradient(#e2e2e2, #e2e2e2 90%, rgba(226, 226, 226, 0));
}
body:has(.tl-anchor:target) .track-col > .group { margin: 0; padding: 0; border: 0; background: none; position: static; }
body:has(.tl-anchor:target) .track-col > .group > .overline { color: var(--tc); }
body:has(.tl-anchor:target) .track-col > .group > h2 { font-size: 30px; margin: 0 0 8px; }
body:has(.tl-anchor:target) .track-col .group-lead { font-size: 18px; margin: 0 0 28px; }
body:has(.tl-anchor:target) .track { position: relative; padding-left: 34px; }
body:has(.tl-anchor:target) .track::before {
  content: ""; position: absolute; left: 7px; top: 10px; bottom: 30px; width: 1px;
  background: linear-gradient(var(--tc-line), var(--tc-line) 85%, rgba(255, 255, 255, 0));
}
body:has(.tl-anchor:target) .track .project { display: block; position: relative; padding: 0 0 40px; border-top: 0; }
body:has(.tl-anchor:target) .track .project::before {               /* the dot; filled for "now" */
  content: ""; position: absolute; left: -32px; top: 6px; width: 11px; height: 11px;
  border-radius: 50%; background: #fff; border: 1.5px solid var(--tc);
}
body:has(.tl-anchor:target) .track .project.now::before { background: var(--tc); box-shadow: 0 0 0 4px var(--tc-glow); }
body:has(.tl-anchor:target) .project .when { display: block; margin: 0 0 10px; font-size: 14px; letter-spacing: .06em; color: var(--muted); line-height: 1.6; }
body:has(.tl-anchor:target) .project.now .when { color: var(--tc); }
body:has(.tl-anchor:target) .project .figure { margin: 0 0 14px; }
body:has(.tl-anchor:target) .project .kicker { font-size: 14px; }
body:has(.tl-anchor:target) .project h3 { font-size: 23px; }
body:has(.tl-anchor:target) .project .meta { margin: 2px 0 4px; font-size: 15px; }
body:has(.tl-anchor:target) .project > .refs { margin-top: 10px; font-size: 15px; }
body:has(.tl-anchor:target) .project .contrib { margin: 8px 0 0; font-size: 14px; }
/* ---- folding (timeline and institution views, unless "Expand all" is on): a hidden checkbox
   per project; its label is the "Show details" link ---- */
body:not(:has(#theme-list:target, #expand-all:checked)) .project { position: relative; }
body:not(:has(#theme-list:target, #expand-all:checked)) .project .more-toggle { display: block; position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
body:not(:has(#theme-list:target, #expand-all:checked)) .project .more-label { display: inline-block; justify-self: start; margin: 0 0 2px; font-size: 15px; color: var(--link); cursor: pointer; }
body:not(:has(#theme-list:target, #expand-all:checked)) .project .more-label::after { content: "Show details +"; }
body:not(:has(#theme-list:target, #expand-all:checked)) .project:has(.more-toggle:checked) .more-label::after { content: "Hide details \2212"; }
body:not(:has(#theme-list:target, #expand-all:checked)) .project:has(.more-toggle:focus-visible) .more-label { outline: 2px solid var(--link); outline-offset: 2px; }
body:not(:has(#theme-list:target, #expand-all:checked)) .project:not(:has(.more-toggle:checked)) > p:not([class]),
body:not(:has(#theme-list:target, #expand-all:checked)) .project:not(:has(.more-toggle:checked)) > .contrib { display: none; }
body:not(:has(#theme-list:target, #expand-all:checked)):not(:has(.theme-anchor:target)) .project .more-label { margin-bottom: 12px; }   /* institution view: room before the references */

/* ---- list and institution views: the columns dissolve, CSS order places each block ---- */
body:not(:has(.tl-anchor:target)) .track-col, body:not(:has(.tl-anchor:target)) .track { display: contents; }
body:not(:has(.tl-anchor:target)) .views { display: flex; flex-direction: column; margin-top: 22px; }
body:not(:has(.tl-anchor:target)) .views .project, body:not(:has(.tl-anchor:target)) .views .group { order: var(--t, 0); }

/* ---- institution view ---- */
body:not(:has(.theme-anchor:target)) .views { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; margin-top: 0; }
body:not(:has(.theme-anchor:target)) .views .project, body:not(:has(.theme-anchor:target)) .views .group { order: var(--i, 0); }
body:not(:has(.theme-anchor:target)) .by-theme { display: none; }
body:not(:has(.theme-anchor:target)) .by-inst { display: block; border-top: 0; margin-top: 0; padding-top: 22px; }
body:not(:has(.theme-anchor:target)) .project .tag { display: inline; }
body:has(#at-pku:target) :is(.project, .by-inst, .kind-head):not(.s-pku),
body:has(#at-harvard:target) :is(.project, .by-inst, .kind-head):not(.s-harvard),
body:not(:has(.theme-anchor:target, #at-pku:target, #at-harvard:target)) :is(.project, .by-inst, .kind-head):not(.s-stanford) { display: none; }

/* Stanford tab: experiment and theory. Both groups under their headings by default ("All");
   #stanford-exp / #stanford-theory keep one group and drop the headings. */
.kind-switch {
  display: inline-flex; margin-top: 16px; padding: 3px;
  background: #f0f0f0; border-radius: 999px; font-size: 14px; line-height: 1.4;
}
.kind-switch a { padding: 5px 16px; border-radius: 999px; color: #777; }
.kind-switch a:hover { color: var(--text); text-decoration: none; }
.kind-switch .ks-all,
body:has(#stanford-exp:target) .kind-switch .ks-exp,
body:has(#stanford-theory:target) .kind-switch .ks-theory {               /* the active choice */
  background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .16);
}
body:has(#stanford-exp:target, #stanford-theory:target) .kind-switch .ks-all { background: none; box-shadow: none; color: #777; }
.kind-head { display: none; order: var(--i, 0); }
body:not(:has(.theme-anchor:target)) .kind-head {
  display: flex; align-items: center; gap: 14px; grid-column: 1 / -1; margin: 34px 0 0; padding-bottom: 2px;
  font-size: 14px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--soft);
  position: relative; z-index: 1; background: #fff; margin-bottom: -1px;   /* cover the next project's top rule */
}
body:not(:has(.theme-anchor:target)) .kind-head::after { content: ""; flex: 1; border-top: 1px solid #ddd; }
body:has(#stanford-exp:target, #stanford-theory:target) .kind-head { display: none; }
body:has(#stanford-exp:target) .views .k-theory,
body:has(#stanford-theory:target) .views .k-exp { display: none; }

.project {
  display: grid; grid-template-columns: 380px 1fr; column-gap: 36px;
  padding: 30px 0; border-top: 1px solid #eee;   /* top rule: the order changes with the view */
}
.project > * { grid-column: 2; }
.project .figure { grid-column: 1; grid-row: 1 / span 8; align-self: start; }
.project .figure img, .project .figure .placeholder {
  width: 100%; height: 260px; box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}
.project .figure img { height: auto; padding: 8px; background: #fff; }   /* whole figure, labels never cropped */
.project .figure img.bleed { padding: 0; }   /* dark, edge-to-edge artwork: no white frame */
.project .kicker { margin: 0 0 2px; font-size: 14.5px; font-style: italic; color: var(--muted); }   /* grey line above each title */
.project h3 { margin: 0; font-size: 24px; font-weight: 400; line-height: 1.3; }
.project .meta { margin: 2px 0 12px; color: var(--muted); font-size: 16px; }
.project p { margin: 0 0 12px; }
.project .refs { font-size: 16px; color: #666; }
.project .refs-label { margin: 0 0 4px; }
.refs-list { margin: 0; padding-left: 20px; }
.refs-list li { margin: 0 0 8px; }
.project .contrib { margin: 10px 0 0; font-size: 14.5px; color: #9a9a9a; }   /* quiet, end of each project */
.project .contrib .label { font-style: italic; margin-right: 6px; }
.nobr { white-space: nowrap; }      /* keep a date range like 2025-2026 on one line */

/* theme label before the kicker, institution view only */
.project .tag { font-style: normal; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--key); }
.project .tag::after { content: "\00B7"; margin: 0 8px; color: #bbb; letter-spacing: 0; }

/* institution view: a highlighted project ("featured") is a full-width banner, its figure whole
   and centred on a band of its own edge colour (--stage), text below; the others are
   half-width cards; an odd last one ("solo") keeps the usual row */
body:not(:has(.theme-anchor:target)) .views .group,
body:not(:has(.theme-anchor:target)) .views .featured,
body:not(:has(.theme-anchor:target)) .views .solo { grid-column: 1 / -1; }
body:not(:has(.theme-anchor:target)) .project.featured { grid-template-columns: 1fr; padding: 34px 0 32px; }
body:not(:has(.theme-anchor:target)) .project.featured > *,
body:not(:has(.theme-anchor:target)) .project.featured .figure { grid-column: 1; grid-row: auto; }
body:not(:has(.theme-anchor:target)) .project.featured > :not(.figure) { max-width: 880px; }
body:not(:has(.theme-anchor:target)) .project.featured .figure { margin-bottom: 24px; }
body:not(:has(.theme-anchor:target)) .project.featured .figure img { height: 440px; object-fit: contain; background: var(--stage, #0b0c10); }
body:not(:has(.theme-anchor:target)) .project.featured h3 { font-size: 30px; }
body:not(:has(.theme-anchor:target)) .project:not(.featured):not(.solo) { grid-template-columns: 1fr; align-content: start; }
body:not(:has(.theme-anchor:target)) .project:not(.featured):not(.solo) > *,
body:not(:has(.theme-anchor:target)) .project:not(.featured):not(.solo) .figure { grid-column: 1; grid-row: auto; }
body:not(:has(.theme-anchor:target)) .project:not(.featured):not(.solo) .figure { margin-bottom: 18px; }
body:not(:has(.theme-anchor:target)) .project:not(.featured):not(.solo) .figure .placeholder { height: auto; aspect-ratio: 16 / 10; }

/* a project with two covers (.figure.covers, both the same ratio): one at a time, stacked in one
   grid cell and switched by the dots, which are labels of hidden radio buttons (a link would
   change the page address and drop the view); never switches by itself. In a highlighted
   banner on a wide screen the two sit side by side instead. */
.figure.covers { display: grid; position: relative; }
.figure.covers .cover { grid-area: 1 / 1; transition: opacity .35s, visibility .35s; }
.figure.covers .cover-pick {   /* parked where the dots are: clicking a dot focuses its radio, and a
                                  radio out of view would make the browser scroll to it */
  position: absolute; bottom: 18px; left: 50%; width: 1px; height: 1px; opacity: 0; pointer-events: none;
}
.figure.covers:has(.cover-pick:nth-of-type(1):checked) .cover:nth-of-type(2),
.figure.covers:has(.cover-pick:nth-of-type(2):checked) .cover:nth-of-type(1) { opacity: 0; visibility: hidden; }
.cover-dots {
  grid-area: 1 / 1; align-self: end; justify-self: center; z-index: 1; display: flex; gap: 2px;
  margin-bottom: 10px; padding: 2px 5px; border-radius: 999px; background: rgba(0, 0, 0, .45);
}
.cover-dots label {   /* 16 px to click, 8 px to see */
  width: 16px; height: 16px; padding: 4px; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .45); background-clip: content-box;
}
.figure.covers:has(.cover-pick:nth-of-type(1):checked) .cover-dots label:nth-of-type(1),
.figure.covers:has(.cover-pick:nth-of-type(2):checked) .cover-dots label:nth-of-type(2) { background-color: #fff; }
.figure.covers:has(.cover-pick:focus-visible) .cover-dots { outline: 2px solid var(--link); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .figure.covers .cover { transition: none; } }
@media (min-width: 821px) {
  body:not(:has(.theme-anchor:target)) .views .project.featured .figure.covers { grid-template-columns: 1fr 1fr; column-gap: 16px; }
  body:not(:has(.theme-anchor:target)) .views .project.featured .figure.covers .cover { grid-area: auto; opacity: 1; visibility: visible; }
  body:not(:has(.theme-anchor:target)) .views .project.featured .figure.covers img { height: auto; background: none; }
  body:not(:has(.theme-anchor:target)) .views .project.featured .figure.covers .cover-dots { display: none; }
}

/* a project shown only in the institution view (.inst-only); .lab = photos of real equipment and data
   instead of a cover: the wide photo and one more on the first row, three below */
.project.inst-only { display: none; }
body:not(:has(.theme-anchor:target)) .project.inst-only { display: grid; }
body:not(:has(.theme-anchor:target)) .views .project.lab { grid-column: 1 / -1; grid-template-columns: 1fr; padding: 34px 0 32px; }
body:not(:has(.theme-anchor:target)) .project.lab > * { grid-column: 1; }
body:not(:has(.theme-anchor:target)) .project.lab > :not(.lab-photos) { max-width: 880px; }
body:not(:has(.theme-anchor:target)) .project.lab h3 { font-size: 30px; }
.lab-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 14px; margin-bottom: 24px; }
.lab-photos figure { margin: 0; display: flex; flex-direction: column; }
.lab-photos .wide { grid-column: span 2; }
.lab-photos a { display: block; flex: 1; min-height: 0; }
.lab-photos img { width: 100%; height: 100%; object-fit: cover; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
.lab-photos figcaption { margin-top: 7px; font-size: 14px; color: var(--muted); }

.note { color: #777; font-size: 16px; }
.pubs { padding-left: 24px; }
.pubs li { margin: 0 0 16px; }
.pubs .ids { font-size: 15px; }
.prep { list-style: disc; }
.talks { list-style: none; padding: 0; }
.talks li { margin: 0 0 16px; }
.talks .kind { color: var(--muted); }

/* ---------- footer ---------- */
footer { margin-top: 56px; border-top: 1px solid var(--line); color: #999; font-size: 14px; }
footer .wrap { padding-top: 22px; padding-bottom: 30px; }

/* ---------- small screens ---------- */
@media (max-width: 820px) {
  body { font-size: 17px; }
  .bar { padding: 10px 16px; }
  .nav a { margin-left: 0; margin-right: 16px; font-size: 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .profile { padding-top: 24px; }
  .intro { padding-top: 24px; }
  .intro { grid-template-columns: 1fr; gap: 20px; }
  .intro .overview { min-height: 220px; }
  .intro p { font-size: 19px; }
  .project { grid-template-columns: 1fr; }
  .project > *, .project .figure { grid-column: 1; grid-row: auto; }
  .project .figure { margin-bottom: 16px; }
  .project .figure .placeholder { height: 220px; }
  h1 { font-size: 32px; }
  .page-title { font-size: 32px; }
  .umbrella { font-size: 23px; }
  .group > h2 { font-size: 27px; }
  .group-lead { font-size: 18px; }
  .view-switch { display: flex; width: 100%; }
  .view-switch a { flex: 1; text-align: center; padding: 6px 8px; }
  .layout-switch a:first-child { margin-left: 0; }
  .school-tabs .name { font-size: 16px; }
  .school-tabs .yrs { font-size: 13px; }
  body:has(.tl-anchor:target) .views { grid-template-columns: 1fr; row-gap: 20px; }
  body:has(.tl-anchor:target) .views::after { display: none; }
  body:has(.tl-anchor:target) .track-col > .group > h2 { font-size: 26px; }
  body:has(.tl-anchor:target) .track-col .group-lead { font-size: 17px; }
  body:has(.tl-anchor:target) .project h3 { font-size: 21px; }
  body:not(:has(.theme-anchor:target)) .views { grid-template-columns: 1fr; }
  body:not(:has(.theme-anchor:target)) .project.featured .figure img { height: auto; }
  body:not(:has(.theme-anchor:target)) .project.featured h3 { font-size: 24px; }
  body:not(:has(.theme-anchor:target)) .project.lab h3 { font-size: 24px; }
  .lab-photos { grid-template-columns: 1fr 1fr; gap: 12px 10px; }
  .lab-photos figure:not(.wide) img { height: auto; aspect-ratio: 4 / 3; }
  .lab-photos figcaption { font-size: 13px; }
  .project h3 { font-size: 22px; }
}
