/* Shared site shell. Page styles must not override these components. */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px max(48px, calc((100% - 1560px) / 2));
  background: #000;
}

.brand {
  display: block;
  width: 96px;
  height: 40px;
  flex: none;
}

.brand img {
  width: 96px;
  height: 40px;
  object-fit: contain;
  object-position: left;
}

.nav-menu {
  position: relative;
  margin-left: auto;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  color: #f8f6f1;
  background: #000;
  border: 1px solid #393939;
  border-radius: 4px;
  list-style: none;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}

.nav-toggle::-webkit-details-marker {
  display: none;
}

.nav-toggle:hover, .nav-menu[open] .nav-toggle {
  background: #242424;
  color: #f8f6f1;
}

.nav-toggle-icon {
  display: grid;
  gap: 5px;
  width: 22px;
}

.nav-toggle-icon span {
  display: block;
  height: 1px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-menu[open] .nav-toggle-icon span:first-child {
  transform: translateY(6px) rotate(45deg);
}

.nav-menu[open] .nav-toggle-icon span:nth-child(2) {
  opacity: 0;
}

.nav-menu[open] .nav-toggle-icon span:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-menu:not([open]) .nav-menu-links {
  display: none;
}

.nav-menu-links {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(320px, calc(100vw - 40px));
  margin: 0;
  padding: 12px 22px;
  list-style: none;
  background: #000;
  color: #f8f6f1;
  border: 1px solid #393939;
  border-radius: 4px;
  box-shadow: 0 12px 30px rgba(9,9,9,.08);
}

.nav-menu-links li + li {
  border-top: 1px solid #292929;
}

.nav-menu-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 0;
  min-height: 48px;
  font-size: 17px;
  font-weight: 600;
}

.nav-menu-links a:hover {
  color: #f05a43;
}

@media (max-width: 760px) {
  .topbar {
    padding: 14px 20px;
  }
}
footer.sitefoot {
  padding: 46px 48px 40px;
  background: #000;
  border-top: 1px solid #292929;
  color: #bcbcb7;
}
.foot-wrap {
  max-width: 1560px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 34px;
}
.foot-logo { display: block; height: 30px; width: auto; }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-left: auto; }
.foot-links a {
  color: #bcbcb7;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 500;
  transition: color 220ms ease;
}
.foot-links a:hover { color: #fff; }
.foot-legal {
  max-width: 1560px;
  margin: 26px auto 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  line-height: 1.6;
  letter-spacing: .16em;
  text-transform: uppercase;
}
@media (max-width: 760px) {
  footer.sitefoot { padding: 36px 22px; }
  .foot-links { margin-left: 0; }
}

nav.topbar { color: #f8f6f1; font: 500 16px/1.5 'Manrope', sans-serif; }
.topbar .brand { position: relative; }
.topbar .brand img { display: block; position: static; }
.topbar .nav-menu-links a { font: 600 17px/1.65 'Manrope', sans-serif; color: #f8f6f1; text-decoration: none; letter-spacing: normal; }
.topbar .nav-menu-links a:hover { color: #f05a43; }
.topbar a:focus-visible, .nav-toggle:focus-visible, .sitefoot a:focus-visible { outline: 2px solid #f05a43; outline-offset: 4px; }
footer.sitefoot { position: relative; z-index: 5; font: 400 16px/1.6 'Manrope', sans-serif; }
.sitefoot .foot-links a { font: 500 13px/1.65 'Manrope', sans-serif; text-decoration: none; }
.sitefoot .foot-legal { font: 400 10.5px/1.6 'IBM Plex Mono', monospace; letter-spacing: .16em; }
@media (prefers-reduced-motion: reduce) {
  .nav-toggle, .nav-toggle-icon span, .nav-menu-links a, .foot-links a { transition: none; }
}

.topbar .brand, .sitefoot .foot-wrap > a { color: inherit; text-decoration: none; }
