/* Homepage only: ZCOOL XiaoWei display type, calm reading type and a painted valley. */
@font-face{font-family:"ZCOOL XiaoWei";src:url('../fonts/zcool-xiaowei-home.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
html:has(body.nature-home){scroll-behavior:auto}
.nature-home a:focus-visible{scroll-margin-top:calc(var(--bar) + 20px);scroll-margin-bottom:20px}
.nature-home{--paper:#fff4ea;--home-display:"Songti SC","Noto Serif SC","Source Han Serif SC",STSong,Georgia,serif;background:var(--paper)}
/* The distant ridge is 172px above the bottom of the 1536×1152 art.
   Match background-size:cover, apply the approved -35px offset, then center the heading
   between the navigation and gallery with two equal flexible tracks. */
.nh{--nh-ridge-rise:max(11.2vw,14.94svh);position:relative;isolation:isolate;height:100svh;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(12px,1fr) max-content minmax(12px,1fr) max-content;align-items:center;justify-items:center;padding:var(--bar) 24px calc(var(--nh-ridge-rise) - 35px);overflow:clip}
.nh-landscape{position:absolute;inset:0;z-index:-1;background:url('../img/nature/wildlife-canyon.webp') center bottom/cover no-repeat;pointer-events:none}
.nh-heading{grid-row:2;min-width:0;width:min(100%,920px);text-align:center}
.nh-eyebrow{display:flex;align-items:center;justify-content:center;gap:.55em;margin:0 0 14px;color:#746d61;font-size:18px;line-height:1.5;letter-spacing:.13em;font-weight:500}
.nh-eyebrow-dot{flex:none;font-size:.45em;line-height:1;letter-spacing:0}
.nh h1{font:400 clamp(54px,5.3vw,78px)/1.16 "ZCOOL XiaoWei",var(--home-display);letter-spacing:.035em;margin:0;text-wrap:balance}
.nh h1:lang(en){font-family:Georgia,serif;font-size:clamp(40px,3.8vw,55px);font-style:italic;letter-spacing:-.025em}
.nh-intro{max-width:710px;font:400 15px/1.85 var(--font-body);color:#475149;margin:20px auto 0;text-wrap:balance}
.nh-signoff{display:inline;font:inherit;color:inherit}
.nh-gallery{grid-row:4;width:min(100%,1000px);min-width:0;position:relative}
.nh-stage{position:relative;height:220px;margin:0 20px}
.nh-slide{position:absolute;inset:0;margin:auto;width:36%;max-width:350px;height:100%;transition:transform .45s var(--ease),opacity .35s;z-index:1}
.nh-slide[data-slot=center]{transform:translateX(0);z-index:3}
.nh-slide[data-slot=left]{transform:translateX(-96%) scale(.77);z-index:2}
.nh-slide[data-slot=right]{transform:translateX(96%) scale(.77);z-index:2}
.nh-slide[data-slot=hidden]{opacity:0;visibility:hidden;pointer-events:none}
.nh-photo{position:relative;width:100%;height:100%;display:block;padding:0;border:0;border-radius:22px;background:var(--paper);overflow:hidden;cursor:pointer;box-shadow:0 8px 24px #29352f10;transition:box-shadow .25s,transform .3s var(--ease)}
.nh-select{position:absolute;inset:0;z-index:3;width:100%;height:100%;padding:0;border:0;border-radius:inherit;background:transparent;cursor:pointer}
.nh-photo img{width:100%;height:100%;object-fit:cover;transition:transform .45s var(--ease),filter .35s,opacity .35s}
.nh-slide:not([data-slot=center]) img{filter:blur(2.2px) saturate(.82);opacity:.75}
.nh-photo::after{content:"";position:absolute;inset:0;background:linear-gradient(transparent 15%,#15221a70 100%)}
.nh-photo-name{position:absolute;inset:0;z-index:2;display:grid;place-items:center;padding:16px;text-align:center;color:white;font:500 clamp(20px,2vw,29px)/1.4 var(--home-display);text-shadow:0 1px 8px #17221a;background:linear-gradient(180deg,transparent 22%,#0f1d1599 42%,#0f1d1599 58%,transparent 78%);letter-spacing:.08em}
.nh-slide[data-slot=center] .nh-photo{outline:1px solid #fff8;outline-offset:-5px}
@media(hover:hover){.nh-photo:hover{transform:translateY(-3px) scale(1.05);box-shadow:0 14px 30px #29352f26}.nh-photo:hover img{transform:scale(1.025);filter:none;opacity:1}}
.nh-photo:has(.nh-select:focus-visible){outline:3px solid var(--alpine);outline-offset:5px}
.nh-photo:has(.nh-select:focus-visible) img{filter:none;opacity:1}
.nh-description{display:none}
.nh-caption{min-height:90px;max-width:540px;margin:22px auto 0;text-align:center}
.nh-caption h2{font:500 20px/1.4 var(--home-display);letter-spacing:.08em;margin:0 0 8px}
.nh-caption p,.nh-description p,.nh-destination-body{font:400 14px/1.85 var(--font-body);margin:0 auto;max-width:36em;color:#475149;text-wrap:pretty}
.nh-destination-link{display:inline;margin-inline-start:.4em;padding-block:3px;white-space:nowrap;color:var(--brand);font-size:inherit;text-decoration:underline;text-underline-offset:4px}
.nh-destination-link:hover{text-decoration-thickness:2px}
@media(min-width:600px){.nh-heading h1:lang(zh-hans) br{display:none}}
@media(max-width:1099px) and (min-width:600px),(600px < height <= 700px) and (min-width:1100px){.nh h1{font-size:60px}.nh h1:lang(en){font-size:42px}.nh-intro{font-size:14px;margin-top:16px;max-width:660px}.nh-eyebrow{font-size:16px;margin-bottom:12px}.nh-stage{height:182px}.nh-gallery{max-width:900px}.nh-caption{margin-top:20px;min-height:88px}}
/* Short desktop viewports need less space below the gallery. */
@media(600px < height < 840px) and (min-width:600px) and (aspect-ratio > 4/5){
 .nh{padding-bottom:calc(var(--nh-ridge-rise) - 75px)}
}
/* Scale the 960px stage and its 220px height together, keeping its 20px margins.
   Narrower layouts already use photos below 200px and retain those sizes. */
@media(700px < height < 840px) and (min-width:1100px){
 .nh-stage{height:200px}
 .nh-gallery{max-width:calc(40px + 960px * 200 / 220)}
}
@media(600px < height <= 700px) and (min-width:1100px){
 .nh-stage{height:160px}
 .nh-gallery{max-width:calc(40px + 960px * 160 / 220)}
}
@media(max-width:599px){
 /* The portrait art has its distant ridge 103px above its 780×1670 base. */
 .nh{--nh-ridge-rise:max(13.2vw,6.17svh);padding-inline:20px}
 .nh-landscape{background-image:url('../img/nature/wildlife-home-mobile.webp')}
 .nh-eyebrow{font-size:15px;letter-spacing:.1em;margin-bottom:12px}
 .nh h1{font-size:47px;line-height:1.18;letter-spacing:.04em}
 .nh h1:lang(en){font-size:33px;line-height:1.18}
 .nh-intro{font-size:13px;line-height:1.85;margin-top:18px}
 .nh-stage{height:140px;margin:0}.nh-slide{width:60%;max-width:none}
 .nh-slide[data-slot=left]{transform:translateX(-65%) scale(.68)}.nh-slide[data-slot=right]{transform:translateX(65%) scale(.68)}
 .nh-photo{border-radius:17px}.nh-photo-name{font-size:22px;padding:10px}
 .nh-slide[data-slot=left] .nh-photo-name{font-size:20px}.nh-slide[data-slot=right] .nh-photo-name{font-size:20px}
 .nh-caption{min-height:92px;margin-top:20px;padding:0 6px}.nh-caption h2{font-size:19px}.nh-caption p,.nh-caption .nh-destination-body{font-size:13px;line-height:1.8}
}
@media(max-height:600px) and (min-width:600px){
 .nh{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:1fr;column-gap:40px;padding:calc(var(--bar) + clamp(12px,3svh,20px)) 32px clamp(12px,3svh,20px)}
 .nh-landscape{opacity:.3}.nh-heading{grid-row:1;grid-column:1;padding:0 8px;text-align:left}.nh h1{font-size:37px}.nh h1:lang(en){font-size:27px}.nh-eyebrow{justify-content:flex-start;font-size:13px;margin-bottom:8px}.nh-intro{font-size:12px;line-height:1.65;margin-top:10px}.nh-heading h1:lang(zh-hans) br{display:block}
 .nh-gallery{grid-row:1;grid-column:2;align-self:end}.nh-stage{height:128px;margin:0}.nh-slide{width:64%}.nh-photo{border-radius:14px}.nh-photo-name{font-size:17px;padding:8px}
 .nh-slide[data-slot=left]{transform:translateX(-73%) scale(.7)}.nh-slide[data-slot=right]{transform:translateX(73%) scale(.7)}
 .nh-caption{margin-top:14px;min-height:0}.nh-caption h2{font-size:16px;margin-bottom:5px}.nh-caption p,.nh-caption .nh-destination-body{font-size:12px;line-height:1.55}
}
@media(max-height:720px) and (max-width:599px){.nh h1{font-size:38px}.nh h1:lang(en){font-size:28px}.nh-eyebrow{font-size:14px;margin-bottom:10px}.nh-intro{font-size:12px;margin-top:12px}.nh-stage{height:126px}.nh-caption{margin-top:16px;min-height:84px}.nh-caption p,.nh-caption .nh-destination-body{font-size:12px}}
@media(max-width:359px){.nh h1:lang(en){font-size:26px;line-height:1.1}.nh-stage{height:92px}.nh-slide{width:45%}.nh-slide[data-slot=left]{transform:translateX(-86%) scale(.58)}.nh-slide[data-slot=right]{transform:translateX(86%) scale(.58)}.nh-photo-name{font-size:20px}.nh-photo-name:lang(en){font-size:15px;line-height:1.25}.nh-caption{margin-top:12px}}
/* A tall portrait viewport is a reading layout, with all destinations in flow. */
@media(max-aspect-ratio:4/5){
 .nh{height:auto;min-height:100svh;grid-template-rows:auto auto;row-gap:clamp(36px,5svh,64px);padding:calc(var(--bar) + clamp(32px,5svh,64px)) 24px clamp(48px,7svh,80px)}
 .nh-landscape{bottom:auto;height:100svh;background-image:url('../img/nature/wildlife-home-mobile.webp');mask-image:linear-gradient(#000 55%,transparent 100%)}
 .nh-heading{grid-row:1;max-width:710px}
 .nh-gallery{grid-row:2;width:min(100%,560px)}
 .nh-stage{display:grid;gap:clamp(32px,5svh,56px);height:auto;margin:0}
 .nh-slide[data-slot]{position:static;inset:auto;width:100%;max-width:none;height:auto;margin:0;transform:none;opacity:1;visibility:visible;pointer-events:auto;transition:none;z-index:auto}
 /* Aim for 68% of the viewport; protect small photos without overflowing the page. */
 .nh-photo{width:clamp(220px,68vw,560px);max-width:100%;height:auto;aspect-ratio:8/5;margin-inline:auto;cursor:default;transform:none;transition:none}
 .nh-photo img,.nh-slide:not([data-slot=center]) img{filter:none;opacity:1;transform:none;transition:none}
 .nh-photo:hover{transform:none;box-shadow:0 8px 24px #29352f10}
 .nh-photo:hover img{filter:none;opacity:1;transform:none}
 .nh-slide[data-slot=center] .nh-photo{outline:0}
 .nh-slide[data-slot] .nh-photo-name{font-size:clamp(20px,3.6vw,30px);padding:12px}
 .nh-select,.nh-caption,.nh-description h2{display:none}
 .nh-description{display:block;margin-top:16px;text-align:center}
 .nh-description:has(p){padding-bottom:2px}
 .nh-description:not(:has(p)){display:none}
 .nh-slide:focus-visible{outline:3px solid var(--alpine);outline-offset:6px;border-radius:var(--radius)}
}
@media(max-aspect-ratio:4/5) and (max-width:599px){.nh{padding-inline:20px}.nh-description p,.nh-description .nh-destination-body{font-size:13px;line-height:1.85}}
@media(prefers-reduced-motion:reduce){.nh-photo:hover,.nh-photo:hover img{transform:none}}

.nh-intro > p { margin:0; }
.nh-intro > p + p { margin-top:.65em; }
.nh-destination-body p { margin:0 0 .35em; }
.nh-destination-body p:last-child { margin-bottom:0; }
.nh-destination-body .nh-destination-link { margin-left:.4em; }
