:root {
  color-scheme: light;
  --paper: #f7f3ea;
  --card: #fffdf8;
  --ink: #2a2520;
  --text: #4a433a;
  --muted: #6b6357;
  --line: #e6dfd0;
  --line-strong: #d5cbb7;
  --crayon: #d9734a;
  --shade: 84 62 36;
  --lift: 0 0 0 1px rgb(var(--shade) / .06), 0 1px 2px rgb(var(--shade) / .06), 0 10px 28px -14px rgb(var(--shade) / .28);
  --crayon-ink: #a84f28;
  --focus: var(--crayon-ink);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", "Songti SC", "Noto Serif CJK SC", Georgia, serif;
  --measure: 36rem;
  --chrome-width: min(calc(100% - 3rem), var(--measure));
  --chrome-width-sm: min(var(--measure), calc(100% - 2 * var(--site-gutter)));
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  font-family: var(--sans);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { background: var(--paper); scroll-padding-top: 1.5rem; }
body { margin: 0; color: var(--text); font-size: 1rem; line-height: 1.85; line-break: strict; }
html[lang="en"] body { line-height: 1.75; }
p, h1, h2, h3, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { color: var(--ink); font-weight: 600; text-wrap: balance; }
:lang(zh) :is(h2, h3) { font-weight: 500; }
p, li { text-wrap: pretty; overflow-wrap: break-word; }
a { color: inherit; text-decoration-line: underline; text-decoration-thickness: 1px; text-decoration-color: var(--line-strong); text-underline-offset: .28em; touch-action: manipulation; }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: #f8dcc4; color: var(--ink); }
.skip-link { position: fixed; z-index: 6; top: .5rem; left: .5rem; display: inline-flex; align-items: center; min-block-size: 2.75rem; padding: 0 1.125rem; border-radius: 999px; background: var(--card); box-shadow: var(--lift); color: var(--ink); text-decoration: none; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.page { inline-size: var(--chrome-width); margin-inline: auto; padding-block: 3.5rem 0; padding-inline: env(safe-area-inset-left) env(safe-area-inset-right); }
.page > main { display: block; }
main:focus { outline: none; }

.identity h1 { font-size: 1.75rem; line-height: 1.25; letter-spacing: -.02em; }
.article-head h1 { max-inline-size: 100%; overflow-wrap: anywhere; font-family: var(--serif); font-size: 2.25rem; font-weight: 500; line-height: 1.3; letter-spacing: -.025em; }
:lang(zh) .identity h1 { letter-spacing: .01em; }
:lang(zh) .article-head h1 { letter-spacing: .04em; }
.role { margin-top: 1.125rem; color: var(--muted); font-size: .875rem; line-height: 1.7; }
.lede { margin-top: 2rem; }

.section-title { margin-bottom: 1.5rem; color: var(--muted); font-size: .8125rem; font-weight: 500; line-height: 1.5; letter-spacing: .02em; }

.date { flex: none; margin-inline-start: auto; color: var(--muted); font-size: .8125rem; font-variant-numeric: tabular-nums; white-space: nowrap; }

.points { margin-top: 1.25rem; }
.points li { position: relative; padding-inline-start: 0; }
.points li + li { margin-top: .75rem; }
.points li::before { content: ""; position: absolute; inset-inline-start: -.875rem; top: .925em; inline-size: .375rem; block-size: .375rem; border-radius: 50%; background: var(--crayon); opacity: .7; translate: 0 -50%; }
.point-label { display: block; margin-bottom: .25rem; color: var(--ink); font-weight: 500; }

.back, .pager a { display: inline-flex; align-items: center; gap: .375rem; min-block-size: 2.75rem; color: var(--ink); font-size: .875rem; font-weight: 500; text-decoration: none; }
.arrow { display: inline-block; }


.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1.5rem; margin-top: 5rem; border-top: 1px solid var(--line); padding-block: .75rem max(1.5rem, env(safe-area-inset-bottom)); color: var(--muted); font-size: .8125rem; }
.footer a { display: inline-flex; align-items: center; min-inline-size: 44px; min-block-size: 44px; color: inherit; text-decoration: none; }

.back { margin: -.75rem 0 1.75rem 0; color: var(--muted); font-weight: 400; }
.article-head .role { display: flex; flex-wrap: wrap; align-items: baseline; gap: .375rem 1.5rem; }
/* Shared page edge: figures, headings, paragraphs and list text all start here. */
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 2rem; margin-top: 2.5rem; padding-block: 1.75rem; border-block: 1px solid var(--line-strong); }
.figures div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .375rem; min-inline-size: 0; }
.figures dt { color: var(--muted); font-size: .8125rem; line-height: 1.65; overflow-wrap: anywhere; }
.figures dd { color: var(--ink); font-family: var(--serif); font-size: 1.875rem; font-weight: 400; line-height: 1.25; font-variant-numeric: lining-nums tabular-nums; overflow-wrap: anywhere; }
.story { margin-top: 3rem; }
.story h2 { margin-bottom: 1rem; font-size: 1.125rem; line-height: 1.5; }
.story p + p, .story p + .points { margin-top: 1.25rem; }
.story .points li + li { margin-top: 1.25rem; }
.links { display: flex; flex-wrap: wrap; gap: .5rem .75rem; margin-top: 2.5rem; }
.links a { display: inline-flex; align-items: center; gap: .25rem; min-block-size: 2.75rem; padding-inline: 1rem; border-radius: 999px; background: var(--card); box-shadow: 0 0 0 1px rgb(var(--shade) / .08), 0 1px 2px rgb(var(--shade) / .06); color: var(--ink); font-size: .875rem; text-decoration: none; transition: box-shadow 160ms ease-out, translate 160ms ease-out; }
.pager a { position: relative; isolation: isolate; }
/* The pager lifts into the same paper pill as the links above it. */
.pager a::before { content: ""; position: absolute; inset: 0 -.875rem; z-index: -1; border-radius: 999px; background: var(--card); box-shadow: var(--lift); opacity: 0; scale: .96; transition: opacity 180ms ease-out, scale 240ms var(--ease-out); }
.pager a:active::before { opacity: 1; scale: .98; }
.pager a:focus-visible { outline: none; }
.pager a:focus-visible::before { opacity: 1; scale: 1; box-shadow: 0 0 0 2px var(--focus); }
.links a:active { translate: 0 1px; scale: .98; }
/* A crayon line under the page title, drawn in as the page settles. */
.article-head h1, .identity h1 { position: relative; inline-size: fit-content; }
.name-scribble { position: absolute; inset-inline: -4%; inset-block-end: -.35em; inline-size: 108%; overflow: visible; fill: none; stroke: var(--crayon); stroke-width: 2; stroke-linecap: round; opacity: .85; pointer-events: none; }
.name-scribble path + path { stroke-width: 1.4; opacity: .6; }
.identity .name-scribble { inset-inline-start: 0; inset-block-end: -.35em; inline-size: 3.25rem; block-size: .4rem; }
.lost { display: block; inline-size: 9rem; margin-block-end: 1.5rem; overflow: visible; }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 4rem; }
.pager a:last-child { margin-inline-start: auto; }

a, .arrow { transition: text-decoration-color 150ms ease-out, color 150ms ease-out; }

@media (hover: hover) and (pointer: fine) {
  a:hover { text-decoration-color: var(--crayon); }
  .pager a:hover::before { opacity: 1; scale: 1; }
  :is(.back, .pager a, .links a):hover .arrow { color: var(--crayon-ink); }
  .links a:hover { box-shadow: 0 0 0 1px rgb(var(--shade) / .1), 0 8px 18px -10px rgb(var(--shade) / .4); translate: 0 -1px; }
  .pager a:last-child:hover .arrow { translate: 2px 0; }
  .back:hover .arrow, .pager a:first-child:hover .arrow { translate: -2px 0; }
  .footer a:hover, .back:hover { color: var(--ink); text-decoration-line: underline; text-decoration-thickness: 1px; text-decoration-color: var(--crayon); text-underline-offset: .28em; }
}
@media (prefers-reduced-motion: reduce) {
  .back:hover .arrow, .pager a:hover .arrow { translate: none; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .arrow { transition: translate 220ms var(--ease-out), color 150ms ease-out; }
  .page > main > * { animation: settle 760ms var(--ease-out) both; }
  .page > main > :nth-child(2) { animation-delay: 60ms; }
  .page > main > :nth-child(3) { animation-delay: 120ms; }
  .page > main > :nth-child(4) { animation-delay: 180ms; }
  .page > main > :nth-child(n + 5) { animation-delay: 240ms; }
  .name-scribble path { stroke-dasharray: 1; animation: ink-draw 520ms 420ms cubic-bezier(.6, 0, .3, 1) both; }
  .name-scribble path + path { animation-delay: 760ms; animation-duration: 400ms; }
  .lost-duck { transform-box: fill-box; transform-origin: 50% 90%; animation: bob 2.6s ease-in-out infinite; }
  .lost-ring { transform-box: fill-box; transform-origin: center; animation: ripple 2.6s ease-out infinite; }
  .lost-ring + .lost-ring { animation-delay: 1.3s; }
  .lost-ask { transform-box: fill-box; transform-origin: 50% 100%; animation: ask 2.6s ease-in-out infinite; }
}
@keyframes ink-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes bob { 50% { translate: 0 2px; rotate: -3deg; } }
@keyframes ripple { from { scale: .6; opacity: .7; } to { scale: 1.25; opacity: 0; } }
@keyframes ask { 0%, 100% { rotate: -8deg; } 50% { rotate: 8deg; translate: 0 -2px; } }
@keyframes settle { from { opacity: 0; translate: 0 8px; filter: blur(4px); } }
@media (max-width: 640px) {
  .page { inline-size: var(--chrome-width-sm); padding-top: 2rem; }
  .identity h1 { font-size: 1.5rem; }
  .article-head h1 { font-size: 2rem; }
  .article-head .role { flex-direction: column; gap: .25rem; }
  .article-head .date { margin-inline-start: 0; }
  .figures { gap: 1.5rem 1.25rem; padding-block: 1.5rem; }
  .figures dd { font-size: 1.75rem; }
  .story { margin-top: 2.5rem; }
  .footer { font-size: .875rem; }
}
@media (max-width: 340px) {
  .figures { grid-template-columns: 1fr; gap: 1.25rem; }
}
