/* The company site's phone Menu and the Stories card on Home (owner, 18 Nov 2026: Stories was only in the footer on a
   phone; his pick on the design canvas, 14:38). Loaded by every page after its own stylesheet (site.css, or simple.css
   on Simple), so it uses only the shared tokens and the .brand and .button both of those define. */

/* The Menu button: on a phone the bar keeps the name, the Story | Simple switch on Home, and Menu. On a tablet or laptop
   the bar shows its links, so no Menu. Below 420 px Request an invite moves into the menu, where it is the last row. */
.xs-menu { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px;
  background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--color-line); color: var(--color-text); cursor: pointer;
  transition: transform 160ms var(--m-ease-out); -webkit-tap-highlight-color: transparent; }
.xs-menu svg { width: 20px; height: 20px; }
.xs-menu:active { transform: scale(0.94); }
.xs-menu:focus-visible { outline: 3px solid var(--color-ring, currentColor); outline-offset: 2px; }
@media (min-width: 720px) { .xs-bar .xs-menu, .top .xs-menu { display: none; } }
@media (max-width: 719px) { .top .links { display: none; } }
@media (max-width: 419px) { .xs-bar:has(.xs-menu) .xs-pill { display: none; } }
@media (max-width: 719px) { .xs-bar:has(.ab):has(.xs-menu) .xs-pill { display: none; } } /* Home: name, Story | Simple and Menu; the hero has Request an invite */
@media (max-width: 359px) { .xs-bar .brand, .top .brand { font-size: 0; gap: 0; } } /* the smallest phones keep the mark, the name is in the menu */

/* The sheet comes down from the top, under the thumb's way to the bar it opened from */
.xs-sheet { position: fixed; inset: 0 0 auto; width: 100%; max-width: none; max-height: 100dvh; margin: 0; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px));
  box-sizing: border-box; overflow-y: auto; overscroll-behavior: contain; border: 0; border-radius: 0 0 28px 28px;
  background: var(--color-bg); color: var(--color-text); box-shadow: 0 24px 48px -24px rgb(0 0 0 / 0.5); }
.xs-sheet[open] { display: grid; gap: 8px; animation: xs-sheet-in 280ms var(--m-ease-out); }
.xs-sheet::backdrop { background: rgb(0 0 0 / 0.45); animation: xs-fade 280ms ease-out; }
@keyframes xs-sheet-in { from { transform: translateY(-16px); opacity: 0; } }
@keyframes xs-fade { from { opacity: 0; } }
.xs-sheet-top { display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
.xs-sheet a:not(.button) { color: inherit; }
.xs-sheet-stories { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 22px; text-decoration: none;
  background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--color-line); }
.xs-sheet-stories img { display: block; width: 72px; height: 72px; border-radius: 50%; }
.xs-sheet-stories span { display: grid; gap: 3px; flex: 1; min-width: 0; }
.xs-sheet-stories b { font-family: var(--font-head); font-weight: var(--weight-heavy); font-size: 1.1875rem; letter-spacing: -0.02em; }
.xs-sheet-stories small { color: var(--color-muted); font-size: 0.9375rem; line-height: 1.35; }
.xs-sheet svg { width: 18px; height: 18px; flex: none; color: var(--color-muted); }
.xs-sheet .xs-menu svg { color: var(--color-text); }
.xs-sheet-links { display: grid; margin-top: 4px; }
.xs-sheet-links a { display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: 0 6px; text-decoration: none;
  font-weight: var(--weight-bold); font-size: 1.0625rem; border-bottom: 1px solid var(--color-line); }
.xs-sheet-links a:last-child { border-bottom: 0; }
.xs-sheet [aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.xs-sheet-stories[aria-current="page"] b { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.xs-sheet-stories[aria-current="page"] { text-decoration: none; }
.xs-sheet-invite { justify-content: center; margin-top: 8px; }
.xs-sheet :focus-visible { outline: 3px solid var(--color-ring, currentColor); outline-offset: 2px; border-radius: 12px; }
@media (min-width: 560px) { .xs-sheet { max-width: 520px; inset: 0 0 auto auto; border-radius: 0 0 0 28px; } }
@media (prefers-reduced-motion: reduce) { .xs-sheet[open], .xs-sheet::backdrop { animation: none; } .xs-menu { transition: none; } }

/* Home, Story and Simple: "A year, in 19 stops." right after the hero, leading to the Stories page */
.xs-trip { display: grid; justify-items: center; gap: 16px; padding: clamp(72px, 10vw, 128px) 20px 0; text-align: center; }
.xs-trip h2 { margin: 0; font-family: var(--font-head); font-weight: var(--weight-heavy); font-size: clamp(2.25rem, 8vw, 3.5rem); line-height: 1.02; letter-spacing: -0.03em; }
.xs-trip p { margin: 0; max-width: 32ch; color: var(--color-muted); font-size: 1.0625rem; line-height: 1.45; }
.xs-trip img { display: block; width: min(300px, 72vw); height: auto; aspect-ratio: 1; border-radius: 50%; margin: 8px 0; }
.xs-trip .button svg { width: 18px; height: 18px; }
