/* Subtract's look (getsubtract.com, the FastCap page): warm paper, soft ink, cobalt.
   Here everything is set in Geist Mono, like a terminal. Light only. */
@font-face { font-family: "Geist Mono"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/geist-mono-latin-wght-normal.woff2) format("woff2-variations"); }
:root {
  --bg: #f4f1ea; --stone: #ebe6dc; --sheet: #fbfaf6; --line: rgba(43,40,36,.1); --line-2: rgba(43,40,36,.18);
  --ink: #2b2824; --ink-2: #635c52; --cobalt: #2a4bd8; --pink: #f3d3d8;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --pad: clamp(14px, 4vw, 40px); --ease: cubic-bezier(.22,.61,.36,1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 13.5px/1.55 var(--mono); letter-spacing: -.01em; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; border-radius: 6px; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 var(--pad); }

header { position: sticky; top: 0; z-index: 1000; background: rgba(244,241,234,.86); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 14px; height: 54px; }
.mark { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; letter-spacing: -.03em; }
.mark img { margin: -2px; }
.mark span { color: var(--cobalt); }
.live { margin-left: auto; }
.tabbar { position: fixed; z-index: 1000; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); translate: -50% 0; display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(235,230,220,.9); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border: 1px solid var(--line-2); box-shadow: 0 12px 30px -14px rgba(43,40,36,.45); }
.tabbar button { display: flex; align-items: center; justify-content: center; gap: 7px; height: 44px; min-width: 84px; padding: 0 16px 0 14px; border: 0; border-radius: 999px; background: none; cursor: pointer; color: var(--ink-2); transition: background .2s var(--ease), color .2s var(--ease); }
.tabbar button svg { width: 20px; height: 20px; }
.tabbar button b { font-weight: 500; font-size: 12px; font-variant-numeric: tabular-nums; }
.tabbar button[aria-selected="true"] { background: var(--sheet); color: var(--ink); box-shadow: 0 1px 2px rgba(43,40,36,.12); }
.tabbar button[aria-selected="true"] svg { color: var(--cobalt); }
.live { display: flex; align-items: center; gap: 7px; color: var(--ink-2); font-size: 12px; min-width: 52px; justify-content: flex-end; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--cobalt); box-shadow: 0 0 0 0 rgba(42,75,216,.5); animation: ping 2.4s var(--ease) infinite; }
.live.stale i { background: var(--ink-2); animation: none; }
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgba(42,75,216,0); } 100% { box-shadow: 0 0 0 0 rgba(42,75,216,0); } }

main.wrap { padding-top: 16px; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.hero { padding: clamp(18px, 5vw, 44px) 2px clamp(16px, 3vw, 26px); }
.hero h1 { margin: 0; max-width: 16ch; font-weight: 600; font-size: clamp(30px, 6.4vw, 60px); line-height: 1.02; letter-spacing: -.055em; text-wrap: balance; }
.hero .sub { margin: 12px 0 0; color: var(--ink-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.hero .sub span { color: var(--ink); font-weight: 500; }
.map { position: sticky; top: 62px; z-index: 500; isolation: isolate; height: min(48vh, 460px); min-height: 260px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--stone); overflow: hidden; box-shadow: 0 0 0 8px var(--bg); }
.map .leaflet-tile-pane { filter: grayscale(1) sepia(.28) contrast(.92) brightness(1.04); }
.leaflet-container { font: inherit; background: var(--stone); }
.leaflet-control-attribution { font: 10px/1.4 var(--mono) !important; background: rgba(251,250,246,.8) !important; color: var(--ink-2); }
.leaflet-control-attribution a { color: var(--ink-2); }
.leaflet-bar a { background: var(--sheet); color: var(--ink); border-color: var(--line) !important; }
.pin { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--sheet); box-shadow: 0 0 0 1.5px var(--ink), 0 6px 14px -6px rgba(43,40,36,.6); overflow: hidden; background: var(--stone); transition: transform .2s var(--ease); }
.pin img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pin.fresh { box-shadow: 0 0 0 2px var(--cobalt), 0 6px 14px -6px rgba(42,75,216,.7); }
.pin.on { transform: scale(1.25); }
.leaflet-popup-content-wrapper { border-radius: 14px; background: var(--sheet); color: var(--ink); box-shadow: 0 20px 40px -20px rgba(43,40,36,.5); }
.leaflet-popup-content { margin: 12px 14px; font: 12.5px/1.5 var(--mono); width: 250px !important; }
.leaflet-popup-tip { background: var(--sheet); }
.pop-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.pop-h img { width: 26px; height: 26px; border-radius: 50%; }
.pop-h a { font-weight: 600; }
.pop-t { margin: 0; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }

ol { list-style: none; margin: 0; padding: 0; }
.people { margin-top: 14px; border-top: 1px solid var(--line); }
.person { display: grid; grid-template-columns: 38px 1fr auto 30px; gap: 12px; align-items: center; padding: 11px 6px; border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 10px; transition: background .15s var(--ease); }
.person:hover, .person.on { background: var(--sheet); }
.av { width: 38px; height: 38px; border-radius: 50%; background: var(--stone); object-fit: cover; display: block; }
.who { min-width: 0; }
.who-1 { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.who-1 strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-2 { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; color: var(--ink-2); font-size: 12px; white-space: nowrap; }
.tag { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); }
.tag svg { width: 12px; height: 12px; color: var(--cobalt); }
.n { font-variant-numeric: tabular-nums; }
.x { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; color: var(--ink-2); transition: background .15s, color .15s; }
.x:hover { background: var(--stone); color: var(--ink); }
.x svg { width: 15px; height: 15px; }

.feed { display: grid; gap: 10px; }
.post { padding: 14px 16px; border-radius: 16px; background: var(--sheet); border: 1px solid var(--line); }
.post-h { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; }
.post-h .av { width: 34px; height: 34px; }
.post-h .meta { color: var(--ink-2); font-size: 12px; display: flex; gap: 10px; align-items: center; }
.post p { margin: 10px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.post .shot { margin-top: 10px; border-radius: 12px; border: 1px solid var(--line); max-height: 340px; width: 100%; object-fit: cover; display: block; background: var(--stone); }
.empty { display: flex; justify-content: center; padding: 40px 0; color: var(--ink-2); }
.empty svg { width: 22px; height: 22px; }

@media (max-width: 560px) {
  .side .tag { display: none; }
  .map { border-radius: 14px; height: 38vh; min-height: 220px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Profile */
.back { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin: 18px 0 6px -6px; border: 0; border-radius: 50%; background: none; cursor: pointer; color: var(--ink-2); }
.back:hover { background: var(--stone); color: var(--ink); }
.back svg { width: 20px; height: 20px; }
.prof-h { display: flex; align-items: center; gap: 18px; margin-top: 6px; }
.prof-av { width: clamp(76px, 18vw, 112px); height: clamp(76px, 18vw, 112px); border-radius: 50%; object-fit: cover; background: var(--stone); box-shadow: 0 0 0 3px var(--sheet), 0 0 0 4.5px var(--ink); }
.prof-id h1 { margin: 0; font-weight: 600; font-size: clamp(24px, 5vw, 40px); line-height: 1.05; letter-spacing: -.045em; }
.prof-id .h { margin-top: 4px; }
.stats { display: flex; flex-wrap: wrap; gap: 18px; margin: 18px 0 0; color: var(--ink-2); font-size: 12.5px; }
.stat { display: inline-flex; align-items: center; gap: 6px; }
.stat svg { width: 14px; height: 14px; color: var(--cobalt); }
.acts { display: flex; gap: 8px; margin: 18px 0 22px; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px 0 14px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 500; transition: background .25s var(--ease); }
.btn:hover { background: var(--cobalt); }
.btn svg { width: 17px; height: 17px; }
.btn.ghost { background: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); padding: 0 14px; }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.person { cursor: pointer; }
.go { color: var(--ink); }
.go:hover { color: var(--cobalt); }
