/* the menu carries its own face, so it reads the same on every page */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/fraunces-latin-opsz-normal.woff2) format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 100 900; font-display: swap; src: url(/fonts/fraunces-latin-opsz-italic.woff2) format('woff2'); }
/* Numen site menu — shared by every page. Style is chosen in menu.js (STYLE). */
.nm-burger {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 18px);
  right: 18px;
  z-index: 1002;
  width: 46px; height: 46px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .4s ease, border-color .4s ease;
}
.nm-scrolled .nm-burger,
.nm-open .nm-burger {
  background: rgba(20,17,14,0.55);
  border-color: rgba(212,180,131,0.22);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.nm-burger:focus-visible { outline: none; border-color: rgba(212,180,131,0.7); }
.nm-burger span {
  position: absolute; left: 13px;
  width: 20px; height: 1.5px;
  border-radius: 2px;
  background: #F0EBE1;
  transition: top .45s cubic-bezier(.65,0,.35,1), transform .45s cubic-bezier(.65,0,.35,1), opacity .3s ease, width .45s ease, left .45s ease;
}
.nm-burger span:nth-child(1) { top: 16px; }
.nm-burger span:nth-child(2) { top: 22px; left: 19px; width: 14px; }
.nm-burger span:nth-child(3) { top: 28px; }
@media (hover: hover) { .nm-burger:hover span:nth-child(2) { left: 13px; width: 20px; } }
.nm-open .nm-burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nm-open .nm-burger span:nth-child(2) { opacity: 0; transform: translateX(8px); }
.nm-open .nm-burger span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

.nm-scrim {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(8,6,5,0.5);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none;
  transition: opacity .5s ease;
}
.nm-open .nm-scrim { opacity: 1; pointer-events: auto; }

.nm-menu {
  position: fixed; z-index: 1001;
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 350;
  visibility: hidden;
}
.nm-open .nm-menu { visibility: visible; }
.nm-menu ul { list-style: none; margin: 0; padding: 0; }
/* and its own measures: no page's list or link styles reach in */
.nm-menu { font-size: 16px; line-height: 1.3; letter-spacing: normal; text-align: left; }
.nm-menu li { margin: 0; padding: 0; font-size: inherit; color: inherit; list-style: none; }
.nm-menu li::before { content: none; }
.nm-menu a { margin: 0; border: 0; }
.nm-mark { line-height: 1.3; }
.nm-menu a {
  position: relative;
  display: block;
  color: #F0EBE1;
  text-decoration: none;
  font-size: 25px;
  letter-spacing: -0.1px;
  line-height: 1.3;
  padding: 11px 0;
  opacity: 0;
  transform: translateX(18px);
  transition: opacity .4s ease, transform .55s cubic-bezier(.22,1,.36,1), color .25s ease;
  transition-delay: 0s;
}
.nm-menu a:hover, .nm-menu a:focus-visible { color: #d4b483; outline: none; }
.nm-menu a[aria-current="page"] { color: #d4b483; }
.nm-menu a[aria-current="page"]::before {
  content: ""; position: absolute; left: -18px; top: 50%;
  width: 6px; height: 6px; margin-top: -3px;
  border-radius: 50%; background: #d4b483;
}
.nm-menu .nm-small a {
  font-family: -apple-system, system-ui, sans-serif;
  font-size: 14px; letter-spacing: .2px;
  color: rgba(240,235,225,0.6);
  padding: 7px 0;
}
.nm-menu .nm-small a:hover, .nm-menu .nm-small a:focus-visible { color: #d4b483; }
.nm-menu .nm-small a[aria-current="page"]::before { left: -16px; width: 5px; height: 5px; margin-top: -2.5px; }
.nm-rule {
  height: 1px; margin: 20px 0;
  background: linear-gradient(90deg, rgba(212,180,131,0.4), rgba(212,180,131,0));
  opacity: 0; transition: opacity .4s ease;
}
.nm-mark {
  font-size: 13px; letter-spacing: 6px;
  color: rgba(212,180,131,0.7);
  font-family: 'Fraunces', Georgia, serif;
  opacity: 0; transition: opacity .6s ease;
}
.nm-open .nm-menu a,
.nm-open .nm-rule,
.nm-open .nm-mark {
  opacity: 1; transform: none;
  transition-delay: calc(.12s + var(--i, 0) * .05s);
}

/* A — slides in from the side */
[data-nm-style="side"] .nm-menu {
  top: 0; right: 0; bottom: 0;
  width: min(360px, 82vw);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 108px) 44px calc(env(safe-area-inset-bottom, 0px) + 40px);
  background: linear-gradient(180deg, rgba(27,23,18,0.82), rgba(16,13,11,0.86));
  -webkit-backdrop-filter: blur(22px) saturate(1.1); backdrop-filter: blur(22px) saturate(1.1);
  border-left: 1px solid rgba(212,180,131,0.2);
  box-shadow: -30px 0 80px rgba(0,0,0,0.45);
  transform: translateX(100%);
  transition: transform .6s cubic-bezier(.22,1,.36,1), visibility 0s linear .6s;
}
[data-nm-style="side"].nm-open .nm-menu {
  transform: none;
  transition: transform .6s cubic-bezier(.22,1,.36,1), visibility 0s;
}

/* B — pops out from the icon */
[data-nm-style="card"] .nm-menu {
  top: calc(env(safe-area-inset-top, 0px) + 74px);
  right: 18px;
  width: 252px;
  padding: 20px 26px 22px 30px;
  background: #242018;
  border: 1px solid rgba(240,235,225,0.12);
  border-radius: 18px;
  transform-origin: calc(100% - 23px) -33px;
  transform: scale(.55);
  opacity: 0;
  transition: transform .5s cubic-bezier(.34,1.32,.5,1), opacity .3s ease, visibility 0s linear .5s;
}
[data-nm-style="card"].nm-open .nm-menu {
  transform: scale(1); opacity: 1;
  transition: transform .5s cubic-bezier(.34,1.32,.5,1), opacity .3s ease, visibility 0s;
}
[data-nm-style="card"] .nm-menu a { font-size: 19px; padding: 8px 0; }
[data-nm-style="card"] .nm-menu .nm-small a { font-size: 13px; padding: 6px 0; }
[data-nm-style="card"] .nm-rule { margin: 12px 0; }
[data-nm-style="card"] .nm-mark { display: none; }
[data-nm-style="card"] .nm-scrim { background: rgba(10,8,6,0.35); }

.nm-lock { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .nm-burger span, .nm-menu, .nm-menu a, .nm-rule, .nm-mark, .nm-scrim {
    transition-duration: .01s !important;
    transition-delay: 0s !important;
  }
}

/* Shared footer pieces (every page) */
footer .footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; }
footer .footer-social { margin-top: 16px; display: flex; justify-content: center; }
footer .footer-social a { color: #d4b483; }
footer .footer-copy { margin-top: 18px; color: rgba(240,235,225,0.60); }

/* the page's own scrollbar, kept quiet: thin, and a faint thumb on no track. Here because every page loads this file. */
html { scrollbar-width: thin; scrollbar-color: rgba(240,235,225,0.16) transparent; }
html::-webkit-scrollbar { width: 8px; height: 8px; background: transparent; }
html::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-thumb { background: rgba(240,235,225,0.16); border-radius: 4px; }
html::-webkit-scrollbar-thumb:hover { background: rgba(212,180,131,0.4); }
