@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Chakra+Petch:wght@400;500;600;700&family=VT323&family=Space+Grotesk:wght@500;600;700&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --bg: #0b0c10;
  --fg: #e2e8f0;
  --muted: #8b93a7;
  --accent: #38bdf8;
  --accent-2: #a855f7;
  --surface: #14161d;
  --border: #262a35;
  --font-pixel: 'Press Start 2P', monospace;
  --font-body: 'Chakra Petch', sans-serif;
  --header-h: 68px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 6%;
}

/* ---------- SITE HEADER (shared skeleton, themed per page) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6%;
  background: var(--header-bg, rgba(10,10,14,0.9));
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--accent);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 1px;
  white-space: nowrap;
}

.brand .dot { color: var(--accent-2); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  text-decoration: none;
  color: var(--fg);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
  border-color: var(--border);
}

.nav-links a.active {
  color: var(--bg);
  background: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1100;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--accent);
  display: block;
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100vh - var(--header-h));
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 20px 6%;
    gap: 4px;
    z-index: 1050;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { padding: 16px; font-size: 14px; border-bottom: 1px solid var(--border); }
}

/* ---------- SITE FOOTER (shared skeleton) ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 6% 28px;
  margin-top: 80px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  background: var(--surface);
}

.site-footer .foot-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.site-footer .foot-links a {
  text-decoration: none;
  color: var(--fg);
  font-weight: 600;
  font-size: 12px;
}

.site-footer .foot-links a:hover { color: var(--accent); }

.disclosure {
  max-width: 620px;
  margin: 14px auto 0;
  font-size: 11px;
  color: var(--muted);
  opacity: 0.8;
}

/* ---------- shared bits ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

::selection { background: var(--accent); color: #000; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); }
