@font-face { font-family: "Inter Tight"; font-weight: 300; font-display: swap; src: url("/fonts/InterTight-300.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 500; font-display: swap; src: url("/fonts/InterTight-500.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 900; font-display: swap; src: url("/fonts/InterTight-900.woff2") format("woff2"); }
@font-face { font-family: "Charis SIL"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/CharisSIL-Italic.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("/fonts/JetBrainsMono-500.woff2") format("woff2"); }

:root {
  --black: #000;
  --white: #f2f5ff;
  --dim: rgba(242, 245, 255, .55);
  --faint: rgba(242, 245, 255, .35);
  --blue: #2f6bff;
  --logo: #6e98ff;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Charis SIL", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(16px, 2.8vw, 40px);
  --stops: 92px;
}

* { box-sizing: border-box; }
html { background: var(--black); scroll-snap-type: y mandatory; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--black); color: var(--white); font-family: var(--sans); font-weight: 500; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
::selection { background: var(--blue); color: var(--black); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* logo: sjb in serif italic, .BLUE small in mono */
.logo { display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; line-height: 1; }
.logo-a { font-family: var(--serif); font-style: italic; font-size: 38px; letter-spacing: -.02em; color: var(--white); }
.logo-b { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .22em; color: var(--logo); }

/* fixed header */
.top { position: fixed; z-index: 10; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: center; padding: 22px var(--pad); pointer-events: none; }
.top > * { pointer-events: auto; }

/* each place fills the screen */
.scene { position: relative; height: 100vh; height: 100svh; scroll-snap-align: start; overflow: hidden; background: var(--black) var(--photo) var(--pos, center) / cover no-repeat; }
.scene::before { content: ""; position: absolute; inset: 0; background:
  linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,0) 18%),
  linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.2) 45%, rgba(0,0,0,0) 70%); }

.copy { position: absolute; right: var(--pad); bottom: calc(var(--stops) + 28px); left: var(--pad); text-align: right; }
.t1 { margin: 0; font-weight: 900; font-size: clamp(40px, 4.6vw, 68px); line-height: .95; letter-spacing: -.01em; text-transform: uppercase; }
.t2 { margin: 6px 0 0; font-weight: 300; font-size: clamp(34px, 4vw, 58px); line-height: 1; text-transform: uppercase; }
.t2 a { text-decoration: none; }
.t2 a:hover, .t2 a:focus-visible { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; outline: none; }
.glow { color: var(--logo); font-weight: 500; text-shadow: 0 0 .2em rgba(31, 79, 255, .7); }
.t3 { margin: 18px 0 0 auto; max-width: 30em; font-size: 17px; line-height: 1.5; color: rgba(242, 245, 255, .8); text-transform: none; }

/* text eases in when its place comes up */
.copy > * { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.copy .t2 { transition-delay: .08s; } .copy .t3 { transition-delay: .16s; }
.scene.on .copy > * { opacity: 1; transform: none; }
.no-js .copy > * { opacity: 1; transform: none; }

.credit { position: absolute; right: var(--pad); bottom: 36px; margin: 0; max-width: 60vw; text-align: right; font-size: 11px; letter-spacing: .03em; color: var(--dim); }
.credit a { text-decoration: none; border-bottom: 1px solid rgba(242, 245, 255, .3); }
.credit a:hover, .credit a:focus-visible { color: #fff; outline: none; }

/* the numbered places along the bottom */
.stops { position: fixed; z-index: 10; left: var(--pad); bottom: 30px; display: flex; gap: clamp(16px, 4vw, 70px); }
.stops a { display: flex; align-items: flex-start; gap: 12px; text-decoration: none; color: var(--faint); transition: color .25s; }
.stops b { font-weight: 900; font-size: 30px; line-height: .9; }
.stops span { display: flex; flex-direction: column; gap: 6px; padding-top: 2px; }
.stops em { font-style: normal; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.stops i { font-style: normal; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.stops a:hover, .stops a:focus-visible { color: var(--white); outline: none; }
.stops a.on { color: #fff; }
.stops a.on i { color: var(--logo); opacity: 1; }

.progress { position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .16); }
.progress i { display: block; height: 100%; width: 25%; background: var(--blue); box-shadow: 0 0 12px rgba(47, 107, 255, .9); transition: width .5s cubic-bezier(.2, .7, .2, 1); }

/* phones: numbers only, the current place spelled out */
@media (max-width: 760px) {
  :root { --stops: 70px; }
  .logo-a { font-size: 32px; }
    .stops { right: var(--pad); bottom: 22px; justify-content: space-between; gap: 8px; }
  .stops span { display: none; }
  .stops a.on span { display: flex; }
  .stops b { font-size: 24px; }
  .credit { left: var(--pad); right: var(--pad); bottom: auto; top: 76px; max-width: none; text-align: center; font-size: 10px; }
  .t3 { font-size: 15px; }
  /* photos fill the height, the sides get cropped, and the middle stays in view */
  .scene { background-position: center; }
}

/* 404 page */
.lost { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 120px var(--pad) 80px; }
.lost h1 { margin: 0 0 18px; font-weight: 900; font-size: clamp(40px, 7vw, 96px); line-height: .95; letter-spacing: -.02em; }
.lost p { margin: 0; font-size: 17px; color: rgba(242, 245, 255, .7); }
.lost p a { color: var(--logo); }
