@font-face {
  font-family: Fraunces;
  src: var(--yilun-image-7de36f986b30, url(fonts/fraunces.woff2)) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Newsreader;
  src: var(--yilun-image-c01c11fdf8a9, url(fonts/newsreader.woff2)) format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
/* The header uses the original paper palette independently of the scene. */
:root, .site-head {
  color-scheme: light;
  --paper: oklch(97.2% .011 85);
  --ink: oklch(25% .022 55);
  --muted: oklch(46% .024 60);
  --ember: oklch(53.5% .135 50);
  --moss: oklch(48% .075 140);
  --line: oklch(84% .022 78);
  --wash: oklch(94.7% .014 84);
  --light: oklch(98% .022 85 / .7);
  --panel: oklch(92% .021 78 / .42);
  --serif-cn: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", SimSun, serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --rule-image: var(--yilun-image-c64354867e85, url(vellum-rule.svg));
}
:root[data-theme=dark], :root[data-theme=dark] .site-head {
  color-scheme: dark;
  --paper: oklch(16.8% .012 55);
  --ink: oklch(91.8% .02 86);
  --muted: oklch(77.5% .022 82);
  --ember: oklch(71.5% .125 62);
  --moss: oklch(70% .075 140);
  --line: oklch(34% .02 58);
  --wash: oklch(20.8% .015 55);
  --light: oklch(45% .07 55 / .12);
  --panel: oklch(31.5% .02 58 / .4);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 280px;
  isolation: isolate;
  background: var(--paper);
  color: var(--ink);
  font: 19px/1.8 Newsreader, var(--serif-cn);
  -webkit-font-smoothing: antialiased;
  transition: background-color .7s, color .7s;
}
::selection { background: color-mix(in oklch, var(--ember) 22%, var(--paper)); color: var(--ink); }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; transition: color .25s; }
a:hover { color: var(--ember); }
button { font: inherit; color: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--ember); outline-offset: 5px; border-radius: 4px; }
.frame { width: min(100% - 48px, 800px); margin-inline: auto; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { position: fixed; z-index: 10; top: 10px; left: 10px; background: var(--paper); padding: 6px 12px; }
.label { font: 10px/1.7 ui-monospace, "PingFang SC", monospace; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.ember { color: var(--ember); }
.atmosphere, .grain { position: fixed; inset: 0; pointer-events: none; }
.atmosphere { z-index: -1; overflow: hidden; background: radial-gradient(ellipse at var(--px,65%) var(--py,28%), var(--light), transparent 60%), linear-gradient(135deg, var(--paper), var(--wash)); }
.atmosphere canvas { width: 100%; height: 100%; display: block; opacity: .58; }
.grain { z-index: 6; opacity: .045; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E"); }
.progress { position: fixed; z-index: 10; inset: 0 0 auto; height: 1px; background: var(--ember); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.cursor { display: none; }
.cursor.tracking { display: block; position: fixed; z-index: 9; left: 0; top: 0; width: 22px; height: 22px; border: 1px solid var(--ember); border-radius: 50%; opacity: .35; pointer-events: none; transition: width .5s var(--ease), height .5s var(--ease), opacity .4s; }
.cursor.over { width: 38px; height: 38px; opacity: .55; }
.site-head { position: relative; color: var(--ink); background: var(--paper); }
.head-inner { display: flex; align-items: center; min-height: 84px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 9px; font: 600 18px/1.5 var(--serif-cn); letter-spacing: .07em; white-space: nowrap; }
.brand img { flex: none; width: 28px; height: 28px; transition: rotate .7s var(--ease); }
nav { display: flex; align-items: center; gap: 5px; margin-left: auto; font-size: 14px; white-space: nowrap; }
nav a { position: relative; display: block; padding: 7px 13px; border-radius: 9px; color: var(--muted); transition: color .3s, background .3s; }
nav a::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 1px; background: var(--ember); transform: scaleX(0); transform-origin: left; transition: transform .55s var(--ease); }
nav a[aria-current] { color: var(--ember); }
nav a[aria-current]::after { transform: scaleX(.5); }
.theme { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; transition: background .3s, border-color .3s, transform .6s var(--ease); }
.theme svg { grid-area: 1 / 1; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; transition: opacity .45s, transform .7s var(--ease); }
.theme-sun { opacity: 0; transform: rotate(-60deg) scale(.5); }
:root[data-theme=dark] .theme-sun { opacity: 1; transform: none; }
:root[data-theme=dark] .theme-moon { opacity: 0; transform: rotate(60deg) scale(.5); }
main { position: relative; }
.masthead h1 { font: 600 clamp(56px, 9vw, 86px)/1.14 Fraunces, var(--serif-cn); letter-spacing: -.045em; margin: 18px 0 24px; font-variation-settings: "opsz" 40, "SOFT" 45, "WONK" 1; }
.masthead h1 span[style*="--i"], .author-latin span[style*="--i"] { display: inline-block; }
.author-name i, .author-latin i { display: inline-block; font-style: normal; transform-origin: 50% 80%; }
.mast-label b { display: inline-block; color: var(--ember); margin-right: 7px; font-weight: 400; }
.lede { max-width: 34em; color: var(--muted); font-size: 17px; line-height: 1.95; }
.home .hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: 560px; min-height: clamp(480px, 65svh, 660px); padding: 92px 0 100px; }
.home .masthead { position: relative; z-index: 1; }
.home .author-name { width: fit-content; margin: 0; font-size: clamp(54px, 9.6vw, 96px); letter-spacing: -.045em; line-height: 1.18; }
.author-latin { width: fit-content; color: var(--moss); font: 440 clamp(25px, 3.7vw, 36px)/1.3 Fraunces, Georgia, serif; font-variation-settings: "opsz" 40, "SOFT" 45, "WONK" 1; margin-top: 12px; }
.author-affiliation { margin-top: 30px; font-size: 15px; letter-spacing: .06em; }
.home .lede { margin-top: 14px; max-width: 23em; font-size: 16px; }
.inner { padding-top: 48px; min-height: 65vh; }
.crumb { margin-bottom: 38px; font-size: 10px; }
.crumb span { padding-inline: 9px; opacity: .5; }
.inner .masthead { margin-bottom: 58px; }
.chapter { margin-bottom: 46px; }
.chapter-head { display: flex; align-items: baseline; gap: 16px; padding-bottom: 16px; }
.chapter h2 { font: 600 24px/1.4 Fraunces, var(--serif-cn); letter-spacing: -.025em; }
.action { margin-left: auto; color: var(--ember); white-space: nowrap; }
.entry { display: grid; grid-template-columns: 30px 1fr auto; align-items: start; gap: 16px; padding: 24px 12px; list-style: none; border-radius: 9px; cursor: pointer; transition: background .35s; }
.entry::-webkit-details-marker { display: none; }
.entry h3 { font-size: 19px; font-weight: 600; line-height: 1.5; transition: color .3s; }
.entry p { font-size: 16px; color: var(--muted); margin: 6px 0; }
.entry small { font-size: 9px; }
.entry-n { color: var(--ember); padding-top: 7px; }
.entry-arrow { color: var(--ember); padding: 4px; transition: transform .6s var(--ease); }
details[open] .entry-arrow { transform: rotate(45deg); }
details[open] .entry h3 { color: var(--ember); }
.detail { padding: 4px 40px 25px 58px; color: var(--muted); font-size: 16px; line-height: 1.95; }
.site-head::after, .chapter-head::after, .entry::after, .detail::after {
  content: ""; position: absolute; pointer-events: none; inset: auto 0 -2px; height: 4px;
  background: var(--rule-image) center / 100% 100% no-repeat; opacity: .65;
}
.chapter-head, .entry, .detail { position: relative; }
details[open] .entry::after { opacity: 0; }
:root[data-theme=dark] :is(.site-head, .chapter-head, .entry, .detail)::after { opacity: .42; }
.footer-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; font: 12px/1.7 Newsreader, var(--serif-cn); font-variant-numeric: tabular-nums; letter-spacing: .025em; }
.weather a { text-underline-offset: 4px; }
.weather a:hover { text-decoration: underline; }
.daily-verse { margin: 24px 0 0; text-align: center; }
.daily-verse blockquote { margin: 0; color: var(--ink); font-size: clamp(16px, 2.6vw, 19px); letter-spacing: .07em; line-height: 1.9; }
.daily-verse figcaption { margin-top: 7px; font-size: 11px; letter-spacing: .045em; }
.daily-panel {
  position: absolute;
  z-index: 3;
  top: 106px;
  right: 24px;
  width: 290px;
  padding: 18px 20px;
  color: var(--muted);
  background: transparent;
  border: 0;
  isolation: isolate;
}
.daily-panel .footer-meta { gap: 5px; flex-direction: column; text-align: right; }
.daily-panel .daily-verse { margin-top: 13px; text-align: right; }
.daily-panel .daily-verse blockquote { font-size: 15px; letter-spacing: .025em; }
.daily-panel .daily-verse figcaption { margin-top: 4px; }
.daily-panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -22px -16px;
  pointer-events: none;
  background: radial-gradient(ellipse at 68% 40%,
    color-mix(in oklch, var(--paper) 84%, transparent),
    color-mix(in oklch, var(--paper) 60%, transparent) 42%,
    transparent 73%);
}
.chapter-scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.chapter-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
  opacity: .3;
  transition: opacity .7s, filter .7s;
}
.chapter-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent,
    color-mix(in oklch, var(--paper) 65%, transparent) 28%,
    color-mix(in oklch, var(--paper) 65%, transparent) 72%, transparent);
}
:root[data-theme=dark] .chapter-art {
  opacity: .14;
  filter: saturate(.6) brightness(.7);
}
@media (max-width: 1100px) {
  .daily-panel { position: relative; top: auto; right: auto; margin: 20px 24px 0 auto; }
}
@media (hover: hover) and (pointer: fine) {
  nav a:hover { background: var(--panel); }
  nav a:hover::after { transform: scaleX(1); }
  .theme:hover { border-color: var(--ember); background: var(--panel); }
  .entry:hover { background: var(--panel); }
  .entry:hover h3 { color: var(--ember); }
}
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: depart .22s ease both; }
  ::view-transition-new(root) { animation: arrive .65s var(--ease) both; }
  .masthead h1 span[style*="--i"], .author-latin span[style*="--i"] { animation: glyph 1.15s var(--ease) both; animation-delay: calc(60ms + var(--i) * 65ms); }
  .author-latin span[style*="--i"] { animation-delay: calc(200ms + var(--i) * 45ms); }
  .mast-label, .lede, .author-affiliation { animation: arrive .9s .25s var(--ease) both; }
  details[open] .detail { animation: arrive .45s var(--ease) both; }
  @supports (animation-timeline: view()) {
    .reveal { animation: arrive linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .brand:hover img { rotate: -13deg; }
  .theme:hover { transform: rotate(-8deg); }
}
@media (prefers-reduced-motion: no-preference) {
  .glyph-ink { transition: color .35s, font-variation-settings .65s var(--ease); }
  .text-glyph.is-hopping > .glyph-ink { animation: glyph-hop .66s both; color: var(--ember); }
  .text-glyph.is-echoing > .glyph-ink { animation: glyph-echo .58s .055s both; }
  .author-latin .text-glyph.is-hopping > .glyph-ink { font-variation-settings: "opsz" 12, "SOFT" 100, "WONK" 1; }
}
@keyframes glyph-hop {
  0% { translate: 0 0; rotate: 0deg; animation-timing-function: cubic-bezier(.2,.75,.3,1); }
  32% { translate: 0 calc(-1 * var(--glyph-hop)); rotate: -2deg; animation-timing-function: cubic-bezier(.55,0,.8,.4); }
  64% { translate: 0 0; rotate: 1deg; animation-timing-function: ease-out; }
  80% { translate: 0 calc(-.22 * var(--glyph-hop)); rotate: -.5deg; animation-timing-function: ease-in; }
  100% { translate: 0 0; rotate: 0deg; }
}
@keyframes glyph-echo {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  40% { translate: 0 calc(-.32 * var(--glyph-hop)); rotate: .8deg; animation-timing-function: ease-in-out; }
}
@keyframes glyph { from { opacity: 0; transform: translateY(.38em) rotate(5deg); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes depart { to { opacity: 0; transform: translateY(-5px); } }
@media (max-width: 610px) {
  .frame { width: calc(100% - 40px); }
  .head-inner { min-height: 0; padding: 17px 0 12px; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
  .brand { font-size: 17px; }
  nav { order: 3; width: 100%; margin: 0; justify-content: space-between; }
  nav a { padding: 7px 11px; }
  nav a::after { left: 11px; right: 11px; }
  .home .author-name { font-size: clamp(47px, 11vw, 66px); }
  .home .lede { max-width: 24em; }
  .inner { padding-top: 34px; }
  .inner .masthead { margin-bottom: 42px; }
  .crumb { margin-bottom: 28px; }
  .entry { grid-template-columns: 23px 1fr auto; gap: 10px; padding: 21px 6px; }
  .detail { padding: 3px 18px 22px 39px; }
  .chapter h2 { font-size: 22px; }
  .footer-meta { font-size: 11px; gap: 7px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .cursor { display: none !important; }
  .atmosphere canvas { display: none; }
}

.brand { font-family: Fraunces, Georgia, serif; letter-spacing: -.02em; }
.head-inner { gap: clamp(9px, 2vw, 20px); }
.language {
  color: var(--muted);
  font: 500 11px/1.4 ui-monospace, var(--serif-cn);
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 6px 9px;
}
.language:hover { border-color: var(--ember); }
.entry-n { white-space: nowrap; }
@media (max-width: 760px) {
  html[lang="en"] .head-inner { flex-wrap: wrap; padding-block: 14px 10px; }
  html[lang="en"] nav { order: 3; width: 100%; justify-content: space-between; margin: 0; gap: 0; }
  html[lang="en"] nav a { padding-inline: 4px; font-size: clamp(11px, 2.3vw, 14px); }
}
@media (max-width: 610px) {
  .head-inner .brand { margin-right: auto; }
  .head-inner nav a { padding-inline: 8px; }
  .head-inner nav a::after { left: 8px; right: 8px; }
}

.masthead h1 .heading-word { white-space: nowrap; animation: none; }
@media (max-width: 360px) {
  html[lang="en"] .head-inner nav a { padding-inline: 4px; }
}

/* Stationary hit areas prevent hover flicker while only the ink moves. */
.glyph-run, .glyph-visual { display: inline; }
.glyph-word { display: inline-block; white-space: nowrap; }
.text-glyph, .glyph-ink { display: inline-block; }
.glyph-ink { --glyph-hop: clamp(2px, .14em, 8px); font-style: inherit; transform-origin: 50% 80%; pointer-events: none; }
.glyph-readable { user-select: none; }

/* Room for the travel chapter in the shared navigation. */
.head-inner { width: min(100% - 48px, 1100px); }
@media (min-width: 761px) and (max-width: 960px) { .head-inner { flex-wrap: wrap; padding-block: 14px 10px; } .head-inner nav { order: 3; width: 100%; justify-content: space-between; margin: 0; } }

/* Room for the photography chapter without changing content widths. */
.head-inner { width: min(100% - 48px, 1200px); }
@media (min-width: 761px) and (max-width: 1080px) { .head-inner { flex-wrap: wrap; padding-block: 14px 10px; } .head-inner nav { order: 3; width: 100%; justify-content: space-between; margin: 0; } }
@media (max-width: 610px) { .head-inner nav { overflow-x: auto; justify-content: flex-start; gap: 8px; scrollbar-width: thin; } .head-inner nav a { flex-shrink: 0; } }

/* Keep all eight chapters readable in the bilingual navigation. */
.head-inner { width: min(100% - 48px, 1280px); }
@media (min-width: 761px) and (max-width: 1160px) { .head-inner { flex-wrap: wrap; padding-block: 14px 10px; } .head-inner nav { order: 3; width: 100%; justify-content: space-between; margin: 0; } }
