@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg: #0a0f1e;
  --surface: #111827;
  --card: #161f30;
  --border: #1e2d45;
  --gold: #f5c542;
  --gold-dim: #b8902e;
  --text: #e2e8f0;
  --muted: #64748b;
  --radius: 10px;
}

html { background: var(--bg); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
}

.page-width { width: min(100% - 32px, 960px); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: #070c19;
  padding: 10px 20px;
}

.header-inner {
  width: auto;
  max-width: none;
  margin: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.brand {
  color: var(--gold) !important;
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  line-height: normal;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.site-header nav a {
  border: 1px solid transparent;
  border-radius: 20px;
  color: var(--muted) !important;
  font-size: 13px;
  padding: 5px 10px;
  text-decoration: none;
  line-height: normal;
  transition: color .15s, border-color .15s, background-color .15s;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  border-color: var(--border);
  color: var(--text) !important;
}

.site-header nav a.active,
.site-header nav a[aria-current='page'] {
  border-color: var(--gold-dim);
  color: var(--gold) !important;
}

.site-header nav a:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.site-footer {
  background: #070c19;
  border-top: 1px solid var(--border);
  color: var(--muted);
  margin-top: 40px;
  padding: 28px 20px;
}

.site-footer > div,
.site-footer > .page-width {
  max-width: 960px;
}

.site-footer .footer-inner {
  width: auto;
  max-width: 960px;
  margin: 0 auto 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.site-footer .footer-col h4 {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: normal;
}

.site-footer .footer-col p,
.site-footer .footer-col a {
  display: block;
}

.site-footer .footer-bottom {
  width: auto;
  max-width: 960px;
  margin: 0 auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 15px;
  line-height: 1.55;
}

.site-footer .footer-brand { color: #f5c542; }

.site-footer .rg-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 107, 74, .1);
  border: 1px solid rgba(255, 107, 74, .3);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 15px;
  color: #ff6b4a;
  font-weight: 600;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.site-footer a { text-decoration: none; }
.site-footer a:hover,
.site-footer a:focus-visible { color: var(--text); }

@media (max-width: 600px) {
  .site-header { padding: 10px 20px; }
  .header-inner {
    align-items: center;
  }
  .site-header nav { gap: 4px; }
  .site-header nav a { padding: 5px 8px; }
  .site-footer { padding: 28px 20px; }
  .site-footer .footer-bottom { align-items: flex-start; }
}
