/* Shared tokens + components for the d-lowpoly pages. Mobile-first; desktop shows the phone column centred. */
:root {
  --bg: #eef0f3; --bg-top: #f7f8fa; --card: #ffffff; --line: #e3e6ea;
  --ink: #16191d; --muted: #5d6570;
  --navy: #34557f; --navy-dark: #1f3a66; --blue: #1f63c9; --green: #23803f; --green-dark: #1b6533;
  --health: #e0383e; --wealth: #e8901a; --education: #2f73d6; --bonds: #7c4fd6;
  --radius: 16px; --shadow: 0 2px 10px #1b223014;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100dvh; color: var(--ink);
  font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(var(--bg-top), var(--bg));
}
.app { max-width: 430px; margin: 0 auto; padding: 0 16px 32px; min-height: 100dvh; display: flex; flex-direction: column; }
.bar { display: flex; align-items: center; justify-content: space-between; height: 52px; font-weight: 600; }
.bar a, .bar button { color: inherit; background: none; border: 0; padding: 8px; margin: -8px; font: inherit; text-decoration: none; cursor: pointer; }
.kicker { text-transform: uppercase; letter-spacing: .06em; font-size: 11px; color: var(--muted); text-align: center; margin: 12px 0 6px; }
h1 { font-size: 26px; line-height: 1.15; margin: 0; text-align: center; letter-spacing: -.01em; }
.lede { text-align: center; color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; }
.scene { width: 100%; aspect-ratio: 1; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  min-height: 52px; padding: 0 20px; border: 0; border-radius: 999px;
  font: 600 16px system-ui, sans-serif; color: #fff; background: var(--navy); text-decoration: none; cursor: pointer;
}
.btn.blue { background: var(--blue); } .btn.green { background: var(--green); } .btn.dark { background: var(--navy-dark); }
.btn.ghost { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.foot { text-align: center; color: var(--muted); font-size: 13px; margin-top: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.link { color: var(--blue); font-weight: 600; text-decoration: none; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* family tree: one band per generation, joined by a stem; you in the middle band */
.tree { display: grid; gap: 18px; margin: 4px 0 12px; }
.tree .gen { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 6px; }
.tree .gen + .gen::before { content: ""; position: absolute; top: -18px; left: 50%; height: 18px; border-left: 1.5px solid #c9d0d8; }
.tree .gen > b { width: 100%; text-align: center; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: -4px; }
.node { width: 68px; text-align: center; font-size: 12.5px; line-height: 1.2; }
.node i { display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto 4px; border-radius: 50%; overflow: hidden; font-style: normal; font-weight: 700; font-size: 15px;
  background: #efe8dc; box-shadow: var(--shadow); color: var(--ink, #1f2937); }
.node i img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.node.gone i img { filter: grayscale(1); opacity: .8; }
.node small { display: block; color: var(--muted); font-size: 11px; }
.node.me i { background: #dcefe2; box-shadow: 0 0 0 2.5px var(--green); }
.node.gone { color: var(--muted); } .node.gone i { background: none; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--muted); }
.pair { display: flex; align-items: flex-start; }
.pair .tie { width: 12px; margin-top: 25px; border-top: 1.5px solid #c9d0d8; }
