/* Hallmark · shape: three landscapes, opened side by side, then walked one after the other, the road at the end · genre: atmospheric · theme: brand (ECW Trips, logo C + Hoàng hôn, accent Vàng nắng) · job: visit (look through the photos) · redesign: full (picked demo A "Ba cảnh", canvas page Quảng Bình)
 * paper: #17121C, tinted by the landscape (sea #0F2333, forest #12281C, sand #3A2A17) · accent: #F4B942 · display: LF Curve Retro · body: Danta · outlier: LF Mileast (panel labels and places) · hero: a triptych, sea, mountains, dunes, each a link into its landscape, the name across their foot · nav: logo left, one link right · footer: one line, logo, credit, other trips · signature: the page takes the colour of the landscape you are in, and its sound
 * axes: dark/display-heavy/cool-to-warm · posture: triptych · accent: the places line, the current panel label, focus · motion: anime.js raises the three panels and the name, the tint eases between landscapes, motion.dev brings each landscape's name in; off under reduced motion · sound: off until asked, waves, mountain wind with cave drips, dune wind, the night train, all Web Audio · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P5 H4 E4 S4 R4 V5 · weakest: S, inside a landscape the grids are the shared justified rows; the tint and the sound carry the change */
@import url("../album/album.css");

:root {
  --tint-bien: #0F2333;
  --tint-nui: #12281C;
  --tint-cat: #3A2A17;
  --tint-duong: #17121C;
}
body.terrain-page { background-color: var(--tint-bien); transition: background-color 1.4s var(--ease-in-out); }
body[data-terrain="nui"] { background-color: var(--tint-nui); }
body[data-terrain="cat"] { background-color: var(--tint-cat); }
body[data-terrain="duong"] { background-color: var(--tint-duong); }

/* the opening: three landscapes side by side, each a way in */
.triptych { position: relative; padding-top: var(--space-3xl); }
.panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2xs); height: min(60dvh, 640px); }
.panel { position: relative; display: block; overflow: hidden; color: var(--color-ink); text-decoration: none; }
.panel img { width: 100%; height: 100%; object-fit: cover; }
.panel::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, color-mix(in oklab, var(--color-paper) 88%, transparent)); pointer-events: none; }
.panel span { position: absolute; z-index: 1; left: var(--space-xl); bottom: var(--space-xl); font-family: var(--font-outlier); font-size: clamp(1.5rem, 1.4vw + 1rem, 2.25rem); transition: color var(--dur-short) var(--ease-out); }
.panel:hover span { color: var(--color-accent); }
.panel:active span { color: var(--color-ink-2); }
.panel:focus-visible { outline: 3px solid var(--color-focus); outline-offset: -3px; }
/* the name stands under the three, on the page, never across their seams */
.triptych h1 { max-width: none; margin: 0; padding: var(--space-lg) var(--gutter) 0; text-align: center; font-size: clamp(3.5rem, 6vw + 1rem, 7.5rem); line-height: 0.95; }

/* a landscape: its name set large, where it was, then the photos */
.terrain { padding-top: var(--section-gap); }
.terrain-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-xs) var(--space-xl); margin-bottom: var(--space-xl); }
.terrain-head h2 { font-size: clamp(3rem, 5vw + 1rem, 6rem); }
.terrain-places { font-family: var(--font-outlier); font-size: var(--text-xl); color: var(--color-accent); }
.place { margin-bottom: var(--space-2xl); }
.place:last-child { margin-bottom: 0; }
.place h3 { font-size: var(--text-2xl); margin-bottom: var(--space-lg); }
.road { padding-bottom: var(--space-2xl); }

/* sound: one quiet switch, bottom right */
.sound { position: fixed; right: var(--space-md); bottom: var(--space-md); z-index: var(--z-sticky); display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; padding: 0 var(--space-md); border: 1px solid color-mix(in oklab, var(--color-ink) 35%, transparent); border-radius: var(--radius-pill); background: color-mix(in oklab, var(--color-paper) 80%, transparent); color: var(--color-ink); cursor: pointer; transition: border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.sound .wave { opacity: 0.35; }
.sound[aria-pressed="true"] { color: var(--color-accent); border-color: var(--color-accent); }
.sound[aria-pressed="true"] .wave { opacity: 1; }
.sound:hover { border-color: var(--color-accent); }
.sound:active { color: var(--color-ink-2); }
.sound:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }

@media (max-width: 40rem) {
  .panels { grid-template-columns: minmax(0, 1fr); height: auto; }
  .panel { aspect-ratio: 16 / 9; }
  .panel span { bottom: var(--space-lg); }
  .triptych h1 { padding-top: var(--space-xl); text-align: left; }
  .sound span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
