@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/fraunces-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/fraunces-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url(fonts/dmsans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url(fonts/dmsans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #fbf6ec;
  --paper-2: #f4ecdd;
  --ink: #2b2421;
  --ink-2: #5d534b;
  --muted: #8a7e72;
  --line: rgba(43, 36, 33, 0.12);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 10px 30px -12px rgba(58, 40, 22, 0.35), 0 2px 6px -2px rgba(58, 40, 22, 0.2);
  --up: #2e7d4f;
  --down: #b3453a;
  --accent: #c9a24a;
  --serif: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(12px, 2.4vw, 28px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #d6e9f2;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

#app {
  position: fixed;
  inset: 0;
}

#scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  outline: none;
}

button {
  font: inherit;
  color: inherit;
}

kbd {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  padding: 3px 5px 2px;
  border-radius: 4px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink-2);
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Masthead ---------------------------------------------------------------- */

.masthead {
  position: absolute;
  z-index: 2;
  top: var(--gutter);
  left: var(--gutter);
  right: 180px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.8s var(--ease) 0.2s, transform 0.8s var(--ease) 0.2s;
}
.masthead::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: calc(-1 * var(--gutter));
  top: calc(-1 * var(--gutter));
  width: 680px;
  max-width: 100vw;
  height: 170px;
  background: radial-gradient(ellipse 100% 100% at 0 0, rgba(248, 243, 233, 0.92), rgba(248, 243, 233, 0.6) 45%, rgba(248, 243, 233, 0) 75%);
}
.ready .masthead {
  opacity: 1;
  transform: none;
}
.masthead h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 640;
  font-size: clamp(26px, 3.3vw, 40px);
  letter-spacing: -0.01em;
  line-height: 1;
  font-variation-settings: 'SOFT' 100, 'opsz' 96;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}
.masthead p {
  margin: 8px 0 0;
  font-size: 13.5px;
  color: var(--ink-2);
  letter-spacing: 0.005em;
  text-shadow: 0 0 8px rgba(251, 246, 236, 0.9), 0 0 2px rgba(251, 246, 236, 0.9);
}
.masthead .dot {
  margin: 0 4px;
  color: var(--muted);
}
#snapshot {
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.chip {
  position: absolute;
  top: var(--gutter);
  right: var(--gutter);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.6s var(--ease) 0.4s, background 0.2s, transform 0.2s var(--ease);
}
.ready .chip {
  opacity: 1;
}
.chip:hover {
  background: var(--paper);
  transform: translateY(-1px);
}
.chip svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  opacity: 0.75;
}
.chip[aria-pressed='true'] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* Arrows ------------------------------------------------------------------ */

.nav {
  position: absolute;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.ready.has-focus:not(.overview):not(.feed-open) .nav:not(:disabled) {
  opacity: 1;
}
.nav:disabled {
  pointer-events: none;
}
.feed-open .nav,
.overview .nav {
  pointer-events: none;
}
.nav.prev {
  left: var(--gutter);
}
.nav.next {
  right: var(--gutter);
}
.nav-arrow {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  transition: transform 0.25s var(--ease), background 0.2s;
}
.nav-arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav:hover .nav-arrow {
  background: var(--paper);
  transform: scale(1.06);
}
.nav.prev:active .nav-arrow {
  transform: translateX(-3px) scale(0.97);
}
.nav.next:active .nav-arrow {
  transform: translateX(3px) scale(0.97);
}
.nav-name {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  background: color-mix(in srgb, var(--paper) 75%, transparent);
  padding: 4px 8px;
  border-radius: 6px;
  opacity: 0;
  transform: translateX(var(--nx, -4px));
  transition: opacity 0.2s, transform 0.25s var(--ease);
  white-space: nowrap;
}
.nav.next .nav-name {
  --nx: 4px;
}
.nav:hover .nav-name,
.nav:focus-visible .nav-name {
  opacity: 1;
  transform: none;
}
.nav:focus-visible .nav-arrow,
.chip:focus-visible,
.open-feed:focus-visible,
.street-map button:focus-visible,
.close:focus-visible,
.sort button:focus-visible,
.post:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* Focus card -------------------------------------------------------------- */

.card {
  position: absolute;
  left: var(--gutter);
  bottom: var(--gutter);
  width: 310px;
  padding: 16px 18px 16px;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.card::before {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--accent);
  transition: background 0.3s;
}
.ready.has-focus:not(.overview) .card {
  opacity: 1;
  transform: none;
}
.feed-open .card {
  opacity: 0 !important;
  transform: translateY(12px) !important;
  pointer-events: none;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.rank.top {
  color: var(--ink);
}
.rank.top::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
  vertical-align: 1px;
}
.card-name {
  margin: 6px 0 12px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 620;
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-variation-settings: 'SOFT' 100, 'opsz' 72;
  display: flex;
  align-items: center;
  gap: 10px;
}
.swatch {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  margin: 0;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats div {
  min-width: 0;
}
.stats dt {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.stats dd {
  margin: 2px 0 0;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stats dd small {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 2px;
}
.trend {
  font-size: 17px;
}
.trend .arrow {
  font-size: 11px;
  margin-right: 4px;
  vertical-align: 2px;
}
.trend.up {
  color: var(--up);
}
.trend.down {
  color: var(--down);
}
.trend.flat,
.trend.new {
  color: var(--ink-2);
  font-size: 15px;
}
.busy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 14px;
}
.pips {
  display: flex;
  gap: 3px;
}
.pips i {
  width: 9px;
  height: 14px;
  border-radius: 5px 5px 3px 3px;
  background: rgba(43, 36, 33, 0.1);
}
.pips i.on {
  background: var(--accent);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.14);
}
.queue-count {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.open-feed {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 0 8px 0 14px;
  border-radius: 10px;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s;
}
.open-feed:hover {
  transform: translateY(-1px);
  background: #3a312c;
}
.open-feed kbd {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(251, 246, 236, 0.85);
}

/* Street map -------------------------------------------------------------- */

.street {
  position: absolute;
  bottom: var(--gutter);
  left: 50%;
  transform: translate(-50%, 10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 14px 8px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0;
  transition: opacity 0.5s var(--ease) 0.3s, transform 0.5s var(--ease) 0.3s;
}
.ready .street {
  opacity: 1;
  transform: translate(-50%, 0);
}
.feed-open .street {
  opacity: 0;
  pointer-events: none;
}
.street-map {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 38px;
}
.street-map button {
  position: relative;
  width: 18px;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
}
.street-map .bar {
  width: 100%;
  height: var(--h);
  border-radius: 4px 4px 2px 2px;
  background: #b9b1a7;
  transition: background 0.3s, transform 0.25s var(--ease);
  transform-origin: bottom;
}
.street-map button:hover .bar {
  transform: scaleY(1.06);
  background: #9d948a;
}
.street-map button[aria-current='true'] .bar,
.overview .street-map .bar {
  background: var(--accent);
}
.street-map .tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translate(-50%, 4px);
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, transform 0.2s var(--ease);
}
.street-map button:hover .tip,
.street-map button:focus-visible .tip {
  opacity: 1;
  transform: translate(-50%, 0);
}
.map-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.overview .map-label {
  visibility: hidden;
}

.hint {
  position: absolute;
  right: var(--gutter);
  bottom: var(--gutter);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  backdrop-filter: blur(6px);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  opacity: 0;
  transition: opacity 0.6s var(--ease) 0.8s;
}
.ready .hint {
  opacity: 0.9;
}
.feed-open .hint {
  opacity: 0;
}
.hint .sep {
  width: 10px;
}

.hover-tag {
  position: fixed;
  left: 0;
  top: 0;
  padding: 5px 9px 5px 22px;
  border-radius: 7px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 12.5px;
  font-weight: 600;
  pointer-events: none;
  z-index: 5;
}
.hover-tag::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--accent);
}

/* Feed -------------------------------------------------------------------- */

.scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(40, 30, 20, 0) 40%, rgba(40, 30, 20, 0.12));
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.feed-open .scrim {
  pointer-events: auto;
  opacity: 1;
}

.feed {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(460px, 100vw);
  padding: var(--gutter) var(--gutter) var(--gutter) 0;
  z-index: 10;
  pointer-events: none;
}
.feed-sheet {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -20px rgba(58, 40, 22, 0.45), 0 4px 12px -4px rgba(58, 40, 22, 0.2);
  overflow: hidden;
  pointer-events: auto;
  transform: translateX(calc(100% + 40px));
  transition: transform 0.42s var(--ease);
}
.feed.open .feed-sheet {
  transform: none;
}
.feed-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 20px 14px 22px;
}
.feed-head::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--accent);
}
.eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
#feed-title {
  margin: 4px 0 6px;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 620;
  line-height: 1;
  letter-spacing: -0.01em;
  font-variation-settings: 'SOFT' 100, 'opsz' 96;
}
.feed-sub {
  margin: 0;
  font-size: 13px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.close {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper-2);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s var(--ease);
}
.close:hover {
  background: #ece2d0;
  transform: rotate(90deg);
}
.close svg {
  width: 16px;
  height: 16px;
  stroke: var(--ink);
  stroke-width: 1.8;
  stroke-linecap: round;
}
.sort {
  display: flex;
  gap: 6px;
  padding: 0 22px 12px;
  border-bottom: 1px solid var(--line);
}
.sort button {
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.sort button:hover {
  background: var(--paper-2);
}
.sort button[aria-pressed='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.feed-scroll {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(43, 36, 33, 0.25) transparent;
}
.posts {
  list-style: none;
  margin: 0;
  padding: 6px 10px;
}
.post {
  display: grid;
  grid-template-columns: 72px 1fr 18px;
  gap: 14px;
  align-items: start;
  padding: 12px;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  transition: background 0.18s;
}
a.post:hover {
  background: var(--paper-2);
}
.thumb {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 9px;
  overflow: hidden;
  background: color-mix(in srgb, var(--accent) 18%, var(--paper-2));
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thumb.empty::after {
  content: attr(data-mono);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  color: color-mix(in srgb, var(--accent) 70%, var(--ink));
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.55), transparent 55%),
    repeating-linear-gradient(135deg, transparent 0 7px, rgba(255, 255, 255, 0.25) 7px 8px);
}
.post-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.post-title {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: pretty;
}
.post-by {
  font-size: 12.5px;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.muted {
  color: var(--muted);
}
.post-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.post-stats span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.post-stats svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.7;
}
.post-stats .pace {
  color: var(--ink);
  font-weight: 600;
}
.heat {
  display: block;
  height: 3px;
  margin-top: 5px;
  border-radius: 3px;
  background: rgba(43, 36, 33, 0.07);
  overflow: hidden;
}
.heat i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
}
.post-out {
  padding-top: 2px;
  opacity: 0.35;
  transition: opacity 0.2s, transform 0.2s var(--ease);
}
.post-out svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
a.post:hover .post-out {
  opacity: 0.9;
  transform: translate(2px, -2px);
}
.empty-feed {
  padding: 30px 14px;
  color: var(--ink-2);
  font-size: 14px;
}
.feed-foot {
  margin: 4px 22px 22px;
  font-size: 11.5px;
  color: var(--muted);
}

/* Loading ----------------------------------------------------------------- */

.loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #a9d3ee, #d6e9f2 45%, #f3ecdf 75%, #eadcc6);
  z-index: 20;
  transition: opacity 0.9s var(--ease);
}
.loading.done {
  opacity: 0;
  pointer-events: none;
}
.load-card {
  max-width: 440px;
  margin: 0 20px;
  padding: 26px 28px;
  border-radius: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: center;
}
.load-card h1 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 640;
  font-size: 32px;
  font-variation-settings: 'SOFT' 100;
}
.load-card p {
  margin: 8px 0 0;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.5;
}
.failed .load-card {
  text-align: left;
}
code {
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 0.92em;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--paper-2);
}

.debug {
  position: fixed;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font: 12px ui-monospace, Consolas, monospace;
  z-index: 50;
}

/* Small screens ----------------------------------------------------------- */

@media (max-width: 720px) {
  .masthead {
    right: 64px;
  }
  .masthead p .tagline,
  .masthead p .dot {
    display: none;
  }
  .chip {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
  }
  .chip .label {
    display: none;
  }
  .hint {
    display: none;
  }
  .card {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    padding: 14px 14px 12px;
  }
  .card-name {
    font-size: 24px;
    margin: 4px 0 10px;
  }
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 10px 0;
  }
  .stats dd {
    font-size: 16px;
  }
  .stats dt {
    font-size: 10px;
  }
  .trend {
    font-size: 14px;
  }
  .trend.flat,
  .trend.new {
    font-size: 12px;
    white-space: normal;
  }
  .busy {
    margin: 10px 0 10px;
  }
  .pips i {
    width: 7px;
    height: 12px;
  }
  .open-feed kbd {
    display: none;
  }
  .street {
    bottom: auto;
    top: 88px;
    padding: 8px 10px 6px;
  }
  .street-map {
    height: 26px;
    gap: 4px;
  }
  .street-map button {
    width: 14px;
  }
  .nav {
    top: auto;
    bottom: 262px;
    transform: none;
  }
  .nav-arrow {
    width: 44px;
    height: 44px;
  }
  .nav-name {
    display: none;
  }
  .feed {
    top: auto;
    left: 0;
    width: 100%;
    height: 72vh;
    height: 72dvh;
    padding: 0;
  }
  .feed-sheet {
    border-radius: 18px 18px 0 0;
    transform: translateY(calc(100% + 20px));
  }
  .scrim {
    background: linear-gradient(180deg, rgba(40, 30, 20, 0) 10%, rgba(40, 30, 20, 0.18));
  }
  #feed-title {
    font-size: 28px;
  }
  .post {
    grid-template-columns: 60px 1fr 14px;
    gap: 12px;
    padding: 10px 8px;
  }
  .thumb {
    width: 60px;
    height: 60px;
  }
  .sort {
    padding: 0 16px 10px;
    overflow-x: auto;
  }
  .sort button {
    flex: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
