@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Hedvig Letters Serif";
  src: url("assets/fonts/hedvig-letters-serif.woff2") format("woff2");
  font-display: swap;
}
:root {
  --page: #faf9f6;
  --ink: #272422;
  --body: #433d3d;
  --secondary: #5a5354;
  --accent: #822b49;
  --solid: #822b49;
  --line: #d9d3cd;
  --surface: #fffdfb;
  --serif: "Hedvig Letters Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  color-scheme: light;
}
html[data-theme="dark"] {
  --page: #211f22;
  --ink: #f4ece9;
  --body: #ded3d4;
  --secondary: #c1b6b8;
  --accent: #f1a6bd;
  --solid: #813950;
  --line: #494148;
  --surface: #2c282d;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; background: var(--page); color: var(--ink); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
figure, p, h1, h2, h3, dl, dd, ol { margin: 0; }
[hidden] { display: none !important; }
.wrap { width: min(1000px, calc(100% - 80px)); margin: 0 auto; }
.sitehead { border-bottom: 1px solid var(--line); }
.header-row { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 20px/1 var(--serif); letter-spacing: -.04em; }
.monogram { position: relative; width: 29px; height: 32px; border-radius: 3px; background: var(--solid); color: #fff5f6; display: grid; place-content: center; padding: 0 7px 4px 0; font: 20px/1 Georgia, serif; }
.monogram span { position: absolute; right: 4px; bottom: 3px; font-size: 13px; }
nav { display: flex; align-items: center; gap: 22px; font-size: 13px; font-weight: 550; }
nav a, .profile-links a, .paper-links a, .section-link, .tissue a, footer a { text-decoration: none; }
nav a:hover, .profile-links a:hover, .paper-links a:hover, .section-link:hover, .tissue a:hover, footer a:hover { text-decoration: underline; }
button { cursor: pointer; font: inherit; }
.theme-toggle { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); line-height: 1; }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle span { line-height: 1; font: normal 21px/1 "Helvetica Neue", Arial, sans-serif; }
.theme-toggle .moon, html[data-theme="dark"] .theme-toggle .sun { display: none; }
html[data-theme="dark"] .theme-toggle .moon { display: inline; }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) clamp(116px, 13vw, 148px); gap: clamp(25px, 5vw, 66px); align-items: center; padding: 32px 0 28px; }
.eyebrow { display: flex; align-items: center; gap: 8px; text-transform: uppercase; color: var(--accent); letter-spacing: .12em; font-size: 10px; font-weight: 700; }
.short-rule { width: 19px; height: 2px; background: var(--accent); }
h1,h2,h3 { font-family: var(--serif); font-weight: 400; }
.name-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 17px; margin: 4px 0 10px; }
h1 { font-size: clamp(42px, 4.9vw, 60px); line-height: 1.12; letter-spacing: -.058em; }
.han { font: 400 19px/1.5 "Songti SC", "STSong", serif; letter-spacing: .14em; color: var(--secondary); }
.bio { color: var(--body); max-width: 72ch; font-size: 15px; line-height: 1.52; }
.bio + .bio { margin-top: 5px; }
.bio strong, .authors strong { font-weight: 650; color: var(--ink); }
.profile-links, .paper-links { display: flex; align-items: baseline; flex-wrap: wrap; }
.profile-links, .paper-links, .section-link { font-size: 12.5px; color: var(--accent); font-weight: 650; }
.profile-links { margin-top: 12px; font-size: 13px; }
.profile-links a + a::before, .paper-links a + a::before { content: "·"; display: inline-block; color: var(--secondary); margin: 0 8px; }
.picture { padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 3px; }
.picture img { width: 100%; height: auto; display: block; }
.portrait figcaption { margin-top: 4px; text-align: right; color: var(--secondary); font-size: 11px; }
.ruled { border-top: 1px solid var(--line); padding: 18px 0 20px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
h2 { font-size: clamp(28px, 3vw, 35px); line-height: 1.13; letter-spacing: -.045em; }
.research-grid { display: grid; grid-template-columns: .92fr 1.16fr; gap: 26px; }
.research-note h3 { font-size: 20px; line-height: 1.2; letter-spacing: -.03em; }
.research-note p { margin-top: 4px; font-size: 13.5px; line-height: 1.46; color: var(--secondary); }
.breast-note { border-left: 1px solid var(--line); padding-left: 24px; display: grid; grid-template-columns: 1fr 104px; gap: 14px; align-items: start; }
.tissue { width: 104px; }
.tissue img { width: 100%; height: auto; display: block; border-radius: 2px; }
.tissue figcaption { margin-top: 3px; font-size: 10.5px; line-height: 1.22; color: var(--secondary); }
.publications .section-head { margin-bottom: 6px; }
.publication-summary { margin: 0 0 10px; font-size: 13px; color: var(--secondary); }
.filters { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 10px; }
.filters button { border: 1px solid var(--line); border-radius: 20px; background: transparent; color: var(--secondary); padding: 3px 10px; font-size: 12px; line-height: 1.45; }
.filters button:hover { border-color: var(--accent); }
.filters button[aria-pressed=true] { background: var(--solid); border-color: var(--solid); color: #fff; }
.paper-list { list-style: none; padding: 0; }
.paper-list li { display: grid; grid-template-columns: minmax(120px, 16.5%) minmax(0, 1fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.paper-list li:last-child { padding-bottom: 0; }
.venue { color: var(--secondary); font-size: 11.5px; line-height: 1.4; padding-top: 2px; }
.venue span { display: block; font-weight: 650; }
.paper-list h3 { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.22; letter-spacing: -.023em; }
.paper-list h3 a { text-decoration: none; }
.paper-list h3 a:hover { text-decoration: underline; }
.paper-list p { color: var(--secondary); font-size: 13px; line-height: 1.45; margin-top: 3px; }
.paper-list .authors { font-size: 12.5px; }
.paper-links { margin-top: 4px; font-size: 12px; }
.background-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8%; }
.subhead { font: 650 14px var(--sans); margin-bottom: 10px; }
.timeline > div + div { margin-top: 10px; }
.timeline dt { font-size: 11.5px; color: var(--accent); font-weight: 600; }
.timeline em { font-weight: 400; }
.timeline dd { font-size: 13px; line-height: 1.45; color: var(--secondary); }
.timeline dd strong { display: block; color: var(--ink); font-size: 14px; font-weight: 600; }
footer { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 18px; padding: 17px 0 24px; border-top: 1px solid var(--line); color: var(--secondary); font-size: 12px; }
footer > span { color: var(--ink); font: 16px var(--serif); }
.footer-han { font: 12px "Songti SC", serif; }
.up { margin-left: auto; }
.sr,.skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 5; top: 5px; left: 10px; padding: 6px; background: var(--surface); }
@media (max-width: 820px) {
  .wrap { width: calc(100% - 48px); }
  .research-grid { grid-template-columns: 1fr 1.2fr; gap: 16px; }
  .breast-note { padding-left: 16px; grid-template-columns: 1fr 78px; gap: 10px; }
  .tissue { width: 78px; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 36px); }
  .header-row { min-height: 50px; gap: 8px; }
  .brand > span:last-child { display: none; }
  nav { gap: 14px; font-size: 12px; }
  .theme-toggle { width: 30px; height: 30px; }
  .intro { grid-template-columns: minmax(0, 1fr) 64px; gap: 0 10px; padding: 22px 0 18px; }
  .intro-copy { display: contents; }
  .eyebrow,.name-line { grid-column: 1; }
  .eyebrow { font-size: 9px; }
  .name-line { margin: 3px 0 0; gap: 0 9px; }
  h1 { font-size: clamp(31px, 6.8vw, 41px); }
  .han { font-size: 15px; }
  .portrait { grid-column: 2; grid-row: 1 / 3; }
  .portrait figcaption { display: none; }
  .picture { padding: 2px; }
  .bio,.profile-links { grid-column: 1 / -1; }
  .name-line + .bio { margin-top: 10px; }
  .bio { font-size: 14px; }
  .profile-links { margin-top: 9px; }
  .ruled { padding: 15px 0 17px; }
  .section-head { margin-bottom: 10px; }
  .research-grid { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .breast-note { padding: 0; border: 0; grid-template-columns: 1fr 72px; gap: 11px; }
  .tissue { width: 72px; }
  .research-note h3 { font-size: 18.5px; }
  .tissue figcaption { font-size: 10px; }
  .paper-list li { display: block; padding: 11px 0; }
  .venue { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; padding: 0; margin-bottom: 4px; }
  .background-grid { grid-template-columns: 1fr; gap: 17px; }
  footer { padding-right: 45px; }
  .up { margin-left: 0; }
}
@media (max-width: 360px) {
  nav { gap: 10px; }
  .profile-links a + a::before { margin: 0 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
