/* Shared theme for the hand-written static pages (#30's lighter-weight fix: pull the
   duplicated pieces into one file rather than migrating everything to React).
   Hand-authored, NOT Vite build output - safe to keep here because vite.config.js sets
   emptyOutDir: false, but this file is not touched by `npm run build`.

   Pages that already share this exact palette (static_home.html, static_terms.html,
   static_privacy.html) link this instead of redeclaring :root themselves.

   :root here aliases onto static_assets/theme-tokens.css's canonical values (site-wide restyle,
   2026-09-04) rather than redeclaring its own hex - every rule below still reads --bg/--panel/
   etc, so this is the only block that needed to change. Pages loading this file must also load
   theme-tokens.css (before this file) for these to resolve to anything. */

:root {
  --bg: var(--ground, #0d1117);
  --panel: var(--surface, #161b22);
  --border: var(--line, #30363d);
  --text: var(--ink, #e6edf3);
  --dim: var(--muted, #8b949e);
  --blue: var(--accent, #58a6ff);
  --green: var(--success, #3fb950);
  --greenbtn: var(--accent, #238636);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  flex-wrap: wrap;
}
.brand { font-size: 1.15rem; font-weight: 700; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .dot { color: var(--green); }

footer { border-top: 1px solid var(--border); padding: 22px 0; }

/* Material-leaning defaults (site-wide restyle phase 3, 2026-09-04) - a plain element selector,
   same specificity as any page's own button{}/h1{} rule, so a page with its own more specific
   styling (a bundled *.css, or its own inline <style>) still wins outright; this only fills in
   for pages that had nothing of their own and were falling back to the raw browser default. */
h1, h2 { font-family: 'Roboto', -apple-system, sans-serif; }
button {
  background: var(--panel); color: var(--dim); border: 1px solid var(--border);
  padding: 7px 16px; border-radius: 999px; font-size: 0.85rem; cursor: pointer;
  font-family: 'Roboto', -apple-system, sans-serif; font-weight: 500;
}
button:hover { color: var(--text); border-color: var(--dim); }
