/* family.hopperlabs.ai: the page's own rules, after the hopperlabs brand stylesheet. Every colour, face, corner and
   timing is one of that brand's tokens; nothing here states a colour. The one colour is the brand's amber, spent on the
   button and on the mark of who has joined the family; the tree itself is ink on paper. */
*,*::before,*::after{box-sizing:border-box}
body{margin:0;background:var(--ground);color:var(--ink);font:400 17px/1.6 var(--sans);-webkit-text-size-adjust:100%}
a{color:var(--link);text-decoration-thickness:1px;text-underline-offset:3px}
a:focus-visible{outline:2px solid var(--focus);outline-offset:3px;border-radius:var(--radius-dense)}
.wrap{width:min(100% - 32px,1080px);margin-inline:auto}
.hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

.bar{border-bottom:1px solid var(--rule)}
.bar-row{display:flex;align-items:center;min-height:60px}
.home{display:inline-flex;align-items:center;gap:10px;min-height:44px;text-decoration:none}
.home img{display:block;width:28px;height:28px}

/* The opening: one sentence in the book face, centred over the tree, and the one button under it. */
.opening{padding-block:clamp(48px,7vw,104px) clamp(32px,4vw,56px);text-align:center}
.opening h1{margin:0 auto;max-width:17em;font:400 clamp(34px,5vw,60px)/1.08 var(--serif);letter-spacing:-.015em;text-wrap:balance}
.lede{margin:24px auto 0;max-width:34em;font-size:19px;line-height:1.55;color:var(--muted);text-wrap:pretty}
.start{margin:32px 0 0}
.button{display:inline-flex;align-items:center;min-height:48px;padding:0 28px;border-radius:var(--radius-pill);background:var(--tile-amber);color:var(--night);font-weight:700;text-decoration:none;transition:background-color var(--state) var(--ease)}
.button:hover{background:color-mix(in srgb,var(--tile-amber) 82%,var(--night))}
.button:focus-visible{outline-color:var(--night)}

/* The app as it is: the family's name on one line, then its tree by generation. */
.sample{margin-top:8px;margin-bottom:clamp(48px,6vw,80px);padding:0;background:var(--surface);border:1px solid var(--rule);border-radius:var(--radius-card);overflow:hidden}
.sample-address{margin:0;padding:9px 20px;background:var(--well);border-bottom:1px solid var(--rule);font:400 13px/1.4 var(--mono);color:var(--muted)}
.sample-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;margin:0;padding:14px 20px;border-bottom:1px solid var(--rule)}
.sample-name{font:400 21px/1.2 var(--serif)}
.sample-meta{font-size:var(--type-dense);color:var(--muted)}
.sample-body{padding:12px 8px 4px;overflow-x:auto}
.tree{display:block;width:100%;max-width:760px;height:auto;margin-inline:auto}
.line{fill:none;stroke:var(--sage);stroke-width:2}
.member rect{fill:var(--surface);stroke:var(--rule);stroke-width:1.5}
.member-name{fill:var(--ink);font:400 17px var(--serif);text-anchor:middle}
.member-note{fill:var(--muted);font:400 11px var(--sans);text-anchor:middle}
.joined rect{stroke:var(--ink)}
.dot{fill:var(--tile-amber)}
.remembered rect{fill:var(--well);stroke-dasharray:4 3}
.added rect{fill:var(--ground);stroke-dasharray:1 3;stroke:var(--sage)}
.you rect{stroke-width:2.5}
.legend{display:flex;flex-wrap:wrap;gap:6px 22px;margin:0;padding:10px 20px 16px;list-style:none;font-size:var(--type-dense);color:var(--muted)}
.legend li{display:inline-flex;align-items:center;gap:8px}
.legend li::before{content:"";display:inline-block;width:14px;height:10px;border-radius:3px}
.legend .legend-joined::before{background:var(--tile-amber);border-radius:50%;width:10px}
.legend .legend-remembered::before{background:var(--well);border:1px dashed var(--muted)}
.legend .legend-added::before{border:1px dotted var(--sage)}

/* Who sees a family and who speaks for it: each promise a row, its name in the book face on the left. */
.promises{padding-bottom:48px}
.promises dl{margin:0}
.promise{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:8px clamp(32px,5vw,72px);padding-block:28px;border-top:1px solid var(--rule)}
.promise dt{font:400 24px/1.25 var(--serif)}
.promise dd{margin:0;max-width:36em}

.missing{padding-block:clamp(48px,8vw,112px)}
.missing h1{margin:0;font:400 clamp(28px,4vw,40px)/1.15 var(--serif)}
.missing p{margin:16px 0 0}

.foot{border-top:1px solid var(--rule)}
.foot-row{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 24px;padding-block:28px 40px;color:var(--muted)}
.foot-row p{margin:0}

@media (max-width:760px){
  .promise{grid-template-columns:minmax(0,1fr)}
  .opening{text-align:left}
  .opening h1,.lede{margin-inline:0}
}
