/* Dispatch: paper & ink, one signal colour. */
:root {
  --paper: #f4f2ec;
  --paper-2: #ebe8df;
  --card: #fbfaf6;
  --ink: #151413;
  --ink-2: #4a4741;
  --muted: #8a857b;
  --line: rgba(21, 20, 19, .11);
  --signal: #ff4b14;
  --signal-soft: #ffe3d6;
  --ok: #1f7a4d;

  --serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --top: 64px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-in: cubic-bezier(.6, 0, .8, .3);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
/* faint paper grain */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
kbd {
  font: 500 11px var(--mono); padding: 2px 6px; border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 5px; background: var(--card); color: var(--ink-2);
}
code { font: 13px var(--mono); }
.eyebrow {
  font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0;
}

/* ---------- top bar ---------- */
.top {
  position: fixed; inset: 0 0 auto; height: var(--top); z-index: 20;
  display: flex; align-items: center; gap: 24px; padding: 0 clamp(16px, 3vw, 40px);
  padding-top: env(safe-area-inset-top, 0px);
  background: linear-gradient(var(--paper) 70%, transparent);
}
.mark {
  font: 30px/1 var(--serif); letter-spacing: -.01em; text-decoration: none; display: inline-flex; align-items: baseline;
}
.mark i { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); margin-left: 3px; display: inline-block; }
.actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.link-btn {
  background: none; border: 0; padding: 8px 12px; border-radius: 999px; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 8px; transition: background .2s, color .2s;
}
.link-btn:hover { background: var(--paper-2); color: var(--ink); }
.tag { font: 500 10px/1 var(--mono); padding: 4px 6px; border-radius: 4px; background: var(--ink); color: var(--paper); letter-spacing: .05em; }
.pill {
  border: 0; background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 999px; font-weight: 500;
  white-space: nowrap;
  transition: transform .2s var(--ease), background .2s;
}
.pill:hover { background: #000; transform: translateY(-1px); }
.pill.wide { width: 100%; padding: 13px; }

.mini-search {
  flex: 1; max-width: 460px; display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--line); padding: 6px 2px; animation: rise .5s var(--ease) both;
}
.mini-search input { flex: 1; border: 0; background: none; outline: none; font: 17px var(--serif); color: var(--ink); }
.mini-search:focus-within { border-color: var(--ink); }

main { position: absolute; inset: 0; }

/* ---------- hero ---------- */
.hero {
  height: 100%; display: flex; flex-direction: column; justify-content: center; overflow-y: auto;
  padding: var(--top) clamp(16px, 7vw, 120px) 48px;
}
.hero .eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; white-space: nowrap; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 var(--signal); animation: pulse 2s infinite; }
.ask {
  font: clamp(44px, 7.4vw, 112px)/.98 var(--serif); letter-spacing: -.025em; margin: 0;
  display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .25em; row-gap: .05em; max-width: 14em;
}
.ask label { cursor: text; }
.field { position: relative; display: inline-flex; align-items: baseline; flex: 1 1 6em; min-width: 5em; }
.field::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: 2px; background: var(--ink);
  transform-origin: left; transform: scaleX(.18); transition: transform .6s var(--ease), background .3s;
}
.field:focus-within::after, .field.filled::after { transform: scaleX(1); }
.field:focus-within::after { background: var(--signal); }
.ask input {
  font: italic 1em/1.05 var(--serif); letter-spacing: -.02em; color: var(--ink);
  border: 0; background: none; outline: none; padding: 0; width: 100%; min-width: 0;
}
.ask input::placeholder { color: var(--muted); opacity: .55; }
.go {
  position: absolute; right: 0; bottom: .2em; width: .62em; height: .62em; border-radius: 50%; border: 0;
  background: var(--ink); color: var(--paper); font: 400 .32em/1 var(--sans);
  opacity: 0; transform: scale(.6) rotate(-45deg); transition: .35s var(--ease);
}
.field.filled .go { opacity: 1; transform: none; }
.go:hover { background: var(--signal); }

.suggest { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; max-width: 900px; }
.suggest button {
  border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 7px 14px; color: var(--ink-2);
  transition: border-color .2s, background .2s, color .2s, transform .3s var(--ease);
  animation: rise .7s var(--ease) both;
}
.suggest button:hover { border-color: var(--ink); color: var(--ink); background: var(--card); transform: translateY(-2px); }
.how {
  list-style: none; padding: 0; margin: auto 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px; max-width: 980px; color: var(--ink-2); font-size: 14px; padding-top: 40px;
}
.how li { border-top: 1px solid var(--line); padding-top: 14px; }
.how b { font: 500 11px var(--mono); color: var(--signal); display: block; margin-bottom: 6px; }

/* ---------- working ---------- */
.working {
  height: 100%; display: flex; flex-direction: column; justify-content: center;
  padding: var(--top) clamp(16px, 7vw, 120px) 48px; max-width: 1100px;
}
.working .eyebrow #working-q { color: var(--ink); text-transform: none; letter-spacing: 0; font: italic 15px var(--serif); }
.stage { font: clamp(40px, 6vw, 84px)/1 var(--serif); letter-spacing: -.02em; margin: 22px 0 28px; min-height: 1.05em; }
.stage .in { display: inline-block; animation: rise .6s var(--ease) both; }
.meter { height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.meter i { display: block; height: 100%; width: 0; background: var(--signal); transition: width .8s var(--ease); }
.log { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 8px; font: 13px var(--mono); color: var(--ink-2); }
.log li { display: flex; gap: 12px; align-items: baseline; animation: rise .5s var(--ease) both; }
.log li::before { content: "✓"; color: var(--ok); }
.log li b { font-weight: 500; color: var(--ink); }
.clock { margin-top: 28px; font: 12px var(--mono); color: var(--muted); }

/* ---------- results ---------- */
.results { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(260px, 340px) 1fr; }
.rail {
  padding: calc(var(--top) + 28px) 28px 28px clamp(16px, 3vw, 40px);
  display: flex; flex-direction: column; gap: 14px; border-right: 1px solid var(--line); overflow: hidden;
}
.rail-q { font: italic 34px/1.05 var(--serif); margin: 0 0 6px; letter-spacing: -.01em; }
.index { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; overflow-y: auto; scrollbar-width: none; }
.index li button {
  width: 100%; text-align: left; border: 0; background: none; padding: 9px 10px 9px 0; border-radius: 8px;
  display: grid; grid-template-columns: 30px 1fr auto; gap: 6px; align-items: baseline; color: var(--muted);
  font-size: 13.5px; line-height: 1.35; transition: color .3s, background .3s, padding .4s var(--ease);
}
.index li button b { font: 500 11px var(--mono); }
.index li button time { font: 11px var(--mono); color: var(--muted); padding-left: 6px; }
.index li button span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.index li button:hover { color: var(--ink); }
.index li.on button { color: var(--ink); padding-left: 10px; background: var(--card); }
.index li.on button b { color: var(--signal); }
.stats { margin: auto 0 0; font: 12px/1.6 var(--mono); color: var(--muted); }
.keys { margin: 0; font-size: 12px; color: var(--muted); display: flex; gap: 4px; align-items: center; }

.feed {
  height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; scroll-behavior: smooth; outline: none;
  overscroll-behavior: contain; scrollbar-width: none;
}
.feed::-webkit-scrollbar, .index::-webkit-scrollbar { display: none; }

.story {
  position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center;
  gap: clamp(24px, 4vw, 64px); padding: calc(var(--top) + 24px) clamp(20px, 4vw, 64px) 40px;
}
/* story-to-story motion */
.story .media, .story .body { transition: opacity .7s var(--ease), transform .9s var(--ease), filter .7s var(--ease); }
.story:not(.on) .media { opacity: .25; transform: scale(.94) translateY(24px); filter: saturate(.3); }
.story:not(.on) .body { opacity: 0; transform: translateY(40px); }

.num {
  position: absolute; top: calc(var(--top) + 6px); right: clamp(20px, 4vw, 64px); overflow: hidden;
  font: 15vh/1 var(--serif); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px var(--line);
  pointer-events: none;
}
.num span { display: block; transition: transform .9s var(--ease); }
.story:not(.on) .num span { transform: translateY(100%); }

.media {
  margin: 0; position: relative; aspect-ratio: 4 / 5; max-height: calc(100vh - var(--top) - 80px); width: 100%;
  border-radius: 18px; overflow: hidden; background: var(--paper-2); justify-self: end;
  clip-path: inset(0 0 0 0 round 18px);
}
.story.on .media { animation: wipe 1.1s var(--ease) both; }
.media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.12); transition: transform 1.6s var(--ease);
}
.story.on .media img { transform: scale(1.02); }
.media .ph {
  position: absolute; inset: 0; display: none; place-items: center; padding: 24px; text-align: center;
  font: italic clamp(44px, 6vw, 96px)/.95 var(--serif); letter-spacing: -.03em; color: var(--paper);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 75, 20, .9), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, #2a2724, transparent 60%), var(--ink);
}
.media.noimg img { display: none; }
.media.noimg .ph { display: grid; }

.body { max-width: 620px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; font-size: 13px; color: var(--ink-2); }
.meta .fav { width: 16px; height: 16px; border-radius: 4px; background: var(--paper-2); }
.meta .src { font-weight: 600; color: var(--ink); }
.meta .sep { color: var(--muted); }
.meta time { color: var(--muted); }
.cover {
  margin-left: 4px; font: 500 11px/1 var(--mono); padding: 5px 8px; border-radius: 999px;
  background: var(--signal-soft); color: #b2330a;
}
.cover:empty { display: none; }
.headline { font: clamp(32px, 3.6vw, 58px)/1.02 var(--serif); letter-spacing: -.02em; margin: 0 0 20px; text-wrap: balance; }
.headline .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.headline .w > span { display: inline-block; transform: translateY(105%); transition: transform .8s var(--ease); }
.story.on .headline .w > span { transform: none; }
.summary {
  margin: 0 0 22px; color: var(--ink-2); font-size: 16px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.also { margin-bottom: 26px; }
.also:has(ul:empty) { display: none; }
.also ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.also li a {
  display: grid; grid-template-columns: 16px 1fr; gap: 10px; align-items: center; text-decoration: none;
  font-size: 13.5px; color: var(--ink-2); padding: 6px 0; border-bottom: 1px solid var(--line); transition: color .2s;
}
.also li a:hover { color: var(--ink); }
.also li img { width: 16px; height: 16px; border-radius: 4px; }
.also li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.check { font: 12px var(--mono); color: var(--ok); display: inline-flex; gap: 8px; align-items: center; }
.check::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.check:empty { display: none; }
.read {
  text-decoration: none; font-weight: 500; display: inline-flex; gap: 8px; align-items: center;
  padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--paper);
  transition: background .2s, transform .3s var(--ease);
}
.read span { transition: transform .3s var(--ease); }
.read:hover { background: var(--signal); }
.read:hover span { transform: translate(2px, -2px); }

.dots { display: none; }

/* ---------- signed in / out ---------- */
body:not(.authed) .in-only, body.authed .out-only { display: none !important; }
.who { font-size: 13px; color: var(--ink-2); padding: 0 6px 0 4px; display: inline-flex; align-items: center; gap: 8px; }
.who::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.note.err { color: #b2330a; }
.pill:disabled { opacity: .5; cursor: default; transform: none; }

/* ---------- day pages ---------- */
.pages { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 6px; }
.page-tab {
  border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 6px 8px 6px 12px;
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2);
  transition: background .25s, color .25s, border-color .25s, opacity .3s; animation: rise .5s var(--ease) both;
}
.page-tab .n {
  font: 500 10.5px/1 var(--mono); min-width: 20px; padding: 4px 6px; border-radius: 999px; background: var(--paper-2); text-align: center;
}
.page-tab:hover:not(:disabled) { border-color: var(--ink); color: var(--ink); }
.page-tab.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.page-tab.on .n { background: var(--signal); color: #fff; }
.page-tab.wait { cursor: default; opacity: .55; }
.page-tab.more-tab { border-style: dashed; color: var(--ink); padding-right: 12px; }
.page-tab.more-tab:hover { border-color: var(--signal); color: var(--signal); }
.page-tab.wait .n { width: 20px; height: 18px; background: linear-gradient(90deg, var(--paper-2), #fff, var(--paper-2)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.pagebar { display: none; }

.feed.turn .story.on .body, .feed.turn .story.on .media { animation: turn .7s var(--ease) both; }

.endcap { grid-template-columns: 1fr; place-items: center; text-align: center; }
.endcap .cap { max-width: 560px; }
.endcap h3 { font: clamp(40px, 5vw, 72px)/1 var(--serif); letter-spacing: -.02em; margin: 16px 0 12px; }
.endcap .cap-sub { color: var(--ink-2); margin: 0 0 28px; }
.endcap .eyebrow { text-transform: none; letter-spacing: .02em; }
.endcap:not(.on) .cap { opacity: 0; transform: translateY(30px); }
.endcap .cap { transition: opacity .7s var(--ease), transform .8s var(--ease); }
.loading { font: 12px var(--mono); color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.loading i { width: 5px; height: 5px; border-radius: 50%; background: var(--signal); animation: blink 1.2s infinite both; }
.loading i:nth-child(2) { animation-delay: .2s; } .loading i:nth-child(3) { animation-delay: .4s; }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 30;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 999px; font-size: 13.5px;
  transition: opacity .35s var(--ease), transform .45s var(--ease); box-shadow: 0 8px 30px rgba(0,0,0,.18);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- empty ---------- */
.empty { height: 100%; display: grid; place-content: center; text-align: center; padding: 24px; }
.empty h2 { font: italic 72px/1 var(--serif); margin: 0 0 12px; }
.empty p { color: var(--ink-2); max-width: 420px; margin: 0 auto 24px; }

/* ---------- dialogs ---------- */
dialog { border: 0; padding: 0; color: var(--ink); background: var(--card); }
dialog::backdrop { background: rgba(21, 20, 19, .28); backdrop-filter: blur(3px); }
.close-row { display: flex; justify-content: flex-end; margin: 0; }
.x { border: 0; background: none; font-size: 26px; line-height: 1; padding: 4px 8px; color: var(--muted); border-radius: 8px; }
.x:hover { color: var(--ink); background: var(--paper-2); }

.modal { width: min(420px, calc(100vw - 32px)); border-radius: 22px; padding: 18px 28px 28px; }
.modal[open] { animation: pop .45s var(--ease) both; }
.tabs, .clients { display: flex; gap: 4px; padding: 4px; background: var(--paper-2); border-radius: 999px; width: max-content; }
.tabs button, .clients button {
  border: 0; background: none; padding: 7px 16px; border-radius: 999px; color: var(--ink-2); font-size: 13.5px;
  transition: background .25s, color .25s;
}
.tabs button[aria-selected="true"], .clients button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.auth-form { display: grid; gap: 14px; margin-top: 22px; }
.auth-form h3 { font: 40px/1 var(--serif); margin: 0 0 6px; letter-spacing: -.02em; }
.auth-form label { display: grid; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.auth-form input {
  font: 15px var(--sans); padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper);
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.auth-form input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(21, 20, 19, .06); }
.modal:not(.signup) .signup-only { display: none; }
.note { margin: 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.note.done { color: var(--ink); }

.sheet {
  position: fixed; inset: 0 0 0 auto; margin: 0; height: 100%; max-height: none; width: min(520px, 100vw);
  padding: 18px 32px 32px; overflow-y: auto; border-radius: 22px 0 0 22px;
}
.sheet[open] { animation: slide .55s var(--ease) both; }
.sheet h3 { font: 46px/1 var(--serif); letter-spacing: -.02em; margin: 12px 0 14px; }
.lede { color: var(--ink-2); margin: 0 0 26px; }
.lede code { background: var(--paper-2); padding: 2px 6px; border-radius: 5px; }
.endpoint {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 12px 12px 12px 16px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 22px; background: var(--paper);
}
.endpoint span { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.endpoint code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy {
  border: 1px solid var(--line); background: var(--card); padding: 6px 12px; border-radius: 999px; font-size: 12.5px;
  transition: background .2s, border-color .2s;
}
.copy:hover { border-color: var(--ink); }
.copy.done { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.snippet { position: relative; margin-top: 12px; }
.snippet pre {
  margin: 0; padding: 48px 18px 18px; border-radius: 14px; background: var(--ink); color: #eae6dc;
  font: 12.5px/1.6 var(--mono); overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere;
}
.snippet .copy { position: absolute; top: 10px; right: 10px; background: #2a2826; color: #eae6dc; border-color: #3a3734; }
.hint { font-size: 12.5px; color: var(--muted); margin: 10px 0 28px; }
.tool { border-top: 1px solid var(--line); padding-top: 18px; }
.tool p { margin: 6px 0; }
.muted { color: var(--muted); font-size: 13.5px; }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes wipe { from { clip-path: inset(0 0 100% 0 round 18px); } to { clip-path: inset(0 0 0 0 round 18px); } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes blink { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }
@keyframes turn { from { opacity: 0; transform: translateX(48px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,75,20,.5); } 70% { box-shadow: 0 0 0 10px rgba(255,75,20,0); } 100% { box-shadow: 0 0 0 0 rgba(255,75,20,0); } }

/* parallax on the active image where scroll-driven animations exist */
@supports (animation-timeline: view()) {
  .story .media img { animation: drift linear both; animation-timeline: view(); animation-range: cover; }
  @keyframes drift { from { translate: 0 -5%; } to { translate: 0 5%; } }
}

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  :root { --top: 56px; }
  .actions .link-btn:not([data-open="mcp"]):not(#logout) { display: none; }
  .who { display: none !important; }
  .link-btn[data-open="mcp"] { font-size: 0; gap: 0; padding: 8px; }   /* just the MCP tag */
  .pill { padding: 8px 14px; font-size: 14px; }
  .hero { justify-content: flex-start; padding-top: calc(var(--top) + 28px); }
  .hero .eyebrow .wide { display: none; }
  .suggest button:nth-child(n+6) { display: none; }
  .suggest { margin-top: 28px; }
  .mini-search { display: none; }
  .how { grid-template-columns: 1fr; gap: 12px; }
  .results { grid-template-columns: 1fr; }
  .rail { display: none; }
  .pagebar {
    display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; position: fixed; z-index: 15;
    top: calc(var(--top) + env(safe-area-inset-top, 0px)); left: 0; right: 0; padding: 4px 16px 10px;
    background: linear-gradient(var(--paper) 75%, transparent);
  }
  .pagebar::-webkit-scrollbar { display: none; }
  .pagebar .page-tab { flex: none; }
  .story {
    grid-template-columns: 1fr; grid-template-rows: minmax(0, 42%) auto; align-content: start; gap: 20px;
    padding: calc(var(--top) + 52px) 16px 28px;
  }
  .endcap { grid-template-rows: auto; align-content: center; }
  .media { aspect-ratio: auto; height: 100%; justify-self: stretch; }
  .num { font-size: 72px; top: calc(var(--top) + 58px); right: 28px; z-index: 2; -webkit-text-stroke: 1px rgba(255,255,255,.7); }
  .headline { font-size: clamp(28px, 7.5vw, 40px); margin-bottom: 12px; }
  .summary { -webkit-line-clamp: 3; font-size: 15px; margin-bottom: 16px; }
  .also { display: none; }
  .dots { display: flex; position: fixed; right: 8px; top: 50%; transform: translateY(-50%); flex-direction: column; gap: 6px; z-index: 10; }
  .dots i { width: 4px; height: 4px; border-radius: 4px; background: var(--line); transition: height .4s var(--ease), background .3s; }
  .dots i.on { height: 18px; background: var(--signal); }
  .sheet { border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .feed { scroll-behavior: auto; }
}
