/* LUMOS · one menu and one footer for every page of the site.
   Self-contained: works on pages with site.css and on pages without it (family-library).
   Markup is written into pages by layout.js. Dark by default, light under html.day. */

.nav-wrap, .mobile-menu, .site-footer, .nav-spacer {
  --sp-50: 4px; --sp-75: 8px; --sp-100: 12px; --sp-200: 16px; --sp-300: 24px; --sp-400: 32px;
  --sp-600: 48px; --sp-900: 96px;
  --night: #131209; --ink-n: #F4F1EC;
  --ink: #161616; --ink-2: #5F5D59; --ink-3: #8A8782; --line: #E2DED6;
  --lamp: #E9B872;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-wrap, .mobile-menu, .site-footer {
  font-family: "Manrope", system-ui, sans-serif; font-size: 16px; line-height: 24px; -webkit-font-smoothing: antialiased;
}
.nav-wrap *, .mobile-menu *, .site-footer * { box-sizing: border-box; }
.nav-wrap a, .mobile-menu a, .site-footer a { color: inherit; }

/* ---------- menu bar: a full width strip at the very top of the page, scrolls away with it ---------- */
.nav-wrap { position: absolute; top: 0; left: 0; right: 0; z-index: 50; }
.nav-wrap .nav {
  width: 100%; max-width: none; height: 72px; margin: 0;
  display: flex; align-items: center; gap: clamp(8px, 1.4vw, 16px);
  padding: 0 max(var(--sp-400), calc((100% - 1136px) / 2));
  border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.10); border-radius: 0;
  background: transparent; color: var(--ink-n);
}
.day .nav-wrap .nav { border-bottom-color: var(--line); color: var(--ink); }
.nav-wrap .nav-links { margin-left: auto; }

.nav-wrap .brand, .site-footer .brand { display: inline-flex; align-items: center; gap: var(--sp-75); text-decoration: none; flex: none; }
.nav-wrap .brand svg { width: auto; height: 28px; display: block; overflow: visible; }
@media (max-width: 640px) { .nav-wrap .brand svg { height: 24px; } }
.nav-wrap .brand .mark-star { fill: #FFC46B; }
.day .nav-wrap .brand .mark-star { fill: #E8913A; }
.nav-wrap .brand .mark-body { fill: var(--ink-n); transition: fill 500ms var(--ease); }
.day .nav-wrap .brand .mark-body { fill: var(--ink); }
.nav-wrap .brand-word { font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0.32em; }

.nav-wrap .nav-links { display: none; align-items: center; gap: var(--sp-50); font-size: 14px; line-height: 20px; font-weight: 500; }
.nav-wrap .nav-links a {
  padding: var(--sp-75) clamp(7px, 1vw, 12px); border-radius: 8px; text-decoration: none; white-space: nowrap; opacity: 0.72;
  transition: opacity 300ms var(--ease), background-color 300ms var(--ease);
}
.nav-wrap .nav-links a:hover, .nav-wrap .nav-links a[aria-current="page"] { opacity: 1; background: rgba(127, 127, 127, 0.14); }

.nav-wrap .btn, .mobile-menu .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-75);
  padding: var(--sp-75) var(--sp-100); border-radius: 8px; border: 1px solid transparent;
  font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
  background: var(--lamp); color: var(--night);
  transition: transform 500ms var(--ease), background-color 300ms var(--ease), color 300ms var(--ease);
}
.nav-wrap .btn:hover, .mobile-menu .btn:hover { background: #F2CB91; transform: translateY(-2px); }
.day .nav-wrap .btn, .day .mobile-menu .btn { background: var(--ink); color: #fff; }
.day .nav-wrap .btn:hover, .day .mobile-menu .btn:hover { background: #2E2E2E; }
.nav-wrap .nav-cta { display: none; flex: none; }

.nav-wrap .menu-toggle { position: relative; flex: none; width: 40px; height: 40px; border: 0; border-radius: 8px; padding: 0; background: transparent; color: inherit; cursor: pointer; }
.nav-wrap .menu-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 500ms var(--ease); }
.nav-wrap .menu-toggle span:nth-child(1) { top: 15px; }
.nav-wrap .menu-toggle span:nth-child(2) { top: 23px; }
.menu-open .nav-wrap .menu-toggle span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-open .nav-wrap .menu-toggle span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

@media (min-width: 860px) {
  .nav-wrap .nav-links, .nav-wrap .nav-cta { display: inline-flex; }
  .nav-wrap .menu-toggle { display: none; }
}
/* plugin pages | free resources */
.nav-wrap .nav-sep { width: 1px; height: 20px; margin: 0 var(--sp-75); background: currentColor; opacity: 0.2; }
@media (max-width: 859.98px) {
  .nav-wrap .menu-toggle { margin-left: auto; }
}
@media (max-width: 767px) {
  .nav-wrap .nav { height: 56px; padding: 0 var(--sp-75) 0 var(--sp-200); }
}
/* while the phone menu is open the strip stays on screen above it */
.menu-open .nav-wrap { position: fixed; }

/* ---------- phone menu: a panel that slides down from the top, under the strip ---------- */
.mobile-menu {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40; max-height: 100dvh;
  padding: 56px var(--sp-200) var(--sp-300);
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  background: #17160F; color: var(--ink-n);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10); border-radius: 0 0 16px 16px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  transform: translateY(-100%); visibility: hidden;
  transition: transform 500ms var(--ease), visibility 0s linear 500ms;
}
.day .mobile-menu { background: var(--day, #F7F5F1); color: var(--ink); border-bottom-color: var(--line); box-shadow: 0 24px 48px rgba(40, 32, 20, 0.14); }
.menu-open .mobile-menu { transform: none; visibility: visible; transition: transform 500ms var(--ease); }
/* every row the same height */
.mobile-menu .m-link { display: block; font-size: 20px; line-height: 28px; font-weight: 600; text-decoration: none; padding: var(--sp-200) 0; border-top: 1px solid rgba(127, 127, 127, 0.22); }
.mobile-menu .m-link[aria-current="page"] { color: var(--lamp); }
.day .mobile-menu .m-link[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
.mobile-menu .m-item { opacity: 0; transform: translateY(-8px); transition: transform 500ms var(--ease), opacity 300ms var(--ease); }
.menu-open .mobile-menu .m-item { opacity: 1; transform: none; }
.mobile-menu .btn { margin-top: var(--sp-200); padding: var(--sp-100) var(--sp-300); border-radius: 12px; font-size: 16px; line-height: 24px; }
@media (min-width: 768px) { .mobile-menu { padding-top: 72px; } }

/* room for the fixed bar on pages whose first block is not a full screen hero */
.nav-spacer { height: 72px; }
@media (max-width: 767px) { .nav-spacer { height: 56px; } }

/* ---------- footer ---------- */
.site-footer { padding: var(--sp-600) 0 var(--sp-400); color: var(--ink-3); }
.site-footer .container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--sp-200); }
@media (min-width: 768px) { .site-footer .container { padding: 0 var(--sp-400); } }
.site-footer .footer-row { display: flex; flex-wrap: wrap; gap: var(--sp-300); justify-content: space-between; align-items: center; }
.site-footer .footer-copy { font-size: 14px; line-height: 20px; }
.site-footer .footer-links { display: flex; flex-wrap: wrap; gap: var(--sp-100) var(--sp-300); font-size: 14px; line-height: 20px; font-weight: 500; }
.site-footer .footer-links a { text-decoration: none; color: var(--ink-2); }
.site-footer .footer-links a:hover { color: var(--ink); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .nav-wrap .nav, .nav-wrap .btn, .mobile-menu, .mobile-menu .m-item, .nav-wrap .menu-toggle span { transition: none; }
  .mobile-menu .m-item { transform: none; }
}

/* family-library: category jumps land below the fixed bar */
#catalog, .category[id] { scroll-margin-top: 16px; }
.mast .about-link { display: block; width: fit-content; margin-top: 16px; font-size: 14px; line-height: 20px; opacity: 0.75; }
.mast .about-link:hover { opacity: 1; }
#faq { scroll-margin-top: 24px; }

/* Keep both languages available before opening the mobile menu. */
.nav-wrap .language-switch { display: inline-flex; flex: none; align-items: center; gap: .3rem; font-size: 13px; }
.nav-wrap .language-switch a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: .22em; }
@media (max-width: 859.98px) {
  .nav-wrap .language-switch { margin-left: auto; }
  .nav-wrap .language-switch ~ .menu-toggle { margin-left: 0; }
}
