@font-face {
  font-family:Nushu;
  src:url('./assets/NotoSansNushu-Regular.ttf') format('truetype');
  font-display:swap;
}
:root {
  --paper:#f3f6fa;
  --ink:#22354b;
  --blue:#244d75;
  --muted:#50677a;
  --pink:#d7bacb;
  --line:#d5dfe8;
  --serif:'FangSong','STFangsong','Songti SC','SimSun',serif;
  --sans:'DengXian','PingFang SC','Microsoft YaHei',sans-serif;
}
* {
  box-sizing:border-box;
}
html {
  scroll-behavior:smooth;
}
body {
  margin:0;
  color:var(--ink);
  background:var(--paper);
  font:16px/1.75 var(--sans);
  -webkit-font-smoothing:antialiased;
}
body:has(dialog[open]) {
  overflow:hidden;
}
button,input,textarea,select {
  font:inherit;
}
button,a {
  color:inherit;
  -webkit-tap-highlight-color:transparent;
}
button {
  cursor:pointer;
  background:none;
  border:0;
}
button:disabled {
  opacity:.45;
  cursor:default;
}
a {
  text-decoration:none;
}
a:hover {
  color:var(--blue);
}
:focus-visible {
  outline:3px solid #aa7394;
  outline-offset:5px;
}
::selection {
  background:#e2cfdd;
}
h1,h2,h3,p,figure {
  margin:0;
}
h1,h2,h3 {
  font-weight:500;
}
h1,h2,.footer-brand {
  font-family:var(--serif);
}
svg {
  display:block;
}
.glyph {
  font-family:Nushu,serif;
  font-weight:400;
}
.muted,.local-note {
  color:var(--muted);
  font-size:14px;
}
.eyebrow {
  display:block;
  color:var(--muted);
  font-size:14px;
}
.skip-link {
  position:fixed;
  z-index:100;
  top:-100px;
  left:20px;
  background:var(--blue);
  color:white;
  padding:12px 20px;
}
.skip-link:focus {
  top:12px;
}
/* The route target receives programmatic focus;
controls keep visible focus rings. */
#main:focus {
  outline:none;
}
/* Every main section uses the same content boundary. */
.section-shell {
  width:100%;
  max-width:1240px;
  margin-inline:auto;
  padding-inline:40px;
}
.section-space {
  padding-block:90px;
}
.site-header {
  max-width:1240px;
  margin:auto;
  min-height:106px;
  padding:22px 40px;
  display:flex;
  align-items:center;
  gap:32px;
}
.brand {
  display:flex;
  align-items:center;
  gap:12px;
  flex-shrink:0;
}
.brand-mark {
  width:38px;
  color:var(--blue);
}
.brand-mark svg {
  width:38px;
  height:44px;
  stroke:currentColor;
  stroke-width:1.3;
  fill:none;
}
.brand-title {
  font-family:var(--serif);
  color:var(--blue);
  font-size:25px;
  letter-spacing:3px;
  line-height:1.2;
}
.brand-title small {
  display:block;
  font-family:var(--sans);
  letter-spacing:1px;
  font-size:10px;
  margin-top:9px;
}
.site-header nav {
  display:flex;
  gap:26px;
  margin-left:auto;
  font-size:14px;
}
.site-header nav a {
  padding:10px 0;
  color:var(--muted);
  white-space:nowrap;
}
.site-header nav a.active {
  color:var(--blue);
  box-shadow:0 2px var(--pink);
}
.collection-trigger {
  display:flex;
  align-items:center;
  gap:7px;
  font-size:13px;
  white-space:nowrap;
  padding:10px 0;
}
.collection-trigger svg {
  width:17px;
  height:20px;
  stroke:currentColor;
  fill:none;
  stroke-width:1.4;
}
.collection-trigger b {
  font-size:11px;
  border-radius:50%;
  background:#e3eaf2;
  width:22px;
  line-height:22px;
  font-weight:400;
}
.home-intro {
  padding-top:28px;
}
.hero {
  display:grid;
  grid-template-columns:1fr 1.04fr;
  gap:48px;
  align-items:center;
}
.place-label {
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--muted);
  font-size:14px;
  margin-bottom:28px;
}
.thread-flower {
  color:#aa7394;
  font-size:27px;
}
.hero h1 {
  font-size:clamp(38px,4.15vw,58px);
  line-height:1.45;
  letter-spacing:1px;
  color:var(--blue);
}
.hero-description {
  color:var(--muted);
  line-height:1.95;
  margin-top:24px;
}
.hero-actions {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:24px;
  margin-top:32px;
}
.button {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  min-height:48px;
  border:1px solid transparent;
  border-radius:8px;
  padding:11px 23px;
  font-size:14px;
}
.button.primary,.button.dark {
  background:var(--blue);
  color:#fff;
}
.button.primary:hover,.button.dark:hover {
  background:#1b3c5d;
}
.button.secondary,.button.outline {
  border-color:#aebfd0;
  color:var(--blue);
}
.button.secondary:hover,.button.outline:hover {
  background:#e6edf5;
}
.button.pale {
  background:#f5f6fb;
  color:var(--blue);
}
.text-link {
  font-size:14px;
  border-bottom:1px solid #a7b9cb;
  padding-bottom:3px;
}
.text-button {
  padding:0;
  font-size:14px;
  text-decoration:underline;
  text-underline-offset:5px;
}
.hero-footnote {
  font-family:var(--serif);
  color:var(--blue);
  font-size:15px;
  margin-top:36px;
}
.hero-footnote span {
  font-family:var(--sans);
  font-size:12px;
  color:var(--muted);
  display:block;
  margin-top:4px;
}
.hero-art {
  position:relative;
  height:535px;
  border-radius:75px 18px 75px 18px;
  overflow:hidden;
  background:var(--blue);
}
.hero-art img {
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:55% center;
}
.hero-art-words {
  position:absolute;
  left:36px;
  top:30px;
  font-size:74px;
  color:#f0f3f9;
  writing-mode:vertical-rl;
  line-height:1.4;
  opacity:.85;
}
.hero-entry {
  position:absolute;
  bottom:49px;
  left:27px;
  right:27px;
  background:#fff;
  border-radius:12px;
  display:flex;
  align-items:center;
  gap:20px;
  text-align:left;
  padding:12px 22px;
}
.hero-entry>.glyph {
  font-size:55px;
  line-height:1.2;
  color:var(--blue);
}
.hero-entry>span:nth-child(2) {
  color:var(--muted);
  font-size:12px;
}
.hero-entry b {
  display:block;
  color:var(--blue);
  font-size:19px;
  font-weight:400;
}
.hero-entry b small {
  font-size:12px;
  margin-left:12px;
}
.hero-entry i {
  margin-left:auto;
  font-size:21px;
  font-style:normal;
}
.hero-art figcaption {
  position:absolute;
  bottom:20px;
  left:0;
  width:100%;
  text-align:center;
  color:#e5edf6;
  font-size:10px;
}
.pathways {
  margin-top:42px;
}
.pathway-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  background:#fff;
  border-radius:20px;
  padding-block:28px;
}
.pathway {
  display:flex;
  align-items:center;
  gap:17px;
  padding:0 27px;
  min-height:62px;
  border-right:1px solid var(--line);
}
.pathway:last-child {
  border-right:0;
}
.pathway-icon {
  color:var(--blue);
  flex-shrink:0;
}
.pathway-icon svg {
  width:32px;
  height:32px;
  stroke:currentColor;
  stroke-width:1.2;
  fill:none;
}
.pathway h2 {
  font-size:22px;
  color:var(--blue);
}
.pathway p {
  font-size:12px;
  color:var(--muted);
  margin-top:3px;
}
.pathway-cue {
  margin-left:auto;
  color:#92708b;
  font-size:18px;
}
.section-heading {
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:20px;
  margin-bottom:30px;
}
.section-heading h2 {
  font-size:36px;
  color:var(--blue);
}
.section-heading p {
  color:var(--muted);
  font-size:15px;
  margin-top:10px;
}
.featured-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:22px;
}
.glyph-card {
  position:relative;
  background:#fff;
  border-radius:22px 7px 22px 7px;
  border:1px solid #e1e7ee;
  min-width:0;
}
.glyph-card:hover {
  border-color:#9eb3c7;
}
.glyph-open {
  padding:24px;
  width:100%;
  text-align:left;
  display:block;
}
.card-topline {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:12px;
  color:var(--muted);
  padding-right:22px;
}
.card-topline small {
  margin-left:auto;
  font-size:10px;
}
.glyph-open>.glyph {
  display:block;
  text-align:center;
  color:var(--blue);
  font-size:112px;
  line-height:1.55;
  margin-block:20px 16px;
}
.glyph-card-bottom {
  display:flex;
  align-items:center;
  gap:14px;
}
.glyph-card-bottom b {
  font-family:var(--serif);
  font-weight:400;
  font-size:25px;
}
.glyph-card-bottom>span {
  font-size:12px;
  color:var(--muted);
}
.glyph-card-bottom i {
  margin-left:auto;
  font-style:normal;
  color:var(--blue);
}
.save-button {
  position:absolute;
  right:11px;
  top:14px;
  width:30px;
  height:32px;
  display:grid;
  place-items:center;
  color:#7a91a4;
  z-index:1;
}
.save-button svg {
  width:14px;
  height:18px;
  stroke:currentColor;
  fill:none;
  stroke-width:1.5;
}
.save-button.is-saved {
  color:#9c5d87;
}
.save-button.is-saved svg {
  fill:#e6cdda;
}
.catalog-foot {
  font-size:13px;
  color:var(--muted);
  margin-top:22px;
}
.source-link {
  color:var(--blue);
  font-size:13px;
  text-decoration:underline;
  text-underline-offset:4px;
}
.catalog-foot .source-link {
  margin-left:12px;
}
.home-stories {
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:48px;
}
.stories-heading {
  position:relative;
  background:#dae5ef;
  border-radius:6px 60px 6px 60px;
  padding:42px;
  overflow:hidden;
  display:flex;
  align-items:end;
  min-height:390px;
}
.stories-heading>.glyph {
  position:absolute;
  font-size:145px;
  top:-16px;
  right:20px;
  color:#b5c8d9;
}
.stories-heading>div {
  position:relative;
}
.stories-heading h2 {
  font-size:36px;
  color:var(--blue);
  line-height:1.5;
}
.stories-heading p {
  margin-top:17px;
  color:var(--muted);
}
.story-preview-list {
  align-self:center;
}
.story-preview-list a {
  display:block;
  position:relative;
  padding:22px 40px 22px 0;
  border-bottom:1px solid var(--line);
}
.story-preview-list a:first-child {
  padding-top:0;
}
.story-preview-list a:last-child {
  border-bottom:0;
}
.story-preview-tag {
  font-size:12px;
  color:#8a6480;
}
.story-preview-list h3 {
  font-size:23px;
  font-family:var(--serif);
  margin-top:4px;
  color:var(--blue);
}
.story-preview-list p {
  font-size:14px;
  color:var(--muted);
  margin-top:8px;
}
.story-preview-list svg {
  width:23px;
  height:23px;
  stroke:currentColor;
  fill:none;
  stroke-width:1.2;
  position:absolute;
  right:0;
  top:50%;
}
.studio-banner {
  display:grid;
  grid-template-columns:1fr .7fr;
  gap:40px;
  align-items:center;
  background:#eadfe9;
  border-radius:30px;
  padding:50px 60px;
  overflow:hidden;
}
.studio-banner h2 {
  font-size:37px;
  line-height:1.5;
  color:var(--blue);
}
.studio-banner p {
  font-size:14px;
  color:#5f5e73;
  margin:18px 0 24px;
}
.mini-letter {
  max-width:265px;
  width:100%;
  background:#fafbfe;
  border:1px dashed #aab9c9;
  outline:10px solid #fafbfe;
  transform:rotate(7deg);
  text-align:center;
  padding:18px;
  justify-self:center;
  color:var(--blue);
}
.mini-letter>span {
  font-family:var(--serif);
  font-size:14px;
}
.mini-letter b {
  display:block;
  font-size:104px;
  line-height:1.4;
}
.mini-letter em {
  font:13px var(--serif);
  display:block;
  margin:10px 0;
}
.mini-letter small {
  font-size:9px;
  color:var(--muted);
}
.page-intro {
  padding-top:48px;
  padding-bottom:40px;
}
.page-intro h1 {
  font-size:42px;
  line-height:1.5;
  color:var(--blue);
}
.page-intro p {
  font-size:15px;
  color:var(--muted);
  max-width:740px;
  margin-top:18px;
}
.catalog-section {
  padding-bottom:80px;
}
.catalog-layout {
  display:grid;
  grid-template-columns:160px minmax(0,1fr);
  gap:36px;
}
.catalog-sidebar h2 {
  font:14px var(--sans);
  margin-bottom:20px;
}
.filter-row {
  display:flex;
  flex-direction:column;
  gap:5px;
}
.filter {
  display:flex;
  align-items:center;
  gap:14px;
  padding:10px 14px;
  border-radius:8px;
  font-size:14px;
  color:var(--muted);
}
.filter small {
  margin-left:auto;
  font-size:11px;
}
.filter.active {
  background:#dde7f1;
  color:var(--blue);
}
.catalog-sidebar>p {
  color:var(--muted);
  font-size:12px;
  margin-top:28px;
}
.catalog-toolbar {
  display:flex;
  gap:20px;
  align-items:center;
}
.search-field {
  display:flex;
  gap:12px;
  align-items:center;
  background:#fff;
  border:1px solid var(--line);
  border-radius:8px;
  padding:11px 15px;
  flex:1;
  min-width:0;
}
.search-field svg {
  width:20px;
  height:20px;
  stroke:currentColor;
  fill:none;
  stroke-width:1.4;
  flex-shrink:0;
}
.search-field input {
  border:0;
  background:none;
  min-width:0;
  width:100%;
  color:var(--ink);
  font-size:14px;
}
.search-field kbd {
  color:var(--muted);
  font-size:13px;
}
.sort-label {
  font-size:12px;
  color:var(--muted);
  display:flex;
  align-items:center;
  gap:8px;
}
.sort-label select {
  border:0;
  background:none;
  font-size:13px;
  padding:8px 0;
  color:var(--ink);
}
.result-count {
  font-size:13px;
  color:var(--muted);
  padding:22px 0 16px;
}
.result-count b {
  font-weight:400;
  color:var(--blue);
}
.catalog-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
}
.data-explainer {
  max-width:740px;
  margin:55px 0 0 196px;
}
.data-explainer h2 {
  font-family:var(--sans);
  font-size:18px;
}
.data-explainer p {
  color:var(--muted);
  font-size:14px;
  margin:12px 0;
}
.empty-state {
  padding:55px 15px;
  text-align:center;
}
.empty-state h2,.empty-state h3 {
  font-size:25px;
}
.empty-state p {
  color:var(--muted);
  margin:15px 0 22px;
}
.atlas-section {
  padding-bottom:80px;
}
.atlas-toolbar {
  display:flex;
  gap:12px;
  margin-bottom:22px;
}
.atlas-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) 290px;
  border-radius:20px;
  overflow:hidden;
  border:1px solid var(--line);
}
.graph-canvas {
  position:relative;
  width:100%;
  aspect-ratio:860/560;
  min-height:410px;
  background:#fff;
}
.graph-edges {
  position:absolute;
  width:100%;
  height:100%;
}
.graph-edges line {
  stroke:#c2d0df;
  stroke-width:1.3;
}
.graph-edges text {
  font-size:13px;
  fill:#526c83;
  stroke:#fff;
  stroke-width:7px;
  paint-order:stroke;
}
.graph-edges .edge-highlight line {
  stroke:#99718d;
  stroke-width:2;
}
.graph-node {
  position:absolute;
  transform:translate(-50%,-50%);
  width:90px;
  height:62px;
  border-radius:12px;
  border:1px solid #b6c8d9;
  background:#f1f5fa;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}
.graph-node small {
  font-size:10px;
  color:var(--muted);
}
.graph-node b {
  font-size:15px;
  font-weight:400;
}
.graph-node.center-node {
  width:104px;
  height:76px;
  border-radius:20px;
  background:#e6d5e2;
  border-color:#c3a7bb;
}
.graph-node.selected {
  outline:2px solid var(--blue);
  outline-offset:4px;
}
.graph-annotation {
  position:absolute;
  bottom:17px;
  left:22px;
  color:var(--muted);
  font-size:12px;
}
.node-panel {
  background:var(--blue);
  color:#fff;
  padding:30px;
}
.panel-label {
  display:block;
  font-size:12px;
  color:#d7e3ef;
  margin-bottom:28px;
}
.category-label {
  font-size:12px;
  color:#8d6480;
}
.node-panel .category-label {
  color:#e3c7d9;
}
.node-panel h2 {
  font-size:30px;
  margin:5px 0 15px;
}
.node-panel p {
  font-size:14px;
  line-height:1.9;
}
.panel-source {
  font-size:11px;
  margin:24px 0;
}
.panel-source>span {
  display:block;
  color:#d7e3ef;
  margin-bottom:6px;
}
.node-panel .source-link {
  color:#fff;
  font-size:12px;
}
.atlas-note {
  color:var(--muted);
  font-size:13px;
  margin-top:18px;
}
.story-section {
  padding-bottom:80px;
}
.story-tabs {
  display:flex;
  gap:10px;
  margin-bottom:24px;
}
.story-tab {
  border-radius:8px;
  padding:9px 19px;
  font-size:14px;
  color:var(--muted);
}
.story-tab.active {
  color:var(--blue);
  background:#dde7f1;
}
.reader {
  display:grid;
  grid-template-columns:.7fr 1.3fr;
  background:#fff;
  border-radius:15px;
  overflow:hidden;
}
.reader-art {
  position:relative;
  min-height:570px;
  background:#274e74;
  color:white;
  padding:33px;
  overflow:hidden;
}
.reader-art::after {
  content:'';
  position:absolute;
  inset:18px;
  border:1px dashed #6784a0;
  pointer-events:none;
}
.reader-cover-title {
  font-family:var(--serif);
  font-size:25px;
}
.reader-cover-title small {
  font:12px var(--sans);
}
.reader-glyphs {
  position:absolute;
  font-size:130px;
  opacity:.65;
  left:28%;
  top:135px;
  writing-mode:vertical-rl;
  letter-spacing:20px;
  color:#d7bacb;
}
.reader-tag {
  position:absolute;
  bottom:60px;
  left:34px;
  font-family:var(--serif);
  font-size:30px;
}
.reader-art-caption {
  position:absolute;
  bottom:32px;
  left:34px;
  font-size:10px;
  color:#d6e2ef;
}
.reader-body {
  padding:40px 45px;
}
.reader-topline {
  display:flex;
  gap:20px;
  justify-content:space-between;
  color:var(--muted);
  font-size:11px;
}
.reader-body h2 {
  font-size:31px;
  margin:24px 0;
  color:var(--blue);
}
.chapter-copy {
  min-height:240px;
}
.chapter-copy h3 {
  font-size:19px;
  margin-bottom:17px;
}
.chapter-copy p {
  font-size:16px;
  line-height:1.95;
}
.chapter-copy .reader-detail {
  font-size:13px;
  color:var(--muted);
  margin-top:17px;
}
.reader-controls {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:26px 0;
  font-size:13px;
}
.reader-progress {
  display:flex;
  gap:8px;
}
.reader-progress button {
  border-radius:50%;
  width:28px;
  height:28px;
  padding:0;
  color:var(--muted);
}
.reader-progress button.active {
  background:#e6d5e2;
  color:var(--blue);
}
.reader-sources {
  border-top:1px solid var(--line);
  padding-top:18px;
  font-size:11px;
}
.reader-sources>span {
  display:block;
  color:var(--muted);
  margin-bottom:7px;
}
.reader-sources a {
  font-size:11px;
  display:block;
  margin-bottom:5px;
}
.quiz-invite {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  background:#e7dfe9;
  border-radius:12px;
  padding:28px 35px;
  margin-top:30px;
}
.quiz-invite h3 {
  font-size:20px;
}
.quiz-invite p {
  font-size:13px;
  color:var(--muted);
  margin-top:5px;
}
.studio-layout {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:100px;
  align-items:start;
  padding-bottom:80px;
}
.editor-section {
  margin-bottom:32px;
}
.editor-section h2 {
  font-size:25px;
  color:var(--blue);
  margin-bottom:19px;
}
.field-label {
  display:block;
  font-size:13px;
  color:var(--muted);
  margin-top:18px;
}
.field-label input,.field-label textarea,.field-label select {
  display:block;
  width:100%;
  margin-top:7px;
  border:1px solid #bdcddd;
  background:#fff;
  border-radius:7px;
  padding:12px 15px;
  font-size:16px;
  color:var(--ink);
}
.field-label textarea {
  resize:vertical;
}
.field-label small {
  float:right;
}
.editor-section .text-button {
  color:var(--blue);
  font-size:12px;
  margin-top:13px;
}
.paper-options {
  display:flex;
  gap:15px;
}
.paper-option {
  display:flex;
  align-items:center;
  gap:8px;
  border:1px solid var(--line);
  border-radius:7px;
  padding:10px 16px;
  font-size:13px;
  background:#fff;
}
.paper-option.active {
  border-color:var(--blue);
  box-shadow:inset 0 0 0 1px var(--blue);
}
.swatch {
  width:17px;
  height:17px;
  border-radius:50%;
  border:1px solid #adb9c7;
}
.swatch.paper {
  background:#f3f6fa;
}
.swatch.cinnabar {
  background:#eadbe4;
}
.swatch.moss {
  background:#244d75;
}
.editor-actions {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:35px;
}
.studio-controls>.local-note {
  margin-top:14px;
  font-size:12px;
}
.studio-preview {
  position:sticky;
  top:30px;
  padding:20px 26px 15px;
  background:#e0e8f1;
  border-radius:15px;
  text-align:center;
}
.preview-label {
  display:flex;
  justify-content:space-between;
  color:var(--muted);
  font-size:12px;
  margin-bottom:20px;
}
.studio-preview canvas {
  width:100%;
  height:auto;
  display:block;
  box-shadow:0 9px 22px #20395118;
}
.studio-preview>p {
  font-size:11px;
  color:var(--muted);
  margin-top:14px;
}
.sources-layout {
  display:grid;
  grid-template-columns:1.4fr .8fr;
  gap:70px;
  padding-bottom:80px;
  align-items:start;
}
.sources-layout h2 {
  font-size:26px;
  color:var(--blue);
}
.source-row {
  padding-block:25px;
  border-bottom:1px solid var(--line);
}
.source-row h3 {
  font-size:17px;
  margin-bottom:7px;
}
.source-row small {
  color:var(--muted);
  font-size:12px;
}
.source-row p {
  font-size:14px;
  color:var(--muted);
  margin:10px 0;
}
.reading-note {
  background:#e6edf5;
  border-radius:13px;
  padding:28px;
}
.reading-note h2 {
  font-size:23px;
  margin-bottom:20px;
}
.reading-note p {
  font-size:14px;
  color:var(--muted);
  margin-bottom:17px;
}
.reading-note .button {
  font-size:12px;
  padding-inline:13px;
}
.reading-note p.local-note {
  font-size:11px;
  margin:12px 0 0;
}
.site-footer {
  width:calc(100% - 80px);
  max-width:1160px;
  margin:auto;
  padding:38px 0;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
  border-top:1px solid var(--line);
}
.footer-brand {
  font-size:24px;
  color:var(--blue);
}
.footer-brand span {
  display:block;
  font:12px var(--sans);
  color:var(--muted);
  margin-top:8px;
}
.site-footer>div {
  display:flex;
  flex-wrap:wrap;
  justify-content:end;
  align-items:center;
  gap:10px 20px;
  font-size:12px;
}
.site-footer>div>span {
  width:100%;
  color:var(--muted);
  text-align:right;
}
.site-footer .text-button {
  font-size:12px;
}
.site-footer>p {
  font-size:10px;
  color:var(--muted);
  grid-column:1/-1;
}
.initial-loading {
  padding:100px 40px;
  text-align:center;
}
dialog {
  padding:0;
  border:0;
  color:var(--ink);
  background:var(--paper);
  border-radius:15px;
  max-height:90dvh;
  overflow:auto;
}
dialog::backdrop {
  background:#162a4166;
  backdrop-filter:blur(4px);
}
.close-dialog {
  position:absolute;
  right:13px;
  top:11px;
  width:36px;
  height:36px;
  font-size:27px;
  z-index:3;
  border-radius:50%;
  background:#f3f6fae8;
  color:var(--blue);
}
.detail-dialog {
  width:min(900px,92vw);
}
#detail-content {
  display:grid;
  grid-template-columns:.75fr 1.25fr;
}
.detail-glyph-panel {
  background:#dce7f0;
  padding:50px 25px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}
.detail-glyph {
  font-size:190px;
  line-height:1.7;
  color:var(--blue);
}
.detail-code {
  font-size:12px;
  color:var(--muted);
}
.detail-text {
  padding:42px 38px;
}
.detail-text h2 {
  font-size:44px;
  font-family:var(--serif);
  margin:8px 0 20px;
  color:var(--blue);
}
.detail-text h2 small {
  font:12px var(--sans);
  margin-left:12px;
  color:var(--muted);
}
.reading-line {
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-size:13px;
  margin:12px 0 25px;
}
.reading-line b {
  font-weight:400;
  font-size:18px;
}
.detail-text h3 {
  font-size:14px;
  margin-bottom:10px;
}
.alias-list {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:15px;
}
.alias-list span {
  background:#e0e8f1;
  font-size:13px;
  padding:3px 10px;
  border-radius:5px;
}
.detail-text>.muted {
  font-size:12px;
}
.curator-note {
  margin-top:25px;
  border-top:1px solid var(--line);
  padding-top:20px;
}
.curator-note h3 {
  margin-top:8px;
  font-size:17px;
}
.curator-note p {
  font-size:13px;
  color:var(--muted);
}
.detail-actions {
  display:flex;
  align-items:center;
  gap:15px;
  margin-top:25px;
}
.detail-actions .save-button {
  position:static;
  flex-shrink:0;
}
.circle-button {
  width:34px;
  height:34px;
  border:1px solid #b4c5d5;
  border-radius:50%;
}
.detail-source {
  border-top:1px solid var(--line);
  margin-top:25px;
  padding-top:15px;
  font-size:11px;
  color:var(--muted);
}
.detail-source .source-link {
  font-size:11px;
}
.alternate-readings {
  font-size:12px;
  margin-top:15px;
  color:var(--muted);
}
.alternate-readings .glyph {
  font-size:28px;
  vertical-align:middle;
  margin-right:10px;
}
.manual-share {
  margin-top:18px;
  font-size:12px;
}
.manual-share input {
  display:block;
  width:100%;
  padding:8px;
  margin-top:8px;
  border:1px solid var(--line);
}
.collection-dialog {
  width:min(850px,92vw);
  padding:40px;
}
.collection-dialog h2 {
  font-size:31px;
  color:var(--blue);
}
.collection-dialog>.muted {
  margin-top:12px;
}
.collection-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  margin:28px 0;
}
.collection-grid .glyph-open {
  padding:18px;
}
.collection-grid .glyph-open>.glyph {
  font-size:90px;
}
.quiz-dialog {
  width:min(600px,92vw);
  padding:44px;
}
.quiz-dialog h2 {
  font:26px/1.6 var(--serif);
  color:var(--blue);
  margin:16px 0 24px;
}
.quiz-options {
  display:grid;
  gap:12px;
}
.quiz-options button {
  text-align:left;
  padding:15px;
  border:1px solid #bdcddd;
  border-radius:8px;
  background:white;
  font-size:14px;
  display:flex;
  gap:15px;
}
.quiz-options button.correct {
  border-color:#547967;
  background:#e2eee8;
  opacity:1;
}
.quiz-options button.incorrect {
  border-color:#a87693;
  background:#eee0e9;
  opacity:1;
}
.quiz-explanation {
  font-size:14px;
  margin-block:23px;
}
.quiz-explanation p {
  margin-block:10px;
}
.quiz-options+.muted {
  margin-top:20px;
}
.quiz-score {
  font-size:75px;
  color:var(--blue);
}
.quiz-score small {
  font-size:24px;
}
.quiz-score+p {
  margin:10px 0 22px;
}
.toast {
  position:fixed;
  z-index:20;
  bottom:30px;
  left:50%;
  transform:translate(-50%,20px);
  background:var(--blue);
  color:#fff;
  border-radius:8px;
  padding:13px 22px;
  font-size:13px;
  max-width:90vw;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s,transform .2s;
}
.toast.show {
  opacity:1;
  transform:translate(-50%,0);
}
@media(max-width:1050px) {
  .site-header {
    gap:20px;
  }
  .site-header nav {
    gap:18px;
    font-size:13px;
  }
  .brand-title {
    font-size:22px;
  }
  .brand-mark,.brand-mark svg {
    width:30px;
  }
  .hero {
    gap:30px;
  }
  .hero-art {
    height:500px;
  }
  .hero h1 {
    font-size:44px;
  }
  .hero-description {
    font-size:15px;
  }
  .pathway {
    padding-inline:20px;
    gap:12px;
  }
  .pathway p {
    font-size:11px;
  }
  .pathway-cue {
    display:none;
  }
  .glyph-open {
    padding:18px;
  }
  .glyph-open>.glyph {
    font-size:100px;
  }
  .atlas-layout {
    grid-template-columns:minmax(0,1fr) 250px;
  }
  .node-panel {
    padding:25px;
  }
  .graph-node {
    width:80px;
  }
  .reader-body {
    padding:32px;
  }
  .reader-topline {
    flex-direction:column;
    gap:4px;
  }
  .studio-layout {
    gap:55px;
  }
}
@media(max-width:800px) {
  .site-header {
    flex-wrap:wrap;
    justify-content:space-between;
    gap:15px;
    padding-top:18px;
    padding-bottom:12px;
  }
  .site-header nav {
    order:3;
    width:100%;
    justify-content:space-between;
    margin:0;
  }
  .collection-trigger {
    margin-left:auto;
  }
  .hero h1 {
    font-size:36px;
  }
  .hero-art {
    height:425px;
  }
  .hero-actions {
    gap:16px;
  }
  .hero-actions .button {
    padding-inline:16px;
  }
  .hero-footnote {
    margin-top:24px;
  }
  .hero-entry {
    left:16px;
    right:16px;
    padding:10px 14px;
    gap:12px;
  }
  .hero-entry>.glyph {
    font-size:44px;
  }
  .hero-entry i {
    display:none;
  }
  .hero-art-words {
    left:22px;
    font-size:60px;
  }
  .pathway {
    flex-direction:column;
    align-items:start;
    gap:10px;
  }
  .pathway h2 {
    font-size:21px;
  }
  .featured-grid {
    gap:14px;
  }
  .glyph-open {
    padding:15px;
  }
  .card-topline {
    flex-direction:column;
    align-items:start;
    gap:2px;
  }
  .card-topline small {
    margin:0;
  }
  .glyph-open>.glyph {
    font-size:85px;
  }
  .glyph-card-bottom {
    gap:8px;
  }
  .glyph-card-bottom>span {
    font-size:10px;
  }
  .home-stories {
    gap:30px;
  }
  .stories-heading {
    padding:28px;
  }
  .stories-heading h2 {
    font-size:30px;
  }
  .stories-heading p {
    font-size:14px;
  }
  .studio-banner {
    padding:38px;
  }
  .studio-banner h2 {
    font-size:30px;
  }
  .catalog-layout {
    grid-template-columns:1fr;
    gap:20px;
  }
  .catalog-sidebar h2,.catalog-sidebar>p {
    display:none;
  }
  .filter-row {
    flex-direction:row;
    flex-wrap:wrap;
    gap:5px;
  }
  .filter {
    gap:10px;
  }
  .data-explainer {
    margin-left:0;
  }
  .catalog-grid .card-topline {
    flex-direction:row;
  }
  .catalog-grid .card-topline small {
    margin-left:auto;
  }
  .atlas-layout {
    grid-template-columns:1fr;
  }
  .graph-canvas {
    min-height:380px;
  }
  .panel-label {
    margin-bottom:15px;
  }
  .panel-source {
    margin:18px 0;
  }
  .node-panel p {
    max-width:600px;
  }
  .reader {
    grid-template-columns:.65fr 1fr;
  }
  .reader-body {
    padding:28px;
  }
  .reader-body h2 {
    font-size:27px;
  }
  .reader-controls {
    flex-wrap:wrap;
  }
  .reader-progress {
    order:3;
    width:100%;
    justify-content:center;
  }
  .reader-glyphs {
    font-size:100px;
  }
  .chapter-copy p {
    font-size:15px;
  }
  .studio-layout {
    gap:35px;
  }
  .paper-options {
    gap:8px;
    flex-wrap:wrap;
  }
  .paper-option {
    padding:9px 12px;
  }
  .studio-preview {
    padding:15px;
  }
  .sources-layout {
    gap:35px;
    grid-template-columns:1.2fr 1fr;
  }
}
@media(max-width:600px) {
  .section-shell {
    padding-inline:22px;
  }
  .section-space {
    padding-block:54px;
  }
  .site-header {
    padding-inline:22px;
  }
  .brand-title {
    font-size:23px;
  }
  .brand-title small {
    font-size:9px;
  }
  .site-header nav {
    gap:10px;
    font-size:13px;
  }
  .site-header nav a {
    padding-block:9px;
  }
  .collection-trigger {
    font-size:12px;
  }
  .collection-trigger svg {
    width:15px;
  }
  .collection-trigger b {
    width:19px;
    line-height:19px;
  }
  .home-intro {
    padding-top:24px;
  }
  .hero {
    grid-template-columns:1fr;
    gap:30px;
  }
  .place-label {
    margin-bottom:17px;
    font-size:13px;
  }
  .hero h1 {
    font-size:39px;
    line-height:1.45;
  }
  .hero-description {
    font-size:15px;
    margin-top:19px;
  }
  .hero-actions {
    margin-top:25px;
    gap:22px;
  }
  .hero-footnote {
    display:none;
  }
  .hero-art {
    height:330px;
    border-radius:50px 12px 50px 12px;
  }
  .hero-art img {
    object-position:center;
  }
  .hero-art-words {
    left:22px;
    top:18px;
    font-size:48px;
  }
  .hero-entry {
    bottom:39px;
    left:20px;
    right:20px;
  }
  .hero-entry>.glyph {
    font-size:46px;
  }
  .hero-art figcaption {
    bottom:12px;
    font-size:9px;
  }
  .pathways {
    margin-top:25px;
  }
  .pathway-grid {
    padding-block:20px;
    border-radius:14px;
  }
  .pathway {
    padding-inline:12px;
    align-items:center;
    text-align:center;
  }
  .pathway-icon svg {
    width:25px;
    height:25px;
  }
  .pathway h2 {
    font-size:19px;
  }
  .pathway p {
    font-size:10px;
    line-height:1.6;
    margin-top:6px;
  }
  .section-heading {
    align-items:start;
    flex-direction:column;
    gap:14px;
    margin-bottom:23px;
  }
  .section-heading h2 {
    font-size:30px;
  }
  .section-heading p {
    font-size:14px;
  }
  .section-heading .text-link {
    font-size:12px;
  }
  .featured-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:15px;
  }
  .glyph-open {
    padding:17px;
  }
  .glyph-open>.glyph {
    font-size:89px;
    margin-block:13px;
  }
  .glyph-card-bottom b {
    font-size:23px;
  }
  .glyph-card-bottom>span {
    font-size:11px;
  }
  .glyph-card-bottom i {
    font-size:13px;
  }
  .card-topline {
    flex-direction:column;
    align-items:start;
  }
  .card-topline small {
    font-size:9px;
  }
  .catalog-foot {
    font-size:11px;
    line-height:1.9;
  }
  .catalog-foot .source-link {
    display:block;
    margin:8px 0 0;
    font-size:11px;
  }
  .home-stories {
    grid-template-columns:1fr;
    gap:20px;
  }
  .stories-heading {
    min-height:270px;
    padding:30px;
    border-radius:6px 45px;
  }
  .stories-heading h2 {
    font-size:31px;
  }
  .stories-heading>.glyph {
    right:18px;
    top:0;
    font-size:125px;
  }
  .stories-heading p {
    font-size:14px;
  }
  .story-preview-list a {
    padding-block:20px;
  }
  .story-preview-list a:first-child {
    padding-top:15px;
  }
  .story-preview-list h3 {
    font-size:23px;
  }
  .story-preview-list p {
    font-size:13px;
  }
  .studio-banner {
    grid-template-columns:1fr;
    padding:32px 27px;
    gap:38px;
    border-radius:22px;
  }
  .studio-banner h2 {
    font-size:29px;
  }
  .studio-banner p {
    font-size:13px;
  }
  .mini-letter {
    width:220px;
    margin-bottom:12px;
  }
  .page-intro {
    padding-top:32px;
    padding-bottom:28px;
  }
  .page-intro h1 {
    font-size:30px;
  }
  .page-intro p {
    font-size:14px;
    margin-top:15px;
  }
  .catalog-section,.atlas-section,.story-section {
    padding-bottom:50px;
  }
  .filter-row {
    gap:4px;
  }
  .filter {
    font-size:12px;
    padding:8px 10px;
    gap:8px;
  }
  .filter small {
    font-size:10px;
  }
  .catalog-toolbar {
    gap:10px;
    align-items:stretch;
    flex-direction:column;
  }
  .sort-label {
    justify-content:end;
  }
  .search-field {
    padding:11px 12px;
  }
  .search-field input {
    font-size:14px;
  }
  .search-field kbd {
    display:none;
  }
  .result-count {
    padding:10px 0 17px;
  }
  .catalog-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:15px;
  }
  .catalog-grid .card-topline {
    flex-direction:column;
  }
  .catalog-grid .card-topline small {
    margin:0;
  }
  .data-explainer {
    margin-top:35px;
  }
  .data-explainer h2 {
    font-size:17px;
  }
  .data-explainer p {
    font-size:13px;
  }
  .atlas-toolbar {
    gap:5px;
    justify-content:space-between;
  }
  .atlas-toolbar .filter {
    font-size:12px;
    padding-inline:9px;
  }
  .atlas-layout {
    border-radius:12px;
  }
  .graph-canvas {
    aspect-ratio:1.08;
    min-height:0;
  }
  .graph-node {
    width:70px;
    height:51px;
    border-radius:9px;
  }
  .graph-node b {
    font-size:12px;
  }
  .graph-node small {
    font-size:9px;
  }
  .graph-node.center-node {
    width:78px;
    height:65px;
    border-radius:14px;
  }
  .graph-edges text {
    font-size:19px;
    stroke-width:10px;
  }
  .graph-annotation {
    font-size:10px;
    left:17px;
    bottom:12px;
  }
  .node-panel {
    padding:25px;
  }
  .node-panel h2 {
    font-size:28px;
  }
  .node-panel p {
    font-size:14px;
  }
  .atlas-note {
    font-size:11px;
  }
  .story-tabs {
    gap:6px;
  }
  .story-tab {
    padding:8px 12px;
    font-size:12px;
  }
  .reader {
    grid-template-columns:1fr;
  }
  .reader-art {
    min-height:220px;
    padding:30px;
  }
  .reader-cover-title {
    font-size:24px;
  }
  .reader-glyphs {
    writing-mode:horizontal-tb;
    left:auto;
    right:22px;
    top:25px;
    font-size:90px;
    letter-spacing:6px;
  }
  .reader-tag {
    bottom:44px;
    font-size:25px;
    left:30px;
  }
  .reader-art-caption {
    bottom:24px;
    left:30px;
    font-size:9px;
  }
  .reader-body {
    padding:27px 24px;
  }
  .reader-body h2 {
    font-size:28px;
    margin-block:20px;
  }
  .chapter-copy {
    min-height:0;
  }
  .chapter-copy h3 {
    font-size:18px;
  }
  .chapter-copy p {
    font-size:15px;
  }
  .chapter-copy .reader-detail {
    font-size:13px;
  }
  .reader-controls {
    margin-block:25px;
  }
  .reader-progress {
    order:0;
    width:auto;
    gap:4px;
  }
  .reader-sources a {
    overflow-wrap:anywhere;
  }
  .quiz-invite {
    flex-direction:column;
    align-items:start;
    padding:25px;
  }
  .quiz-invite h3 {
    font-size:20px;
  }
  .studio-layout {
    grid-template-columns:1fr;
    gap:35px;
    padding-bottom:50px;
  }
  .studio-preview {
    order:-1;
    position:static;
    padding:18px;
  }
  .studio-preview canvas {
    max-height:390px;
    width:auto;
    max-width:100%;
    margin:auto;
  }
  .preview-label {
    font-size:11px;
    margin-bottom:15px;
  }
  .studio-preview>p {
    font-size:11px;
  }
  .editor-section {
    margin-bottom:28px;
  }
  .editor-section h2 {
    font-size:25px;
  }
  .paper-option {
    padding:10px 15px;
  }
  .editor-actions {
    margin-top:28px;
  }
  .sources-layout {
    grid-template-columns:1fr;
    gap:30px;
    padding-bottom:50px;
  }
  .sources-layout h2 {
    font-size:25px;
  }
  .source-row h3 {
    font-size:17px;
  }
  .source-row p {
    font-size:14px;
  }
  .reading-note {
    padding:25px;
  }
  .site-footer {
    width:calc(100% - 44px);
    padding:30px 0;
    grid-template-columns:1fr;
    gap:22px;
  }
  .site-footer>div {
    justify-content:start;
  }
  .site-footer>div>span {
    text-align:left;
  }
  .site-footer>p {
    font-size:10px;
  }
  .footer-brand {
    font-size:23px;
  }
  #detail-content {
    grid-template-columns:1fr;
  }
  .detail-dialog {
    width:94vw;
  }
  .detail-glyph-panel {
    padding:25px;
    min-height:230px;
  }
  .detail-glyph {
    font-size:125px;
    line-height:1.25;
  }
  .detail-code {
    margin-top:12px;
  }
  .detail-text {
    padding:27px;
  }
  .detail-text h2 {
    font-size:38px;
  }
  .detail-actions {
    gap:9px;
  }
  .detail-actions .button {
    font-size:12px;
    padding-inline:15px;
  }
  .reading-line {
    font-size:12px;
  }
  .collection-dialog {
    width:94vw;
    padding:30px 23px;
  }
  .collection-dialog h2 {
    font-size:28px;
  }
  .collection-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
  }
  .collection-grid .glyph-open {
    padding:15px;
  }
  .collection-grid .glyph-open>.glyph {
    font-size:75px;
  }
  .collection-grid .glyph-card-bottom {
    gap:7px;
  }
  .collection-grid .glyph-card-bottom>span {
    font-size:10px;
  }
  .quiz-dialog {
    width:94vw;
    padding:35px 25px;
  }
  .quiz-dialog h2 {
    font-size:24px;
  }
  .quiz-options button {
    padding:13px;
    font-size:13px;
  }
  .toast {
    bottom:20px;
    font-size:12px;
    width:max-content;
    padding:12px 18px;
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto;
  }
  *,*::before,*::after {
    transition:none!important;
    animation:none!important;
  }
}

/* Colour carries theme; surfaces and cues distinguish controls from prose. */
.fan-art {
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}
.hero-art-words {
  left:40%;
  top:20%;
  writing-mode:horizontal-tb;
  font-size:clamp(65px,8vw,100px);
  color:#795275;
  opacity:1;
  transform:rotate(-12deg);
}
.hero-art-caption {
  position:absolute;
  left:28px;
  top:24px;
  font:clamp(12px,1.1vw,15px)/1.7 var(--serif);
  color:#fff;
  writing-mode:horizontal-tb;
  letter-spacing:2px;
}
:root {
  --muted: #5c6570;
  --jade: #27695f;
  --plum: #795275;
  --rose: #a34f6b;
  --ochre: #93632a;
}
.hero h1, .page-intro h1, .section-heading h2 {
  color: var(--ink);
}
.button.primary, .button.dark {
  background: var(--plum);
  box-shadow: 0 4px 0 #51374e;
}
.button.primary:hover, .button.dark:hover {
  background: #684264;
}
.button.secondary, .button.outline {
  background: #fff;
  border-color: #8d9fb1;
}
.button, .hero-entry, .text-link, .collection-trigger, .text-button,
.filter, .story-tab, .paper-option, .graph-node, .save-button,
.close-dialog, .circle-button, .reader-controls button, .quiz-options button {
  transition: background-color .18s, color .18s, border-color .18s,
    box-shadow .18s, transform .18s;
}
a[href], button:not(:disabled), summary, select {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
}
.button:active:not(:disabled), .hero-entry:active, .paper-option:active {
  transform: translateY(2px);
  box-shadow: none;
}
.site-header nav a {
  padding-inline: 9px;
  border-radius: 7px;
  transition: background-color .18s, color .18s;
}
.site-header nav {
  gap: 9px;
}
.site-header nav a.active {
  background: #e8dce8;
  color: #64435f;
  box-shadow: inset 0 -3px var(--plum);
}
.collection-trigger {
  background: #fff;
  border: 1px solid #b4c3d2;
  border-radius: 9px;
  padding: 9px 12px;
}
.text-link, .text-button, .source-link, .site-footer a:not(.footer-brand) {
  color: var(--plum);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.pathway-grid {
  background: transparent;
  gap: 15px;
  padding: 0;
}
.pathway {
  --entry-color: var(--jade);
  --entry-bg: #e2efe9;
  padding: 25px 22px;
  border: 1px solid #b8d2c8;
  border-radius: 14px;
  background: var(--entry-bg);
  transition: border-color .18s, background-color .18s, box-shadow .18s;
}
.pathway:nth-child(2) {
  --entry-color: var(--plum);
  --entry-bg: #eee2ed;
  border-color: #d1b8ce;
}
.pathway:nth-child(3) {
  --entry-color: var(--ochre);
  --entry-bg: #f6ead6;
  border-color: #dbc7a3;
}
.pathway:last-child {
  border: 1px solid #dbc7a3;
}
.pathway h2, .pathway-icon, .pathway-cue {
  color: var(--entry-color);
}
.pathway-cue {
  display: block;
  font-size: 12px;
  white-space: nowrap;
}
.glyph-card {
  --topic: var(--plum);
  --topic-bg: #f2eaf2;
  background: var(--topic-bg);
  border-color: #cfbed0;
  transition: border-color .18s, box-shadow .18s;
}
.glyph-card[data-topic="自然"] {
  --topic: var(--jade);
  --topic-bg: #e6f1eb;
  border-color: #b6d1c4;
}
.glyph-card[data-topic="心意"] {
  --topic: var(--rose);
  --topic-bg: #f7e8ec;
  border-color: #dfbec9;
}
.glyph-card[data-topic="书写"] {
  --topic: var(--ochre);
  --topic-bg: #f8eedb;
  border-color: #ddcba8;
}
.glyph-card[data-topic="时光"] {
  --topic: #53688b;
  --topic-bg: #e9eef8;
  border-color: #becce0;
}
.glyph-open>.glyph, .glyph-card-bottom b {
  color: var(--topic);
}
.card-topline {
  color: var(--topic);
}
.glyph-card-bottom {
  flex-wrap: wrap;
  gap: 8px 14px;
}
.glyph-card-bottom i {
  font-style:normal;
}
.save-button {
  background: #fff;
  border: 1px solid #bfccd6;
  border-radius: 7px;
  color: #526677;
}
.save-button.is-saved {
  color: #864e72;
  background: #ead7e4;
  border-color: #b78aa6;
}
.glyph-open:active>.glyph {
  transform: scale(.96);
}
.glyph-open>.glyph {
  transition: transform .18s;
}
.filter, .story-tab {
  border: 1px solid #b9c6d2;
  background: #fff;
}
.filter.active, .story-tab.active {
  border-color: var(--plum);
  box-shadow: inset 3px 0 var(--plum);
  color: #63405e;
  background: #eddfeb;
}
.filter.active::after {
  content: '✓';
  font-size: 12px;
  margin-left: auto;
}
.filter[data-category="自然"] {color:var(--jade);border-color:#9fbfae;background:#edf5f0;}
.filter[data-category="人间"] {color:var(--plum);border-color:#c4a8c3;background:#f3eaf3;}
.filter[data-category="心意"] {color:var(--rose);border-color:#d6a9bb;background:#f9eaf0;}
.filter[data-category="书写"] {color:var(--ochre);border-color:#cdb68c;background:#faf0df;}
.filter[data-category="时光"] {color:#53688b;border-color:#aebed7;background:#edf1fa;}
.filter[data-category].active {border-color:var(--plum);box-shadow:inset 3px 0 var(--plum);}
.story-preview-tag {
  background: #e9daea;
  color: #70466a;
  border-radius: 4px;
  padding: 3px 8px;
}
.story-preview-list a {
  transition: background-color .18s, padding .18s;
  border-radius: 8px;
}
.stories-heading {
  background: #dcece5;
}
.stories-heading h2 {
  color: var(--jade);
}
.stories-heading>.glyph {
  color: #b1cec1;
}
.studio-banner {
  background: #f1dee6;
}
.studio-banner h2 {
  color: #784761;
}
.graph-node {
  border-width: 2px;
  box-shadow: 0 3px 0 #d1dde6;
}
.node-view {
  position:absolute;
  right:4px;
  top:4px;
  width:12px;
  height:12px;
}
.node-view svg {
  width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.5;
}
.graph-node.selected {
  background: #795275;
  color: #fff;
  border-color: #795275;
  outline-color: #b498b2;
}
.graph-node.selected small {
  color: #f0ddeb;
}
.node-panel {
  background: #795275;
}
.atlas-section:has([data-graph-theme="writing"].active) .node-panel {
  background: #93632a;
}
.atlas-section:has([data-graph-theme="heritage"].active) .node-panel {
  background: #27695f;
}
.node-panel .source-link {
  color: #fff;
}
.node-panel .panel-label, .node-panel .category-label,
.node-panel .panel-source>span, .reader-art-caption {
  color: #fff;
}
.reader-art {
  background: #795275;
}
.story-section:has([data-story="1"].active) .reader-art {
  background: #8c633d;
}
.story-section:has([data-story="2"].active) .reader-art {
  background: #27695f;
}
.reader-controls>button, .reader-progress button {
  border: 1px solid #b5c2ce;
  background: #fff;
  border-radius: 6px;
  padding: 5px 10px;
}
.reader-progress button {
  padding: 0;
}
.reader-progress button.active {
  background: var(--plum);
  color: #fff;
  border-color: var(--plum);
}
.close-dialog, .circle-button {
  border: 1px solid #aabccb;
  background: #fff;
}
.reading-note {
  background: #f5ecd9;
}
.search-field:focus-within, .field-label input:focus,
.field-label textarea:focus, .field-label select:focus {
  border-color: var(--plum);
  box-shadow: 0 0 0 3px #79527518;
}
@media(hover:hover) {
  .site-header nav a:hover, .collection-trigger:hover,
  .filter:hover, .story-tab:hover, .paper-option:hover {
    background: #e9dfea;
    color: #63405e;
    border-color: var(--plum);
  }
  .pathway:hover, .pathway:focus-visible {
    border-color: var(--entry-color);
    box-shadow: 0 0 0 2px color-mix(in srgb,var(--entry-color) 15%,transparent);
    background: color-mix(in srgb,var(--entry-bg) 75%,white);
  }
  .glyph-card:hover, .glyph-card:focus-within {
    border-color: var(--topic);
    box-shadow: 0 5px 18px #26374b12;
  }
  .glyph-open:hover .glyph-card-bottom i {
    text-decoration: underline;
    text-underline-offset: 4px;
  }
  .save-button:hover, .close-dialog:hover, .circle-button:hover {
    background: #e9dfea;
    border-color: var(--plum);
  }
  .hero-entry:hover {
    background: #f2e8ef;
    box-shadow: 0 0 0 3px #d7bacb;
  }
  .story-preview-list a:hover {
    background: #ebe3ee;
    padding-left: 15px;
  }
  .graph-node:hover {
    transform: translate(-50%,-50%) scale(1.06);
    border-color: var(--plum);
  }
  .reader-controls button:not(:disabled):hover,
  .quiz-options button:not(:disabled):hover {
    background: #e9dfea;
    border-color: var(--plum);
  }
}
@media(max-width:1050px) {
  .pathway {padding: 22px 17px;}
  .pathway-cue {font-size: 11px;}
}
@media(max-width:800px) {
  .pathway-cue {margin: 0;}
  .site-header nav {gap: 4px;}
  .site-header nav a {padding-inline: 7px;}
}
@media(max-width:600px) {
  .hero-art-words {font-size:65px;left:40%;top:20%;}
  .hero-art-caption {font-size:12px;right:auto;left:24px;top:23px;}
  .pathway-grid {gap: 8px;}
  .pathway {padding: 17px 7px;gap: 6px;border-radius: 10px;}
  .pathway h2 {font-size: 18px;}
  .pathway p {font-size: 10px;}
  .pathway-cue {font-size: 11px;}
  .glyph-card-bottom i {font-size: 11px;}
  .collection-trigger {padding: 7px 9px;}
  .site-header nav {gap: 0;}
  .site-header nav a {padding-inline: 6px;font-size: 12px;}
  .atlas-toolbar .filter {gap: 4px;padding-inline: 7px;font-size: 11px;}
  .reader-controls {gap: 6px;}
  .reader-controls>button {padding-inline: 7px;font-size: 12px;}
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {transition:none!important;animation:none!important;}
}

/* Five distinct title treatments; body text stays plain and readable. */
@font-face {
  font-family:BrushTitle;
  src:url('./assets/BrushTitle.woff2') format('woff2');
  font-weight:400;
  font-display:swap;
}
@font-face {
  font-family:RoundTitle;
  src:url('./assets/RoundTitle.woff2') format('woff2');
  font-weight:400;
  font-display:swap;
}
:root {
  --sans:'Microsoft YaHei','PingFang SC','DengXian',sans-serif;
  --serif:'Songti SC','SimSun',serif;
}
.font-brush {
  font-family:BrushTitle,'KaiTi','STKaiti',serif;
  font-weight:400;
  display:inline-block;
}
.font-round {
  font-family:RoundTitle,'Microsoft YaHei',sans-serif;
  font-weight:400;
  display:inline-block;
}
.font-editorial {
  font-family:var(--serif);
  font-weight:600;
}
.tone-jade {color:var(--jade);}
.tone-plum {color:var(--plum);}
.tone-rose {color:var(--rose);}
.tone-ochre {color:var(--ochre);}
.hero h1.display-title {
  font-family:var(--sans);
  font-size:clamp(38px,4.1vw,57px);
  font-weight:700;
  line-height:1.6;
  letter-spacing:-1.5px;
}
.display-title .font-brush {
  font-size:1.22em;
  vertical-align:-.035em;
  line-height:1.15;
  letter-spacing:0;
}
.display-title .font-round {
  font-size:1.08em;
  letter-spacing:0;
}
.type-home .font-brush:first-child {
  transform:rotate(-3deg);
}
.page-intro .display-title {
  font-family:var(--sans);
  font-weight:600;
  font-size:44px;
  line-height:1.75;
  letter-spacing:-.5px;
}
.type-explore .display-title {
  font-weight:500;
}
.type-tile {
  padding:0 .1em;
  margin-inline:.07em;
  background:#e1eee7;
  box-shadow:inset 0 -3px #91b5a3;
  transform:rotate(-2deg);
}
.type-atlas .display-title {
  font-weight:500;
  letter-spacing:1px;
}
.type-thread {
  margin-inline:.08em;
  text-decoration:underline wavy #bc9c68;
  text-decoration-thickness:2px;
  text-underline-offset:9px;
}
.type-stories .display-title {
  font-family:var(--serif);
  font-weight:500;
  letter-spacing:2px;
}
.type-outline {
  display:inline-block;
  font-family:var(--sans);
  font-weight:900;
  color:#f3f6fa;
  -webkit-text-stroke:1.4px var(--plum);
  margin-inline:.06em;
}
.type-studio .display-title {
  font-weight:500;
}
.type-note {
  padding:0 .18em;
  margin-inline:.06em;
  background:#f4dfe8;
  border-radius:1px;
  transform:rotate(2deg);
  box-shadow:3px 4px 0 #e6c4d4;
}
.brand-title {
  font-family:BrushTitle,'KaiTi',serif;
  font-size:30px;
  letter-spacing:1px;
}
.brand-title small {
  font-family:var(--sans);
  font-size:10px;
  letter-spacing:.5px;
}
.section-heading h2,.stories-heading h2,.studio-banner h2 {
  font-family:var(--sans);
  font-weight:600;
  letter-spacing:-.5px;
}
.section-heading h2 .font-round {
  font-size:1.1em;
}
.stories-heading h2 .font-brush,.studio-banner h2 .font-brush {
  font-size:1.2em;
  vertical-align:-.03em;
}
.pathway:first-child h2 {font-family:RoundTitle,var(--sans);}
.pathway:nth-child(2) h2 {font-family:var(--sans);font-weight:600;}
.pathway:nth-child(3) h2 {font-family:BrushTitle,var(--serif);font-size:25px;}
.site-header nav a {
  --nav-tone:var(--blue);
  display:flex;
  align-items:center;
  color:var(--nav-tone);
  font-weight:500;
}
.site-header nav a[data-route="explore"] {
  --nav-tone:var(--jade);
  font-family:RoundTitle,var(--sans);
  font-size:16px;
}
.site-header nav a[data-route="atlas"] {
  --nav-tone:var(--ochre);
  font-weight:600;
}
.site-header nav a[data-route="stories"] {
  --nav-tone:var(--rose);
  font-family:BrushTitle,var(--serif);
  font-size:19px;
  font-weight:400;
}
.site-header nav a[data-route="studio"] {
  --nav-tone:var(--plum);
  font-family:'KaiTi','STKaiti',serif;
  font-size:17px;
}
.site-header nav a.active {
  color:var(--nav-tone);
  background:color-mix(in srgb,var(--nav-tone) 13%,white);
  box-shadow:inset 0 -3px var(--nav-tone);
}
@media(max-width:1050px) {
  .hero h1.display-title {font-size:42px;}
  .page-intro .display-title {font-size:39px;}
  .site-header {gap:20px;}
  .site-header nav {gap:4px;}
}
@media(max-width:800px) {
  .hero h1.display-title {font-size:35px;letter-spacing:-1px;}
  .page-intro .display-title {font-size:35px;}
}
@media(max-width:600px) {
  .hero h1.display-title {font-size:36px;line-height:1.65;}
  .page-intro .display-title {font-size:31px;line-height:1.85;letter-spacing:0;}
  .type-stories .display-title {letter-spacing:1px;}
  .type-thread {text-underline-offset:6px;}
  .type-note {padding-inline:.1em;}
  .brand-title {font-size:29px;}
  .site-header nav a {font-size:12px;padding-inline:5px;}
  .site-header nav a[data-route="explore"] {font-size:14px;}
  .site-header nav a[data-route="stories"] {font-size:16px;}
  .site-header nav a[data-route="studio"] {font-size:15px;}
  .section-heading h2 {font-size:29px;}
  .stories-heading h2 {font-size:28px;}
  .studio-banner h2 {font-size:27px;line-height:1.65;}
  .pathway h2 {font-size:18px;}
  .pathway:nth-child(3) h2 {font-size:21px;}
}
@media(max-width:360px) {
  .hero h1.display-title {font-size:31px;}
  .page-intro .display-title {font-size:28px;}
  .site-header nav a {padding-inline:3px;}
  .site-header nav a[data-route="explore"] {font-size:13px;}
  .site-header nav a[data-route="stories"] {font-size:15px;}
}

/* Action cues are symbols only; names remain available to assistive technology. */
.view-cue,
.glyph-card-bottom i.view-cue,
.hero-entry i.view-cue,
.pathway-cue.view-cue {
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  width:32px;
  height:32px;
  padding:0;
  margin-top:0;
  border:1px solid currentColor;
  border-radius:50%;
  background:transparent;
  line-height:1;
  transition:background-color .18s,box-shadow .18s;
}
.view-cue svg {
  display:block;
  margin:0;
  flex:none;
  width:19px;
  height:19px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.5;
}
.glyph-card-bottom {
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:8px;
}
.glyph-card-bottom>span {overflow-wrap:anywhere;}
.glyph-card-bottom i.view-cue {
  flex-basis:auto;
  color:var(--topic);
  margin-left:auto;
}
.hero-entry i.view-cue {margin-left:auto;color:var(--plum);}
.pathway-cue.view-cue {margin-left:auto;}
.circle-button,.save-button,.close-dialog {
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  line-height:0;
}
.circle-button svg,.save-button svg {display:block;margin:0;flex:none;}
.close-dialog svg {
  display:block;
  width:18px;
  height:18px;
  flex:none;
  margin:0;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
}
.card-topline {
  padding-right:42px;
  column-gap:8px;
}
.card-topline small {white-space:nowrap;}
.circle-button svg, [data-export-collection] svg {
  width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;
}
@media(hover:hover) {
  .glyph-open:hover .view-cue,.pathway:hover .view-cue,.hero-entry:hover .view-cue {
    background:color-mix(in srgb,currentColor 10%,transparent);
    box-shadow:0 0 0 3px color-mix(in srgb,currentColor 10%,transparent);
  }
}
@media(max-width:800px) {
  .pathway-cue.view-cue {margin-left:0;}
}
@media(max-width:600px) {
  .view-cue,.glyph-card-bottom i.view-cue,.hero-entry i.view-cue,.pathway-cue.view-cue {
    width:25px;height:25px;
  }
  .view-cue svg {width:16px;height:16px;}
  .glyph-card-bottom {gap:6px;}
}
@media(max-width:360px) {
  .glyph-open {padding:14px;}
  .glyph-card-bottom>span {font-size:10px;}
}
@media(prefers-reduced-motion:reduce) {
  .view-cue {transition:none!important;}
}
