/* mossmoth · Menu of Babel: left of the line, the word you're standing on and under it the story your walk has
   written, set against the line like a path's crumbs, so each new word lands beside it; right of it, the words to go on
   with. On a phone the story gathers under the menu instead, so the menu stays under your thumb as the story grows. */
.flow { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; column-gap: calc(2 * var(--gap)); align-items: start;
  padding: calc(var(--u) * 2.2) var(--right) calc(var(--u) * 3) var(--left); min-height: calc(100svh - var(--u) * 4); }
.flow .side { grid-column: 1; justify-self: end; display: grid; justify-items: end; gap: calc(var(--u) * .5); width: min(100%, 22em); text-align: right; }
.flow .places { grid-column: 2; grid-row: 1 / span 2; }
.crumbs { margin: 0; min-height: 1.2em; font-size: .8em; letter-spacing: .02em; color: var(--muted); }
.flow .q { margin: 0; font: 400 clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem)/1.12 var(--display); overflow-wrap: anywhere; }
.story { grid-column: 1; grid-row: 2; justify-self: end; width: min(100%, 22em); margin: calc(var(--u) * 1.2) 0 0; text-align: right;
  color: var(--ink); text-wrap: pretty; overflow-wrap: anywhere; }
.story:empty { display: none; }

@media (max-width: 47.99em) {
  .flow { grid-template-columns: 1fr; grid-template-rows: none; row-gap: calc(var(--u) * 1.2); padding-left: var(--hang); }
  .flow .side, .flow .places, .story { grid-column: 1; grid-row: auto; justify-self: start; }
  .flow .side { justify-items: start; text-align: left; }
  .story { margin: 0; text-align: left; }
  /* the thread (pencil.css): where you are is tied onto the line */
  .flow .crumbs, .flow .q { position: relative; z-index: 1; width: fit-content; margin-left: var(--tie); padding-right: .2em; background: var(--white); box-shadow: var(--halo); }
  .flow .crumbs { font: 400 .8rem/1.3 var(--body); }
  .flow .q { font-size: 1.4rem; line-height: 1.2; }
}
