:root {
  color-scheme: light;
  --paper: #f6f0e4;
  --white: #fffbf1;
  --ink: #163c37;
  --muted: #4d6155;
  --line: #cfc7b6;
  --rust: #a04328;
  --serif: 'Songti SC', 'Noto Serif CJK SC', 'STSong', SimSun, 'Georgia', serif;
  --body: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --rail: #f0bc75;
  --food: #c87c57;
  --stay: #a9bd8b;
  --drive: #76b8ad;
  --tickets: #e3d7aa;
  --fun: #c9abc1;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 10% 18%, #fdf8ed, transparent 45rem), var(--paper);
  color: var(--ink);
  font: 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible, summary:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 5; transform: translateY(-150%); background: var(--white); padding: .5rem 1rem; }
.skip:focus { transform: translateY(0); }
.shell { width: min(calc(100% - 72px), 1200px); margin-inline: auto; }
.masthead { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 70px; border-bottom: 1px solid var(--line); }
.brand { font: 700 19px/1.2 var(--serif); letter-spacing: .16em; text-decoration: none; }
nav { display: flex; gap: clamp(17px, 4vw, 46px); font-size: .88rem; }
nav a { text-decoration: none; padding-block: .6rem; }
nav a:hover, .route a:hover { text-decoration: underline; }
.cover { display: grid; grid-template-columns: minmax(0, .91fr) minmax(0, 1.38fr); align-items: center; gap: clamp(28px, 4.3vw, 70px); padding-block: clamp(42px, 7vw, 100px) clamp(34px, 5vw, 64px); }
.cover-copy, .cover-art { animation: arrive .65s ease-out both; }
.cover-art { animation-delay: .12s; }
@keyframes arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.dateline { margin: 0 0 20px; letter-spacing: .16em; font-size: .84rem; font-weight: 650; color: var(--rust); }
h1, h2, h3, p, figure { margin: 0; }
h1 { font: 750 clamp(3rem, 6vw, 5.5rem)/1.04 var(--serif); letter-spacing: -.075em; }
h1 em { font-style: normal; font-weight: 650; font-size: .78em; white-space: nowrap; }
.intro { color: var(--muted); margin-top: 22px; max-width: 24em; line-height: 1.85; }
.jump { display: inline-flex; align-items: center; gap: 20px; margin-top: 26px; font-weight: 700; text-decoration: none; color: var(--white); background: var(--ink); padding: 10px 16px; }
.jump:hover { background: #28564b; }
.cover-art { position: relative; background: var(--white); padding: 10px 10px 0; box-shadow: 0 7px 24px #55402418; border: 1px solid #ded4c0; }
.cover-art img { display: block; width: 100%; height: auto; aspect-ratio: 1.52; object-fit: cover; }
.cover-art figcaption { padding: 7px 3px; text-align: right; color: var(--muted); font-size: .72rem; }
.trip-strip { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 20px; border-block: 1px solid var(--line); padding: 16px 0; }
.trip-count { white-space: nowrap; padding-right: 26px; border-right: 1px solid var(--line); font-size: .9rem; }
.trip-count strong { font: 700 1.5rem/1 Georgia, serif; }
.trip-count span { margin-inline: .3em; color: var(--rust); }
.route { display: flex; justify-content: space-evenly; align-items: center; list-style: none; margin: 0; padding: 0; gap: 5px; }
.route li { display: flex; align-items: center; gap: clamp(7px, 4vw, 55px); white-space: nowrap; }
.route li + li::before { content: '→'; color: var(--rust); font-size: .85em; }
.route a { font-weight: 700; text-decoration: none; }
.memories { padding-top: clamp(52px, 8vw, 100px); }
.section-top { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 24px; }
h2 { font: 750 clamp(2.15rem, 4.5vw, 3.6rem)/1.14 var(--serif); letter-spacing: -.045em; }
.section-top p { font-size: .9rem; color: var(--muted); }
.stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.story { --tint: #f3e5d9; --mark: #973f2b; background: linear-gradient(142deg, var(--tint), var(--white) 68%); border: 1px solid var(--line); border-top: 3px solid var(--mark); padding: clamp(16px, 2.2vw, 28px); scroll-margin-top: 24px; }
.story.saffron { --tint: #f2e7cb; --mark: #876020; }
.story.moss { --tint: #e5ebd7; --mark: #46604b; }
.story:target { outline: 2px solid var(--mark); outline-offset: 3px; }
.place { color: var(--mark); font-weight: 700; font-size: .8rem; letter-spacing: .1em; }
.story h3 { font: 750 clamp(1.4rem, 2.6vw, 1.9rem)/1.3 var(--serif); letter-spacing: -.04em; margin: 9px 0 10px; }
.story > p:not(.place) { color: var(--muted); min-height: 4.95em; font-size: .93rem; }
details { margin-top: 18px; border-top: 1px dashed #b7ac97; }
summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 7px; padding-top: 12px; font-size: .82rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font: 1.1rem/1 Georgia, serif; color: var(--mark); }
details[open] summary::after { content: '−'; }
summary:hover span { text-decoration: underline; text-underline-offset: .25em; }
summary b, dd, .legend b, .legend small { font-variant-numeric: tabular-nums; white-space: nowrap; }
summary b { color: var(--mark); font-size: .97rem; }
dl { margin: 0; }
dd { margin: 0; }
details dl { margin-top: 13px; background: #fffaf0; padding: 9px 10px; font-size: .8rem; }
dl div { display: flex; justify-content: space-between; gap: 12px; }
details dl div + div { margin-top: 7px; }
.spending { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(26px, 6vw, 92px); margin-top: clamp(52px, 8vw, 100px); padding: clamp(22px, 5vw, 68px); background: radial-gradient(ellipse at top left, #285a4e, var(--ink) 68%); color: var(--white); }
.spending h2 { font-size: clamp(1.7rem, 3.2vw, 2.7rem); }
.overall { font: 600 clamp(2.5rem, 5.8vw, 4.9rem)/1.1 Georgia, serif; letter-spacing: -.06em; margin: .23em 0 .08em; white-space: nowrap; }
.overall span { font-size: .62em; margin-right: .07em; color: #f0bc75; }
.overall-label { font-size: .86rem; color: #d8e5d9; }
.road { margin-top: 23px; font-size: .88rem; border-top: 1px solid #789387; }
.road div { padding-top: 8px; }
.breakdown { align-self: center; }
.breakdown h3 { font: 700 1.45rem/1.2 var(--serif); }
.stack { display: grid; grid-template-columns: 4995fr 2278.17fr 2214.47fr 2076.14fr 1075fr 383fr; height: 19px; margin: 14px 0 11px; gap: 2px; }
.rail, .stack i:nth-child(1) { background: var(--rail); }
.food, .stack i:nth-child(2) { background: var(--food); }
.stay, .stack i:nth-child(3) { background: var(--stay); }
.drive, .stack i:nth-child(4) { background: var(--drive); }
.tickets, .stack i:nth-child(5) { background: var(--tickets); }
.fun, .stack i:nth-child(6) { background: var(--fun); }
.legend { list-style: none; padding: 0; margin: 0; }
.legend li { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto 3.2em; align-items: center; gap: 9px; padding: 6px 0; border-bottom: 1px solid #6d8b803f; font-size: .87rem; }
.swatch { width: 8px; height: 8px; border-radius: 50%; }
.legend small { text-align: right; color: #dce7d9; }
.footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 26px 0 34px; font-size: .88rem; color: var(--muted); }
@media (max-width: 900px) {
  .shell { width: calc(100% - 44px); }
  .stories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .shell { width: calc(100% - 32px); }
  .masthead { min-height: 58px; }
  .brand { font-size: 16px; }
  .cover { grid-template-columns: minmax(0, 1fr); gap: 23px; padding-top: 32px; }
  h1 { font-size: clamp(2.85rem, 11.5vw, 4.6rem); }
  .dateline { margin-bottom: 12px; }
  .intro { margin-top: 14px; }
  .jump { margin-top: 17px; }
  .cover-art { padding: 6px 6px 0; }
  .cover-art figcaption { padding: 4px 2px; }
  .trip-strip { gap: 9px; }
  .trip-count { padding-right: 10px; font-size: .75rem; }
  .trip-count strong { font-size: 1.1rem; }
  .route { font-size: .77rem; }
  .route li { gap: 6px; }
  .stories, .spending { grid-template-columns: minmax(0, 1fr); }
  .story > p:not(.place) { min-height: 0; }
  .spending { padding: 22px 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cover-copy, .cover-art { animation: none; }
}
