@font-face { font-family: Ronzino; src: url('/hexcore-app/fonts/lunar-type/Ronzino-Medium.woff2') format('woff2'); font-weight: 500 700; font-display: swap; }
@font-face { font-family: Messapia; src: url('/hexcore-app/fonts/lunar-type/Messapia-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Necto Mono'; src: url('/hexcore-app/fonts/lunar-type/NectoMono-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
/* One masthead throughout the lunar world and its editorial pages. */
:is(body.moon-native .hero > .header, body .moon-story .moon-story-nav, body .blog-header, body .interior-header) {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  box-sizing: border-box; width: 100%; max-width: none; height: 94px; min-height: 94px;
  margin: 0; padding: 20px 30px; background: none; border: 0; box-shadow: none;
  backdrop-filter: none; pointer-events: none;
  font-family: Ronzino, sans-serif;
}
body .interior-header { position: fixed; inset: 0 0 auto; z-index: 50; }
body .blog-header { position: relative; z-index: 30; }
body.moon-native .hero > .header .mobile-nav { display: block; margin-left: 0; }
body.moon-native .hero > .header { background: transparent; }
body .moon-story .moon-story-nav .moon-story-menu { order: 2; margin-left: 0; }
body .moon-story .moon-story-nav .moon-story-contact { order: 1; margin-left: auto; }
:is(.moon-story .moon-story-contact, .masthead-contact, .blog-header .blog-contact) {
  display: inline-flex;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 54px;
  padding: 10px 22px;
  border: 2px solid #ffe5f4;
  border-radius: 999px;
  background: #173541;
  color: #fff0f8;
  font: 600 15px/1.2 Ronzino, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset 0 0 3px #fff, inset 0 0 9px #f589b699, 0 0 3px #fff, 0 0 8px #f589b6, 0 0 22px #f589b666;
  text-shadow: 0 0 8px #f589b666;
  transition: background 180ms ease, box-shadow 180ms ease;
  pointer-events: auto;
}
:is(.moon-story .moon-story-contact, .masthead-contact, .blog-header .blog-contact):hover {
  background: #254958;
  transform: none;
  box-shadow: inset 0 0 5px #fff, inset 0 0 12px #f589b6aa, 0 0 4px #fff, 0 0 12px #f589b6, 0 0 28px #f589b688;
}
.moon-story .moon-story-contact > span:last-child { background: transparent; color: #fff0f8; }
.moon-native .header > .language-switch { display: none; }
body :is(.blog-menu, .mobile-nav, .moon-story-menu) { position: relative; margin-left: 0; pointer-events: auto; }
body :is(.blog-menu, .mobile-nav, .moon-story-menu) summary {
  position: relative; display: block; box-sizing: border-box; width: 44px; height: 44px;
  padding: 0; border: 0; border-radius: 50%; background: none; color: inherit;
  cursor: pointer; list-style: none; box-shadow: none;
}
body :is(.blog-menu, .mobile-nav, .moon-story-menu) summary::-webkit-details-marker { display: none; }
body :is(.blog-menu, .mobile-nav, .moon-story-menu) summary::before,
body :is(.blog-menu, .mobile-nav, .moon-story-menu) summary::after {
  content: ''; position: absolute; left: 11px; top: 17px; display: block;
  width: 22px; height: 1px; border: 0; background: currentColor;
  transition: transform 180ms ease, top 180ms ease;
}
body :is(.blog-menu, .mobile-nav, .moon-story-menu) summary::after { top: 25px; }
body :is(.blog-menu, .mobile-nav, .moon-story-menu)[open] summary::before { top: 21px; transform: rotate(45deg); }
body :is(.blog-menu, .mobile-nav, .moon-story-menu)[open] summary::after { top: 21px; transform: rotate(-45deg); }
body :is(.blog-menu, .mobile-nav, .moon-story-menu) summary svg { display: none; }
body :is(.blog-menu-panel, .mobile-nav-panel, .moon-story-menu-panel) {
  position: absolute; z-index: 60; top: 62px; right: 0; left: auto;
  display: flex; flex-direction: column; gap: 0; box-sizing: border-box;
  width: 440px; max-width: calc(100vw - 40px); max-height: calc(100dvh - 116px);
  padding: 30px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin;
  border: 1px solid #eab4ceaa; border-radius: 24px;
  background: #193643; color: #fff0f8; text-align: left; backdrop-filter: none;
  box-shadow: inset 0 0 0 5px #102b3666, inset 0 1px 8px #efb8d52b, 0 20px 60px #061c2a66, 0 0 12px #efa4c438;
  animation: lunar-menu-in 200ms ease-out both;
}
body :is(.blog-menu, .mobile-nav, .moon-story-menu):not([open]) > :is(nav, .moon-story-menu-panel) { display: none; }
.site-menu-destinations { counter-reset: destination; }
.site-menu-destinations::before {
  content: 'HEXCORE / EXPLORE'; display: block; margin: 0 0 20px; color: #eab4ce;
  font: 11px/1.5 'Necto Mono', monospace; letter-spacing: .12em;
}
html[lang='fr'] .site-menu-destinations::before { content: 'HEXCORE / EXPLORER'; }
body :is(.blog-menu, .mobile-nav, .moon-story-menu) :is(.blog-menu-panel, .mobile-nav-panel, .moon-story-menu-panel) .site-menu-link {
  position: static; display: grid; grid-template-columns: 24px 1fr 20px; align-items: center; gap: 12px;
  width: 100%; min-height: 68px; margin: 0; padding: 12px 0;
  border: 0; border-top: 1px solid #f6d8e522; border-radius: 0;
  background: none; box-shadow: none; color: #fff0f8; opacity: 1;
  font: 700 25px/1.35 Messapia, serif; text-align: left; text-decoration: none;
  text-transform: none; letter-spacing: -.045em; cursor: pointer; transform: none;
}
body :is(.blog-menu, .mobile-nav, .moon-story-menu) :is(.blog-menu-panel, .mobile-nav-panel, .moon-story-menu-panel) .site-menu-link::before {
  counter-increment: destination; content: '0' counter(destination); color: #d4a6bf;
  font: 10px/1 'Necto Mono', monospace; letter-spacing: 0;
}
body :is(.blog-menu, .mobile-nav, .moon-story-menu) :is(.blog-menu-panel, .mobile-nav-panel, .moon-story-menu-panel) .site-menu-link::after {
  content: '↗'; color: #eab4ce; font: 20px/1 Ronzino, sans-serif; transition: transform 180ms ease;
}
body :is(.blog-menu, .mobile-nav, .moon-story-menu) :is(.blog-menu-panel, .mobile-nav-panel, .moon-story-menu-panel) .site-menu-link:hover { color: #f6b3d3; }
body :is(.blog-menu, .mobile-nav, .moon-story-menu) :is(.blog-menu-panel, .mobile-nav-panel, .moon-story-menu-panel) .site-menu-link:hover::after { transform: translate(2px,-2px); }
body :is(.blog-menu-panel, .mobile-nav-panel, .moon-story-menu-panel) .site-menu-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; margin-top: 24px; padding-top: 12px; border-top: 1px solid #f6d8e533; }
body :is(.blog-menu-panel, .mobile-nav-panel, .moon-story-menu-panel) .site-menu-settings :is(button,a) {
  position: static; display: flex; align-items: center; gap: 8px; width: auto; min-height: 44px;
  margin: 0; padding: 6px 0; border: 0; border-radius: 0; background: none; box-shadow: none;
  color: #cfdae0; opacity: 1; font: 500 13px/1.4 Ronzino,sans-serif; text-transform: none; transform: none; cursor: pointer;
}
body :is(.blog-menu-panel, .mobile-nav-panel, .moon-story-menu-panel) .site-menu-settings svg { display: none; }
body :is(.blog-menu-panel, .mobile-nav-panel, .moon-story-menu-panel) .site-menu-settings .moon-reset-label { display: inline; }
body :is(.blog-menu-panel, .mobile-nav-panel, .moon-story-menu-panel) .site-menu-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 24px; padding-top: 12px; border-top: 1px solid #f6d8e533; }
body :is(.blog-menu-panel, .mobile-nav-panel, .moon-story-menu-panel) .site-menu-footer :is(.language-switch,.blog-language,.moon-story-language,.legal-dock,.site-menu-legal) {
  position: static; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; padding: 0;
  width: auto; border: 0; background: none; box-shadow: none; color: #cfdae0; opacity: 1; transform: none;
  font: 500 12px/1.4 Ronzino,sans-serif;
}
body :is(.blog-menu-panel, .mobile-nav-panel, .moon-story-menu-panel) .site-menu-footer :is(a,button) {
  position: static; display: inline-flex; align-items: center; justify-content: center;
  width: auto; min-height: 44px; margin: 0; padding: 0; border: 0; border-radius: 0;
  background: none; color: inherit; font: inherit; text-transform: none; text-decoration: none;
}
body :is(.blog-menu-panel, .mobile-nav-panel, .moon-story-menu-panel) .site-menu-footer :is(.language-switch,.blog-language,.moon-story-language) a { min-width: 32px; }
body :is(.blog-menu-panel, .mobile-nav-panel, .moon-story-menu-panel) .site-menu-footer a[aria-current] { color: #f6b3d3; text-decoration: underline; text-underline-offset: 5px; }
body :is(.blog-menu-panel, .mobile-nav-panel, .moon-story-menu-panel) .site-menu-footer .legal-dock > span { display: none; }
body.moon-native .mobile-nav .site-menu-settings .motion-button { background: none; color: #cfdae0; min-width: 0; white-space: normal; text-align: left; }
body.moon-native .mobile-nav .site-menu-footer .language-switch a { background: none; width: 32px; }
body :is(.site-menu-footer,.site-menu-settings) :is(a,button):hover { color: #f6b3d3; }
body .interior-header { color: #fff0f8; }
@keyframes lunar-menu-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
body .moon-story .moon-story-nav .moon-story-contact { color: #fff0f8; border-color: #ffe5f4; }
body .moon-story .moon-story-nav .moon-story-contact > span:last-child { width: auto; height: auto; }
body .interior-header :is(a,button,summary):focus-visible,
body .blog-header :is(a,summary):focus-visible { outline: 2px solid #f6b3d3; outline-offset: 5px; }
body :is(.mobile-nav,.moon-story-menu) :is(a,button,summary):focus-visible { outline: 2px solid #f6b3d3; outline-offset: 3px; }
body .pyramid-arrival__controls, body .contact-arrival__controls { top: 108px; }
body.moon-native .pyramid-arrival .pyramid-chamber__heading { top: 112px; }
body .contact-destination { padding-top: 120px; }
body .contact-destination__logo { display: none; }
@media(max-width:700px) {
  :is(body.moon-native .hero > .header, body .moon-story .moon-story-nav, body .blog-header, body .interior-header) {
    height: calc(84px + env(safe-area-inset-top, 0px)); min-height: 84px;
    padding: calc(14px + env(safe-area-inset-top, 0px)) 20px 14px; gap: 10px;
  }
  :is(.moon-story .moon-story-contact, .masthead-contact, .blog-header .blog-contact) { min-height: 46px; min-width: 0; padding: 9px 12px; font-size: 13px; gap: 8px; }
  body.moon-native .pyramid-arrival .pyramid-chamber__heading { top: calc(102px + env(safe-area-inset-top, 0px)); }
  body.moon-native .pyramid-arrival .pyramid-chamber { --reader-top: 220px; }
  body .contact-destination { padding-top: calc(102px + env(safe-area-inset-top, 0px)); }
  body .pyramid-arrival__controls, body .contact-arrival__controls { top: calc(96px + env(safe-area-inset-top, 0px)); }
  body :is(.blog-menu-panel, .mobile-nav-panel, .moon-story-menu-panel) {
    position: fixed; top: calc(84px + env(safe-area-inset-top, 0px)); right: 12px; left: 12px;
    width: auto; max-width: none; max-height: calc(100dvh - 100px - env(safe-area-inset-top, 0px));
    padding: 24px; border-radius: 20px;
  }
  body :is(.blog-menu, .mobile-nav, .moon-story-menu) :is(.blog-menu-panel, .mobile-nav-panel, .moon-story-menu-panel) .site-menu-link { font-size: clamp(19px,5.4vw,25px); min-height: 66px; gap: 9px; }
}
@media(prefers-reduced-motion:reduce) {
  :is(.moon-story .moon-story-contact, .masthead-contact, .blog-header .blog-contact) { transition: none; }
  body :is(.blog-menu-panel, .mobile-nav-panel, .moon-story-menu-panel) { animation: none; }
  body :is(.blog-menu, .mobile-nav, .moon-story-menu) summary::before,
  body :is(.blog-menu, .mobile-nav, .moon-story-menu) summary::after,
  body :is(.blog-menu, .mobile-nav, .moon-story-menu) :is(.blog-menu-panel, .mobile-nav-panel, .moon-story-menu-panel) .site-menu-link::after { transition: none; }
}

/* Shared brand footprint and control spacing on every destination. */
body :is(.hero > .header, .moon-story-nav, .blog-header, .interior-header) > .site-logo {
  position: relative; inset: auto; display: flex; align-items: center; flex: 0 0 154px;
  width: 154px; height: 44px; min-height: 44px; margin: 0; padding: 0;
  border: 0; border-radius: 0; background: none; box-shadow: none;
  color: inherit; opacity: 1; transform: none; pointer-events: auto; cursor: pointer; order: 0;
}
body .site-logo::before { content: ''; display: block; width: 100%; height: 36px; background: currentColor; mask: url('/hexcore-app/brand/open-core-wordmark.svg') center / contain no-repeat; }
body .site-logo > * { display: none; }
body.moon-native .hero > .header > .site-logo { color: #fff0f8; }
@media(max-width:700px) {
  body :is(.hero > .header, .moon-story-nav, .blog-header, .interior-header) > .site-logo { flex-basis: 110px; width: 110px; }
}
@media(max-width:380px) {
  :is(body.moon-native .hero > .header, body .moon-story .moon-story-nav, body .blog-header, body .interior-header) { padding-left: 12px; padding-right: 12px; gap: 8px; }
  body :is(.hero > .header, .moon-story-nav, .blog-header, .interior-header) > .site-logo { flex-basis: 88px; width: 88px; }
  :is(.moon-story .moon-story-contact, .masthead-contact, .blog-header .blog-contact) { padding: 9px 10px; font-size: 12px; }
}
