/* same old samsara · the walk
   Two layouts from the same html.
   Plain (the default): each stop is a still print with its card beside it. This is what you get with scripts off,
   with reduced motion, or when the browser can't draw the world.
   Walking (html.walk-on, set in the head before first paint): the world is pinned behind the page and the cards scroll over it. */

.walk { position: relative; --block: color-mix(in srgb, var(--moss) 82%, transparent); --top-h: 61px; }
@media (max-width: 800px) { .walk { --top-h: 84px; } }
:root[data-theme="night"] .walk { --block: #14150b; }
.walk-view { display: none; }
.walk .label { letter-spacing: .05em; }

/* ---------- the cards ---------- */
.walk .card { position: relative; background: var(--card); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 4px;
  padding: 20px 22px 22px; box-shadow: 6px 6px 0 var(--block); }
.walk .card::before { content: ""; position: absolute; inset: 5px; border: 1px solid var(--rule); border-radius: 2px; pointer-events: none; }  /* the double rule of an almanac box */
.walk .card > * { position: relative; }
.walk .where { display: flex; justify-content: space-between; gap: 12px; color: var(--accent); margin-bottom: 8px; }
.walk .card h2 { font-size: clamp(30px, 4.2vw, 42px); margin-bottom: 10px; }
.walk .card h2:focus { outline: none; }
.walk .card p { font-size: 16.5px; }
.walk .card p + p { margin-top: 8px; }
.walk .card p.label { font-size: 13px; color: var(--ink-soft); }
.walk .card .btns { margin-top: 16px; gap: 8px; }
.walk .card .btn { font-size: 14px; padding: 9px 14px; }
@media (pointer: coarse) { .walk .card .btn { min-height: 44px; padding-block: 0; } }
.walk .card .yt { margin-top: 14px; box-shadow: none; border: 1px solid var(--rule); }
.walk .ep-line { margin-top: 8px; }
/* buy us a coffee: one small line under the fire stop's buttons, with a mug whose steam curls round into a ring */
.walk .card .cup { display: flex; gap: 12px; align-items: center; margin-top: 16px; padding-top: 13px; border-top: 1px dashed var(--rule); font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
.cup a { color: var(--accent); white-space: nowrap; }
.cup-i { flex: none; width: 42px; height: 52px; margin: -4px 0 0 -2px; overflow: visible; }
.cup-i path { fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cup-i .mug { fill: var(--gold); }
.cup-i .st { stroke: var(--accent); stroke-width: 1.5; transform-origin: 50% 100%; transform-box: fill-box; animation: steam 4.5s ease-in-out infinite; }
@keyframes steam { 0%, 100% { transform: translateY(0) scaleY(1); opacity: .95; } 50% { transform: translateY(-1.5px) scaleY(1.07); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .cup-i .st { animation: none; } }
.wear-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.wear-row a { display: block; border-radius: 4px; overflow: hidden; border: 1px solid var(--rule); }
.wear-row img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .4s; }
.wear-row a:hover img { transform: scale(1.05); }
.walk .us { display: flex; gap: 14px; align-items: center; }
.walk .us img { flex: none; width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--ink); }
.walk .inapp { margin-top: 12px; font-size: 12.5px; }
.walk .was { position: absolute; top: 0; }       /* where the old home page's #films, #make, #patterns, #recipes, #wear, #land, #year and #follow links land now */

/* ---------- plain layout ---------- */
.walk .stop { max-width: var(--wrap); margin: 0 auto; padding: 26px 18px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; }
.walk .stop.right .still { order: 2; }
.walk .still { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border: 1.5px solid var(--ink); border-radius: 4px; background: var(--bg2); }
.walk .stop.gate { max-width: none; padding: 0 0 20px; display: block; text-align: center; }
.walk .stop.gate .still { border-width: 0 0 1.5px; border-radius: 0; aspect-ratio: auto; height: min(56vh, 62vw); }
.gate-text { max-width: 760px; margin: 26px auto 0; padding: 0 18px; }
.gate-text .def { max-width: 620px; }
.gate-text h1 { font-size: clamp(44px, 9vw, 96px); font-weight: 650; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; }
.gate-text .what { margin-top: 12px; font-size: clamp(17px, 2.2vw, 20px); font-weight: 500; }
.gate-text .def { margin: 12px auto 0; }
.gate-text .btns { justify-content: center; }
.hero-btns.for-pin { display: none; }
:root[data-from="pin"] .hero-btns.for-pin { display: flex; }
:root[data-from="pin"] .hero-btns.for-all { display: none; }
.walk-hint { margin-top: 22px; }
.walk-hint .on, .walk-hint .try { display: none; }
.walk-can .walk-hint .try { display: block; margin-top: 6px; }
.walk-hint a { color: var(--accent); }
.walk .stop.end { display: block; text-align: center; padding: 34px 18px 20px; }
.walk .stop.end [data-again] { display: none; }
.end-text .def { display: none; margin-top: 10px; }
.walk-on .end-text .def { display: block; }
@media (max-width: 760px) {
  .walk .stop { grid-template-columns: 1fr; gap: 16px; }
  .walk .stop.right .still { order: 0; }
}

/* ---------- walking layout ---------- */
/* the world starts at the very top of the window, under the see-through header */
.walk-on .walk { margin-top: calc(-1 * var(--top-h)); }
.walk-on .walk-view { display: block; position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; z-index: 0;
  margin-top: -130vh; margin-top: -130lvh;                       /* it sits under the trail (see .trail) */
  background: var(--bg) url("../images/walk/0-gate.webp") center / cover no-repeat; }
:root[data-theme="night"].walk-on .walk-view { background-image: url("../images/walk/0-gate-night.webp"); }
@media (max-width: 760px) {
  .walk-on .walk-view { background-image: url("../images/r/walk/0-gate-720.webp"); }
  :root[data-theme="night"].walk-on .walk-view { background-image: url("../images/r/walk/0-gate-night-720.webp"); }
}
.walk-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .8s ease; touch-action: pan-y; }
.walk-ready .walk-gl { opacity: 1; }
.walk-on .walk-stops { position: relative; z-index: 2; margin-top: -100vh; margin-top: -100lvh; pointer-events: none; }
.walk-on .still { display: none; }
.walk-on .walk .stop { max-width: none; margin: 0; padding: 0; display: flex; align-items: center; min-height: 138vh; }
.walk-on .walk .card { pointer-events: auto; width: min(430px, calc(100% - 28px)); margin-left: clamp(16px, 6vw, 110px); }
.walk-on .walk .stop.right .card { margin-left: auto; margin-right: clamp(16px, 6vw, 110px); }

.walk-on .walk .stop.gate { min-height: 100vh; min-height: 100svh; flex-direction: column; align-items: flex-start; justify-content: space-between; text-align: left; padding: 0; }
.walk-on .gate-text { pointer-events: auto; max-width: 760px; margin: calc(var(--top-h) + clamp(18px, 7vh, 78px)) 0 0 clamp(16px, 6vw, 110px); padding: 0;
  text-shadow: 0 0 18px var(--bg), 0 0 8px var(--bg), 0 0 3px var(--bg); }
.walk-on .gate-text h1 { font-size: clamp(40px, min(6.4vw, 11vh), 84px); white-space: nowrap; }
.walk-on .gate-text .tag { font-size: clamp(19px, min(2.6vw, 3.6vh), 27px); }
.walk-on .gate-text .what { margin-top: clamp(6px, 1.4vh, 12px); font-size: clamp(16.5px, min(1.7vw, 2.6vh), 19.5px); }
.walk-on .gate-text .def { margin: 8px 0 0; font-size: clamp(14.5px, 2.1vh, 16.5px); line-height: 1.5; max-width: 520px; color: var(--ink); }
.walk-on .gate-text .btns { justify-content: flex-start; margin-top: clamp(12px, 2.4vh, 20px); }
.walk-on .gate-text .btn { text-shadow: none; background: color-mix(in srgb, var(--bg) 70%, transparent); }
.walk-on .gate-text .btn.solid { background: var(--ink); }
.gate-text .now { margin: 0 auto 10px; }
.gate-text .now[hidden] { display: none; }      /* stays hidden until the script fills it in */
.walk-on .gate-text .now { justify-content: flex-start; margin: 0 0 8px; color: var(--ink); }
.walk-on .walk-hint { pointer-events: auto; align-self: center; margin: 0 0 22px; padding: 7px 14px; border-radius: 999px; text-align: center;
  background: color-mix(in srgb, var(--bg) 78%, transparent); color: var(--ink); }
.walk-on .walk-hint .on { display: inline; }
.walk-on .walk-hint .off { display: none; }
.walk-on .walk-hint > .on::after { content: " ↓"; display: inline-block; margin-right: 8px; animation: walk-bob 1.8s ease-in-out infinite; }
@keyframes walk-bob { 50% { transform: translateY(4px); } }

.walk-on .walk .stop.end { min-height: 96vh; align-items: flex-end; justify-content: center; padding: 0 16px 16vh; }
.walk-on .walk .stop.end [data-again] { display: inline-flex; }
.walk-on .end-text { pointer-events: auto; text-align: center; padding: 18px 26px 22px; border-radius: 6px; background: color-mix(in srgb, var(--bg) 80%, transparent); }
.walk-on .end-text .tag { margin-top: 0; }

@media (min-width: 900px) { .walk-on .walk .stop.right .card { margin-right: 200px; } }
@media (max-width: 760px) {
  .walk-on .walk .stop { min-height: 128vh; }
  .walk-on .walk .card, .walk-on .walk .stop.right .card { margin: 0 auto; padding: 16px 18px 18px; }
  .walk-on .walk .card p { font-size: 15.5px; }
  /* the first screen is the name, the line and two buttons. the "who we are" paragraph becomes the first card you pass. */
  .walk-on .walk .stop.gate { position: relative; align-items: center; text-align: center; padding-bottom: 250px; min-height: calc(100vh + 250px); min-height: calc(100svh + 250px); }
  .walk-on .gate-text { margin: calc(var(--top-h) + 62px) 16px 0; }
  .walk-on .gate-text h1 { white-space: normal; }
  .walk-on .gate-text .now { justify-content: center; }
  .walk-on .gate-text .btns { justify-content: center; gap: 8px; }
  .walk-on .gate-text .def { position: absolute; top: calc(100vh + 8px); top: calc(100svh + 8px); left: 14px; right: 14px; max-width: none; margin: 0; padding: 16px 18px; text-align: left; text-shadow: none;
    font-size: 15.5px; background: var(--card); border: 1.5px solid var(--ink); border-radius: 4px; box-shadow: 6px 6px 0 var(--block); }
  .walk-on .walk .walk-sound { top: calc(100vh - 100px); top: calc(100svh - 100px); }
}
/* very short windows (a phone on its side): keep the first screen to the name and the buttons */
@media (max-height: 560px) and (min-width: 761px) {
  .walk-on .gate-text { margin-top: calc(var(--top-h) + 44px); }
  .walk-on .gate-text .def { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .walk-on .walk .stop { min-height: 190vh; }
}

/* ---------- the trail list ---------- */
/* a zero height strip that sticks to the top of the window for the whole walk, so the list rides above the cards */
.trail { display: none; }
/* the trail is taller than the window, so as the walk ends it goes up and away (a little ahead of the world) instead of
   staying over the footer, or leaving a piece of itself showing under the header. only the list itself takes clicks */
.walk-on .trail { display: block; position: sticky; top: 0; height: 130vh; height: 130lvh; z-index: 6; pointer-events: none; }
.trail-in { position: absolute; right: 14px; top: 50vh; transform: translateY(-50%); pointer-events: auto; }
.trail ol { list-style: none; margin: 0; padding: 10px 12px; display: flex; flex-direction: column; border-radius: 12px;
  background: color-mix(in srgb, var(--bg) 84%, transparent); border: 1px solid var(--rule); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.trail a { display: flex; flex-direction: row-reverse; align-items: center; gap: 9px; padding: 5px 2px; font-family: var(--label); font-size: 13px;
  color: var(--ink-soft); text-decoration: none; white-space: nowrap; }
.trail a:hover { color: var(--ink); }
.trail a i { position: relative; flex: none; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid currentColor; background: var(--bg); }
.trail li + li:not(.plain) a i::before { content: ""; position: absolute; left: 50%; bottom: calc(100% + 2px); height: 15px; border-left: 1.5px dotted currentColor; transform: translateX(-50%); opacity: .7; }
.trail a.done i { background: currentColor; }
.trail a[aria-current] { color: var(--ink); font-weight: 700; }
.trail a[aria-current] i { background: var(--gold); border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 35%, transparent); }
.trail-now { display: none; }
@media (max-width: 899px) {
  /* on small screens the trail is a row of dots under the header, with the name of where you are */
  .trail-in { top: var(--top-h); left: 0; right: 0; transform: none; display: flex; align-items: center; gap: 6px; padding: 0 8px 0 14px;
    background: color-mix(in srgb, var(--bg) 86%, transparent); border-bottom: 1px solid var(--rule); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
  .trail-now { display: block; flex: 1; min-width: 0; margin: 0; font-size: 12.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .trail ol { flex-direction: row; padding: 0; border: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .trail a { padding: 17px 9px; }        /* each dot is 28 by 44 to tap. nine of them and the name still fit across a phone */
  .trail a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .trail li + li:not(.plain) a i::before { left: auto; right: calc(100% + 2px); bottom: 50%; height: 0; width: 14px; border-left: 0; border-top: 1.5px dotted currentColor; transform: translateY(50%); }
}
@media (max-width: 360px) { .trail a { padding-inline: 6px; } .trail li + li:not(.plain) a i::before { width: 8px; } }

/* ---------- little buttons on things in the picture ---------- */
.walk-hot { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hot { position: absolute; left: 0; top: 0; width: 46px; height: 46px; margin: -23px 0 0 -23px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; pointer-events: auto; }
.hot[hidden] { display: none; }
.hot::after { content: ""; position: absolute; inset: 16px; border-radius: 50%; border: 2px solid var(--gold); background: color-mix(in srgb, var(--cream) 55%, transparent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--pepper) 55%, transparent); transition: inset .2s; animation: walk-ping 2.6s ease-in-out infinite; }
.hot:hover::after, .hot:focus-visible::after { inset: 9px; animation: none; }
@keyframes walk-ping { 50% { transform: scale(1.25); opacity: .65; } }
.walk-say { position: absolute; left: 0; top: 0; z-index: 4; margin: 0; max-width: 220px; padding: 7px 11px; border: 1px solid var(--pepper); border-radius: 4px;
  background: var(--cream); color: var(--pepper); font-size: 13px; line-height: 1.35; text-align: center; opacity: 0; pointer-events: none; transition: opacity .25s; box-shadow: 3px 3px 0 var(--block); }
.walk-say.on { opacity: 1; }
.walk-flash { position: absolute; inset: 0; z-index: 5; background: #fffdf2; opacity: 0; pointer-events: none; }
.walk-flash.go { animation: walk-flash .5s ease-out; }
@keyframes walk-flash { 0% { opacity: .92; } 100% { opacity: 0; } }
.walk-sound { position: absolute; z-index: 4; left: 14px; top: calc(100vh - 54px); top: calc(100svh - 54px); padding: 8px 13px; border-radius: 999px; border: 1px solid var(--rule); cursor: pointer;
  background: color-mix(in srgb, var(--bg) 84%, transparent); color: var(--ink); font-family: var(--label); font-size: 12.5px; }
.walk-sound::after { content: ""; position: absolute; inset: -7px -4px; }      /* 44px tall to tap */
.walk-sound[aria-pressed="true"] { border-color: var(--ink); }
.walk-sound span::before { content: "♪ "; }
.walk-sound[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .hot::after, .walk-on .walk-hint > .on::after { animation: none; }
  .walk-gl { transition: none; }
}
