:root { color-scheme: dark; --ground: #0b0a09; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; }
body {
  background: var(--ground); color: #efeae3;
  font: 16px/1.5 "Host Grotesk", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background-color 900ms ease;
}

/* The reel. Every photo is as large as the screen allows, side by side. */
.reel {
  display: flex; gap: clamp(10px, 2vw, 36px);
  height: 100dvh; overflow: auto hidden; outline: 0;
  scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain;
}
.reel::-webkit-scrollbar { display: none; }
.slide {
  --w: min(100vw, calc(100dvh * var(--ar)));
  flex: 0 0 auto; width: var(--w); height: 100dvh; margin: 0;
  display: grid; align-items: center;
  scroll-snap-align: center; scroll-snap-stop: always;
  touch-action: pan-x;
}
/* Lets the first photo sit in the middle instead of against the edge. */
.slide:first-child { margin-left: calc((100vw - var(--w)) / 2); }
.photo {
  position: relative; width: 100%; aspect-ratio: var(--ar);
  background: #171412 center / cover no-repeat;
  transform-origin: 0 0; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.photo img.tile { inset: auto; max-width: none; opacity: 0; transition: opacity 160ms; }
.photo img.tile.in { opacity: 1; }

/* Neighbours step back so the eye stays on one photo. */
.js .slide { opacity: 0.22; transition: opacity 500ms ease; }
.js .slide.on { opacity: 1; }

.zoomed .reel { overflow: hidden; }
.zoomed .slide { touch-action: none; }
.zoomed .slide.on { z-index: 1; cursor: grab; }
.zoomed .slide:not(.on) { opacity: 0; }
.dragging .slide.on { cursor: grabbing; }

.end {
  flex: 0 0 min(100vw, 760px); height: 100dvh; padding: 72px clamp(24px, 6vw, 72px) 88px;
  display: flex; flex-direction: column; justify-content: center; gap: 22px;
  scroll-snap-align: center; margin-right: max(0px, calc((100vw - 760px) / 2));
}
.end h2 { margin: 0; font-size: clamp(32px, 6vw, 52px); line-height: 1.05; font-weight: 500; letter-spacing: -0.02em; text-wrap: balance; }
.doors { display: grid !important; grid-template-columns: 1fr 1fr; gap: 14px !important; }
.doors a { padding: 0 !important; text-decoration: none; }
.doors img { display: block; width: 100%; height: clamp(90px, 21dvh, 220px); object-fit: cover; background: #171412; margin-bottom: 8px; }
.doors img[src^="/covers/"] { object-position: top; }
.end nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.end a { color: inherit; text-underline-offset: 4px; text-decoration-color: #4a443d; padding: 6px 0; }
.end a:hover { color: #6fc3be; }
.this-post { padding-bottom: 18px; border-bottom: 1px solid #2a2622; }
.this-post .back { font-size: 18px; font-weight: 500; margin-right: 8px; }

.bar {
  position: fixed; left: 0; right: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center;
  padding: max(12px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  pointer-events: none; transition: opacity 350ms ease;
}
.top { top: 0; }
.top { padding-block: 18px; font: 12px/1 "Azeret Mono", ui-monospace, Menlo, monospace; letter-spacing: 0.06em; text-transform: uppercase; }
.bar a { pointer-events: auto; color: inherit; text-decoration: none; text-shadow: 0 0 12px #000, 0 0 3px #000; }
.name { padding: 15px 18px; margin: -15px -18px; }
.bottom { bottom: 0; gap: 14px; font-size: 14px; }
.title { display: grid; min-width: 0; padding: 8px 16px; border-radius: 22px; border: 1px solid rgb(239 234 227 / 0.18); background: rgb(30 27 24 / 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.bar a.title { text-shadow: none; }
.title b, .title small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.title b { font-weight: 500; }
.title small { font-size: 12px; line-height: 1.4; color: #b3aaa0; }
.title:hover { background: rgb(40 36 32 / 0.8); }
.bottom .actions { margin-left: auto; }
.count { font: 12px "Azeret Mono", ui-monospace, monospace; letter-spacing: 0.06em; white-space: nowrap; text-shadow: 0 0 12px #000, 0 0 3px #000; }
/* The controls step aside, all of them: a tap on the photo is a request to
   see only the photo. 2026-12-05: *"i definitely wanna make sure that people
   can look at it full screen without any interruptions and be able to zoom."* */
.quiet .bar { opacity: 0; }
.quiet .bar a { pointer-events: none; }
.quiet { cursor: none; }
.quiet .bar:has(:focus-visible) { opacity: 1; }
.quiet .bar:has(:focus-visible) a, .quiet .bar:has(:focus-visible) .button { pointer-events: auto; }
.actions { display: flex; gap: 8px; }
.button {
  pointer-events: auto; width: 44px; height: 44px; display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 50%; color: #efeae3; background: rgb(11 10 9 / 0.55); cursor: pointer;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.button[hidden] { display: none; }
.button:hover { background: rgb(40 36 32 / 0.8); }
.quiet .button { pointer-events: none; }
:focus-visible { outline: 2px solid #6fc3be; outline-offset: 2px; }
.reel:focus-visible { outline: 0; }

.note {
  position: fixed; left: 50%; bottom: calc(88px + env(safe-area-inset-bottom)); z-index: 30; margin: 0; padding: 11px 20px; border-radius: 99px;
  transform: translate(-50%, 8px); background: #efeae3; color: #12100e; font-size: 15px; font-weight: 500; white-space: nowrap;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45); opacity: 0; pointer-events: none; transition: opacity 200ms, transform 200ms;
}
.note.in { opacity: 1; transform: translate(-50%, 0); }

.sheet { width: 100vw; height: 100dvh; max-width: none; max-height: none; border: 0; margin: 0; padding: 68px max(14px, env(safe-area-inset-right)) 40px max(14px, env(safe-area-inset-left)); background: #0b0a09; color: inherit; overflow: auto; }
.sheet > .button { position: fixed; top: max(12px, env(safe-area-inset-top)); right: 14px; }
.sheet-grid { display: flex; flex-wrap: wrap; gap: 8px; max-width: 1500px; margin: auto; }
.sheet-grid::after { content: ""; flex: 1000 0 0; }
.sheet-grid button { --h: clamp(110px, 24vw, 230px); flex: var(--ar) 1 calc(var(--ar) * var(--h)); max-width: calc(var(--ar) * var(--h) * 1.5); aspect-ratio: var(--ar); padding: 0; border: 0; background: #171412; cursor: pointer; }
.sheet-grid img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sheet-grid button[aria-current] { outline: 2px solid #6fc3be; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) { *, ::before { transition: none !important; } }

/* How the photo was made: a panel at the side, or a sheet on a phone. */
.info {
  position: fixed; z-index: 2; right: max(14px, env(safe-area-inset-right)); top: 64px; bottom: 78px; width: min(360px, calc(100vw - 28px));
  overflow: auto; overscroll-behavior: contain; padding: 18px 20px; border-radius: 16px;
  background: rgb(20 18 16 / 0.9); border: 1px solid rgb(239 234 227 / 0.12);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); font-size: 15px;
}
.info section + section { margin-top: 22px; padding-top: 18px; border-top: 1px solid #2a2622; }
.info h3 { margin: 0 0 4px; font-size: 13px; font-weight: 500; color: #b3aaa0; }
.info .label { margin: 16px 0 4px; font: 11px/1.4 "Azeret Mono", ui-monospace, monospace; letter-spacing: 0.06em; text-transform: uppercase; color: #8f867c; }
.info section > .label:first-child, .info h3 + .label { margin-top: 0; }
.info a { color: inherit; text-underline-offset: 4px; text-decoration-color: #4a443d; }
.info a:hover { color: #6fc3be; }
.info .recipe { font-size: 20px; font-weight: 500; }
.info dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin: 12px 0 0; }
.info dt { font-size: 12px; color: #8f867c; }
.info dd { margin: 1px 0 0; }
.info p { margin: 0; }
.info .exposure { margin-top: 4px; color: #b3aaa0; font-variant-numeric: tabular-nums; }
.info .none { color: #8f867c; }
.button[aria-pressed="true"] { background: #efeae3; color: #12100e; }
@media (max-width: 600px) {
  .info { left: 10px; right: 10px; width: auto; top: auto; bottom: 74px; max-height: 58dvh; }
}
/* 2026-12-05 polish: on a phone the way back to the post was cut to
   "← Austin - …" and "Where it was …". The post's name is the part that
   says where it goes, so it gets the room: the second line and the
   counter step aside (the grid still shows where you are). */
@media (max-width: 480px) {
  .title small, .bottom .count { display: none; }
  .bottom { gap: 8px; }
  .title { padding: 9px 13px; font-size: 13px; }
  .actions { gap: 4px; }
}

/* A pair's halves: a small map of the pair beside each section's heading, its own half filled. */
.info h3 { display: flex; align-items: center; gap: 10px; }
.info .half { position: relative; flex: none; width: 22px; height: 22px; border: 1px solid #6a625a; border-radius: 2px; }
.info .half.top, .info .half.bottom { width: 18px; height: 24px; }
.info .half::after { content: ""; position: absolute; background: #6fc3be; }
.info .half.left::after { inset: 2px 50% 2px 2px; margin-right: 1px; }
.info .half.right::after { inset: 2px 2px 2px 50%; margin-left: 1px; }
.info .half.top::after { inset: 2px 2px 50% 2px; margin-bottom: 1px; }
.info .half.bottom::after { inset: 50% 2px 2px 2px; margin-top: 1px; }
