/* RiffHunter — Black Codex design system for auxiliary pages (about, privacy, terms).
   Pairs with the main app's <style> block. */

:root {
  --bg: #0a0807;
  --bg-2: #14110d;
  --surface: #1c1814;
  --fg: #e8e1d4;
  --fg-dim: #c8c1b4;
  --muted: #8a8275;
  --muted-dim: #5a5247;
  --accent: #7a131a;
  --accent-bright: #a31a23;
  --accent-muted: #4a0a10;
  --border: #2a2520;
  --border-strong: #3a3530;

  --font-display: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Grain overlay matches the app */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1, 0 0 0 0 1, 0 0 0 0 1, 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
}

a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent);
}
a:hover { color: var(--accent-bright); }

/* === Site header === */
.site-header {
  position: sticky; top: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 32px;
  background: rgba(10,8,7,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 5;
}
.site-header .brand {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-display);
  letter-spacing: 0.22em;
  font-size: 18px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--fg);
}
.site-header .brand a {
  display: flex; align-items: center; gap: 14px;
  color: inherit;
  text-decoration: none;
}
.site-header .brand img {
  width: 40px; height: 40px;
  object-fit: contain;
}
.site-header .nav { display: flex; gap: 32px; }
.site-header .nav a {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.site-header .nav a:hover { color: var(--fg); }

/* === Main content === */
main {
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 32px 110px;
}

img { max-width: 100%; height: auto; }

h1 {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.15;
  margin: 0 0 10px;
  color: var(--fg);
}

h2 {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin: 44px 0 14px;
  color: var(--accent-bright);
  position: relative;
  padding-left: 22px;
}
h2::before {
  content: '';
  position: absolute;
  left: 0; top: 50%; transform: translateY(-50%);
  width: 14px; height: 1px;
  background: var(--accent);
}

h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 24px 0 8px;
  color: var(--fg);
}

p, li {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--fg-dim);
  line-height: 1.65;
}

ul { padding-left: 22px; }
li { margin-bottom: 8px; }

strong { color: var(--fg); font-weight: 600; }

.updated {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin-bottom: 50px;
}

.lead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  color: var(--fg);
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 16px;
  margin: 22px 0 28px;
  line-height: 1.55;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 44px 0;
}

/* === Site footer === */
.site-footer {
  padding: 36px 32px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-footer .footer-nav { display: flex; gap: 18px; }
.site-footer .footer-nav a {
  color: var(--muted);
  text-decoration: none;
}
.site-footer .footer-nav a:hover { color: var(--accent-bright); }

code, .mono {
  font-family: var(--font-mono);
  font-size: 16px;
  background: var(--bg-2);
  padding: 1px 6px;
  border: 1px solid var(--border);
  color: var(--fg-dim);
}
