/* Land to the Tiller: a hanging scroll of paper, ink and seals.
   Colours are tokens on :root; dark mode redefines them. */

:root {
  --mount: #3b2b21;
  --mount-2: #57402f;
  --silk: #c9bc9c;
  --paper: #efe4c8;
  --paper-2: #f7f0de;
  --ink: #231b13;
  --ink-2: #4a3d2f;
  --muted: #65553f;
  --red: #9f2e1d;
  --seal: #a8321f;
  --on-seal: #fbf3e2;
  --blue: #285a75;
  --green: #3d6a50;
  --line: rgba(35, 27, 19, .32);
  --focus: #1b5e8a;
  --shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 10px 30px rgba(20, 12, 6, .28);
  --f-brush: 'Ma Shan Zheng', 'Noto Serif SC', serif;
  --f-zh: 'Noto Serif SC', serif;
  --f-body: 'EB Garamond', 'Noto Serif SC', Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --mount: #0d0a08; --mount-2: #1c1510; --silk: #3a3026;
    --paper: #1e1914; --paper-2: #28211a;
    --ink: #eee4cd; --ink-2: #d2c4a8; --muted: #bba98a;
    --red: #e88c73; --seal: #b23a26; --on-seal: #fbefe0;
    --blue: #93c4dc; --green: #9cc7a8;
    --line: rgba(238, 228, 205, .28); --focus: #9fd0ff;
    --shadow: 0 10px 30px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --mount: #0d0a08; --mount-2: #1c1510; --silk: #3a3026;
  --paper: #1e1914; --paper-2: #28211a;
  --ink: #eee4cd; --ink-2: #d2c4a8; --muted: #bba98a;
  --red: #e88c73; --seal: #b23a26; --on-seal: #fbefe0;
  --blue: #93c4dc; --green: #9cc7a8;
  --line: rgba(238, 228, 205, .28); --focus: #9fd0ff;
  --shadow: 0 10px 30px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  margin: 0; color: var(--ink); font: 400 19px/1.6 var(--f-body);
  background-color: var(--mount);
  background-image:
    radial-gradient(circle at 50% 50%, var(--mount-2) 0 1.6px, transparent 2px),
    linear-gradient(45deg, transparent 47%, rgba(200, 160, 100, .08) 48% 52%, transparent 53%),
    linear-gradient(-45deg, transparent 47%, rgba(200, 160, 100, .08) 48% 52%, transparent 53%);
  background-size: 22px 22px, 22px 22px, 22px 22px;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
[lang="zh"] { font-family: var(--f-zh); }
h1, h2, h3 { font-weight: 500; line-height: 1.15; margin: 0; }
p { margin: 0 0 .8em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 60; }
.skip:focus { left: 8px; }

/* paper grain, shared by the paper surfaces */
.scroll, .panel, .tab[aria-selected="true"] {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .3 0 0 0 0 .17 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='300'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.008 .35' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .34 0 0 0 0 .2 0 0 0 .7 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)' opacity='.35'/%3E%3C/svg%3E");
  background-blend-mode: multiply;
}
:root[data-theme="dark"] .scroll, :root[data-theme="dark"] .panel { background-blend-mode: soft-light; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .scroll, :root:not([data-theme="light"]) .panel { background-blend-mode: soft-light; } }

/* ---------- the scroll and its rods ---------- */
.scroll {
  position: relative; max-width: 1180px; margin: 0 auto; background-color: var(--paper);
  border-left: 14px solid var(--silk); border-right: 14px solid var(--silk);
  box-shadow: var(--shadow), 0 0 0 1px rgba(0, 0, 0, .25);
  padding: 0 clamp(16px, 4vw, 56px) 40px;
}
.scroll::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, transparent 55%, rgba(120, 80, 30, .16) 100%);
}
.rod { position: sticky; top: 0; z-index: 30; padding: 0 6px; }
.rod-bottom { position: static; }
.rod-inner {
  position: relative; max-width: 1220px; margin: 0 auto; min-height: 56px; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 6px clamp(16px, 4vw, 40px); color: #f3e7cc;
  background: linear-gradient(#6b4a31, #3a2516 45%, #2a190e 55%, #573a25);
  border-radius: 6px; box-shadow: 0 4px 12px rgba(0, 0, 0, .4);
}
.rod-inner::before, .rod-inner::after {
  content: ""; position: absolute; top: 50%; width: 18px; height: 40px; transform: translateY(-50%);
  background: linear-gradient(90deg, #2a190e, #8a6440 40%, #3a2516); border-radius: 5px;
}
.rod-inner::before { left: -10px; }
.rod-inner::after { right: -10px; }
.rod-bottom .rod-inner { font-size: 15px; justify-content: center; text-align: center; }
.rod-bottom p { margin: 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #f6ead0; text-decoration: none; font-size: 20px; letter-spacing: .02em; }
.brand:hover { color: #fff; }
.mini-seal {
  display: inline-grid; place-items: center; width: 32px; height: 32px; background-color: #a8321f; color: #fbf3e2;
  font: 22px/1 var(--f-brush); border-radius: 2px; transform: rotate(-3deg); box-shadow: inset 0 0 0 2px #a8321f, inset 0 0 0 3.5px rgba(255, 240, 220, .7);
}
.site-nav { display: flex; align-items: center; gap: clamp(8px, 2vw, 22px); }
.site-nav a { color: #f3e7cc; text-decoration: none; font-size: 17px; padding: 10px 2px; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: #e7b27c; color: #fff; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(243, 231, 204, .45);
  background: transparent; color: #f3e7cc; border-radius: 50%; cursor: pointer;
}
.rod .icon-btn:focus-visible, .rod a:focus-visible { outline-color: #ffd28a; }
@media (max-width: 640px) {
  .site-nav a.hide-sm { display: none; }
  .brand { font-size: 17px; }
  .rod { padding: 0; }
  .rod-inner { border-radius: 0; padding-left: 12px; padding-right: 12px; }
  .rod-inner::before, .rod-inner::after { display: none; }
  .scroll { border-left-width: 0; border-right-width: 0; }
}
@media (max-width: 420px) { .brand span:last-child { display: none; } }

/* ---------- headings and rules ---------- */
.sec { padding: 24px 0 10px; }
.sec > h2 { font-size: clamp(30px, 4.6vw, 44px); margin-bottom: 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.sec > h2 .zh { font-family: var(--f-brush); font-weight: 400; color: var(--red); font-size: 1.15em; }
.sub { color: var(--ink-2); max-width: 46em; font-size: 18px; }
.brush-rule {
  height: 30px; margin: 30px auto; width: min(560px, 82%); color: var(--ink); opacity: .85;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 30' preserveAspectRatio='none'%3E%3Cpath d='M3 17 C50 9 130 12 220 13 C320 14 420 10 520 12 C560 13 585 15 598 10 C592 18 560 21 520 19 C420 17 320 20 220 19 C130 18 60 22 3 17Z'/%3E%3Cpath d='M40 22 C140 20 260 22 380 21' stroke='%23000' stroke-width='.8' fill='none' opacity='.6'/%3E%3Cpath d='M120 9 C220 8 330 9 450 8' stroke='%23000' stroke-width='.6' fill='none' opacity='.5'/%3E%3Ccircle cx='596' cy='12' r='2.5'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 30' preserveAspectRatio='none'%3E%3Cpath d='M3 17 C50 9 130 12 220 13 C320 14 420 10 520 12 C560 13 585 15 598 10 C592 18 560 21 520 19 C420 17 320 20 220 19 C130 18 60 22 3 17Z'/%3E%3Cpath d='M40 22 C140 20 260 22 380 21' stroke='%23000' stroke-width='.8' fill='none' opacity='.6'/%3E%3Cpath d='M120 9 C220 8 330 9 450 8' stroke='%23000' stroke-width='.6' fill='none' opacity='.5'/%3E%3Ccircle cx='596' cy='12' r='2.5'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.brush-rule.alt { transform: scaleX(-1) rotate(1deg); width: min(420px, 70%); color: var(--red); opacity: .75; }

/* ---------- first screen: a still, a question, the map ---------- */
.hook { display: grid; gap: 16px 30px; padding: 26px 0 8px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .hook { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); grid-template-rows: auto auto; align-items: start; padding-top: 36px; }
  .hook-still { grid-row: 1 / span 2; }
}
.hook-still { margin: 0; padding: 8px 8px 10px; background: #fbf7ec; box-shadow: 0 6px 18px rgba(30, 18, 8, .3); transform: rotate(-1.2deg); color: #231b13; }
.hook-still img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 22%; }
@media (min-width: 900px) { .hook-still img { aspect-ratio: 3 / 4; } }
.hook-still figcaption { font-size: 14px; margin-top: 6px; font-style: italic; }
.hook-still .credit { display: block; font-size: 12px; color: #65553f; }
.hook-text { min-width: 0; }
.eyebrow { font-size: 16px; color: var(--muted); margin-bottom: 8px; }
.eyebrow [lang] { font-family: var(--f-brush); color: var(--red); font-size: 20px; margin-right: 6px; }
.hook h1 { font-size: clamp(30px, 4.6vw, 52px); line-height: 1.12; letter-spacing: -.005em; margin-bottom: 12px; }
.answer { font-size: clamp(19px, 2.2vw, 24px); border-left: 4px solid var(--seal); padding-left: 14px; margin-bottom: 10px; }
.for-you { font-style: italic; color: var(--ink-2); font-size: 17px; }
.hook-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.btn.big { font-size: 18px; padding: 10px 20px; text-decoration: none; }
.hook-map { position: relative; display: block; border: 8px solid var(--silk); outline: 1px solid var(--ink); outline-offset: -1px; box-shadow: 0 6px 18px rgba(30, 18, 8, .3); text-decoration: none; }
.hook-map img { width: 100%; aspect-ratio: 1600 / 1100; object-fit: cover; }
.hook-map-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 10px; background: rgba(35, 27, 19, .82); color: #f6ead0; font-size: 15px; }
.hook-map-cap [lang] { font-family: var(--f-brush); color: #f3b49b; margin-right: 6px; }
.hook-map:hover .hook-map-cap { background: rgba(159, 46, 29, .9); }
@media (max-width: 899px) {
  .hook-still { order: 1; }
  .hook-text { order: 2; }
  .hook-map { order: 3; }
  .hook-still img { aspect-ratio: 4 / 3; object-position: 50% 40%; }
  .hook-btns .btn.big { font-size: 17px; padding: 9px 14px; }
}

/* the story in 30 seconds: three paper slips */
.meet-list { list-style: none; margin: 14px 0 6px; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.meet-slip button {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 4px 14px; align-items: start; width: 100%; text-align: left; cursor: pointer;
  background: transparent; border: 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); padding: 12px 2px; color: var(--ink);
}
.meet-slip img { grid-row: 1 / span 2; width: 96px; height: 96px; object-fit: cover; border: 4px solid #fbf7ec; box-shadow: 0 2px 6px rgba(30, 18, 8, .3); }
.meet-name { font-size: 21px; font-weight: 600; }
.meet-name [lang] { font-family: var(--f-brush); font-weight: 400; color: var(--red); margin-right: 4px; }
.meet-line { font-size: 17px; color: var(--ink-2); line-height: 1.4; }
.meet-slip button:hover .meet-name { color: var(--red); }
.meet-more { font-size: 16px; color: var(--muted); font-style: italic; }

/* ending prompt */
.ending h2 { max-width: 20em; }
.ask { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 22px; }
.ask li::before { content: "？"; font-family: var(--f-brush); color: var(--red); margin-right: 6px; }

.ink-link {
  background: none; border: 0; padding: 6px 0; min-height: 44px; cursor: pointer; color: var(--ink); text-align: left; margin-right: 14px;
  background-image: linear-gradient(var(--red), var(--red)); background-size: 100% 2px; background-position: 0 82%; background-repeat: no-repeat;
}
.ink-link:hover { color: var(--red); }
.ink-link [lang] { font-family: var(--f-brush); color: var(--red); margin-right: 4px; }

/* ---------- seal stamps ---------- */
.stamp-row { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 8px; }
.stamp { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; padding: 4px; cursor: pointer; color: var(--ink); width: 92px; }
.seal-face {
  display: inline-grid; grid-template-rows: repeat(2, auto); grid-auto-flow: column; direction: rtl; place-content: center; gap: 2px 3px;
  width: 66px; height: 66px; background-color: var(--seal); color: var(--on-seal); font: 25px/1 var(--f-brush);
  box-shadow: inset 0 0 0 3px var(--seal), inset 0 0 0 5px rgba(255, 240, 220, .75);
  clip-path: polygon(1% 3%, 22% 0, 48% 2%, 77% 0, 99% 2%, 100% 26%, 98% 52%, 100% 79%, 98% 99%, 74% 100%, 49% 98%, 24% 100%, 2% 98%, 0 73%, 2% 48%, 0 22%);
  transition: transform .15s;
}
.seal-face span { display: block; line-height: 1.04; }
.stamp:nth-child(2) .seal-face { transform: rotate(2deg); }
.stamp:nth-child(3) .seal-face { transform: rotate(-2.5deg); }
.stamp:nth-child(4) .seal-face { transform: rotate(1.5deg); }
.stamp:hover .seal-face { transform: rotate(0) scale(1.05); }
.stamp .seal-cap { font-size: 15px; line-height: 1.2; text-align: center; }

/* ---------- map controls ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 10px; border-bottom: 2px solid var(--ink); }
.tab {
  position: relative; border: 1px solid var(--line); border-bottom: 0; background-color: transparent; color: var(--ink-2);
  padding: 8px 14px 6px; min-height: 44px; cursor: pointer; font-size: 17px; margin-bottom: -2px; border-radius: 3px 3px 0 0;
}
.tab [lang] { font-family: var(--f-brush); font-size: 20px; color: var(--red); margin-right: 4px; }
.tab[aria-selected="true"] { background-color: var(--paper-2); color: var(--ink); border: 2px solid var(--ink); border-bottom: 2px solid var(--paper-2); font-weight: 600; }
.tab[aria-selected="true"]::before { content: ""; position: absolute; left: 50%; top: -9px; width: 2px; height: 10px; background: var(--red); }
@media (max-width: 520px) { .tab { font-size: 15px; padding: 8px 9px 6px; } .tab [lang] { font-size: 17px; } }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 6px 0 10px; }
.chips .label { font-style: italic; color: var(--muted); font-size: 16px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid var(--seal); color: var(--red); background: transparent; padding: 6px 12px; min-height: 44px; cursor: pointer; font-size: 16px; border-radius: 2px;
}
.chip [lang] { font-family: var(--f-brush); margin-right: 4px; }
.chip[aria-pressed="true"] { background: var(--seal); color: var(--on-seal); }
.theme-live:empty { display: none; }
.live-card { border-left: 4px solid var(--seal); padding: 6px 16px; margin: 0 0 14px; }
.live-card h3 { font-size: 22px; }
.live-card h3 [lang] { font-family: var(--f-brush); color: var(--red); margin-right: 8px; font-weight: 400; }
.live-card p { margin: 6px 0 0; color: var(--ink-2); font-size: 17px; }

/* ---------- map stage ---------- */
.map-layout { display: grid; gap: 20px; }
.map-col { min-width: 0; }
@media (min-width: 980px) { .map-layout { grid-template-columns: minmax(0, 1fr) 380px; } }
.stage {
  position: relative; background: #e9dcbc; border: 10px solid var(--silk); outline: 1px solid var(--ink); outline-offset: -1px;
  box-shadow: 0 8px 22px rgba(20, 12, 6, .3); overflow: hidden; touch-action: pan-y;
}
@media (max-width: 640px) { .stage { border-width: 5px; } }
.map-svg { display: block; width: 100%; height: auto; user-select: none; -webkit-user-select: none; }
#svg-estate { aspect-ratio: 1600 / 1100; }
#svg-capital { aspect-ratio: 1000 / 700; }
#svg-echoes { aspect-ratio: 1600 / 1040; }
.map-svg[hidden] { display: none; }
.stage.zoomed .map-svg { touch-action: none; cursor: grab; }
.stage.dragging .map-svg { cursor: grabbing; }
.zoom-ctl { position: absolute; right: 8px; top: 8px; z-index: 2; display: flex; flex-direction: column; gap: 4px; }
.zoom-ctl button {
  width: 44px; height: 44px; border: 1.5px solid #231b13; background: #f7f0de; color: #231b13; font-size: 22px; line-height: 1; cursor: pointer; border-radius: 2px;
}
.zoom-ctl button:hover { background: #fff; }
.zoom-ctl button:focus-visible { outline-color: #1b5e8a; }
.stage-hint { font-size: 15px; color: var(--muted); font-style: italic; margin: 8px 0; }

.spot { cursor: pointer; outline: none; }
.spot .hit { fill: transparent; }
.spot .dot { fill: #a8321f; stroke: #f7f0de; stroke-width: 2.2; }
.spot.echo .dot { fill: #285a75; }
.spot.link .dot { fill: #231b13; }
.spot .num { fill: #fbf3e2; font: 600 12px/1 'EB Garamond', serif; stroke: none; pointer-events: none; }
.spot .ring { fill: none; stroke: #231b13; stroke-width: 3; opacity: 0; }
.spot:hover .dot { fill: #7d1f12; }
.spot.echo:hover .dot { fill: #173e55; }
.spot:focus-visible .ring, .spot.is-active .ring { opacity: 1; stroke: #1b5e8a; stroke-width: 4; }
.spot.is-active .dot { fill: #231b13; }
.stage[data-filter] .spot.match .ring { opacity: 1; stroke: #a8321f; stroke-dasharray: 4 3; }
.stage[data-filter] .spot:not(.match):not(.link) { opacity: .3; }
.stage[data-filter] .spot:not(.match):not(.link) .num { display: none; }

.tourbar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding: 12px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.tourbar .status { margin: 0; flex: 1 1 260px; font-size: 17px; }
.tour-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 16px; cursor: pointer;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font-size: 17px; border-radius: 2px;
}
.btn:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.btn.primary { background: var(--seal); border-color: var(--seal); color: var(--on-seal); font-weight: 600; }
.btn.primary:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.place-list h3 { font-size: 21px; margin: 16px 0 8px; }
.place-list ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.place-list button {
  display: flex; align-items: baseline; gap: 10px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px dotted var(--line);
  padding: 8px 2px; min-height: 44px; cursor: pointer; color: var(--ink); font-size: 17px;
}
.place-list button:hover { color: var(--red); }
.place-list .n { flex: none; width: 26px; height: 26px; display: inline-grid; place-items: center; border-radius: 50%; background: #a8321f; color: #fbf3e2; font-size: 13px; font-weight: 600; }
.place-list .n.echo { background: #285a75; }
.place-list .n.none { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.place-list .pz { font-family: var(--f-zh); color: var(--red); }
.place-list .dim { opacity: .45; }

/* ---------- the details panel: a slip of paper ---------- */
.panel {
  position: relative; background-color: var(--paper-2); color: var(--ink); padding: 24px 22px 28px; border: 1px solid var(--line); min-width: 0;
  clip-path: polygon(0.0% 2.7px, 2.9% 0.4px, 5.9% 3.9px, 8.8% 1.3px, 11.8% 4.1px, 14.7% 0.6px, 17.6% 3.0px, 20.6% 1.9px, 23.5% 4.6px, 26.5% 0.2px, 29.4% 2.3px, 32.4% 4.4px, 35.3% 1.1px, 38.2% 3.4px, 41.2% 0.8px, 44.1% 4.8px, 47.1% 2.0px, 50.0% 0.3px, 52.9% 3.7px, 55.9% 1.6px, 58.8% 4.2px, 61.8% 0.7px, 64.7% 2.6px, 67.6% 4.0px, 70.6% 1.0px, 73.5% 3.3px, 76.5% 0.5px, 79.4% 4.5px, 82.4% 2.1px, 85.3% 0.9px, 88.2% 3.8px, 91.2% 1.4px, 94.1% 4.3px, 97.1% 0.4px, 100.0% 2.5px, 100.0% calc(100% - 3.1px), 97.1% calc(100% - 0.6px), 94.1% calc(100% - 4.4px), 91.2% calc(100% - 1.8px), 88.2% calc(100% - 3.9px), 85.3% calc(100% - 0.2px), 82.4% calc(100% - 2.7px), 79.4% calc(100% - 4.7px), 76.5% calc(100% - 1.2px), 73.5% calc(100% - 3.5px), 70.6% calc(100% - 0.9px), 67.6% calc(100% - 4.1px), 64.7% calc(100% - 2.2px), 61.8% calc(100% - 0.4px), 58.8% calc(100% - 3.6px), 55.9% calc(100% - 1.5px), 52.9% calc(100% - 4.6px), 50.0% calc(100% - 2.4px), 47.1% calc(100% - 0.7px), 44.1% calc(100% - 3.2px), 41.2% calc(100% - 4.9px), 38.2% calc(100% - 1.3px), 35.3% calc(100% - 2.9px), 32.4% calc(100% - 0.5px), 29.4% calc(100% - 4.0px), 26.5% calc(100% - 1.7px), 23.5% calc(100% - 3.3px), 20.6% calc(100% - 0.8px), 17.6% calc(100% - 4.5px), 14.7% calc(100% - 2.0px), 11.8% calc(100% - 0.3px), 8.8% calc(100% - 3.8px), 5.9% calc(100% - 1.0px), 2.9% calc(100% - 4.2px), 0.0% calc(100% - 2.1px));
}
@media (min-width: 980px) { .panel { position: sticky; top: 74px; max-height: calc(100vh - 92px); overflow: auto; align-self: start; } }
.panel-empty h3 { font-size: 24px; margin-bottom: 8px; }
.panel-empty p { color: var(--ink-2); font-size: 17px; }
.panel h3 { margin: 0 0 2px; font-size: 25px; line-height: 1.2; padding-right: 40px; }
.panel h3 .zh { display: block; font-family: var(--f-brush); font-weight: 400; color: var(--red); font-size: 36px; line-height: 1.1; }
.panel .when { font-size: 16px; color: var(--muted); margin: 4px 0 10px; font-style: italic; }
.tags { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 14px; border: 1px solid var(--seal); color: var(--red); padding: 2px 8px; border-radius: 2px; }
.tags li [lang] { font-family: var(--f-brush); }
.panel p { font-size: 18px; }
.panel figure { margin: 14px 0; padding: 6px 6px 8px; background: #fbf7ec; box-shadow: 0 2px 8px rgba(30, 18, 8, .22); }
.panel figure img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.panel figure.tall img { aspect-ratio: 4 / 3; object-position: 50% 25%; }
.panel figcaption { font-size: 15px; color: #4a3d2f; margin-top: 6px; line-height: 1.35; }
.panel figcaption .credit { display: block; font-size: 13px; color: #65553f; font-style: italic; }
blockquote.classic { margin: 16px 0 6px; padding: 8px 0 8px 16px; border-left: 3px solid var(--ink); }
.q-zh { font-family: var(--f-zh); font-size: 18px; margin: 0 0 4px; }
.q-en { font-style: italic; margin: 0 0 4px; }
blockquote cite { font-size: 14px; color: var(--muted); font-style: normal; }
.echo-box { margin-top: 16px; padding: 10px 14px; border: 1px dashed var(--blue); }
.echo-box h4 { margin: 0 0 4px; font-size: 17px; color: var(--blue); font-weight: 600; }
.echo-box ul { list-style: none; margin: 0; padding: 0; }
.echo-box .ink-link { font-size: 16px; }
.echo-box .ink-link [lang] { color: var(--blue); }
.in-story { border-left: 3px solid var(--seal); padding-left: 12px; font-style: italic; }
.src { font-size: 15px; padding-left: 18px; }
.src li { margin-bottom: 4px; }
.panel-close { position: absolute; top: 10px; right: 10px; color: var(--ink); border-color: var(--line); z-index: 2; }
.panel-nav { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
@media (max-width: 979px) {
  .panel {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; max-height: 72vh; overflow: auto;
    transform: translateY(105%); transition: transform .25s ease; padding-bottom: max(22px, env(safe-area-inset-bottom));
    box-shadow: 0 -8px 24px rgba(0, 0, 0, .35);
    clip-path: polygon(0 4px, 6% 0, 13% 3px, 21% 1px, 30% 5px, 38% 0, 47% 3px, 55% 1px, 64% 4px, 72% 0, 81% 3px, 90% 1px, 100% 4px, 100% 100%, 0 100%);
  }
  .panel.open { transform: translateY(0); }
  body.touring .panel { max-height: 50vh; }
  body.touring .stage { scroll-margin-top: 64px; }
  .panel .panel-empty { display: none; }
}
@media (min-width: 980px) { .panel-close { display: none; } }

/* ---------- themes ---------- */
.theme-scroll { display: grid; gap: 34px; margin-top: 18px; }
.theme { display: grid; gap: 14px 26px; grid-template-columns: minmax(0, 1fr); padding: 0 0 26px; border-bottom: 1px solid var(--line); }
.theme:last-child { border-bottom: 0; }
.theme > * { min-width: 0; }
@media (min-width: 820px) { .theme { grid-template-columns: 100px minmax(0, 1fr) auto; } }
.theme .seal-face.big { width: 92px; height: 92px; font-size: 32px; }
.theme h3 { font-size: 30px; margin-bottom: 4px; }
.theme .tagline { font-style: italic; color: var(--muted); }
.vquote { margin: 0; }
.vquote .q-zh { font-size: 20px; }
@media (min-width: 820px) {
  .vquote { writing-mode: vertical-rl; max-height: 340px; border-right: 2px solid var(--ink); padding: 0 12px 0 0; }
  .vquote .q-zh { font-size: 22px; letter-spacing: .12em; }
}
.vquote-en { font-style: italic; color: var(--ink-2); font-size: 17px; border-left: 3px solid var(--ink); padding-left: 12px; }
.vquote-en cite { display: block; font-size: 14px; color: var(--muted); font-style: normal; }
.film { list-style: none; margin: 12px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); gap: 12px; }
.film button {
  display: block; width: 100%; padding: 5px 5px 6px; border: 0; cursor: pointer; text-align: left; background: #fbf7ec;
  box-shadow: 0 2px 6px rgba(30, 18, 8, .22); color: #231b13; font-size: 14px; line-height: 1.25; min-height: 44px;
}
.film li:nth-child(3n+1) button { transform: rotate(-.8deg); }
.film li:nth-child(3n+2) button { transform: rotate(.7deg); }
.film button:hover { transform: none; box-shadow: 0 4px 12px rgba(30, 18, 8, .3); }
.film img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; margin-bottom: 4px; }
.film [lang] { color: #9f2e1d; }
.theme-echoes { display: flex; flex-wrap: wrap; gap: 0 16px; align-items: center; font-size: 16px; }
.theme-echoes .label { font-style: italic; color: var(--muted); }
.theme-echoes .ink-link { font-size: 16px; }
.theme-echoes .ink-link [lang] { color: var(--blue); }

/* ---------- echoes timeline ---------- */
.timeline { list-style: none; margin: 18px 0 0; padding: 0 0 0 30px; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 5px; background: var(--ink); opacity: .8; border-radius: 3px;
  -webkit-mask: linear-gradient(transparent, #000 4%, #000 92%, transparent); mask: linear-gradient(transparent, #000 4%, #000 92%, transparent);
}
.timeline > li { position: relative; padding: 0 0 28px 18px; }
.timeline > li::before {
  content: ""; position: absolute; left: -27px; top: 8px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 4px solid var(--blue);
}
.timeline > li.california::before { border-color: var(--green); }
.tl-when { font-size: 15px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.tl-title { font-size: 26px; margin: 2px 0; }
.tl-title [lang] { font-family: var(--f-brush); color: var(--blue); font-weight: 400; margin-right: 10px; font-size: 1.1em; }
.tl-place { font-style: italic; color: var(--ink-2); margin-bottom: 8px; }
.tl-body { max-width: 44em; }
.tl-row { display: flex; flex-wrap: wrap; gap: 0 18px; align-items: center; }
.tl-region { display: inline-grid; place-items: center; width: 30px; height: 30px; background: var(--seal); color: var(--on-seal); font: 18px/1 var(--f-brush); margin-right: 8px; vertical-align: middle; transform: rotate(-3deg); }
details.tl-src summary { cursor: pointer; color: var(--blue); min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- album of stills ---------- */
.album { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 22px 18px; }
.album button { display: block; width: 100%; border: 0; padding: 0; background: none; cursor: pointer; text-align: left; color: var(--ink); }
.album figure { margin: 0; padding: 8px 8px 10px; background: #fbf7ec; box-shadow: 0 3px 10px rgba(30, 18, 8, .25); position: relative; color: #231b13; }
.album li:nth-child(4n+1) figure { transform: rotate(-1.2deg); }
.album li:nth-child(4n+2) figure { transform: rotate(.8deg); }
.album li:nth-child(4n+3) figure { transform: rotate(-.4deg); }
.album li:nth-child(4n) figure { transform: rotate(1.3deg); }
.album button:hover figure { transform: rotate(0) translateY(-2px); box-shadow: 0 6px 16px rgba(30, 18, 8, .35); }
.album figure::before, .album figure::after { content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid rgba(80, 55, 30, .55); }
.album figure::before { left: 3px; top: 3px; border-right: 0; border-bottom: 0; }
.album figure::after { right: 3px; bottom: 3px; border-left: 0; border-top: 0; }
.album img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.album figcaption { font-size: 14px; line-height: 1.3; margin-top: 6px; }
.album figcaption [lang] { color: #9f2e1d; font-family: 'Noto Serif SC', serif; }

/* ---------- about ---------- */
.about-cols { display: grid; gap: 22px 34px; }
.about-cols > * { min-width: 0; }
@media (min-width: 860px) { .about-cols { grid-template-columns: 1.4fr 1fr 1fr; } }
.about-cols h3 { font-size: 22px; margin-bottom: 8px; }
.about-cols p, .about-cols li { font-size: 17px; overflow-wrap: anywhere; }
.about-cols ul { padding-left: 18px; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .album figure, .film button, .hero-album figure, .seal-face { transform: none !important; }
}

/* ---------- short panel pieces ---------- */
.panel .what { font-size: 19px; margin-top: 4px; }
.panel .why { font-size: 17px; color: var(--ink-2); }
.panel .why strong { color: var(--red); font-weight: 600; }
.thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 12px; }
.thumb { width: 64px; height: 44px; padding: 0; border: 2px solid transparent; background: none; cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.on { border-color: var(--seal); }
details.more { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 6px; }
details.more summary { cursor: pointer; color: var(--blue); min-height: 44px; display: flex; align-items: center; font-weight: 600; }
details.more .note { font-size: 15px; font-style: italic; color: var(--muted); }
.echo-when { font-size: 14px; color: var(--muted); font-style: italic; }
.tour-pos { flex-basis: 100%; margin: 0; font-size: 15px; color: var(--muted); }

/* ---------- playing with the map: full screen, hints ---------- */
.full-btn { display: inline-flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: 11px !important; font-weight: 600; letter-spacing: .03em; }
.stage:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wheel-hint {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; margin: 0; padding: 10px 16px; max-width: 80%;
  background: rgba(35, 27, 19, .85); color: #f6ead0; font-size: 16px; text-align: center; pointer-events: none; border-radius: 3px;
}
.stage.expanded {
  position: fixed; inset: 0; z-index: 50; border: 0; outline: 0; box-shadow: none; background: #2b211c;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  display: flex; touch-action: none;
}
.stage.expanded .map-svg { aspect-ratio: auto; width: 100%; height: 100%; touch-action: none; }
.stage.expanded .zoom-ctl { top: calc(10px + env(safe-area-inset-top, 0px)); right: calc(10px + env(safe-area-inset-right, 0px)); }
.stage.expanded .zoom-ctl button { width: 48px; height: 48px; }
body.map-expanded { overflow: hidden; }
body.map-expanded .rod-top { z-index: 1; }
body.map-expanded .panel { z-index: 60; }
body.map-expanded .panel:not(.open) { display: none; }
@media (min-width: 980px) {
  body.map-expanded .panel { position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); right: 74px; bottom: auto; width: 380px; max-height: calc(100vh - 28px); }
  body.map-expanded .panel-close { display: inline-grid; }
}

/* ---------- El Sereno ---------- */
.spot.sereno .dot { fill: #3d6a50; }
.spot.sereno:hover .dot { fill: #284a37; }
.place-list .n.sereno { background: #3d6a50; }
.sereno-box { border-color: var(--green); }
.sereno-box h4, .sereno-box .ink-link [lang] { color: var(--green); }
.panel figure.mini { margin: 8px 0; padding: 4px; }
.panel figure.mini img { aspect-ratio: 16 / 9; object-position: 50% 25%; }
.panel figure.mini figcaption { font-size: 13px; }
.pairs { list-style: none; margin: 18px 0 8px; padding: 0; display: grid; gap: 26px; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-items: stretch; padding-bottom: 22px; border-bottom: 1px dashed var(--line); }
@media (min-width: 760px) { .pair { grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); } .pair-h { grid-column: 1 / -1; } }
.pair-h { display: flex; align-items: center; gap: 14px; margin: 0; font-size: 24px; }
.pair-h .seal-face { width: 52px; height: 52px; font-size: 20px; }
.pair-side {
  display: grid; grid-template-columns: 120px minmax(0, 1fr); grid-template-rows: auto auto 1fr; gap: 2px 14px; text-align: left; cursor: pointer;
  background: transparent; border: 0; border-top: 2px solid var(--seal); padding: 10px 2px; color: var(--ink);
}
.pair-side.la { border-top-color: var(--green); }
.pair-side img, .pair-map { grid-row: 1 / span 3; width: 120px; height: 120px; object-fit: cover; border: 4px solid #fbf7ec; box-shadow: 0 2px 6px rgba(30, 18, 8, .3); }
.pair-map { display: block; background-size: 900%; background-color: #e9dcbc; }
.pair-tag { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--red); }
.pair-side.la .pair-tag { color: var(--green); }
.pair-name { font-size: 20px; font-weight: 600; }
.pair-name [lang] { font-family: var(--f-brush); font-weight: 400; color: var(--red); margin-right: 4px; }
.pair-side.la .pair-name [lang] { color: var(--green); }
.pair-line { font-size: 16px; color: var(--ink-2); line-height: 1.4; }
.pair-side:hover .pair-name { text-decoration: underline; }
.pair-and { align-self: center; justify-self: center; font: 28px/1 var(--f-body); color: var(--muted); }
@media (max-width: 759px) { .pair-and { display: none; } }
.sereno-tl-h { font-size: 22px; margin: 18px 0 8px; }
.sereno-tl { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; border-left: 3px solid var(--green); padding-left: 16px; max-width: 46em; }
.sereno-tl li { font-size: 17px; }
.sereno-tl .yr { font-weight: 600; color: var(--green); margin-right: 6px; }
