@charset "UTF-8";

/* One composition, two palettes. The light study remains the default. */
:root {
  color-scheme: light;
  --paper: #edf0d8;
  --surface: #e7ebd0;
  --raised: #f3f5e5;
  --ink: #2b402f;
  --muted: #536648;
  --faint: #5d7052;
  --rule: #b7c2a4;
  --line: #91a47f;
  --accent: #536b36;
  --active: #d7e587;
  --hover: #e1e9b5;
  --specimen: #e9edce96;
  --wash: #f7f8eb;
  --disc: #b9c7a043;
  --backdrop: #1c3027a8;
  --serif: "Songti SC", "STSong", "SimSun", serif;
  --sans: "Microsoft YaHei", "PingFang SC", sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #101916;
  --surface: #172219;
  --raised: #1c2a20;
  --ink: #e2e7d4;
  --muted: #b1bfa5;
  --faint: #92a487;
  --rule: #435640;
  --line: #708e65;
  --accent: #c3d18b;
  --active: #3b4d2d;
  --hover: #2e412b;
  --specimen: #19291e91;
  --wash: #253b2b;
  --disc: #a5bc7d15;
  --backdrop: #050b08c9;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 14px/1.7 var(--sans); }
body.dialog-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border-radius: 0; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { background: var(--active); color: var(--ink); }
.skip-link { position: fixed; top: -70px; left: 24px; z-index: 100; padding: 10px 18px; background: var(--raised); border: 1px solid var(--accent); }
.skip-link:focus { top: 12px; }
body, .masthead, .category-panel, .detail-dialog, .theme-toggle { transition: background-color .25s, color .25s, border-color .25s; }

.masthead { height: 94px; max-width: 1488px; margin: 0 4.5%; border-bottom: 1px solid var(--rule); display: flex; align-items: center; gap: 38px; }
.brand { display: inline-flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand-mark { width: 36px; height: 44px; fill: none; stroke: currentColor; stroke-width: .9; }
.brand-word { font: 29px/1.1 var(--serif); letter-spacing: 5px; }
.brand-word small { display: block; margin-top: 7px; font: 9px/1.3 Georgia, serif; letter-spacing: 3.8px; }
.header-context { font-size: 11px; letter-spacing: 2px; line-height: 1.6; margin-left: 18px; }
.header-context span { display: block; margin-top: 4px; font: 9px/1.5 Arial, sans-serif; letter-spacing: 1.7px; color: var(--muted); }
.header-actions { margin-left: auto; display: flex; gap: 31px; align-items: center; }
.header-actions nav { display: flex; gap: 27px; align-items: center; }
.header-actions nav a, .header-actions nav button { border: 0; background: none; font-size: 12px; padding: 10px 0; }
.header-actions nav a:hover, .header-actions nav button:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 7px; }
.theme-toggle { min-height: 38px; display: inline-flex; gap: 8px; align-items: center; justify-content: center; padding: 6px 12px; border: 1px solid var(--rule); background: transparent; color: var(--ink); font-size: 11px; }
.theme-toggle:hover { background: var(--hover); border-color: var(--line); }
.theme-toggle svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }

/* The original four specimens surround a quiet, readable centre. */
.stage { position: relative; max-width: 1600px; margin: auto; height: min(840px, calc(100svh - 94px)); min-height: 740px; overflow: hidden; isolation: isolate; background: radial-gradient(ellipse at 49% 43%, var(--wash) 0, transparent 57%); }
.field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.field rect { opacity: .35; }
.field pattern path { stroke: var(--line); }
.contour { fill: none; stroke: var(--line); stroke-width: .75; opacity: .55; }
.thread { fill: none; stroke: var(--line); stroke-width: .85; opacity: .45; transition: d .8s cubic-bezier(.2,.7,.2,1), stroke .3s, opacity .3s; }
.thread.faint { stroke-dasharray: 2 7; opacity: .2; }
.thread.is-linked { opacity: .78; stroke: var(--accent); }
.thread.is-pulsing { stroke-width: 1.15; }
.field > g[aria-hidden] > g[stroke] { fill: var(--paper); stroke: var(--line); }
.field g[font-family] { fill: var(--muted); stroke: none; }
.node { cursor: pointer; outline: none; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.node .outline { fill: var(--specimen); stroke: var(--ink); stroke-width: 1; transition: fill .28s, stroke .28s, stroke-width .28s; }
.node .halo { fill: none; stroke: var(--line); stroke-width: .65; opacity: .85; }
.node .inner { fill: none; stroke: var(--line); stroke-width: .75; }
.node .disc { fill: var(--disc); stroke: none; }
.node:hover .outline { fill: var(--hover); stroke-width: 1.65; }
.node[aria-pressed="true"] .outline { fill: var(--active); stroke-width: 1.4; }
.node[aria-pressed="true"] .halo { stroke: var(--accent); }
.node:focus-visible { outline: none; }
.node:focus-visible .halo { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 4 3; }
.node text { fill: var(--ink); pointer-events: none; }
.node .cn { font: 30px var(--serif); letter-spacing: 5px; }
.node .en { font: 10px Georgia, serif; letter-spacing: 2px; }
.node .n { font: 10px Georgia, serif; }
.node .detail { font: 11px var(--sans); fill: var(--muted); }
.field.is-resizing .node, .field.is-resizing .thread { transition: none !important; }
.method { position: absolute; top: 23px; left: 4.5%; display: flex; align-items: center; gap: 23px; z-index: 4; }
.method > span { font-size: 11px; letter-spacing: 1px; color: var(--muted); margin-right: 4px; }
.method button { position: relative; border: 0; border-bottom: 1px solid transparent; background: none; padding: 8px 0; font-size: 12px; min-height: 39px; }
.method button[aria-pressed="true"] { border-color: var(--ink); }
.method button:hover { color: var(--accent); }
.map-hint { position: absolute; top: 23px; right: 4.5%; margin: 0; font-size: 11px; line-height: 1.9; color: var(--muted); z-index: 3; pointer-events: none; }
.phrase { position: absolute; top: min(33.5%,18.62vw); left: 50%; width: 390px; transform: translateX(-50%); text-align: center; pointer-events: none; z-index: 2; }
.phrase .eyebrow { display: block; font: 9px/1.7 Arial, sans-serif; letter-spacing: 3.5px; margin-bottom: 22px; }
.phrase h1 { font: 400 clamp(43px,4.2vw,61px)/1.45 var(--serif); letter-spacing: 9px; margin: 0; }
.phrase > p { font-size: 12px; letter-spacing: 1px; margin: 23px 0 0; color: var(--muted); }
.selection { position: absolute; bottom: 32px; left: 4.5%; width: 240px; z-index: 3; border-top: 1px solid var(--line); padding-top: 17px; }
.selection-label { font-size: 10px; letter-spacing: 1.7px; color: var(--muted); }
.selection h2 { font: 400 27px/1.5 var(--serif); letter-spacing: 3px; margin: 9px 0 7px; }
.selection h2, .panel-content h3, .detail-dialog h2 { text-wrap: balance; }
.selection > p { font-size: 12px; line-height: 1.9; margin: 0; max-width: 255px; color: var(--muted); }
.selection-status { display: block; font-size: 10px; color: var(--faint); margin: 7px 0 0; }
.text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; border: 0; border-bottom: 1px solid var(--line); padding: 8px 0 6px; min-height: 35px; font-size: 12px; background: none; line-height: 1.5; color: var(--ink); }
.text-link > span { font-size: 16px; transition: transform .2s; }
.text-link:hover { border-color: var(--accent); color: var(--accent); }
.text-link:hover > span { transform: translate(2px,-2px); }
.selection .text-link { margin-top: 13px; }
.field-note { position: absolute; right: 4.5%; bottom: 32px; text-align: right; color: var(--muted); font-size: 11px; }
.field-count { display: block; color: var(--ink); font: 34px/1.2 Georgia,serif; }
.field-note p { margin: 12px 0 0; line-height: 1.9; }
.scroll-cue { display: none; }

/* A normal text catalogue complements the spatial navigation. */
.directory { max-width: 1456px; margin: 0 4.5%; padding: 53px 0 0; border-top: 1px solid var(--rule); scroll-margin-top: 28px; }
.directory-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 35px; margin-bottom: 33px; }
.section-eyebrow { font: 9px/1.8 Arial,sans-serif; letter-spacing: 2px; color: var(--muted); }
.directory-heading h2 { font: 400 29px/1.5 var(--serif); letter-spacing: 3px; margin: 12px 0 0; }
.directory-heading > p { margin: 0 0 3px; font-size: 12px; line-height: 1.9; color: var(--muted); }
.directory-tabs { display: grid; grid-template-columns: repeat(4,1fr); border-bottom: 1px solid var(--rule); }
.directory-tabs button { display: flex; align-items: baseline; justify-content: flex-start; gap: 14px; padding: 19px 22px 18px; border: 0; border-bottom: 2px solid transparent; background: none; font: 20px/1.5 var(--serif); text-align: left; margin-bottom: -1px; }
.directory-tabs button:first-child { padding-left: 0; }
.directory-tabs button[aria-selected="true"] { border-bottom-color: var(--ink); }
.directory-tabs button:hover { color: var(--accent); background: linear-gradient(0deg,var(--hover),transparent); }
.tab-number { color: var(--faint); font: 10px/1.5 Georgia,serif; }
.tab-en { margin-left: auto; font: 8px/1.5 Arial,sans-serif; letter-spacing: 1.5px; color: var(--muted); }
.category-panel { position: relative; min-height: 300px; display: grid; grid-template-columns: 25% 1fr; gap: 5%; padding: 46px 4% 46px 0; border-bottom: 1px solid var(--rule); }
.panel-specimen { align-self: center; text-align: center; }
.panel-specimen svg { width: 183px; height: 183px; fill: none; stroke: var(--line); stroke-width: .8; }
.panel-specimen svg > g { display: none; }
[data-category="software"] .sample-software, [data-category="objects"] .sample-objects, [data-category="lab"] .sample-lab, [data-category="research"] .sample-research { display: block; }
.panel-specimen > span { display: block; color: var(--faint); letter-spacing: 1.5px; font-size: 9px; margin-top: 7px; }
.panel-content { padding-top: 7px; max-width: 680px; }
.panel-kind { font: 9px/1.7 Arial,sans-serif; letter-spacing: 2px; color: var(--muted); }
.panel-content h3 { font: 400 37px/1.5 var(--serif); letter-spacing: 3px; margin: 13px 0 17px; padding-right: 115px; }
.panel-content p { margin: 0; max-width: 535px; font-size: 14px; line-height: 2.1; color: var(--muted); }
.panel-content .text-link { margin-top: 20px; }
.panel-status { position: absolute; right: 2%; top: 54px; display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); }
.status-dot { width: 4px; height: 4px; border: 1px solid var(--accent); border-radius: 50%; }
.directory-foot { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 18px 0; font-size: 11px; color: var(--muted); }
.directory-foot .text-link { font-size: 11px; border-bottom: 0; }
.afterword { max-width: 1456px; margin: 0 4.5%; padding: 64px 3% 65px; display: grid; grid-template-columns: 55px 1fr auto; gap: 36px; align-items: center; }
.afterword > svg { width: 42px; height: 48px; fill: none; stroke: var(--accent); stroke-width: .9; }
.afterword > p { margin: 0; font: 400 27px/1.7 var(--serif); letter-spacing: 3px; }
.afterword > div { display: flex; flex-direction: column; align-items: flex-start; color: var(--muted); font-size: 12px; gap: 13px; }
footer { max-width: 1456px; margin: 0 4.5%; padding: 23px 0 30px; border-top: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between; gap: 25px; color: var(--muted); font-size: 10px; letter-spacing: 1px; }
footer > a { font: 19px/1.5 var(--serif); letter-spacing: 3px; color: var(--ink); }
footer > a span { margin-left: 12px; font: 8px/1.7 Arial,sans-serif; letter-spacing: 2px; color: var(--muted); }

.detail-dialog { width: min(640px,calc(100% - 40px)); max-height: calc(100dvh - 48px); overflow-y: auto; padding: 43px 44px 29px; border: 1px solid var(--line); background: var(--raised); color: var(--ink); box-shadow: 0 24px 100px #14201835; }
.detail-dialog::backdrop { background: var(--backdrop); }
.dialog-close { position: absolute; right: 17px; top: 13px; width: 40px; height: 40px; border: 0; background: none; font: 27px/1 Arial,sans-serif; }
.dialog-close:hover { background: var(--hover); }
.detail-dialog h2 { font: 400 34px/1.55 var(--serif); letter-spacing: 2px; margin: 24px 0; padding-right: 15px; }
#dialog-body p { font-size: 14px; line-height: 2.1; color: var(--muted); margin: 0 0 18px; }
.dialog-bottom { display: flex; justify-content: space-between; align-items: center; gap: 25px; border-top: 1px solid var(--rule); margin-top: 26px; padding-top: 18px; }
#dialog-status { font-size: 11px; color: var(--muted); }
.dialog-bottom .text-link { border: 0; }
.no-script { padding: 20px 5%; border-top: 1px solid var(--rule); background: var(--surface); color: var(--ink); }

@media(min-width:1600px) {
  .masthead, .directory, .afterword, footer { margin-left: auto; margin-right: auto; }
}
@media(max-width:1150px) {
  .header-context { margin-left: 0; }
  .header-context span { font-size: 8px; letter-spacing: 1px; }
  .header-actions { gap: 23px; }
  .tab-en { display: none; }
  .panel-content h3 { font-size: 33px; }
}
@media(min-width:601px) and (max-width:1050px) {
  .stage { height: calc(80px + 88vw + 190px); min-height: 800px; }
  .field { top: 80px; height: auto; aspect-ratio: 1000 / 880; }
  .phrase { top: calc(80px + 33.5vw); width: 340px; }
  .phrase h1 { font-size: clamp(39px,4.8vw,49px); letter-spacing: 6px; }
  .phrase .eyebrow { font-size: 8px; letter-spacing: 2px; margin-bottom: 17px; }
  .phrase > p { font-size: 11px; margin-top: 17px; }
  .selection { bottom: 22px; width: 260px; }
  .map-hint { font-size: 10px; }
  .field-note { bottom: 25px; font-size: 10px; }
  .node .detail { font-size: 12px; }
  .header-context { display: none; }
  .category-panel { grid-template-columns: 23% 1fr; gap: 5%; }
  .panel-specimen svg { width: 140px; height: 140px; }
  .panel-specimen > span { font-size: 8px; letter-spacing: 0; }
  .panel-status { top: 49px; }
  .afterword { padding-left: 0; padding-right: 0; gap: 25px; }
}
@media(min-width:601px) and (max-width:699px) {
  /* Keep the expanded lower specimens clear of the reading summary. */
  .stage { height: calc(80px + 88vw + 240px); min-height: 850px; }
}
@media(max-width:600px) {
  html { scroll-padding-top: 18px; }
  .masthead { height: 80px; margin: 0 6%; gap: 12px; }
  .brand { gap: 9px; }
  .brand-mark { width: 28px; height: 37px; }
  .brand-word { font-size: 25px; letter-spacing: 4px; }
  .brand-word small { font-size: 7px; letter-spacing: 2.7px; margin-top: 6px; }
  .header-context { display: none; }
  .header-actions { gap: 17px; }
  .header-actions nav { gap: 17px; }
  .header-actions nav a, .header-actions nav button { font-size: 11px; }
  .theme-toggle { border: 0; padding: 7px 0 7px 2px; min-width: 45px; font-size: 10px; gap: 6px; }
  .theme-toggle svg { width: 14px; height: 14px; }
  .stage { min-height: 790px; height: calc(90px + 164.286vw + 190px); }
  .field { top: 90px; height: auto; aspect-ratio: 420 / 690; }
  .method { top: 19px; left: 6%; gap: 21px; }
  .method > span { font-size: 10px; margin-right: 0; }
  .method button { font-size: 12px; }
  .map-hint { top: 68px; left: 6%; right: auto; font-size: 10px; line-height: 1.6; }
  .map-hint br { display: none; }
  .phrase { top: calc(90px + 64vw); width: 290px; }
  .phrase .eyebrow { font-size: 8px; letter-spacing: 2px; margin-bottom: 15px; }
  .phrase h1 { font-size: 36px; line-height: 1.4; letter-spacing: 5px; }
  .phrase > p { font-size: 11px; margin-top: 15px; letter-spacing: .5px; }
  .node .cn { font-size: 37px; letter-spacing: 3px; }
  .node .n, .node .detail, .node .en, .field g[font-family] { display: none; }
  .selection { left: 6%; right: 6%; bottom: 26px; width: auto; padding-top: 16px; }
  .selection-label { font-size: 10px; letter-spacing: 1px; }
  .selection h2 { font-size: 26px; margin: 7px 0 5px; max-width: calc(100% - 100px); }
  .selection > p { font-size: 12px; max-width: calc(100% - 100px); }
  .selection-status { font-size: 10px; }
  .selection .text-link { position: absolute; right: 0; top: 39px; font-size: 11px; gap: 12px; margin-top: 0; }
  .field-note { display: none; }
  .directory { margin: 0 6%; padding-top: 33px; scroll-margin-top: 18px; }
  .directory-heading { display: block; margin-bottom: 22px; }
  .section-eyebrow { font-size: 8px; letter-spacing: 1.7px; }
  .directory-heading h2 { font-size: 25px; letter-spacing: 2px; margin-top: 10px; }
  .directory-heading > p { margin-top: 14px; font-size: 12px; }
  .directory-heading > p br { display: none; }
  .directory-tabs button { padding: 14px 5px 13px; gap: 6px; font-size: 17px; justify-content: center; white-space: nowrap; }
  .directory-tabs button:first-child { padding-left: 0; }
  .tab-number { font-size: 9px; }
  .tab-en { display: none; }
  .category-panel { display: block; min-height: 350px; padding: 35px 0 31px; }
  .panel-content { position: relative; padding: 0; z-index: 1; }
  .panel-content h3 { font-size: 31px; letter-spacing: 1px; padding: 0; margin: 18px 0 17px; max-width: 88%; }
  .panel-content p { font-size: 13px; line-height: 2.1; max-width: 96%; }
  .panel-kind { font-size: 8px; letter-spacing: 1.6px; }
  .panel-status { top: 35px; right: 0; font-size: 10px; }
  .panel-specimen { position: absolute; bottom: 17px; right: -5px; opacity: .28; pointer-events: none; }
  .panel-specimen svg { width: 95px; height: 95px; }
  .panel-specimen > span { display: none; }
  .panel-content .text-link { margin-top: 20px; }
  .directory-foot { gap: 16px; align-items: flex-start; padding-top: 15px; font-size: 10px; }
  .directory-foot > span { max-width: 58%; line-height: 1.9; }
  .directory-foot .text-link { font-size: 10px; gap: 8px; padding-top: 0; white-space: nowrap; }
  .afterword { margin: 0 6%; padding: 44px 0 46px; grid-template-columns: 33px 1fr; gap: 20px; }
  .afterword > svg { width: 30px; height: 37px; }
  .afterword > p { font-size: 25px; letter-spacing: 2px; }
  .afterword > div { grid-column: 2; font-size: 11px; gap: 9px; margin-top: 5px; }
  footer { margin: 0 6%; font-size: 9px; padding-top: 20px; gap: 20px; }
  footer > a { font-size: 18px; letter-spacing: 2px; }
  footer > a span { display: none; }
  footer > span:nth-child(2) { display: none; }
  .detail-dialog { width: calc(100% - 30px); padding: 36px 25px 24px; max-height: calc(100dvh - 30px); }
  .detail-dialog h2 { font-size: 29px; line-height: 1.55; margin-top: 25px; }
  #dialog-body p { font-size: 13px; line-height: 2; }
  .dialog-bottom { gap: 15px; }
  #dialog-status { font-size: 10px; }
}
@media(max-width:350px) {
  .header-actions { gap: 12px; }
  .header-actions nav { gap: 12px; }
  .brand { gap: 6px; }
  .brand-word { font-size: 24px; }
  .brand-mark { width: 25px; }
  .phrase { width: 270px; }
  .phrase h1 { font-size: 33px; }
  .phrase .eyebrow { font-size: 7px; letter-spacing: 1.6px; }
  .phrase > p { font-size: 10px; margin-top: 12px; }
  .selection h2 { font-size: 23px; }
  .selection .text-link { gap: 6px; font-size: 10px; }
  .directory-heading h2 { font-size: 23px; }
  .directory-tabs button { font-size: 15px; gap: 5px; }
  .panel-content h3 { font-size: 28px; }
}
@media(prefers-reduced-motion:reduce) {
  :root:not([data-motion-override="true"]) { scroll-behavior: auto; }
  :root:not([data-motion-override="true"]) *,
  :root:not([data-motion-override="true"]) *::before,
  :root:not([data-motion-override="true"]) *::after { transition: none !important; animation: none !important; }
}
