@font-face { font-family: "Xiaowho Sans"; src: url("assets/fonts-ui-v7/sans.woff2") format("woff2"); font-style: normal; font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Xiaowho Serif"; src: url("assets/fonts-ui-v6/serif.woff2") format("woff2"); font-style: normal; font-weight: 400 700; font-display: swap; }
:root {
  color-scheme: light;
  --paper: #f4efdf;
  --ink: #30372d;
  --muted: #4b503e;
  --line: #cbc5b2;
  --accent: #68452e;
  --ease-out: cubic-bezier(.22,.61,.36,1);
  font-family: "Xiaowho Sans", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  scrollbar-color: #acb5a3 var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; text-underline-offset: 5px; touch-action: manipulation; }
button, summary { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
button { -webkit-tap-highlight-color: transparent; }
h1, h2, p { margin: 0; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 2px; }
::selection { color: #30372d; background: #e0d4b4; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.ambient { position: fixed; inset: -8%; pointer-events: none; background: radial-gradient(ellipse at 0% 15%,rgba(204,220,192,.34),transparent 57%),radial-gradient(ellipse at 95% 90%,rgba(235,221,186,.26),transparent 57%); }
.pointer-light { position: fixed; left: 50%; top: 50%; width: min(760px,85vw); height: min(700px,95vh); min-width: 320px; pointer-events: none; opacity: var(--light-visible,0); background: radial-gradient(ellipse at center,rgba(207,224,185,.62),rgba(222,232,203,.25) 40%,transparent 70%); transform: translate3d(calc(-50% + var(--light-x,0px)),calc(-50% + var(--light-y,0px)),0); transition: opacity 400ms var(--ease-out); }
.surface-texture { position: fixed; inset: -18px; pointer-events: none; background-repeat: no-repeat; background-size: cover; background-position: 60% 50%; opacity: .68; mask-image: linear-gradient(110deg,rgba(0,0,0,.24),rgba(0,0,0,.55) 55%,#000); transform: translate3d(var(--paper-x,0px),var(--paper-y,0px),0); }
.surface-texture[data-material="inkprint"] { background-image: url("assets/materials/inked-paper-v3.webp"); }
.surface-texture[data-material="none"] { background-image: none; }
.page { position: relative; width: min(960px,calc(100% - 72px)); margin: 0 auto; }
.skip { position: fixed; top: -80px; left: 16px; padding: 10px 16px; background: var(--ink); color: var(--paper); z-index: 3; }
.skip:focus { top: 12px; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 120px; padding-top: 32px; }
.wordmark { font-family: "Xiaowho Serif", serif; font-size: 33px; font-weight: 650; letter-spacing: -.035em; line-height: 1.2; padding: 10px 0; }
.wordmark span { color: var(--accent); }
.brand-play { position: relative; display: inline-flex; align-items: center; }
.brand-play .wordmark { position: relative; z-index: 2; }
.brand-catch { position: absolute; z-index: 3; width: 44px; height: 44px; top: var(--peek-y,-25px); left: var(--peek-x,27%); transform: translateX(-50%); padding: 0; border: 0; background: transparent; user-select: none; }
.brand-catch:focus-visible { outline-offset: -2px; }
.wordmark-baseline { display: inline-block; width: 0; height: 0; padding: 0; margin: 0; vertical-align: baseline; }
.brand-window { position: absolute; width: var(--peek-window,30px); height: 30px; left: calc((44px - var(--peek-window,30px))/2); top: 14px; overflow: hidden; }
.brand-mark { position: absolute; width: var(--peek-size,38px); height: var(--peek-size,38px); left: calc((var(--peek-window,30px) - var(--peek-size,38px))/2); bottom: -6px; transform: translateY(0) rotate(var(--head-tilt,3deg)) scaleX(var(--head-facing,1)); transform-origin: 50% 85%; transition: transform 230ms cubic-bezier(.18,1.25,.4,1); pointer-events: none; }
.brand-mark .head-eyes { fill: #faf5e7; }
.brand-mark .head-brows { fill: none; stroke: #faf5e7; stroke-width: 4.2; stroke-linecap: round; }
.brand-play[data-state="hiding"] .brand-mark { transform: translateY(42px) rotate(var(--head-tilt,3deg)) scaleX(var(--head-facing,1)); transition: transform 130ms ease-in; }
.brand-play[data-state="caught"] .brand-mark { transform: translateY(-2px) rotate(var(--head-tilt,3deg)) scaleX(var(--head-facing,1)); }
.brand-note { position: absolute; z-index: 2; left: 0; top: 56px; padding: 2px 0; font-size: 13px; font-weight: 500; white-space: nowrap; color: var(--accent); opacity: 0; transform: translateY(-3px); transition: opacity 180ms,transform 180ms var(--ease-out); pointer-events: none; }
.brand-play[data-state="caught"] .brand-note { opacity: 1; transform: translateY(0); }
.header-actions { display: flex; align-items: center; gap: 22px; }
.language-toggle { min-height: 44px; min-width: 44px; padding: 8px 2px; border: 0; background: none; font-size: 14px; font-weight: 500; color: var(--accent); }
.language-toggle:hover { text-decoration: underline; }
.github-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--muted); }
.github-link:hover { color: var(--ink); text-decoration: underline; }
.intro { display: grid; grid-template-columns: minmax(0,1fr) 190px; gap: 38px; align-items: center; padding: 30px 0 34px; }
.intro h1 { font-family: "Xiaowho Serif", serif; font-size: clamp(36px,3.8vw,48px); line-height: 1.5; font-weight: 650; letter-spacing: -.015em; text-wrap: balance; }
.intro h1:lang(zh-CN) { letter-spacing: .01em; }
.intro h1 > span { display: block; }
.intro-description { margin-top: 17px; max-width: 38em; font-size: 16px; color: var(--muted); }
.mascot-anchor { position: relative; width: 190px; justify-self: end; padding-bottom: 0; }
.mascot-display { display: block; border: 0; padding: 0; width: 190px; background: transparent; pointer-events: none; }
.mascot-frame { display: block; width: 190px; height: 216px; overflow: hidden; }
.mascot-figure { display: block; position: relative; width: 100%; height: 100%; }
.mascot-figure img, .mascot-figure canvas { display: block; position: absolute; width: 216px; height: 216px; max-width: none; left: -13px; top: 0; object-fit: contain; pointer-events: none; }
.category-tabs { display: flex; position: relative; gap: 36px; border-bottom: 1px solid var(--line); }
.category-tabs button { position: relative; flex: 0 0 auto; padding: 12px 0 17px; min-height: 58px; background: none; border: 0; font-size: 18px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.category-tabs button[aria-selected="true"] { color: var(--ink); }
.category-tabs button[aria-selected="true"]::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--accent); }
.category-tabs.marker-ready button::after { display: none; }
.tab-marker { position: absolute; width: 1px; height: 2px; left: 0; bottom: -1px; background: var(--accent); transform-origin: left; transform: translateX(var(--marker-x,0px)) scaleX(var(--marker-width,1)); transition: transform 260ms var(--ease-out); pointer-events: none; }
.category-tabs button:hover { color: var(--ink); }
.project-panel { min-height: 238px; }
.project-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 119px; padding: 26px 0; border-bottom: 1px solid var(--line); isolation: isolate; }
.project-row::before { content: ""; position: absolute; inset: 0 -18px; z-index: -1; opacity: 0; background: radial-gradient(260px circle at var(--row-light-x,50%) var(--row-light-y,50%),rgba(255,255,255,.86),transparent 80%); transition: opacity 160ms var(--ease-out); pointer-events: none; }
.project-row:hover::before, .project-row:focus-visible::before, .project-row.is-picked::before { opacity: 1; }
.project-row > div { min-width: 0; }
.row-copy { transform: translate3d(var(--row-x,0px),var(--row-y,0px),0); transition: transform 180ms var(--ease-out); }
.project-row h2 { font-family: "Xiaowho Serif", serif; font-size: 27px; font-weight: 600; line-height: 1.4; letter-spacing: -.015em; }
.project-row p { margin-top: 7px; font-size: 15px; color: var(--muted); text-wrap: pretty; }
.row-action, .row-status { flex-shrink: 0; font-size: 14px; color: var(--accent); }
.row-action { text-decoration: underline; text-decoration-thickness: 1px; transform: translate3d(var(--action-x,0px),var(--action-y,0px),0); transition: transform 180ms var(--ease-out); }
.row-status { color: var(--muted); }
a.project-row:hover h2 { color: var(--accent); }
a.project-row:hover .row-action { text-decoration-thickness: 2px; }
.more { padding: 24px 0 28px; }
.more summary { display: list-item; list-style: disclosure-closed inside; width: fit-content; min-height: 44px; padding: 10px 0; font-size: 15px; font-weight: 500; color: var(--muted); }
.more[open] summary { list-style-type: disclosure-open; color: var(--ink); }
.more summary::marker { font-size: 10px; }
.more-content { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 13px 0 12px; }
.more-content > p { max-width: 29em; font-size: 15px; color: var(--muted); }
.other-links { display: grid; justify-items: start; align-content: start; gap: 2px; }
.other-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 500; }
.other-links a:hover { color: var(--accent); text-decoration: underline; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 8px; padding: 18px 0 35px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.site-footer button { background: none; border: 0; padding: 9px 0; min-height: 44px; color: var(--muted); font-size: 14px; }
.site-footer button:hover:not(:disabled) { color: var(--ink); text-decoration: underline; }
.site-footer button:disabled { cursor: default; }
.surface-tools { display: flex; align-items: center; flex-wrap: wrap; column-gap: 18px; min-height: 44px; padding: 4px 0 12px; color: var(--muted); font-size: 14px; }
.surface-tools > span { margin-right: 2px; }
.surface-tools button { min-height: 44px; min-width: 44px; padding: 4px; border: 0; background: none; font-size: 14px; font-weight: 500; color: var(--muted); }
.surface-tools button[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.surface-tools button:hover { color: var(--ink); }
@media (max-width: 900px) {
  .intro { grid-template-columns: minmax(0,1fr) 156px; gap: 28px; }
  .intro h1 { font-size: 39px; }
  .intro h1 > span { display: block; }
  .mascot-anchor, .mascot-display { width: 156px; }
  .mascot-frame { width: 156px; height: 196px; }
  .mascot-figure img, .mascot-figure canvas { width: 196px; height: 196px; left: -20px; top: 0; }
}
@media (max-width: 640px) {
  .page { width: calc(100% - 44px); }
  .site-header { min-height: 110px; padding-top: 26px; }
  .wordmark { font-size: 29px; }
  .intro { grid-template-columns: minmax(0,1fr) 126px; gap: 12px 18px; padding: 30px 0 28px; align-items: start; }
  .intro-copy { display: contents; }
  .intro h1 { grid-column: 1 / -1; font-size: 36px; }
  .intro-description { grid-column: 1; margin-top: 2px; font-size: 15px; line-height: 1.9; }
  .mascot-anchor { grid-column: 2; grid-row: 2 / span 2; width: 126px; }
  .mascot-display { width: 126px; }
  .mascot-frame { width: 126px; height: 170px; }
  .mascot-figure img, .mascot-figure canvas { width: 170px; height: 170px; left: -22px; top: 0; }
  .category-tabs { gap: 28px; }
  .category-tabs button { font-size: 18px; min-height: 56px; padding-bottom: 16px; }
  .project-row { gap: 22px; padding: 24px 0; min-height: 124px; }
  .project-row::before { inset-inline: -10px; }
  .project-row h2 { font-size: 25px; }
  .project-row p { font-size: 14px; }
  .row-action, .row-status { font-size: 13px; }
  .more-content { grid-template-columns: 1fr; gap: 20px; padding-top: 12px; }
  .site-footer { padding-bottom: 24px; }
  .header-actions { gap: 14px; }
}
@media (max-width: 420px) {
  .page { width: calc(100% - 36px); }
  .wordmark { font-size: 27px; }
  .intro h1 { font-size: 33px; }
  .category-tabs { gap: 22px; }
  .category-tabs button { font-size: 17px; }
  .project-row { align-items: flex-start; flex-direction: column; gap: 11px; padding-block: 22px; min-height: 140px; }
  .project-row h2 { font-size: 25px; }
  .project-panel { min-height: 280px; }
}
@media (max-width: 360px) {
  .intro { grid-template-columns: minmax(0,1fr) 108px; }
  .mascot-anchor, .mascot-display, .mascot-frame { width: 108px; }
  .mascot-frame { height: 152px; }
  .mascot-figure img, .mascot-figure canvas { width: 152px; height: 152px; left: -22px; }
  .site-header { gap: 14px; }
  .header-actions { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .pointer-light { display: none; }
  .mascot-figure, .row-copy, .row-action { transform: none !important; transition: none; }
  .tab-marker { transition: none; }
  .brand-mark, .surface-texture { transform: none !important; transition: none; }
  .brand-note { transform: none; transition: none; }
}
@media print { .ambient, .pointer-light, .surface-texture, .surface-tools, .brand-catch, #background-motion { display: none; } body { background: white; } .project-panel[hidden] { display: block !important; } .more-content { display: block; } }

/* The wordmark dot keeps its own accent; the pointer label retains the main ink. */
.wordmark > [data-lens-label] { color: inherit; }
