/*
  The menu "Words & welcome" (_menu-welcome.php) and the footer's five words (menu_welcome_footer_nav() in _welcome.php).
  Used with the menu's own blue reveal (index.jesse.php, read.css).
*/
/*
  The menu, "Words & welcome": Meet, Talk, Walk, Read, Gather set large; beside them, a few words about
  whichever one you're near (a welcome until then); Home small beneath. (_menu-welcome.php)
*/
.menu--welcome .menu__nav { max-width: 64rem; }
.mw-grid { display: grid; grid-template-columns: auto minmax(0, 24rem); justify-content: center; align-items: center; gap: clamp(1.6rem, 4vh, 3rem) clamp(3rem, 9vw, 8rem); text-align: left; }
.menu--welcome .menu__primary li + li { margin-top: clamp(.2rem, 1vh, .6rem); }
.menu--welcome .menu__link { padding: 0; font-size: min(clamp(2.6rem, 1.4rem + 4.6vw, 5.6rem), 7.8vh); line-height: 1.08; }   /* (six words now, with Breathe) never taller than the window, so it has no scroll bar of its own */
.mw-say { display: grid; padding-left: clamp(1.4rem, 3vw, 2.4rem); border-left: 1px solid color-mix(in srgb, currentColor 40%, transparent); text-align: center; }   /* the words centred in the space beside the line; the line takes the menu's ink, faint, so it's dark over a light wash and light over a dark one */
.mw-p { grid-area: 1 / 1; align-self: center; margin: 0; font-family: var(--font-display); font-style: italic; font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); line-height: 1.55; opacity: 0; filter: blur(8px); transform: translateY(6px); transition: opacity 600ms var(--ease-soft), filter 700ms var(--ease-soft), transform 700ms var(--ease-soft); }
.menu--welcome.is-open[data-on=""] .mw-p[data-k=""],
.menu--welcome[data-on="meet"] .mw-p[data-k="meet"], .menu--welcome[data-on="talk"] .mw-p[data-k="talk"], .menu--welcome[data-on="walk"] .mw-p[data-k="walk"],
.menu--welcome[data-on="read"] .mw-p[data-k="read"], .menu--welcome[data-on="gather"] .mw-p[data-k="gather"], .menu--welcome[data-on="ask"] .mw-p[data-k="ask"], .menu--welcome[data-on="breathe"] .mw-p[data-k="breathe"] { opacity: .88; filter: none; transform: none; }
.menu--welcome.is-open[data-on=""] .mw-p[data-k=""] { transition-delay: 900ms; }   /* the welcome arrives after the words */
.menu--welcome .menu__secondary { margin: 0 0 clamp(1.6rem, 5vh, 3.2rem); }   /* Home, above the five words */
@media (max-width: 760px) {
  .mw-grid { grid-template-columns: 1fr; text-align: center; }
  .menu--welcome .menu__link { font-size: 2.7rem; }
  .mw-say { max-width: 22rem; margin: 0 auto; padding: 1.2rem 0 0; border-left: 0; border-top: 1px solid color-mix(in srgb, currentColor 40%, transparent); }
  .mw-p { font-size: 1.05rem; }
}
@media (max-height: 520px) {
  .menu--welcome .menu__link { font-size: 1.85rem; }
  .menu--welcome .menu__primary li + li { margin-top: 0; }
  .menu--welcome .menu__secondary { margin: 0 0 .8rem; }
}

/* The footer's links: the same five words, on one line, growing and shrinking with the screen (about 19px on a small phone, 35px wide). */
.site-footer .site-footer__nav--welcome ul { flex-wrap: nowrap; gap: 0 clamp(.85rem, 3.4vw, 3rem); }
.site-footer .site-footer__nav--welcome a { padding: .2rem .1rem; font-family: var(--font-display); font-weight: var(--weight-display); font-size: clamp(1.15rem, .7rem + 2.6vw, 2.2rem); line-height: 1.2; letter-spacing: 0; white-space: nowrap; opacity: .94; }
.site-footer .site-footer__nav--welcome { margin-bottom: clamp(.8rem, 2vh, 1.4rem); }


/*
  Opening and closing without a hitch.
  Nothing should change at the instant of the click while the blue is still gathering itself:
  - the welcome sentence stays put on closing and is carried away by the withdrawing blue, as the words are;
  - the things the menu covers (the reading shelf, the light / dark switch, the scroll cue, the picker)
    fade with it rather than blinking off, and come back once it has gone;
  - the closing sweep sets off at once, without a still moment before it moves.
  (#menu in the selectors so these hold over the page's own menu styles.)
*/
.js #menu.menu--welcome:not(.is-open) .mw-p { transition: opacity 0s linear 1150ms, filter 0s linear 1150ms, transform 0s linear 1150ms; }
.js #menu.menu--welcome.is-open { --mr: calc(var(--r, 160vmax) + 33vmin); }
.js #menu.menu--welcome:not(.is-open) { transition: --mr 1100ms cubic-bezier(.32, .12, .25, 1), visibility 0s linear 1100ms; }
.is-menu-open .wn-shelf, .is-menu-open .wx-theme, .is-menu-open .scroll-cue, .is-menu-open .road-secret, .is-menu-open .wx-pick {
  transition: opacity 450ms var(--ease-soft), visibility 0s linear 450ms !important;
}

/* If the menu ever has to scroll (a very short window), it does so without a scroll bar appearing beside the page's,
   which would push everything in it a few pixels sideways as it opens. */
.js #menu.menu--welcome { scrollbar-width: none; }
.js #menu.menu--welcome::-webkit-scrollbar { display: none; }

/* While the menu is open the page keeps its own scroll bar (it's held still by the menu's script instead of being
   switched to overflow: hidden), so nothing at the page's edge appears, disappears or shifts as the menu opens. */
html.is-menu-open, html.is-menu-open body { overflow: visible; }
html.is-menu-open body { padding-right: 0; }
.menu--welcome .menu__secondary a { font-size: 1rem; letter-spacing: .2em; text-transform: uppercase; }   /* Home: larger, in capitals, like the breadcrumbs */
.menu--welcome .mw-home { display: inline-flex; align-items: center; gap: .6rem; }
.menu--welcome .mw-home svg { width: 22px; height: 11px; flex: none; transition: translate 600ms var(--ease-soft); }
.menu--welcome .mw-home:hover svg, .menu--welcome .mw-home:focus-visible svg { translate: -4px 0; }   /* the arrow leans back, as the breadcrumb's does */

/* With the menu open, the JW monogram takes the menu's own ink, as on the homepage: dark over a light wash, light over a
   dark one (menu.js sets --menu-ink from the wash). Only while the wash is showing: without it, the reading pages keep
   their slate menu and the light monogram read.css gives it. html in the selector so it holds over read.css. */
html.is-menu-open:has(#menu.is-washed) .signature { color: var(--menu-ink, var(--paper)); }
/* Return, beneath the five words, centred: closes the menu and leaves you where you were. Set as Home is (capitals,
   like the breadcrumbs), its arrow to the right, and it arrives last */
.mw-return { display: flex; justify-content: center; margin: clamp(2rem, 6vh, 3.6rem) 0 0; }
.mw-return__btn { display: inline-flex; align-items: center; gap: .6rem; padding: .6rem .55rem; border: 0; border-radius: 12px; background: none; color: inherit; cursor: pointer;
  font-family: inherit; font-size: 1rem; letter-spacing: .2em; text-transform: uppercase; }
.mw-return__btn svg { width: 20px; height: 14px; flex: none; transition: translate 600ms var(--ease-soft); }
.mw-return__btn:hover svg, .mw-return__btn:focus-visible svg { translate: -3px 0; }
.js .menu .mw-return__btn { opacity: 0; filter: blur(14px); transform: translateY(.18em); transition: opacity 350ms var(--ease-soft), filter 350ms var(--ease-soft), transform 350ms var(--ease-soft); }
.js .menu.is-open .mw-return__btn { opacity: 1; filter: blur(0); transform: none;
  transition: opacity 900ms var(--ease-soft), filter 1100ms var(--ease-soft), transform 1100ms var(--ease-soft), translate 600ms var(--ease-soft); transition-delay: calc(240ms + var(--i, 0) * 90ms); }
@media (max-height: 520px) { .mw-return { margin: 1rem 0 0; } }
