/* =====================================================
   Sticky header: logo, menu, Book. Wide landscape screens
   show the menu inline; narrow or portrait screens open it
   as a full-screen overlay (lib/nav.js). The Book button is
   always visible (top right; bottom right on phones).
   ===================================================== */
.skip {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 40;
  padding: 12px 18px;
  background: var(--pearl);
  color: var(--wine);
  font: 500 15px/1 var(--ff-sans);
}

.skip:focus {
  top: 16px;
}

.hdr {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
  padding: 0 24px;
  background: linear-gradient(180deg, rgba(11, 7, 6, 0.55), rgba(11, 7, 6, 0));
  pointer-events: none;
}

.hdr > * {
  pointer-events: auto;
}

.hdr__logo {
  display: inline-flex;
  padding: 8px;
  margin-right: auto;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.6));
}

.hdr__logo img {
  display: block;
  width: 74px;
  height: auto;
  /* the dark mark drawn as champagne over velvet; plain ink over cream scenes.
     Both tones list the same functions with nearby hue angles, so the 0.4 s
     tone change interpolates straight between them (345deg -> 2deg swept the
     logo through green) */
  filter: brightness(0) invert(86%) sepia(40%) saturate(420%) hue-rotate(2deg) brightness(1);
  transition: filter 0.4s ease;
}

/* the mark is white artwork: over cream it is drawn in wine ink */
[data-tone="light"] .hdr__logo {
  filter: drop-shadow(0 1px 4px rgba(239, 236, 227, 0.8));
}

[data-tone="light"] .hdr__logo img {
  filter: brightness(0) invert(10%) sepia(55%) saturate(3600%) hue-rotate(-15deg) brightness(0.95);
}

[data-tone="light"] .hdr {
  background: linear-gradient(180deg, rgba(239, 236, 227, 0.7), rgba(239, 236, 227, 0));
}

[data-tone="light"] .menu__link {
  color: var(--wine);
  text-shadow: none;
}

[data-tone="light"] .menu__num,
[data-tone="light"] .menu__decor {
  color: var(--gold-lo);
}

.hdr a:focus-visible,
.hdr button:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
}

.hdr__toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(211, 193, 129, 0.6);
  border-radius: 999px;
  background: rgba(11, 7, 6, 0.55);
  color: var(--gold-hi);
  font: 500 13px/1 var(--ff-sans);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  cursor: pointer;
}

.hdr__toggle-glyph {
  display: none;
  font-size: 20px;
  letter-spacing: 0;
}

.menu-open .hdr__toggle-glyph {
  display: inline;
}

.menu__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
}

.menu__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--pearl);
  font: 500 13px/1 var(--ff-sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

.menu__num {
  color: var(--champagne);
  font-size: 11px;
}

.menu__decor {
  color: var(--champagne);
}

.menu__link:hover .menu__label {
  text-decoration: underline;
  text-decoration-color: var(--champagne);
  text-underline-offset: 6px;
}

.book-btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--champagne);
  border-radius: 999px;
  background: var(--wine);
  color: var(--gold-hi);
  font: 500 13px/1 var(--ff-sans);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.book-btn:hover {
  background: var(--wine-deep);
}

/* ---- overlay menu: narrow or portrait screens (JS only) ------------- */
@media (max-width: 899px), (orientation: portrait) {
  .js .hdr__toggle {
    display: inline-flex;
  }

  .hdr {
    height: 64px;
    padding: 0 12px 0 8px;
    gap: 10px;
  }

  .js .menu {
    position: fixed;
    inset: 0;
    z-index: -1;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 96px 24px 120px;
    background:
      radial-gradient(120% 90% at 50% 30%, rgba(107, 20, 24, 0.97), rgba(62, 10, 12, 0.98) 70%, rgba(42, 5, 7, 0.99));
  }

  .js.menu-open .menu {
    display: flex;
  }

  .js .menu__list {
    flex-direction: column;
    gap: 6px;
  }

  .js .menu .menu__link {
    color: var(--pearl);
    text-shadow: none;
    gap: 14px;
    min-height: 56px;
    font: 400 32px/1.1 var(--ff-serif);
    letter-spacing: 0.02em;
    text-transform: none;
  }

  .js .menu__num {
    font: 500 12px/1 var(--ff-sans);
    letter-spacing: 0.2em;
  }

  /* phones: Book sits bottom right, always on top */
  .book-btn {
    position: fixed;
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    min-height: 52px;
  }

  .menu-open body {
    overflow: hidden;
  }
}

/* no JS: the menu is a plain row of links under the logo */
html:not(.js) .hdr {
  position: absolute;
  flex-wrap: wrap;
  height: auto;
  padding: 12px 16px;
}

/* QA fix: off-screen panels and scene layers must never scroll the page sideways */
html,
body {
  overflow-x: clip;
}

/* QA fix: cards that scroll up under the header fade out behind a taller scrim */
.film-on .hdr {
  height: 96px;
  background: linear-gradient(180deg, rgba(11, 7, 6, 0.86) 0%, rgba(11, 7, 6, 0.6) 55%, rgba(11, 7, 6, 0));
}
