@font-face {
  font-family: "Instrument Sans";
  src: url("./assets/instrument-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("./assets/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "ZCOOL XiaoWei";
  src: url("./assets/zcool-xiaowei-title.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+3000-303F, U+4E00-9FFF, U+FF00-FFEF;
}

:root {
  color-scheme: light;
  --bg: #f8f6ec;
  --surface: #fffdf4;
  --ink: #101b16;
  --muted: #202d26;
  --soft: #344237;
  --line: #cbd2c1;
  --accent: #345639;
  --sage: #eaf0e1;
  --leaf: #d9e8c9;
  --lake: #e9f1ed;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --display: "Instrument Serif", "ZCOOL XiaoWei", "Songti SC", Georgia, serif;
  --sans: "Instrument Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  scroll-behavior: smooth;
  scroll-padding-top: 0;
}

* { box-sizing: border-box; }
body, figure, h1, h2, h3, p, dl, dd, ol { margin: 0; }
body { isolation: isolate; min-width: 280px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; color: inherit; border: 0; background: transparent; }
code, pre { font-family: var(--mono); }
a, button { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: #cddfbf; color: var(--ink); }
.shell { width: min(100% - clamp(2.5rem, 10vw, 10rem), 78rem); margin-inline: auto; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.skip-link { position: fixed; z-index: 10; top: 0; left: 1rem; padding: .7rem 1rem; color: var(--bg); background: var(--accent); transform: translateY(-140%); }
.skip-link:focus { transform: none; }
.ink-filter { position: absolute; pointer-events: none; }
.site-header { position: fixed; inset: 0 0 auto; z-index: 5; pointer-events: none; }
.site-header .header-inner { pointer-events: auto; transition: max-width .34s ease, min-height .28s ease, padding .28s ease, margin-top .28s ease, background .28s ease, box-shadow .28s ease; }
.site-header:not([data-park]) .header-inner { max-width: 63rem; min-height: 3.45rem; margin-top: .55rem; padding: .12rem 1.3rem; border-radius: 1.25rem; background: rgb(251 249 237 / 88%); backdrop-filter: blur(15px); box-shadow: 0 3px 19px rgb(48 64 42 / 9%); }
.site-header:not([data-park]) .wordmark { font-size: 1.5rem; }
.site-header:not([data-park]) .github { min-height: 2.05rem; padding-block: .32rem; }
.site-header .wordmark { transition: font-size .28s ease; }
.header-inner, .header-actions, .navigation, .wordmark, .button, .language, .footer-inner, .footer-brand { display: flex; align-items: center; }
.header-inner { max-width: 78rem; min-height: 4.6rem; gap: clamp(1.4rem, 5vw, 5rem); }
.wordmark { gap: .55rem; width: max-content; font-size: 1.9rem; font-weight: 700; letter-spacing: -.065em; line-height: 1; }
.brand-logo { display: block; width: 1.7em; height: 1.28em; object-fit: contain; filter: url(#logo-ink); }
.site-header[data-park] { color: var(--ink); background: transparent; border-color: transparent; backdrop-filter: none; }

.site-header[data-park] :is(.navigation a, .language) { color: var(--muted); }
.site-header[data-park] :is(.navigation a:hover, .language:hover) { color: #142c22; }
.site-header[data-park] .github { border-color: #445c4f66; background: #f8f6e856; }
.site-header[data-park] .github:hover { background: #f8f6e8c9; }
.site-header[data-park] :focus-visible, .hero :focus-visible { outline-color: #294b38; }
.navigation { gap: clamp(1rem, 2.5vw, 2.25rem); }
.navigation a, .language { color: var(--muted); font-size: .9rem; font-weight: 540; transition: color .18s; }
.navigation a:hover, .language:hover { color: var(--accent); }
.header-actions { margin-left: auto; gap: 1.4rem; }
.language { font-family: var(--mono); font-size: .82rem; gap: .42rem; min-height: 2.75rem; padding: 0 .25rem; }
.button { justify-content: center; gap: .65rem; min-height: 3.1rem; border: 1px solid var(--line); padding: .7rem 1.25rem; border-radius: .55rem; font-size: 1rem; font-weight: 600; line-height: 1.2; transition: background .18s, border-color .18s, transform .18s; }
.button:hover { transform: translateY(-2px); }
.github { min-height: 2.45rem; font-size: .91rem; padding: .55rem .95rem; background: var(--surface); }
.repo-stars { display: inline-flex; gap: .22rem; align-items: center; font-size: .84rem; font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.github svg { width: 1.15rem; height: 1.15rem; }
.github:hover, .secondary:hover, .quickstart-link:hover { background: var(--leaf); border-color: #819978; }
.primary { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.primary:hover { background: #35543b; }
.secondary, .quickstart-link { background: var(--surface); }

.hero { position: relative; color: var(--ink); }
.park-world { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; isolation: isolate; background: #cfdbcf; }
.park-view { position: absolute; inset: -5% -7%; opacity: 0; }
.park-view:first-child { opacity: 1; }
.park-landscape { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 62%; filter: contrast(1.08); }
.park-view:not(:first-child) { background: #f3f7f5; }
.park-view:not(:first-child) .park-landscape { opacity: .73; filter: saturate(.8) contrast(.96); }
.park-view[data-place="lake"] .park-landscape { opacity: .62; filter: saturate(.72) contrast(.94); }
.park-view:first-child .park-landscape { filter: saturate(.53) sepia(.15) hue-rotate(-7deg) contrast(.91) brightness(1.04); }
.park-view:first-child::after { content: ""; position: absolute; inset: 0; background: #edd3a8; opacity: .16; mix-blend-mode: soft-light; }
.paper-grain, .particle-field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.paper-grain { background: radial-gradient(#3c504366 .7px, transparent 1px) 0 0 / 3px 3px; opacity: .22; mix-blend-mode: multiply; }
.scene-cat { position: absolute; width: clamp(3.3rem, 7.8svh, 5.5rem); opacity: 0; pointer-events: none; transform-origin: 50% 96%; filter: drop-shadow(1px 2px 1px #26362745); }
.scene-cat[data-cat="grove"] { right: 12%; bottom: 10%; scale: -1 1; }
.scene-cat[data-cat="lake"] { left: 2%; bottom: 14%; }
.scene-cat[data-cat="trail"] { right: 3%; bottom: 28%; scale: -1 1; }
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; min-height: max(40rem, 100svh); padding: clamp(6.8rem, 16.5svh, 13rem) 0 clamp(2rem, 5svh, 4rem); }
.hero-copy { max-width: 51rem; text-align: center; }
.eyebrow { display: flex; align-items: center; gap: .7rem; color: var(--accent); font: 500 .76rem/1.4 var(--mono); letter-spacing: .1em; }
.hero-copy .eyebrow { display: block; color: var(--muted); font-size: .75rem; letter-spacing: .16em; }
.hero h1 { margin: .85rem 0 1rem; font: 400 clamp(3.45rem, 5.8vw, 5.8rem)/1.1 var(--display); letter-spacing: -.035em; color: var(--ink); }
.wind-line { display: block; white-space: pre; }
.wind-line:lang(zh-CN) { scale: .93 1; }
.wind-line + .wind-line { margin-top: .025em; }
.hero h1:lang(en) { font-size: clamp(4.1rem, 7.5vw, 7rem); line-height: .99; }
.wind-glyph { display: inline-block; transform-origin: 48% 85%; }
.hero-description { font-family: var(--display); max-width: 34em; color: var(--ink); line-height: 1.65; font-size: clamp(1.15rem, 1.65vw, 1.4rem); text-wrap: balance; margin-inline: auto; }
.hero-companion { display: flex; flex-direction: column; align-items: center; gap: clamp(.7rem, 2svh, 1.4rem); margin-top: auto; padding-top: 1.65rem; }
.hero-companion .primary { min-width: 11.8rem; min-height: 3.35rem; background: #fffcf1; border: 1px solid #fdfbec; color: #253c30; border-radius: 99px; box-shadow: 0 3px 10px #3b48341c; }
.hero-companion .primary:hover { background: #fff; transform: translateY(-2px); }
.park-cat { position: relative; display: grid; place-items: end center; width: clamp(6.8rem, 17svh, 11.8rem); height: clamp(6.8rem, 17svh, 11.8rem); padding: 0; border-radius: 44%; background: none; }
.park-cat::before { content: ""; position: absolute; bottom: 2%; left: 20%; right: 16%; height: 6%; background: #364a3066; border-radius: 50%; filter: blur(3px); }
.mascot { display: block; width: 100%; height: 100%; position: relative; pointer-events: none; transform-origin: 50% 94%; transition: transform .18s ease-out; }
.park-cat[data-looking] .mascot { transform: translate(var(--reach-x), var(--reach-y)) rotate(var(--lean)) scaleY(var(--stretch)); }
.cat-body { position: relative; display: block; height: 100%; transform-origin: 51% 96%; }
.mascot img { display: block; width: 100%; height: 100%; }
/* Both pieces use the same drawing, divided along the ink at the rump. */
.cat-tail { position: absolute; inset: 0; transform-origin: 74% 76%; clip-path: polygon(75% 29%, 100% 29%, 100% 78%, 74% 78%, 69.8% 64%, 65% 57%, 64% 46%, 67% 38%); }
.cat-coat { position: relative; clip-path: polygon(0 0, 100% 0, 100% 29%, 75% 29%, 67% 38%, 64% 46%, 65% 57%, 69.8% 64%, 74.6% 75.5%, 74.8% 78%, 100% 78%, 100% 100%, 0 100%); }
.cat-eye { position: absolute; width: 7.5%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, #fcf0d9 58%, #fcf0d900); }
.cat-eye.left { left: 35.6%; top: 26.3%; }
.cat-eye.right { left: 49.88%; top: 31.79%; }
.cat-eye::after { content: ""; position: absolute; inset: 32% 32% 31%; border-radius: 51% 46% 49% 50%; background: #362d23; transition: translate .11s ease-out; }
.park-cat[data-looking] .cat-eye::after { translate: var(--gaze-x) var(--gaze-y); }
.park-cat[data-petted] .mascot { animation: nuzzle .55s ease-out; }
@keyframes nuzzle { 30% { translate: 0 -.6rem; rotate: -6deg; } 70% { translate: 0 -1px; rotate: 3deg; } }
.copy { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border-radius: .35rem; color: var(--soft); padding: .4rem .5rem; }
.copy:hover { color: var(--accent); background: var(--leaf); }
@keyframes settle { from { opacity: 0; transform: translateY(8px); } }
.hero-copy { animation: settle .55s ease-out both; }

.walk-stop { position: relative; padding-block: clamp(2.75rem, 6svh, 4.5rem); scroll-margin-block-start: clamp(4rem, 12svh, 7rem); display: flex; flex-direction: column; }
.walk-stop .section-heading > p:not(.eyebrow) { max-width: 34em; }
#architecture .arch-copy { max-width: 30rem; }
.arch-copy, .quickstart-inner .section-heading { text-shadow: 0 1px 2px #f5f8efe6, 0 0 5px #f5f8ef9c; }
@media (min-width: 901px) {
  #architecture { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1.5rem; }
  #architecture .tab-list { align-self: end; margin: 0 .75rem 0 0; }
  #architecture .architecture { grid-column: 1 / -1; min-width: 0; }
  #resources { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; gap: clamp(2rem, 5vw, 5rem); }
  #resources h2 { text-wrap: balance; font-size: clamp(1.85rem, 3vw, 3.2rem); }
  .scene-cat[data-cat="lake"] { left: .35%; width: min(4.3vw, 4.75rem); }
  #resources .resource-grid { margin-top: 0; }
}

.section-heading { position: relative; }
.label-rule { width: 1.35rem; height: 1px; background: var(--accent); }
h2, h3 { font-family: var(--display); }
h2 { margin-top: .85rem; font-size: clamp(2.05rem, 3.5vw, 3.55rem); letter-spacing: -.05em; line-height: 1.17; font-weight: 400; }
.section-heading > p:not(.eyebrow), .arch-copy p, .resource-card p { color: var(--muted); font-size: 1rem; line-height: 1.8; margin-top: .8rem; }
.tab-list, .code-tabs { display: flex; align-items: center; }
[role="tab"] { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 2.55rem; padding: .4rem .75rem; color: var(--muted); font: .88rem/1.4 var(--mono); }
.tab-list { position: relative; z-index: 1; align-self: flex-end; gap: .45rem; margin: .25rem .8rem -.65rem 0; }
.tab-list button { position: relative; isolation: isolate; min-height: 2.35rem; color: #293c30; }
.tab-list button::before { content: ""; position: absolute; z-index: -1; inset: .28rem -.13rem .14rem; background: rgb(250 251 242 / 72%); clip-path: polygon(2% 5%, 97% 1%, 100% 85%, 94% 95%, 0 100%); }
.tab-list button:hover::before { background: #edf1df; }
.tab-list [aria-selected="true"] { color: #fcfff2; }
.tab-list [aria-selected="true"]::before { background: #3b5e49; transform: rotate(-1.6deg); }
.architecture { background: transparent; position: relative; }
.architecture[data-slider] { display: flex; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; overflow-anchor: none; }
.architecture[data-slider]::-webkit-scrollbar { display: none; }
.architecture[data-slider] > .arch-panel { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.architecture.is-dragging, .architecture.is-reordering { scroll-snap-type: none; }
.architecture[data-slider] .canvas { cursor: grab; user-select: none; }
.architecture.is-dragging .canvas { cursor: grabbing; }
.architecture { margin-top: .7rem; }
.resource-grid { margin-top: 2rem; }
.arch-panel { display: grid; grid-template-columns: .85fr 1.15fr; }
.arch-copy { align-self: center; padding: 1rem 1.5rem 1rem 0; }
h3 { font-size: clamp(1.35rem, 2.15vw, 2rem); line-height: 1.3; letter-spacing: -.025em; font-weight: 400; }
.text-link { display: inline-block; margin-top: 1.4rem; color: var(--accent); font-size: .9rem; text-underline-offset: .3em; }
.text-link:hover { text-decoration: underline; }
/* A three-fold trail map. The labels stay in HTML at every map scale. */
.trail-map { position: relative; isolation: isolate; min-width: 0; align-self: center; padding: 1.4rem clamp(.45rem, 1.7vw, 1.6rem) 1.1rem; margin: .7rem .3rem .95rem; filter: drop-shadow(0 3px 2px rgb(38 50 40 / 18%)); }
.trail-map::before { content: ""; position: absolute; z-index: -1; inset: 0; clip-path: polygon(0 3.1%, 32.5% .2%, 66% 3%, 100% .4%, 99.6% 96.1%, 66% 99.5%, 32.5% 96.7%, .4% 100%);
  background: linear-gradient(90deg, transparent 31%, #666d5921 32.4%, #fffef589 32.7%, transparent 35%, transparent 64.6%, #666d5917 65.9%, #fffef599 66.2%, transparent 68%), url("./assets/park-map.svg") center / 100% 100%, #eff1df; }
.map-caption { position: relative; padding: .2rem 2rem .3rem .65rem; font: .83rem/1.35 var(--mono); color: #2f473c; }
.map-caption::before { content: ""; display: inline-block; width: .9rem; height: .55rem; margin-right: .5rem; background: linear-gradient(100deg,#49654d 32%,#93a88a 32% 65%,#49654d 65%); clip-path: polygon(0 18%,34% 0,65% 23%,100% 0,100% 78%,65% 100%,34% 78%,0 100%); }
.map-space { position: relative; height: clamp(10.5rem, 14vw, 13.3rem); margin: .35rem .05rem 0; }
.map-route, .map-stops { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; list-style: none; }
.route-line, .route-trace { stroke-linecap: round; stroke-linejoin: round; }
.route-line { stroke: #446850; stroke-width: 3; }
.route-line.branch { stroke: #945f40; stroke-width: 2.2; stroke-dasharray: .012 .012; }
.route-trace { stroke: #adc080; stroke-width: 3.4; stroke-dasharray: .075 .925; opacity: 0; }
.route-trace.branch { stroke: #b9794e; }
.map-stops li { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; }
.map-stops li::before { content: ""; position: absolute; width: .67rem; height: .67rem; box-sizing: border-box; translate: -50% -50%; border-radius: 50%; border: 2px solid #34543e; background: #f6f6e5; box-shadow: 0 0 0 2px #edf1db; }
.map-stops li:first-child::before { background: #47664d; }
.map-stops li:last-child::before { background: #f6f6e5; box-shadow: inset 0 0 0 1px #f6f6e5, inset 0 0 0 4px #47664d, 0 0 0 2px #edf1db; }
.map-stops li > span { position: absolute; left: 0; translate: -50% 0; display: grid; width: max-content; justify-items: center; gap: .2rem; text-align: center; white-space: nowrap; text-shadow: 0 1px 2px #f6f6e5; }
.stop-above > span { bottom: .72rem; }
.stop-below > span { top: .72rem; }
.map-stops small { font: .7rem/1.05 var(--mono); color: #3e5244; letter-spacing: .055em; }
.map-stops code { font: 600 clamp(.77rem, 1.05vw, .93rem)/1.14 var(--mono); color: #152c20; }
@media (prefers-reduced-motion: no-preference) {
  .arch-panel:not([aria-hidden="true"]) .route-trace { opacity: 1; animation: walk-route 4.8s linear infinite; }
  @keyframes walk-route { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  .arch-panel:not([aria-hidden="true"]) .map-stops li::after { content: ""; position: absolute; inset: -.36rem auto auto -.36rem; width: .72rem; height: .72rem; border: 1px solid #597c52; border-radius: 50%; box-sizing: border-box; opacity: 0; animation: station-ring 4.8s var(--arrival, 0s) linear infinite; }
  .map-stops li:nth-child(2) { --arrival: 1.55s; }
  .map-stops li:nth-child(3) { --arrival: 3.2s; }
  .map-stops li:nth-child(4) { --arrival: 4.5s; }
  #panel-worker .map-stops li:nth-child(3) { --arrival: 4.5s; }
  @keyframes station-ring { 0% { opacity: .78; transform: scale(.85); } 20%, 100% { opacity: 0; transform: scale(2.35); } }
  .notebook-page:not([hidden]) pre { animation: open-leaf .24s ease-out; }
  @keyframes open-leaf { from { opacity: .55; transform: translateX(.2rem); } }
  .notebook-page::after { content: ""; position: absolute; bottom: 1px; right: 1px; width: .88rem; height: .88rem; pointer-events: none; border-radius: 0 0 5px 0; background: linear-gradient(135deg, transparent 47%, #9aa99b 50%, #d9dfcd 58%, #f2f3e6 85%); transform-origin: right bottom; animation: lift-corner 8s ease-in-out infinite; }
  @keyframes lift-corner { 0%, 22%, 75%, 100% { transform: scale(.45); } 46% { transform: scale(1.12); } }
}

.quickstart-inner { display: grid; grid-template-columns: 1.2fr .8fr; align-items: start; gap: clamp(2rem, 5.5vw, 6rem); }
@media (min-width: 681px) {
  #quickstart { scroll-margin-block-start: clamp(4rem, 15svh, 8rem); }
  .park-view[data-place="lake"] .park-landscape { transform: scale(1.2); transform-origin: 10% 100%; }
  .quickstart-inner .section-heading { grid-column: 2; grid-row: 1; align-self: center; }
  .quickstart-inner .code-stack { grid-column: 1; grid-row: 1; }
}
.quickstart-link { margin-top: 1.45rem; width: max-content; }
/* Cloth spine, indexed leaves and writing lines belong to the code notebook. */
.code-stack { --binding: clamp(1.55rem, 3vw, 2.65rem); --line-height: 1.64rem; min-width: 0; position: relative; isolation: isolate; align-self: center; padding: 0 .45rem .5rem 0; }
.code-stack::before { content: ""; position: absolute; z-index: -1; inset: 2.55rem 0 0 .45rem; border-radius: 3px 8px 8px 4px; background: #566c62; box-shadow: 0 4px 9px #32473c26; transform: rotate(.4deg); }
.code-tabs { margin-left: calc(var(--binding) + .65rem); gap: .12rem; align-items: flex-end; }
.code-tabs button { position: relative; isolation: isolate; min-height: 2.45rem; padding: .38rem 1.1rem .14rem; color: #31403b; }
.code-tabs button::before { content: ""; position: absolute; z-index: -1; inset: .35rem 0 -.16rem; border-radius: .6rem .6rem 0 0; border: 1px solid #939d8c; background: #d4e0cb; transform: skewX(-7deg); transform-origin: bottom; transition: inset .18s, background .18s; }
.code-tabs button:nth-child(2)::before { background: #dae5e6; }
.code-tabs button:nth-child(3)::before { background: #e8d9c9; }
.code-tabs button[aria-selected="true"]::before { inset-block-start: 0; background: #f7f8ed; }
.code-tabs button[aria-selected="true"] { font-weight: 650; color: #192f27; }
.notebook-page { position: relative; padding: 1.1rem 1.1rem 1.1rem calc(var(--binding) + 1.1rem); margin: 0; min-width: 0; border-radius: 3px 7px 8px 3px; border: 1px solid #a5aea1; border-left: 0;
  background: linear-gradient(90deg,#516a60 0, #657c70 .28rem, #587266 calc(var(--binding) - .4rem), #495e54 calc(var(--binding) - .1rem), #b8c2af var(--binding), #e3e5d7 calc(var(--binding) + .22rem), transparent calc(var(--binding) + .9rem)), #f7f8ee;
  box-shadow: 1px 2px #c3cbbf, 2px 4px #eef1e5; }
.notebook-page::before { content: ""; position: absolute; top: 1rem; bottom: 1rem; left: calc(var(--binding) / 2 - 1px); width: 2px; background: repeating-linear-gradient(to bottom,#d7ddc3 0 5px,transparent 5px 12px); }
.code-bar { display: flex; justify-content: space-between; align-items: center; gap: .45rem; font: .85rem/1.35 var(--mono); color: #34483c; padding-bottom: .45rem; }
.copy { border: 1px dashed #a5b1a2; border-radius: 3px; }
.notebook-page pre { margin: 0; padding: .28rem 0 .45rem .85rem; min-height: calc(4 * var(--line-height) + .8rem); max-height: min(46svh, 21rem); overflow: auto; tab-size: 2; border-left: 1px solid #be8d7d8c; font-size: .875rem; line-height: var(--line-height); color: #1a342a;
  background: repeating-linear-gradient(to bottom,transparent 0 calc(var(--line-height) - 1px), #9ab4a74f calc(var(--line-height) - 1px) var(--line-height)) 0 .28rem / 100% var(--line-height) local; }
.syntax-keyword { color: #426579; }
.syntax-string { color: var(--accent); }
.resource-grid { display: flex; flex-direction: column; gap: .65rem; max-width: 37rem; }
.resource-card { display: grid; grid-template-columns: 1.6rem 1fr; column-gap: 1rem; align-items: start; padding: .65rem 0; }
.resource-card h3 { font-size: 1.18rem; }
.resource-card:hover h3 { color: var(--accent); text-decoration: underline; text-underline-offset: .26em; }
.resource-card > .icon { width: 1.4rem; height: 1.4rem; margin-top: .12rem; color: var(--accent); }
.resource-card p { grid-column: 2; margin-top: .2rem; }
.faq { gap: 1.1rem; }
.faq h2 { margin: 0; }
.faq-list { position: relative; isolation: isolate; }
.faq-list::before {
  content: ""; position: absolute; z-index: -1; inset: -.5rem -1.25rem;
  background: #f3f7f1b8; filter: blur(12px); pointer-events: none;
}
.faq-list details { scroll-margin-top: 6rem; }
.faq-list details + details { border-top: 1px solid #526b5b55; }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: .88rem; font-weight: 600; line-height: 1.5; list-style: none; cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: 0 0 .5rem; height: .5rem; margin-right: .4rem;
  border: solid var(--accent); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
.faq-list [open] summary::after { transform: rotate(225deg); }
.faq-list summary:hover { color: var(--accent); }
.faq-list details[open] { padding-bottom: 1rem; }
.faq-list details[open] summary { padding-bottom: .45rem; }
.faq-list p { max-width: 66ch; color: var(--muted); line-height: 1.75; overflow-wrap: anywhere; }
.faq-list .faq-contact { margin-top: 1.05rem; color: var(--muted); font-size: .92rem; }
.faq-contact a { text-decoration: underline; text-underline-offset: .2em; }
.contact-address { font-size: .82rem; overflow-wrap: anywhere; }
.faq-source { display: inline-block; margin-top: .55rem; color: var(--accent); font-size: .88rem; text-decoration: underline; text-underline-offset: .23em; }
@media (min-width: 901px) {
  .faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
  .faq h2 { padding-top: .4rem; }
}
.site-footer { background: linear-gradient(transparent, rgb(244 248 244 / 80%) 35%); }
.site-footer .footer-inner { display: grid; grid-template-columns: minmax(8rem, .72fr) minmax(0, 3fr); align-items: start; gap: 1.5rem 3rem; padding-block: 2.1rem 1.4rem; }
:root:lang(en) .icp { display: none; }
.footer-directory { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.footer-directory > div { display: grid; align-content: start; justify-items: start; gap: .35rem; }
.footer-directory strong { margin-bottom: .35rem; font-size: 1rem; font-weight: 600; }
.footer-directory a, .footer-legal { font-size: .87rem; line-height: 1.6; color: var(--muted); }
.footer-directory a:hover, .footer-legal a:hover { text-decoration: underline; text-underline-offset: .2em; }
.footer-legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .35rem 1.5rem; }
.footer-inner { min-height: 6.4rem; justify-content: space-between; padding-right: 0; }
.footer-brand { gap: 1rem; color: var(--soft); font-size: .88rem; }
.footer-brand .wordmark { color: var(--ink); font-size: 1.4rem; }
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 7; width: max-content; max-width: calc(100% - 2rem); background: var(--surface); color: var(--ink); border: 1px solid #9daf91; border-radius: .55rem; box-shadow: 0 6px 20px #394e3524; padding: .65rem 1.1rem; font-size: .92rem; pointer-events: none; }
.toast:empty { display: none; }

@media (max-width: 900px) {
  .site-footer .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .shell { width: calc(100% - 3.5rem); }
  .arch-panel { grid-template-columns: .85fr 1.15fr; }
  .tab-list { margin-top: .9rem; }
  .quickstart-inner { grid-template-columns: 1.2fr .8fr; gap: 1.5rem; }
}
@media (max-width: 680px) {
  .footer-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.45rem 1rem; }
  .footer-legal { flex-direction: column; }
  .footer-directory a { padding-block: .12rem; }
  .shell { width: calc(100% - 2.5rem); }
  .header-inner { min-height: auto; gap: 0; flex-wrap: wrap; padding-top: .6rem; }
  .header-actions { gap: .85rem; }
  .site-header:not([data-park]) .header-inner { min-height: 0; margin-top: .3rem; padding: .12rem .75rem; width: calc(100% - 1.2rem); border-radius: 1.05rem; }
  .site-header:not([data-park]) .navigation a { min-height: 1.95rem; }
  .site-header:not([data-park]) .language { min-height: 2.1rem; }
  .site-header:not([data-park]) .wordmark { font-size: 1.38rem; }
  .park-view[data-place="grove"] .park-landscape { object-position: 68% center; }
  .park-view[data-place="lake"] .park-landscape { object-position: 4% center; }
  .scene-cat { width: clamp(2.8rem, 12vw, 3.6rem); }
  .scene-cat[data-cat="grove"], .scene-cat[data-cat="trail"] { right: 5%; }
  .park-view[data-place="trail"] .park-landscape { object-position: 64% center; }

  .wordmark { font-size: 1.65rem; }
  .navigation { order: 1; width: 100%; gap: clamp(.5rem, calc(5vw - .25rem), 1.5rem); }
  .navigation a { display: inline-flex; align-items: center; min-height: 2.55rem; font-size: .84rem; }
  .github { min-height: 2.2rem; }
  .hero-inner { min-height: max(37rem, 100svh); padding-top: max(8.3rem, 17svh); padding-bottom: max(1.65rem, env(safe-area-inset-bottom)); }
  .hero h1 { font-size: clamp(3rem, 12vw, 4.6rem); margin-block: .75rem .9rem; }
  .hero h1:lang(en) { font-size: clamp(3.7rem, 15vw, 5.4rem); }
  .hero-description { max-width: 23rem; font-size: 1.14rem; }
  .park-view { inset-inline: -17%; }
  .park-landscape { object-position: 15% 62%; }
  .walk-stop { padding-block: clamp(1.75rem, 6vw, 2.75rem); scroll-margin-block-start: 5.25rem; }
  .arch-panel, .quickstart-inner { grid-template-columns: 1fr; }
  .arch-copy { padding: .5rem 0 1.25rem; }
  .tab-list { align-self: flex-start; margin: 1rem 0 -.85rem; gap: .35rem; }
  .arch-copy { grid-row: 2; }
  .trail-map { grid-row: 1; margin-inline: .15rem; }
  .map-space { height: 10.8rem; }
  .code-tabs button { padding-inline: .85rem; }
  .notebook-page { padding-inline-end: .75rem; }
  .resource-grid { margin-top: 1.15rem; gap: .3rem; }
  .resource-card { padding: .75rem 0; }
  .resource-card h3 { margin: 0; }
  .resource-card p { grid-column: 2; }
  .footer-inner { min-height: 6rem; padding-bottom: 2rem; }
}
@media (max-width: 390px) {
  .header-actions { gap: .35rem; }
  .header-inner .wordmark { gap: .3rem; font-size: 1.4rem; }
  .header-inner .github { padding-inline: .55rem; }
  .tab-list { max-width: 100%; }
  .tab-list button { padding-inline: .62rem; }

  .shell { width: calc(100% - 2rem); }
  .map-stops code { font-size: .75rem; }
  .map-stops small { font-size: .67rem; letter-spacing: 0; }
  .map-caption { padding-left: .3rem; }
  .code-tabs { margin-left: .9rem; }
  .notebook-page { padding-inline-start: calc(var(--binding) + .55rem); }
}
@media (hover: hover) and (pointer: fine) {
  body { cursor: url("./assets/quill.svg") 2 2, auto; }
  a, button, .faq-list summary { cursor: url("./assets/quill.svg") 2 2, pointer; }
  pre, pre code { cursor: text; }
}
@media (prefers-reduced-motion: no-preference) {
  .wind-glyph { animation: breeze 6.4s var(--wind-delay) ease-in-out infinite; }
  @keyframes breeze {
    0%, 7%, 80%, 100% { transform: none; }
    25% { transform: translateY(-.12em) skewX(-2.6deg) rotate(-2.4deg); }
    45% { transform: translateY(.061em) skewX(1.2deg) rotate(1.4deg); }
    63% { transform: translateY(-.026em) rotate(-.7deg); }
  }
  .scene-cat, .cat-body { animation: breathe 3.9s ease-in-out infinite; }
  @keyframes breathe { 50% { transform: scale(.989, 1.027) rotate(-.6deg); } }
  .cat-tail { animation: tail-sway 5.6s ease-in-out infinite; }
  @keyframes tail-sway { 0%, 100% { rotate: 0deg; } 34% { rotate: 6deg; } 68% { rotate: -3deg; } }
  .cat-eye::after { animation: blink 6.8s ease-in-out infinite; }
  @keyframes blink { 0%, 56%, 61%, 100% { scale: 1; } 58.5% { scale: 1.16 .18; } }
  .walk-stop .arriving { animation: arrive .5s ease-out; }
  @keyframes arrive { from { transform: translateY(.65rem); opacity: .68; } }
  .resource-card > .icon { transition: transform .22s ease; }
  .resource-card:hover > .icon, .resource-card:focus-visible > .icon { transform: rotate(-7deg) translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
