/* PumpgunStudios — shared palette, type, and page furniture. */
:root {
  color-scheme: dark;
  --bg: #101716; --bg-surface: #18211f; --bg-elevated: #202b27;
  --text: #eceee8; --text-dim: #c0c9c4; --muted: #a4b0ab;
  --accent: #79cbb3; --accent-dim: #a0dfcc; --border: #34443e; --danger: #edaaa0;
  --font-sans: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --font-mono: 'Cascadia Code', Consolas, monospace;
  --space-xs: 4px; --space-sm: 8px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px;
  --max-width: 1160px; --gutter: clamp(20px, 4vw, 64px); --topbar-height: 80px;
  --radius-sm: 2px; --radius-md: 2px; --radius-lg: 2px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-sans); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
button, input { font: inherit; }
a { color: var(--accent); text-underline-offset: .25em; text-decoration-thickness: 1px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { color: var(--bg); background: var(--accent); }
h1, h2, h3 { line-height: 1.15; font-weight: 600; letter-spacing: -.025em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.5rem); margin: 0 0 24px; }
h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin: 0 0 16px; }
h3 { font-size: 1.2rem; margin: 0 0 12px; }
p { margin: 0 0 20px; }
code, pre { font-family: var(--font-mono); font-size: .88em; }
code { overflow-wrap: anywhere; }
pre { max-width: 100%; overflow-x: auto; }
pre code { overflow-wrap: normal; }
.container { width: min(var(--max-width), calc(100% - 2 * var(--gutter))); margin: 0 auto; }
.skip-link { position: absolute; top: 12px; left: var(--gutter); z-index: 100; padding: 12px 20px; color: var(--bg); background: var(--accent); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.site-topbar { padding: 0 var(--gutter); }
.topbar-inner { max-width: var(--max-width); min-height: var(--topbar-height); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--border); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 650; letter-spacing: -.02em; }
.topbar-logo { width: 38px; height: 38px; object-fit: contain; }
.topbar-nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 32px); }
.topbar-nav a { display: inline-flex; min-height: 44px; align-items: center; color: var(--muted); text-decoration: none; font-size: .95rem; }
.topbar-nav a.active, .topbar-nav a[aria-current='page'], .topbar-nav a:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 8px; }
.topbar-nav .language-switch { min-width: 44px; justify-content: center; font-family: var(--font-mono); font-size: .8rem; color: var(--accent); }
.buttons { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 0; color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 6px; }
.btn.primary { padding: 10px 18px; color: var(--bg); background: var(--accent); border: 1px solid var(--accent); border-radius: var(--radius-sm); text-decoration: none; }
.btn.primary:hover { background: var(--accent-dim); }
.site-footer { width: min(var(--max-width), calc(100% - 2 * var(--gutter))); margin: 64px auto 0; padding: 22px 0 30px; border-top: 1px solid var(--border); color: var(--muted); display: flex; justify-content: space-between; gap: 20px; font-size: .9rem; }
.site-footer small { font-size: inherit; }
.site-footer a { color: var(--muted); }
.label { font-family: var(--font-mono); font-size: .8rem; font-weight: 400; letter-spacing: .04em; color: var(--muted); }
.note { color: var(--muted); }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 24px; font-size: .9rem; }
.back-link svg { width: 16px; height: 16px; }
.error-page { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; padding: clamp(56px, 10vw, 120px) 0 48px; }
.error-code { font-family: var(--font-mono); font-size: clamp(4rem, 10vw, 8rem); color: var(--accent); line-height: 1; }
.error-message { max-width: 48ch; color: var(--text-dim); }
@media (max-width: 600px) {
  :root { --topbar-height: 100px; }
  .topbar-inner { padding: 16px 0 12px; align-items: flex-start; flex-wrap: wrap; gap: 4px 20px; }
  .brand { font-size: .95rem; }
  .topbar-logo { width: 30px; height: 30px; }
  .topbar-nav { margin-left: 42px; width: calc(100% - 42px); gap: 24px; }
  .site-footer { flex-direction: column; gap: 8px; margin-top: 40px; }
  .error-page { grid-template-columns: 1fr; gap: 24px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
