/* Ink on near-white paper; vermilion is the only colour, and it marks the lived route. */
.journey-work.journey-archive{--journey-paper:#faf9f6;--journey-ink:#1d1c1a;--journey-muted:#77746e;--journey-route:#a34132;display:grid;grid-template-columns:minmax(0,55%) minmax(0,45%);align-items:start;width:100%;max-width:none;height:auto;min-height:0;margin:0!important;padding:58px 0 0!important;overflow:visible;background:var(--journey-paper);color:var(--journey-ink);isolation:isolate}
.journey-archive *{box-sizing:border-box}
.journey-archive a{color:inherit;text-decoration:none}
.journey-archive button,.journey-archive summary{font:inherit;color:inherit}
.journey-archive a:focus-visible,.journey-archive button:focus-visible,.journey-archive summary:focus-visible{outline:2px solid var(--journey-ink);outline-offset:5px}
.journey-atlas{position:sticky;top:58px;height:calc(100svh - 58px);min-height:440px;overflow:hidden;align-self:start}
.journey-archive .journey-canvas{position:absolute;inset:0;width:100%;height:100%}
.journey-atlas-current{position:absolute;left:34px;top:30px;pointer-events:none}
.journey-atlas-current strong{font:400 13px/1.6 "PingFang SC",sans-serif;letter-spacing:.08em;color:#4a4844}
.journey-map-caption{position:absolute;left:34px;bottom:26px;font-size:10px;color:#77746e;margin:0}
.journey-reader{position:relative;min-width:0;padding:0 clamp(32px,4vw,72px);background:var(--journey-paper)}
.journey-entry{padding:83px 0 55px;scroll-margin-top:100px}
.journey-entry h1{position:relative;margin:0;font:600 clamp(54px,6.5vw,94px)/1.12 "Songti SC","STSong",serif;letter-spacing:-.045em;color:var(--journey-ink)}
.journey-entry h1:before{content:"";position:absolute;left:-16px;top:calc(.5lh - 2px);width:4px;height:4px;border-radius:50%;background:#a34b45}
.journey-entry-span{font:12px/1.5 "SFMono-Regular",Consolas,monospace;letter-spacing:.12em;margin:27px 0 35px;color:var(--journey-muted)}
.journey-prose{font-size:15px;line-height:2;letter-spacing:.015em;color:var(--journey-ink)}
.journey-prose p{margin:0 0 20px}.journey-prose p:last-child{margin-bottom:0}
.journey-begin{display:flex;justify-content:space-between;max-width:235px;align-items:center;margin-top:28px;padding:12px 0;color:var(--journey-ink)!important;font-size:12px}
.journey-contents{padding:20px 0 5px;margin-bottom:20px}
.journey-contents>span{font-size:11px;color:var(--journey-muted)}
.journey-contents ol{list-style:none;padding:0;margin:16px 0 0;display:grid;grid-template-columns:1fr 1fr;gap:0 25px}
.journey-contents a{display:flex;align-items:center;gap:13px;min-height:39px;font-size:12px}
.journey-contents time{font:10px monospace;color:var(--journey-muted)}
.journey-contents a:hover,.journey-contents a[aria-current]{text-decoration:underline;text-underline-offset:5px}
.journey-chapter{position:relative;padding:70px 0 65px;scroll-margin-top:98px}
.journey-chapter-long{padding-top:100px;padding-bottom:105px}
.journey-period{font:400 13px/1.5 "SFMono-Regular",Consolas,monospace;letter-spacing:.04em;margin:0 0 10px;color:var(--journey-muted)}
.journey-stay{font-size:11px;line-height:1.5;color:var(--journey-muted);margin:0 0 23px}
.journey-chapter h2{font:600 clamp(28px,2.6vw,38px)/1.4 "Songti SC","STSong",serif;letter-spacing:-.025em;color:var(--journey-ink);margin:0 0 10px}
.journey-place{margin:0 0 28px;font-size:13px;color:var(--journey-muted)}
.journey-record{margin:30px 0 0;padding:0 0 0 17px;border-left:1px solid #77746e55}
.journey-record>span{font:10px/1.6 "SFMono-Regular","PingFang SC",monospace;color:var(--journey-muted)}
.journey-record p{font:400 17px/1.9 "Songti SC","STSong",serif;margin:10px 0 11px}
.journey-record a{font-size:11px;color:var(--journey-ink);text-decoration:underline;text-underline-offset:4px;text-decoration-color:#1d1c1a40}
.journey-trips{margin:28px 0 0;padding-top:10px}
.journey-trips summary{list-style:none;display:flex;justify-content:space-between;gap:16px;align-items:center;cursor:pointer;min-height:40px;font-size:11px;color:var(--journey-muted)}
.journey-trips summary::-webkit-details-marker{display:none}
.journey-trips summary>span{display:flex;gap:15px;align-items:center;font:10px monospace;white-space:nowrap}
.journey-trips summary i{font-style:normal;font-size:15px}.journey-trips[open] summary i{transform:rotate(45deg)}
.journey-trips ul{list-style:none;margin:10px 0 0;padding:0;display:flex;gap:7px;flex-wrap:wrap}
.journey-trips button{display:flex;gap:9px;align-items:center;border:1px solid #77746e44;border-radius:0;background:none;min-height:40px;padding:7px 10px;font-size:11px;cursor:pointer}
.journey-trips button time{font:10px monospace;color:var(--journey-muted)}
.journey-trips button[aria-pressed="true"]{background:var(--journey-ink);color:var(--journey-paper);border-color:var(--journey-ink)}
.journey-trips button[aria-pressed="true"] time{color:inherit}
.journey-ending{padding:60px 0 80px;scroll-margin-top:98px}
.journey-kicker{font-size:11px;color:var(--journey-muted);display:flex;gap:14px;margin:0 0 20px}
.journey-ending h2{font:600 clamp(32px,3.5vw,46px)/1.35 "Songti SC","STSong",serif;letter-spacing:-.035em;margin:0 0 30px}
.journey-method{font-size:10px;line-height:1.85;color:var(--journey-muted);margin:28px 0 0}
.journey-ending-links{display:flex;justify-content:space-between;gap:20px;margin-top:34px;font-size:12px;color:var(--journey-ink)}
.journey-archive~.footer,.journey-archive~#back-to-top{display:none}
html:has(.journey-archive){scroll-behavior:smooth}
@media(min-width:1600px){.journey-reader{padding-left:86px;padding-right:100px}.journey-prose{max-width:540px}.journey-entry{padding-top:112px}}
@media(max-width:1100px) and (min-width:761px){.journey-work.journey-archive{grid-template-columns:48% 52%}.journey-reader{padding-left:28px;padding-right:28px}.journey-entry h1{font-size:66px}}
@media(max-width:760px){
.journey-work.journey-archive{--journey-map-height:clamp(225px,33svh,310px);display:block;padding-top:58px!important}
.journey-atlas{height:var(--journey-map-height);min-height:0;z-index:4;top:58px;background:var(--journey-paper)}
.journey-atlas-current{top:13px;left:20px}.journey-atlas-current strong{font-size:10px}.journey-map-caption{left:20px;bottom:10px;font-size:8px}
.journey-reader{padding:0 25px}.journey-entry{padding:34px 0 35px;scroll-margin-top:calc(var(--journey-map-height) + 85px)}
.journey-entry h1{font-size:64px}.journey-entry-span{font-size:11px;margin:22px 0}.journey-prose{font-size:15px;line-height:1.95}
.journey-begin{margin-top:22px}.journey-contents{padding-top:15px;margin-bottom:0}.journey-contents a{min-height:44px}
.journey-chapter{padding:47px 0;scroll-margin-top:calc(var(--journey-map-height) + 82px)}.journey-chapter-long{padding:65px 0 70px}
.journey-chapter h2{font-size:29px}.journey-place{margin-bottom:25px}.journey-record{margin-top:25px;padding-left:15px}
.journey-trips{margin-top:24px}.journey-trips button{min-height:44px}.journey-ending{padding:48px 0;scroll-margin-top:calc(var(--journey-map-height) + 82px)}.journey-ending h2{font-size:35px}
}
@media(max-width:359px){.journey-reader{padding:0 20px}.journey-entry h1{font-size:57px}.journey-contents ol{gap:0 13px}}
@media(prefers-reduced-motion:reduce){html:has(.journey-archive){scroll-behavior:auto}}
/* Time: reading distance follows the years lived, and the map carries a running year and a life ruler. */
.journey-archive{--journey-year:150px}
.journey-chapter{min-height:calc(var(--weight,0) * var(--journey-year))}
@media(min-width:761px) and (min-height:760px){.journey-chapter-body{position:sticky;top:140px}}
.journey-clock{display:flex;align-items:baseline;gap:12px;margin:0 0 6px}
.journey-clock time{font:400 44px/1 "SFMono-Regular","SF Mono",Menlo,Consolas,monospace;font-variant-numeric:tabular-nums;letter-spacing:-.04em;color:var(--journey-ink)}
.journey-clock span{font:12px/1 "PingFang SC",sans-serif;color:var(--journey-muted)}
.journey-ruler{position:absolute;left:34px;right:34px;bottom:52px;pointer-events:none}
.journey-ruler-stages{position:relative;height:22px;margin:0;padding:0;list-style:none}
.journey-ruler-stages li{position:absolute;bottom:0;height:100%;border-left:1px solid #77746e66}
.journey-ruler-stages span{position:absolute;left:6px;top:0;font-size:10px;line-height:1.4;color:var(--journey-muted);white-space:nowrap}
.journey-ruler-track{position:relative;height:6px;background:repeating-linear-gradient(to right,#77746e55 0 1px,transparent 1px calc(100% / 35)) left bottom/100% 4px no-repeat;border-bottom:1px solid #77746e88}
.journey-ruler-track span{position:absolute;left:0;bottom:-1px;width:0;height:2px;background:var(--journey-route)}
.journey-ruler-track i{position:absolute;bottom:-4px;width:1px;height:12px;margin-left:-.5px;background:var(--journey-route)}
.journey-ruler-years{display:flex;justify-content:space-between;margin-top:6px;font:10px/1 "SFMono-Regular",Menlo,monospace;color:var(--journey-muted)}
.journey-map-caption{bottom:20px}
.journey-life{display:flex;gap:4px;margin:36px 0 0;padding:0;list-style:none}
.journey-life li{flex:var(--years) 1 0;min-width:64px}
.journey-life-bar{display:block;height:6px;margin-bottom:12px;background:var(--journey-ink);opacity:.3}
.journey-life li:nth-child(2) .journey-life-bar{opacity:.45}
.journey-life li:nth-child(3) .journey-life-bar{opacity:.65}
.journey-life li:last-child .journey-life-bar{opacity:1;background:var(--journey-route)}
.journey-life strong{display:block;font:600 15px/1.5 "Songti SC","STSong",serif}
.journey-life span:not(.journey-life-bar){display:block;margin-top:2px;font:10px/1.6 "SFMono-Regular",Menlo,monospace;color:var(--journey-muted);white-space:nowrap}
@media(max-width:760px){
.journey-archive{--journey-year:56px}
.journey-atlas{box-shadow:0 -10px 0 var(--journey-paper)}
.journey-clock time{font-size:26px}.journey-clock{gap:8px;margin-bottom:2px}
.journey-ruler{left:20px;right:20px;bottom:26px}.journey-ruler-stages{height:16px}.journey-ruler-stages span{font-size:9px;left:4px}
.journey-ruler-years{display:none}.journey-map-caption{bottom:8px}
.journey-life{flex-wrap:wrap;gap:16px 4px}
}
