/* Hallmark · shape: one day in four parts, noon to night, a slide lane on the right carrying a tube down the day · 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 (the owner's mix of demos A "Từ trưa tới đêm" and B "Cầu trượt", canvas page Glory)
 * paper: #17121C, warming to #3E2C2A at noon · accent: #F4B942 · display: LF Curve Retro · body: Danta · outlier: LF Mileast (lead line and part places) · hero: the rainbow slide under the Glory Resort sign, the name on its foot · nav: logo left, one link right · footer: one line, logo, credit, other trips · signature: a striped tube (three.js) slides down a lane as the page scrolls, through Trưa, Chiều, Tối, Đêm, while the page goes from noon to night
 * axes: dark/display-heavy/warm · posture: banner · accent: the tube, the rings, the current time, focus · motion: anime.js drops the tube in and lifts the title, motion.dev ties the day's light and the tube to the scroll and reveals each part, three.js spins the tube with the scroll speed; still under reduced motion (the tube still marks the place) · sound: off until asked, cicadas at noon fading into a night pad, a whoosh at each new part, a splash at the pool, all Web Audio · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P5 H4 E4 S5 R4 V5 · weakest: R, the part grids are the shared justified rows; the lane and the light carry the day */
@import url("../album/album.css");

:root {
  --color-dusk: #3E2C2A;
  --t: 0;                         /* 0 at noon, 1 at night: slide.js follows the scroll */
  --lane-top: calc(var(--space-3xl) + var(--space-xl));   /* below the nav */
  --rail: 96px;                    /* the right edge kept clear for the lane, its tube and its label */
  --lane-run: 74dvh;
}
@media (min-width: 60rem) { .slide-day .container { padding-right: calc(var(--gutter) + var(--rail)); } }
body.slide-day { background: color-mix(in oklab, var(--color-dusk) calc((1 - var(--t)) * 100%), var(--color-paper)); }

/* the opening: the slide, the name on its foot */
.day-hero { position: relative; padding-top: var(--space-3xl); }
.day-hero .cover-photo { width: 100%; height: min(74dvh, 760px); object-fit: cover; object-position: center 60%; }
.day-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 46%; background: linear-gradient(transparent, color-mix(in oklab, var(--color-dusk) 92%, transparent)); pointer-events: none; }
.day-hero-text { position: absolute; z-index: 1; left: 0; right: 0; bottom: var(--space-xl); display: flex; flex-direction: column; gap: var(--space-sm); }
.day-hero-text h1 { font-size: clamp(3.5rem, 6vw + 1rem, 7.5rem); line-height: 0.95; }
.day-hero-text .lead { font-family: var(--font-outlier); color: var(--color-accent); font-size: clamp(1.25rem, 1vw + 0.9rem, 1.875rem); }

/* a part of the day: a ring, the time, where we were */
.part { padding-top: var(--section-gap-s); }
.part-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-lg); margin-bottom: var(--space-xl); }
.part-head h2 { font-size: var(--text-section); }
.part-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); }
.day-end { display: flex; align-items: center; justify-content: center; gap: var(--space-lg); padding-block: var(--section-gap) var(--space-2xl); }
.day-end h2 { font-size: var(--text-section); }

/* the tube ring, drawn in CSS: gold and cream segments around a hole */
.ring, .tube-css { display: inline-block; flex: none; width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(var(--color-accent) 0 12.5%, var(--color-ink) 0 37.5%, var(--color-accent) 0 62.5%, var(--color-ink) 0 87.5%, var(--color-accent) 0); -webkit-mask: radial-gradient(circle, transparent 36%, var(--color-paper) 37%); mask: radial-gradient(circle, transparent 36%, var(--color-paper) 37%); }

/* the lane: three stripes down the right edge, the times as stops, the tube riding it */
.lane { position: fixed; z-index: var(--z-sticky); right: var(--space-lg); top: var(--lane-top); height: var(--lane-run); width: 42px; }
.lane-stripes { position: absolute; inset: 0; border-radius: 4px; overflow: hidden; background: linear-gradient(90deg, var(--color-accent) 0 33.3%, var(--color-ink) 33.3% 66.6%, var(--color-paper-3) 66.6%); opacity: 0.88; }
.lane a { position: absolute; left: 0; width: 42px; height: 42px; top: calc(var(--at) * 100% - 21px); border-radius: var(--radius-pill); color: var(--color-ink); text-decoration: none; }
.lane a span { position: absolute; right: calc(100% + var(--space-lg) + var(--space-2xs)); top: 50%; transform: translateY(-50%); padding: var(--space-2xs) var(--space-sm); border-radius: var(--radius-pill); background: color-mix(in oklab, var(--color-paper) 85%, transparent); white-space: nowrap; font-size: var(--text-sm); transition: opacity var(--dur-short) var(--ease-out); }
.js .lane a span { opacity: 0; }   /* without JS every time stays labelled */
.js .lane a:hover span, .js .lane a:focus-visible span, .js .lane a[aria-current="true"] span { opacity: 1; }
.lane a[aria-current="true"] span { color: var(--color-accent); }
.lane a:active span { color: var(--color-ink-2); }
.lane a:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.tube { position: absolute; left: 50%; top: 0; width: 76px; height: 76px; transform: translate(-50%, calc(var(--p, 0) * var(--lane-run) - 50%)); pointer-events: none; filter: drop-shadow(0 8px 14px color-mix(in oklab, var(--color-paper) 70%, transparent)); }
.tube .tube-css { width: 76px; height: 76px; }
.tube canvas { position: absolute; inset: -12px; width: 100px; height: 100px; }
.tube.gl .tube-css { visibility: hidden; }

/* sound: one quiet switch, bottom right, under the lane */
.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: 60rem) {
  .lane { display: none; }
}
@media (max-width: 40rem) {
  .sound span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
