/* The phone (designed at 390, used below 1024): the same grounds, order and copy in one
   column. Nothing is pinned or sticky, and there is no travelling dot: each screen keeps
   its own mark. Each screen's own phone rules are in its sections/ file; these are the
   ones more than one screen shares. */
@media (max-width: 1023.98px) {
  .k { stroke-width: 2.5px; }
  .br-d { display: none; }

  /* the logo (nav and footer) */
  .logo { font-size: 19px; }
  .logo-mark { width: 28px; height: 28px; }

  /* rims: 40 px high, r 495 at 390; wider phones widen it into an ellipse, so the arc meets both edges */
  .rim { height: 40px; }
  .rim::before { width: max(990px, calc(100% * 2.538462)); height: 990px; margin-left: min(-495px, calc(-100% * 1.269231)); }
  /* leaning rims: 40 px, the crest at the same fraction of the width, drawn at 390 and widened beyond */
  .rim.lean { height: 40px; }
  .rim.lean::before { left: calc(var(--c) * 100%); width: max(calc(2px * var(--Rp)), calc(100% * 2 * var(--Rp) / 390)); height: calc(2px * var(--Rp)); }
}
