/* Hallmark · shape: scroll story, one pinned scene then the trips · genre: atmospheric · theme: brand (ECW Trips, logo C + Hoàng hôn, accent Vàng nắng) · job: visit (open an album)
 * paper: #17121C · accent: #F4B942 · display: LF Curve Retro · body: Danta · outlier: LF Mileast (lead lines only) · hero: horizon split, a WebGL sea below the line, sky above · nav: logo left, one link right · footer: one line, logo, credit, back to top · signature: a 3D sun sets into a glittering sea as you scroll, each trip rises into the sky above it
 * axes: dark/display-heavy/warm · posture: horizon · accent: the sun and its glitter path, one object · motion: three.js scene, scroll by motion.dev, intro by anime.js, all off under reduced motion · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S5 R4 V5 */
/* Hallmark · finish-review: subagent · recapture (shots missing) · 7 provisional findings · 1 sun over faces: photos rise and fade out at the bottom · 2 photos rise · 3 photo peak 1 with a top shade · 4 nav shade · 5 Shenzhen sky photo changed to the night street · 6 coming-soon is plain text · 7 scene 320dvh, now 400dvh for three trips */
@import url("assets/album/tokens.css");
@import url("assets/album/base.css");
@import url("assets/transition.css");

@font-face { font-family: "LF Curve Retro"; src: url("assets/fonts/lf-curve-retro.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "LF Mileast"; src: url("assets/fonts/lf-mileast.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Danta"; font-weight: 500; src: url("assets/fonts/danta-500.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Danta"; font-weight: 700; src: url("assets/fonts/danta-700.woff2") format("woff2"); font-display: swap; }

:root { --horizon: 60%; --sun: min(13vw, 190px); --line: 6px; }

/* nav: lives in the stage, so it stays while the scene is pinned and leaves with it */
.nav { position: absolute; inset: 0 0 auto 0; z-index: var(--z-sticky-nav); display: flex; align-items: center; justify-content: space-between; height: 96px; }
.nav-logo { display: block; border-radius: 4px; }
.nav-logo img { height: 36px; width: auto; }
.nav-link { color: var(--color-ink); text-decoration: none; font-size: var(--text-md); padding: var(--space-sm) var(--space-2xs); transition: color var(--dur-short) var(--ease-out); }
.nav-link:hover { color: var(--color-accent); }
.nav-link:active { color: var(--color-ink-2); }

/* button: the one primary recipe on the page */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 var(--space-xl); border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); font-weight: 700; font-size: var(--text-md); text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none; white-space: nowrap; transition: transform var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.button:hover { background-color: color-mix(in oklab, var(--color-accent) 88%, var(--color-ink)); transform: translateY(-2px); }
.button:active { transform: translateY(0); background-color: color-mix(in oklab, var(--color-accent) 82%, var(--color-paper)); }
.button:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 4px; }

/* the scene: without JS or WebGL it is one still screen, the sun resting on the horizon */
.scene { position: relative; }
.stage { position: relative; height: 100dvh; min-height: 640px; overflow: clip; }
.sea-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sky { position: absolute; inset: 0 0 auto 0; height: var(--horizon); overflow: clip; z-index: var(--z-base); }
.sky::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 160px; background: linear-gradient(var(--color-paper), transparent); }
.sky-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; opacity: 0; -webkit-mask-image: linear-gradient(var(--color-paper) 55%, transparent 96%); mask-image: linear-gradient(var(--color-paper) 55%, transparent 96%); }
.sun { position: absolute; left: 50%; bottom: calc(var(--sun) * -1); width: calc(var(--sun) * 2); height: calc(var(--sun) * 2); margin-left: calc(var(--sun) * -1); border-radius: 50%; background: var(--color-accent); }
.horizon { position: absolute; left: 0; right: 0; top: var(--horizon); height: var(--line); background: var(--color-rule); z-index: var(--z-raised); }
.has-3d .sun, .has-3d .sky-photo { display: none; }   /* in 3D the covers live in the scene */
/* in 3D the sea's edge is the horizon under the sun: the cream line opens there so the sun sinks into water, not behind a rule */
.has-3d .horizon { background: linear-gradient(90deg, var(--color-rule) 0 34%, transparent 41% 59%, var(--color-rule) 66% 100%); opacity: 0.85; }
/* a quiet shade on the water behind the words, so the glitter never runs through them */
.has-3d .ground::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 58%; background: linear-gradient(90deg, color-mix(in oklab, var(--color-paper) 82%, transparent) 40%, transparent); pointer-events: none; z-index: -1; }
.ground { z-index: var(--z-raised); position: absolute; left: 0; right: 0; top: calc(var(--horizon) + var(--line)); bottom: 0; padding-block: var(--space-xl); }
.hero { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-lg); }
.hero .word { display: inline-block; }
.hero h1 { font-size: clamp(2.5rem, 3.6vw + 0.5rem, 4.25rem); color: var(--color-ink); max-width: 16ch; }
.hero .lead { margin-top: var(--space-md); font-family: var(--font-outlier); font-size: var(--text-xl); color: var(--color-ink-2); }
.trip-title { position: absolute; left: var(--gutter); right: var(--gutter); top: var(--space-xl); display: flex; flex-direction: column; gap: var(--space-sm); opacity: 0; }
.trip-name { font-family: var(--font-display); font-size: clamp(3.5rem, 6.4vw, 8rem); overflow-wrap: break-word; min-width: 0; line-height: 1; color: var(--color-ink); }
.trip-line { font-family: var(--font-outlier); font-size: var(--text-2xl); color: var(--color-ink-2); }

/* scroll mode, set by sunset.js only when motion is allowed */
.has-scene .scene { height: 640dvh; }
.has-scene .stage { position: sticky; top: 0; }

/* the trips stand on the horizon */
.trips { padding-block: var(--section-gap-s) var(--section-gap); }
/* every photo stands on its own cream horizon (a single band only covered the first row once there were 5 trips);
   the 1fr track takes up the slack of a name that wraps, so the buttons in one row sit on one line */
.trip-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-2xl); --trip-photo: clamp(200px, 17vw, 260px); }
.trip { display: grid; grid-template-rows: var(--trip-photo) 1fr auto; row-gap: var(--space-lg); justify-items: start; }
.trip img { width: 100%; height: 100%; object-fit: cover; border-bottom: var(--line) solid var(--color-rule); }
.trip h3 { font-size: clamp(2rem, 2.6vw + 0.5rem, 3.5rem); max-width: none; color: var(--color-ink); margin-top: var(--line); }

.footer { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--space-xl); row-gap: var(--space-sm); padding-block: var(--space-xl) var(--space-2xl); border-top: var(--rule-hair) solid color-mix(in oklab, var(--color-rule) 25%, transparent); color: var(--color-muted); font-size: var(--text-sm); }
.footer > * { flex-shrink: 0; }
.footer img { height: 28px; width: auto; }
.footer a { margin-left: auto; white-space: nowrap; color: var(--color-ink); }
.footer a:hover { color: var(--color-accent); }

@media (max-width: 60rem) {
  .hero { flex-direction: column; align-items: flex-start; gap: var(--space-lg); }
  .trip-list { grid-template-columns: minmax(0, 1fr); }
}
