/* Rabbiit shared brand theme — used by rabbiit.io, dendritic.network and
   anonymos.systems so the three read as one family. Dark by default, with a
   steel-blue accent and the dendritic network's glow blue. Inter for text,
   Space Mono for the brand and code. Copy this file into each site's static/
   and link it; do not fork the tokens. */
:root {
  --bg: #0b0e13;
  --surface: #12151d;
  --surface-2: #1a1f29;
  --border: rgba(255, 255, 255, .14);
  --text: #e8f0f7;
  --muted: rgba(232, 240, 247, .62);
  --accent: #6a9fb5;       /* steel blue */
  --glow: #4bb2ff;         /* the canopy's node blue */
  --radius: 14px;
  --maxw: 72rem;
  --mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text); font-family: var(--sans);
  line-height: 1.6; -webkit-font-smoothing: antialiased; min-height: 100vh;
  display: flex; flex-direction: column;
}
a { color: var(--glow); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
code, kbd { font-family: var(--mono); background: var(--surface); padding: .12em .4em; border-radius: 6px; color: #9fe6ff; font-size: .92em; }

/* ---- header / nav ---- */
.brandbar {
  position: sticky; top: 0; z-index: 50; background: rgba(11, 14, 19, .82);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
}
.brandbar__in { max-width: var(--maxw); margin: 0 auto; padding: .8rem 1.25rem;
  display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.brandbar__logo { font-family: var(--mono); font-weight: 700; font-size: 1.05rem; letter-spacing: .02em; color: var(--text); }
.brandbar__logo b { color: var(--glow); }
.brandbar__nav { display: flex; gap: 1.1rem; margin-left: auto; flex-wrap: wrap; }
.brandbar__nav a { color: var(--muted); font-size: .92rem; }
.brandbar__nav a:hover, .brandbar__nav a[aria-current="page"] { color: var(--text); text-decoration: none; }

/* a small chip row linking the three sites — the "family" strip */
.family { display: flex; gap: .5rem; flex-wrap: wrap; }
.family a { font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--border); border-radius: 999px; padding: .25rem .6rem; color: var(--muted); }
.family a:hover { color: var(--text); border-color: var(--accent); text-decoration: none; }
.family a[aria-current="page"] { color: var(--text); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); }

/* ---- layout ---- */
main { flex: 1 0 auto; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: clamp(2.5rem, 7vw, 5rem) 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5rem; }
h1 { font-size: clamp(2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.3rem); }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 44rem; }
.eyebrow { font-family: var(--mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }

/* ---- hero ---- */
.hero { position: relative; overflow: hidden; isolation: isolate; background: #000;
  display: grid; place-items: center; min-height: min(72vh, 620px); text-align: center; }
.hero__canopy { position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  z-index: 1; pointer-events: none; mix-blend-mode: screen; opacity: .92; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.5) 0%, rgba(0,0,0,.72) 70%, #000 100%); }
.hero__in { position: relative; z-index: 3; padding: 1.5rem; }
.hero__title { font-family: var(--mono); font-weight: 700; margin: 0; text-shadow: 0 2px 24px #000; }

/* ---- cards / buttons ---- */
.grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  padding: 1.4rem 1.5rem; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--accent); }
a.card:hover { text-decoration: none; transform: translateY(-2px); }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--muted); margin: .3rem 0 0; }
.btn { display: inline-block; font-family: var(--mono); font-weight: 700; font-size: .9rem;
  padding: .7rem 1.2rem; border-radius: 10px; border: 1px solid var(--accent);
  color: var(--text); background: color-mix(in srgb, var(--accent) 18%, transparent); }
.btn:hover { text-decoration: none; background: color-mix(in srgb, var(--accent) 30%, transparent); }
.btn--ghost { background: transparent; border-color: var(--border); color: var(--muted); }
.btn--ghost:hover { color: var(--text); border-color: var(--accent); }

/* ---- footer ---- */
.foot { border-top: 1px solid var(--border); background: var(--surface-2); margin-top: 3rem; }
.foot__in { max-width: var(--maxw); margin: 0 auto; padding: 2rem 1.25rem; display: flex; gap: 1.5rem 2rem;
  flex-wrap: wrap; align-items: center; color: var(--muted); font-size: .9rem; }
.foot__in .family { margin-left: auto; }

@media (max-width: 40rem) { .brandbar__nav { gap: .8rem; } }
