/* Shared site-wide header and footer, August 2026. */
body > nav.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  min-height: 88px;
  padding: 16px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5, 5, 5, 0.96);
  border-bottom: 1px solid rgba(207, 165, 77, 0.14);
  backdrop-filter: blur(12px);
}
body > nav.site-header .nav-logo { display: block; flex: 0 0 auto; }
body > nav.site-header .nav-logo img { display: block; width: auto; height: 54px; max-height: 54px; }
body > nav.site-header .nav-links { display: flex; align-items: center; gap: 34px; margin: 0; padding: 0; list-style: none; }
body > nav.site-header .nav-links a { color: rgba(245,240,232,.78); font-family: 'Poppins', sans-serif; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; }
body > nav.site-header .nav-links a:hover { color: #cfa54d; }
body > nav.site-header .nav-links .nav-cta { padding: 12px 20px; border: 1px solid #cfa54d; background: #cfa54d; color: #050505 !important; }
body > nav.site-header .nav-links .nav-cta:hover { background: #dfbd70; border-color: #dfbd70; }
body > nav.site-header .nav-mobile-toggle { display: none; }
body.menu-open { overflow: hidden; }

body > footer.site-footer { margin: 0; padding: 20px 32px 14px; background: #050505; color: #f5f0e8; border-top: 1px solid rgba(207,165,77,.16); font-family: 'Poppins', sans-serif; text-align: center; }
.site-footer-inner { width: min(980px, 100%); margin: 0 auto; }
.site-footer-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
.site-footer-brand { display: flex; flex-direction: column; align-items: center; }
.site-footer-logo img { display: block; width: auto; height: 38px; }
.site-footer-heading { display: none; }
.site-footer-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }
.site-footer-list a { color: rgba(245,240,232,.68); font-size: 11px; letter-spacing: .08em; text-decoration: none; }
.site-footer-list a:hover { color: #cfa54d; }
.site-footer-social { gap: 16px; }
.site-footer-social a { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; color: rgba(207,165,77,.65); }
.site-footer-social a:hover { color: #cfa54d; }
.site-footer-social svg { display: block; width: 18px; height: 18px; fill: currentColor; }
.site-footer-email { margin: 8px 0 0; }
.site-footer-email a { color: rgba(245,240,232,.72); font-size: 10px; letter-spacing: .08em; text-decoration: none; }
.site-footer-substack { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 10px; padding: 8px 0 0; border-top: 1px solid rgba(207,165,77,.12); }
.site-footer-substack p { margin: 0; color: #f5f0e8; font-family: 'Trirong','Trirong',serif; font-size: 16px; font-style: italic; line-height: 1.3; }
.site-footer-substack a { flex: 0 0 auto; color: #cfa54d; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; }
.site-footer-bottom { display: flex; align-items: center; justify-content: center; gap: 20px; padding-top: 8px; }
.site-footer-os img { display: block; width: auto; height: 34px; }
.site-footer-legal { margin: 0; color: rgba(245,240,232,.3); font-size: 8px; letter-spacing: .08em; text-align: center; }

@media (max-width: 900px) {
  body > nav.site-header { min-height: 76px; padding: 12px 22px; }
  body > nav.site-header .nav-logo img { height: 46px; }
  body > nav.site-header .nav-mobile-toggle { display: flex; position: relative; z-index: 1002; flex-direction: column; gap: 5px; padding: 8px; border: 0; background: transparent; cursor: pointer; }
  body > nav.site-header .nav-mobile-toggle span { display: block; width: 22px; height: 1px; background: #cfa54d; transform-origin: center; transition: transform .25s ease, opacity .2s ease; }
  body > nav.site-header .nav-links { display: none; }
  body > nav.site-header.menu-open { inset: 0; min-height: 100vh; min-height: 100dvh; align-items: flex-start; background: #050505; backdrop-filter: none; }
  body > nav.site-header.menu-open .nav-logo,
  body > nav.site-header.menu-open .nav-mobile-toggle { position: relative; z-index: 1002; }
  body > nav.site-header .nav-links.open { display: flex; position: absolute; inset: 0; width: 100%; min-height: 100vh; min-height: 100dvh; z-index: 1001; flex-direction: column; justify-content: center; align-items: center; gap: 28px; padding: 92px 24px 36px; background: #050505; }
  body > nav.site-header .nav-links.open a { font-size: 13px; }
  body > nav.site-header.menu-open .nav-mobile-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  body > nav.site-header.menu-open .nav-mobile-toggle span:nth-child(2) { opacity: 0; }
  body > nav.site-header.menu-open .nav-mobile-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  body > footer.site-footer { padding: 20px 22px 14px; }
  .site-footer-top { grid-template-columns: 1fr; gap: 10px; }
  .site-footer-list { gap: 8px 16px; }
  .site-footer-substack { gap: 12px; }
}

@media (max-width: 520px) {
  .site-footer-logo img { height: 34px; }
  .site-footer-list { gap: 8px 14px; }
  .site-footer-list a { font-size: 9px; }
  .site-footer-substack { flex-direction: column; gap: 8px; padding: 14px 0; }
  .site-footer-substack p { font-size: 14px; }
  .site-footer-bottom { flex-direction: column; gap: 10px; padding-top: 14px; }
  .site-footer-os img { height: 30px; }
}
