/* Shared chrome for the document pages: about, faq, privacy, terms.
   index.html deliberately keeps its own styles inline — it is the call itself
   and should render even if a second request never arrives. These four are
   ordinary reading pages, and they used to carry four copies of this block,
   which is how they drifted apart in the first place. */
:root {
  color-scheme: dark;
  --bg: #070c0c;
  --txt: #d6dde4;
  --txt-dim: #6f7a85;
  --line: #1f242b;
  --accent: #60a5fa;
  --lip: inset 0 1px 0 rgba(255,255,255,0.06);
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg); color: var(--txt); line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ---- Ambient backdrop, matching the call page ----
   Same four washes and the same grain. Clicking "About" mid-call used to drop
   you onto a visibly deader page than the one you left. */
body::before, body::after {
  content: ""; position: fixed; inset: -12%; z-index: -1; pointer-events: none;
}
body::before {
  background:
    radial-gradient(880px 620px at 12% -8%,  rgba(16,185,129,0.28), transparent 62%),
    radial-gradient(760px 560px at 92%  6%,  rgba(34,211,238,0.24), transparent 60%),
    radial-gradient(980px 700px at 78% 106%, rgba(99,102,241,0.26), transparent 62%),
    radial-gradient(700px 520px at 26%  98%, rgba(45,212,191,0.16), transparent 65%);
  animation: drift 46s ease-in-out infinite;
}
body::after {
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}
@keyframes drift {
  0%, 100% { transform: translate3d(-1.5%, -1%, 0) scale(1.06); }
  50%      { transform: translate3d( 1.5%, 1.5%, 0) scale(1.12); }
}

.topbar {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 20px;
  background: rgba(16,19,24,0.62);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  box-shadow: var(--lip);
  position: sticky; top: 0; z-index: 10;
}
.brand { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.brand a { color: #fff; text-decoration: none; }
.brand-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,0.7);
}
.nav { margin-left: auto; display: flex; gap: 6px; }
.nav a {
  color: #9ca8b3; text-decoration: none; font-size: 13px;
  padding: 6px 10px; border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav a.active { color: #fff; background: rgba(255,255,255,0.10); }

main { max-width: 760px; margin: 0 auto; padding: 48px 24px 96px; }
h1 {
  color: #fff; margin: 0 0 8px; font-size: 32px; letter-spacing: -0.5px;
  background: linear-gradient(180deg, #ffffff 35%, #a8b3c1 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
h2 {
  color: #fff; margin: 40px 0 12px; font-size: 20px; letter-spacing: -0.2px;
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
h3 { color: #e7ecf2; margin: 28px 0 6px; font-size: 16px; }
p { margin: 12px 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { color: #f1f5f9; font-weight: 600; }
code {
  background: #1c2026; padding: 2px 7px; border-radius: 5px;
  font-size: 0.9em; color: #f1c27d; border: 1px solid #262c34;
}
ul, ol { padding-left: 24px; margin: 12px 0; }
li { margin: 6px 0; }
.meta { color: var(--txt-dim); font-size: 14px; margin-top: 0; }

/* Pulled-aside note for the things a reader would otherwise have to take on
   trust — what gets logged, what leaves the machine. */
.note {
  margin: 20px 0; padding: 14px 16px;
  background: rgba(255,255,255,0.035);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  box-shadow: var(--lip);
}
.note p { margin: 0; font-size: 14.5px; }
.note p + p { margin-top: 10px; }

@media (max-width: 700px) {
  .topbar { padding: 10px 14px; gap: 8px; }
  .nav { gap: 2px; }
  .nav a { padding: 6px 8px; font-size: 12px; }
  main { padding: 32px 18px 64px; }
  h1 { font-size: 26px; }
  h2 { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; transform: none; }
  * { transition-duration: 0.01ms !important; }
}
