/* The site's top bar: the brand, the main navigation, the booking action and the light/dark switch.
   Linked by every page, including the booking page, which composes through the layout and so gets
   the bar, the sheet and the footer the same way.

   Three arrangements, decided by what fits rather than by device:
     wide    the nav sits inline, the action and the switch follow it;
     medium  the nav drops to a second row under the brand, the action and the switch stay top right;
     phone   the bar sticks, a hamburger replaces the nav, and the switch and action move into the
             sheet the hamburger opens. */

.top{display:flex;align-items:center;flex-wrap:wrap;gap:var(--space-4);padding-block:var(--space-5) var(--space-4);border-bottom:1px solid var(--hairline);margin-bottom:var(--space-2)}
.top a{color:var(--blue);font-weight:600;text-decoration:none}
.top a.word{color:var(--ink)}
.word{display:inline-block;font-family:var(--head);font-weight:600;font-size:1.55rem;letter-spacing:-.02em;color:var(--ink);text-decoration:none;gap:var(--space-3)}
.word .mark{width:.62em;height:.7em;margin-right:.04em;overflow:visible;vertical-align:baseline}
.mark .rule{stroke:var(--sand);fill:none}
.brand{display:flex;flex-direction:column;align-items:flex-start;gap:4px;flex:none}
.tagline{font:400 .75rem/1.2 var(--font-mono);letter-spacing:.12em;text-transform:uppercase;color:var(--ink-muted)}
.nav{display:flex;flex-wrap:wrap;gap:var(--space-1) var(--space-6);align-items:center;margin-left:auto}
.nav a{font:400 .82rem var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--ink);border-bottom:1px solid transparent;padding-block:var(--space-1);text-decoration:none}
.nav a:hover{border-bottom-color:var(--ink-faint)}
.nav a[aria-current="page"]{color:var(--ink);border-bottom-color:var(--sand)}
/* The sheet's own rows exist only on a phone; at every other width they are not part of the bar. */
.nav-theme,.nav-cta{display:none}
.bar{display:flex;align-items:center;gap:var(--space-3);flex:none}
.bar-cta{font:400 .82rem var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--ink);border:1px solid var(--ink);padding:var(--space-2) var(--space-3);text-decoration:none;white-space:nowrap}
.bar-cta:hover{background:var(--ink);color:var(--paper)}
.bar-cta[aria-current="page"]{background:var(--ink);color:var(--paper)}
.scheme{width:34px;height:34px;border-radius:0;border:1px solid var(--hairline);background:transparent;color:var(--ink);font-size:1rem;cursor:pointer;display:grid;place-items:center}
.scheme:hover{border-color:var(--blue);color:var(--blue)}
.site-menu{display:none;width:44px;height:44px;border:1px solid var(--hairline);background:var(--panel);color:var(--ink);cursor:pointer;place-items:center}
.site-menu[hidden]{display:none}
.bars{position:relative;display:block;width:18px;height:2px;background:currentColor;transition:background .2s}
.bars::before,.bars::after{content:"";position:absolute;left:0;width:18px;height:2px;background:currentColor;transition:top .2s,transform .2s}
.bars::before{top:-6px}
.bars::after{top:6px}
.site-menu[aria-expanded="true"] .bars{background:transparent}
.site-menu[aria-expanded="true"] .bars::before{top:0;transform:rotate(45deg)}
.site-menu[aria-expanded="true"] .bars::after{top:0;transform:rotate(-45deg)}
@media (prefers-reduced-motion:reduce){.bars,.bars::before,.bars::after{transition:none}}

/* Medium: there is no room for the tagline and six labels side by side, so the tagline goes and
   the nav takes a row of its own under the brand. The action and the switch keep the top right. */
@media (min-width:721px) and (max-width:1210px){
  .tagline{display:none}
  .top{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"brand bar" "nav nav";row-gap:var(--space-3);align-items:center}
  .brand{grid-area:brand}
  .bar{grid-area:bar;justify-self:end}
  .nav{grid-area:nav;margin-left:0;justify-content:flex-start;gap:var(--space-1) var(--space-4)}
}

/* Phone: the bar sticks, the hamburger opens a full-height sheet over the page, and the switch and
   the booking action live in that sheet instead of crowding the corner. */
@media (max-width:720px){
  .top{position:sticky;top:0;z-index:45;display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:var(--space-3);
    margin-left:calc(-1 * max(var(--page-pad),env(safe-area-inset-left,0px)));
    margin-right:calc(-1 * max(var(--page-pad),env(safe-area-inset-right,0px)));
    padding:var(--space-3) max(var(--page-pad),env(safe-area-inset-right,0px)) var(--space-3) max(var(--page-pad),env(safe-area-inset-left,0px));
    background:var(--paper);box-shadow:0 14px 22px -22px color-mix(in srgb,var(--ink) 60%,transparent)}
  .tagline{display:none}
  .brand{min-height:44px;justify-content:center}
  .bar{gap:var(--space-2)}
  .bar-cta,.top .bar>.scheme{display:none}
  .site-menu{display:grid}
  .nav{position:fixed;left:0;right:0;top:var(--menu-top,72px);bottom:0;display:flex;flex-direction:column;align-items:stretch;gap:0;margin:0;
    padding:var(--space-2) 0 max(var(--space-4),env(safe-area-inset-bottom,0px));
    background:var(--paper);border-top:1px solid var(--hairline);overflow-y:auto;z-index:50}
  .nav[hidden]{display:none}
  .nav a{display:flex;align-items:center;min-height:52px;padding:0 var(--space-2);font-size:.9rem;border-bottom:1px solid var(--line-soft)}
  .nav-theme{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);min-height:56px;padding:0 var(--space-2);border-bottom:1px solid var(--line-soft)}
  .nav-theme span{font:400 .8rem var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--ink)}
  .nav-theme .scheme{display:grid;width:44px;height:44px}
  .top .nav-cta{display:flex;align-items:center;justify-content:center;margin-top:auto;min-height:56px;background:var(--ink);color:var(--paper);
    font:400 .82rem var(--mono);letter-spacing:.08em;text-transform:uppercase;text-decoration:none;border:0;padding:0 var(--space-2)}
  .top .nav-cta[aria-current="page"]{background:var(--color-accent-hover)}
  /* The page behind the sheet does not scroll under it, and the deck's own control bar, which
     floats above the header's stacking context, has no business showing over the sheet. */
  body.menu-open{overflow:hidden}
  body.menu-open .deck-bar,body.menu-open .deck-track{display:none!important}
}
@media (max-width:640px){.tagline{display:none}}
